Entering content frame

Procedure documentation Calling Update Functions Directly Locate the document in its SAP Library structure

To call a function module directly, use CALL FUNCTION IN UPDATE TASK directly in your source code.

CALL FUNCTION 'FUNCTMOD' IN UPDATE TASK EXPORTING...

The system then logs your request and executes the function module when the next COMMIT WORK statement is reached. The parameter values used to execute the function module are those current at the time of the call.

Note 

a = 1.
CALL FUNCTION 'UPD_FM' IN UPDATE TASK EXPORTING par = a...
a = 2.
CALL FUNCTION 'UPD_FM' IN UPDATE TASK EXPORTING par = a...
a = 3.
COMMIT WORK.

Here the function module UPD_FM is executed twice in the update task – once with the value 1 in par and once with the value 2 in par.

 

 

Leaving content frame