Hi friends,
I need a small help.I am implementing a custom enhancement for Sales Orders.
For this,I am using the User Exit SAVE_DOCUMENT_PREPARE in the standard program MV45FZZ(Include in SAPMV45A).I wrote a small logic,that gets triggered each time a Sales Order is created or Changed through VA01 or VA02 respectively.
For <b>VA02</b> i.e., <b>change</b> my logic works pretty well.I am capturing the current Sales Order Number using <b>XVBAP-VBELN</b> and implementing my logic.
But while <b>creation</b> i.e., <b>VA01</b>,I am using the same logic and trying to capture current Sales Order through <b>XVBAP-VBELN</b>(not yet saved).
But,<b>XVBAP-VBELN</b> is blank when I am debugging.
Where does the Sales Order Number get saved,while it is being created i.e., before being saved.
Regards,
Imran.