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

Automatic Billing upon PGI

venkateswaran_k
Active Contributor
0 Likes
390

Dear All

My requirement is that upon pressing PGI on VL01n - Creating outboud delivery...  The billing document needs to be created automatically.

For that, I found a user exit -  EXIT_SAVE_DOCUMENT in MV50AFZ1. ( Where I will call the BAPI_BILLLINGDOC_CREATEMULTIPLE by passing Current delivery number generated and reference document category as 'J'.

However, in this exit I am not knowing how to get the current delivery document number generated..

can someone help me to guide further.

Regards,

Venkat

1 REPLY 1
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
361

Please check sap note 415716 for MV50AFZ1. You can also look into badi DELIVERY_PUBLISH.

In the method do something like below for header & item:

CONSTANTS: cit(40) TYPE c VALUE '(SAPMV50A)XLIPS[]'.

FIELD-SYMBOLS: <fs> TYPE t_xlips.

ASSIGN (cit) TO <fs>.