pyrfc - call SE38 programs and take screenshots? #292
-
hi All, a) would it be possible via pyrfc to also call se38 programs (if yes what would be the syntax), Or we can only call function modules? appreciate any inutes |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hello @chandra-a, a) se38 programs (ABAP reports) can't be called via SAP RFC protocol, only function modules. To call ABAP report via RFC and PyRFC, an RFC enabled function module shall be created, that calls the ABAP report internally. Here one example: https://answers.sap.com/questions/5421837/how-to-call-a-report-through-rfc.html |
Beta Was this translation helpful? Give feedback.
-
Hello, If you are seeing such dumps in ST22, then the following parameter for the RFC connection might help you: Basically there are two cases:
In any case: SAPGui needs to be installed on the machine, where your Python program is running. On Windows, you can use the standard SAPGui, on Linux/Unix the SAP Java Gui (Platin Gui). |
Beta Was this translation helpful? Give feedback.
Hello,
"screenshot based result" is probably not the correct description for this, but there are indeed some old FMs/BAPIs which try to send Dynpro data (data formatted in DIAG protocol) back to the caller. When the caller is connected to the SAP System via RFC protocol (like in this case), this usually results in a dump DYNPRO_SEND_IN_BACKGROUND "Screen output without connection to user".
If you are seeing such dumps in ST22, then the following parameter for the RFC connection might help you:
USE_SAPGUI=1/2 (see sapnwrfc.ini file for details)
Basically there are two cases: