Ansicht
Dokumentation

ABENOO_OBS_SY_REPID_1 - OO OBS SY REPID 1

ABENOO_OBS_SY_REPID_1 - OO OBS SY REPID 1

TXBHW - Original Tax Base Amount in Local Currency   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.
SAP E-Book

Passing sy-repid Not Allowed

In ABAP Objects, you cannot pass the system field sy-repid as an actual parameter to an external procedure.

In ABAP Objects, the following statement causes an error message:

CALL FUNCTION func EXPORTING p = sy-repid.

Correct syntax:

DATA repname TYPE sy-repid.

repname = sy-repid.
CALL FUNCTION func EXPORTING p = repname.

Reason:

When the parameters are passed to the formal parameters, sy-repid already contains the name of the main program of the procedure you have called, even though you intended to pass the name of the calling program.






ABAP Short Reference   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.

Length: 1029 Date: 20240427 Time: 033825     sap01-206 ( 17 ms )