2012 Jun 27 9:06 AM
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
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
2012 Jun 27 9:30 AM
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>.
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |