SAPSPRINT stopped printing all documents

Ensure you didn’t check the box “Save output as file”, thinking it sends a copy to a file. In fact, it redirects all printing to a file, despite the fact you are able to see in the Windows print spooler: “Printed successfully”.

By the way, with the release of 7.6 SAPPDRPRINT is no longer needed, it became a part of SAPSPRINT with the new engine ASPOSE PDF.

bash: fork: Cannot allocate memory

Problem:
No memory on the host. You can’t even reboot the host due to a lack of memory.

Solution:

Trigger OOM-killer by executing these commands:

echo 1 > /proc/sys/kernel/sysrq
echo f > /proc/sysrq-trigger
echo 0 > /proc/sys/kernel/sysrq

Yes, it’s bad, but sometimes you don’t have a choice…

The easiest way to remove Linux streams for SAP applications

su - <sidadm>
find /tmp -user $USER -name ".sapstream*" -exec rm {} + 

Linux streams refer to the concept of input/output (I/O) streams in the Linux operating system. In Linux, everything is treated as a file, including input and output devices. Streams are a way to handle data flow between these files and programs. Linux streams are categorized into three types: standard input (stdin), standard output (stdout), and standard error (stderr). These streams can be redirected, piped, or manipulated using various Linux commands and utilities. Overall, streams are an essential part of the Linux I/O system and are used extensively in various Linux applications, for example, SAP Netweaver.

SAP HANA and ODBC access

Q: Can I connect directly to the SAP HANA database via ODBC when SAP HANA RUNTIME edition was used?

A: Official answer from SAP: No, you can’t.

Any direct connectors to the SAP HANA DB are prohibited if RUNTIME license was used. Connections are allowed only through the application layer, whether it is the web services of your application or something else.

See more at SAP SUR 2022:

https://assets.cdn.sap.com/agreements/product-use-and-support-terms/sur/sap-software-use-rights-english-v1-2022.pdf

SAP HANA replication problem. Secondary has different systemPKI SSFS data

During configuring SAP HANA replication you are getting the error:

Error while executing the register command: hdbnsutil -sr_register

Primary and secondary has different systemPKI SSFS data and key or unable to check; Secondary system PKI SSFS-data-file checksum is different from primary!

You just need to copy keys from the source system to the target:

su - <sidadm>
cdglo
scp security/rsecssfs/key/*.KEY $USER@<sap_db_host_name>:/usr/sap/$SAPSYSTEMNAME/SYS/global/security/rsecssfs/key/

scp security/rsecssfs/data/*.DAT $USER@<sap_db_host_name>:/usr/sap/$SAPSYSTEMNAME/SYS/global/security/rsecssfs/data/

SAP Basis transaction list

A SAP transaction is an application that executes a business process on a system, performs a set of logically completed actions over data. (Technically, it is a “shortcut” for calling a program on ABAP/4).   For example, it can be the input and accounting entry of an invoice, forming some reports. (Programmers: SAP transaction is not synonymous with DB transaction).

When analyzing problems with a SAP system, it is often sufficient to analyze transactions in the following order:

sm50 – see how fast workflows are running. Are there many free ones, are there many long-term employees, are there any processes in PRIV mode?

st22 – see the presence of dumps in the system, their count

Continue reading »