Application Development 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: 

BAPI to create and post goods receipt

Former Member
0 Kudos

Hi all,

I have a requirement where BAPI should create outboud delivery doc for the reference of sales return doc and that bapi must have functionality to post the goods receipt also.

BAPI_OUTB_DELIVERY_CREATE_SLS bapi is allowing me to create outbound delivery doc and to use BAPI_OUTB_DELIVERY_CONFIRM_DEC

this doc must already available .

kindly sugust me bapi which create/post the doc in one shot.

regards,

padmaja.

2 REPLIES 2

former_member305388
Active Contributor
0 Kudos

Why don't you have BAPI_TRANSACTION_COMMIT between these two? Call BAPI_OUTB_DELIVERY_CREATE_SLS first and call BAPI_TRANSACTION_COMMIT. Now the document will be ready to be passed to BAPI_OUTB_DELIVERY_CONFIRM_DEC.

Hope this helps.

madhu_vadlamani
Active Contributor
0 Kudos

Hi Padmaja,

Use the first bapi and create a document then use the created document number and post it.

Regards,

Madhu.