Error Message in Z-report when using BAPI_OUTB_DELIVERY_CHANGE: Document is incomplete: You cannot save the delivery
I have created a Z-report which process all the saved deliveries. All those deliveries where quantity is not zero are saved successfully but if i want to save a delivery whose quantity is 0, the BAPI returns the message Document is incomplete: You cannot save the delivery. I am using VL01N t-code to create the delivery.
Below is the part of code i am using to save the delivery via Z-report.
|l_del_no = wa_likp-vbeln.|
|wl_header-deliv_numb = l_del_no.|
|wl_header_chng-deliv_numb = l_del_no.|
|CALL FUNCTION 'BAPI_OUTB_DELIVERY_CHANGE'|
I had tried to search content but didn't find anything specific with VL01N.
Please help me in finding the ways so that i can save the delivery with quantity 0.
Thanks in Advance.
Prakhar Singh Chandel