09-03-2008 3:57 PM
i want to insert some sales order item by bapi after after sales order created & insert to database.which user exit can be use?
09-03-2008 3:59 PM
09-03-2008 3:59 PM
09-03-2008 4:07 PM
This form is called at from form BELEG_SICHERN, before COMMIT.so the user exit don't insert sales order data to database yet,if i call to append some item data then,system will not find this sales order.
09-03-2008 4:14 PM
Saving of Sales order to the database is being done in the asynchronous processing. So, will not find any place where you can update your Z table after the COMMIT to standarad database.
To avoid the inconsistency,
Either you can use the PERFORM .. ON COMMIT, this FORM will contain your logic to insert Z table
Or Wrap all your update logic in the FM and use CALL FM IN UPDATE TASK.
The best suitable place to call this FORM or FM is the USEREXIT_SAVE_DOCUMENT in the MV45AFZZ.
Regards,
Naimesh Patel