BAPI to upload documents to SAP system is throwing an exception



As mentioned in exception message, it seems that the function module tries to access GUI related function and it doesn’t support BAPIs. So it seems to be a custom RFC module or there is some bug in SAP coding and you should open a support ticket with SAP.

Also, you shouldn’t use GUI services in non-GUI operations, and it is not suggested to use class cl_gui_frontend_services and functions GUI_* and you should use OPEN_DATASET FOR INPUT/OUTPUT instruction in RFC function.

Swarali Sree
Swarali Sree

I love thought experiments.


Advertisements