‎2007 Aug 07 9:53 AM
Hi All,
We got requirements to do auto PGI and create invoice after SO saved.
In configuration functional customized if SO created --> DO created.
Now, after DO created i want to call my program which is to do PGI and create Invoice.
The problems are where the user exit to run my program.
I try to using MV45AFZZ --> USEREXIT_SAVE_DOCUMENT (when SO saved)
or MV50AFZ1 --> USEREXIT_SAVE_DOCUMENT (when DO saved)
In those exit, got the SO or DO document already, but not yet commit.
So i can't do PGI and invoicing using that Delivery number.
Anyone know, the exit that called by SAP after SO or DO created and commit.
Best Regards,
Victor.
‎2007 Aug 07 10:41 AM
‎2007 Aug 07 10:50 AM
Maybe you could create a function module, and
CALL FUNCTION func IN BACKGROUND TASK<i>Effect
Flags the function module func to be run asynchronously. It is not executed at once, but the data passed with EXPORTING or TABLES is placed in a database table and the next COMMIT WORK executes it in another work process. </i>
Look also at <a href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCSTUP/BCCSTUP_PT.pdf">Updates in the R/3 System (BC-CST-UP)</a>
Regards