‎2006 Oct 10 10:15 AM
Hi,
i need to update a table in the user-exit, AENR is the table and based on the primary key that is AENNR i have to update AENST, what is the best way of doing it , as i have searched for BAPI's but could not find one.
Thanks & Regards
Syed
‎2006 Oct 10 10:24 AM
You can create a update function module or call a function in update task.
To call a function module directly, use CALL FUNCTION IN UPDATE TASK directly in your 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.
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.
‎2006 Oct 10 10:24 AM
You can create a update function module or call a function in update task.
To call a function module directly, use CALL FUNCTION IN UPDATE TASK directly in your 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.
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.