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

Production Order Confirmation BAPI

Former Member
0 Likes
3,587

I am trying to create a production order confirmation and update the batch details in the goods movement using the bapi: BAPI_PRODORDCONF_CREATE_HDR

The confirmation gets created. However the material document is not getting posted. Any documentation / sample code on how to use the BAPI will be helpful.

Thanks,

Aj

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,932

Have you checked the documentation that comes with the BAPI?

Rob

I am trying to create a production order confirmation and update the batch details in the goods movement using the bapi: BAPI_PRODORDCONF_CREATE_HDR

The confirmation gets created. However the material document is not getting posted. Any documentation / sample code on how to use the BAPI will be helpful.

Thanks,

Aj

8 REPLIES 8
Read only

Former Member
0 Likes
1,933

Have you checked the documentation that comes with the BAPI?

Rob

Read only

0 Likes
1,932

Ofcourse, yes!

Read only

0 Likes
1,932

Check this FM out....

PP_CATT_CONFBAPI_HDR..

This calls BAPI_PRODORDCONF_GET_HDR_PROP to get the proposed values for confirmation and then calls BAPI_PRODORDCONF_CREATE_HDR for confirmation..

see if it helps...

Read only

Former Member
0 Likes
1,932

Deepu,

Thanks. I used the "PROP" Bapi to get the default values using the order number and overwrote the quantities and batch. And it works!

Read only

0 Likes
1,932

No problem...

Glad to be of help..

Read only

0 Likes
1,932

First off, thanks for these posts. Worked for me, too.

Let me just add a little more clarification:

1) First you call BAPI_PRODORDCONF_GET_HDR_PROP

2) Then you must update the field ENTRY_QNT from the internal table you pass in to "goodsmovements" because function BAPI_PRODORDCONF_GET_HDR_PROP wipes that field out and you will miss the posting without this filled

3) Then you call BAPI_PRODORDCONF_CREATE_HDR with the same internal table you got back from the first function inclusive of you putting back ENTRY_QNT.

4) Commit work and wait.

So, in summary, the first fm is needed and the first fm changes some fields in the "goodsmovements" internal table that you really need to get the posting to work in the second fm.

And one more thing, the exact function that an earlier posted referenced to find out that both of the functions in this note were called together is: PP_CATT_CONFBAPI_HDR.

Message was edited by:

Kenneth Goldstein

Read only

0 Likes
1,932

HI da i got the same problum plz help me out.

i am using bapi 'BAPI_PRODORDCONF_CREATE_TT'

for Production Order Confirmation and Goods Movement, i am getting message

'Confirmation saved' But If i check their is no Goods movement is happening,

i am passing Order confirmation data and Goods movement data(palnt, stg.loc, batch,mocement type, order id)

plz help me out da, its urgent Plzzzzzzzzzzzzzzzz.

I will rewar a points for this.

Thank's da

Read only

thangam_perumal
Contributor
0 Likes
1,932

Hello Mr AJ,

                    Please guide me how do you completed BAPI Production Order Confirmation because i have one same Prd Order confirmation task. Blindly i don't about it.