Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

User Exit SO/DO after SAVE

Former Member
0 Likes
468

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.

2 REPLIES 2
Read only

Former Member
0 Likes
412

Halo,

Anyone got idea of this.

Best Regards,

Victor.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
412

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