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

BAPI_PRODORDCONF_CREATE_HDR

Former Member
0 Likes
743

Hi.

I need some help with 'BAPI_PRODORDCONF_CREATE_HDR'.

My code is the following:

data: l_wa_athrdlevels like BAPI_PP_HDRLEVEL occurs 0 WITH HEADER LINE.

l_wa_athrdlevels-orderid = '1000120'. "NÂș ordem

l_wa_athrdlevels-yield = '15'. "Qtd.boa a ser confirmada atualmente

APPEND l_wa_athrdlevels.

CALL FUNCTION 'BAPI_PRODORDCONF_CREATE_HDR'

EXPORTING

POST_WRONG_ENTRIES = ''

TESTRUN = ''

IMPORTING

RETURN = l_wa_return

TABLES

ATHDRLEVELS = l_wa_athrdlevels

GOODSMOVEMENTS =

LINK_CONF_GOODSMOV =

DETAIL_RETURN = l_wa_detail_return

.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

and I'm getting the following error:

E Order 1000120 not found, check entry

and I don't know what is I am doing wrong, because this order appears OK on trans. CORK.

Can you please help me?

Kind Regards

ASantos

Edited by: Alvaro Tejada Galindo on Mar 18, 2008 3:11 PM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
674

Can you try appending leading zeros to your order number. First check out the field length(Should be 10 or 12 digits) and then append it with leading zeros accordingly.

- Guru

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Mar 18, 2008 3:11 PM

4 REPLIES 4
Read only

Former Member
0 Likes
675

Can you try appending leading zeros to your order number. First check out the field length(Should be 10 or 12 digits) and then append it with leading zeros accordingly.

- Guru

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Mar 18, 2008 3:11 PM

Read only

0 Likes
674

Thanks Guru (Guruprasad Moorthy)

"Can you try appending leading zeros to your order number. First check out the field length(Should be 10 or 12 digits) and then append it with leading zeros accordingly."

It solved my problem - the problem was 12 digits with leading zeros.

Thanks once again.

Now I've one more question:

Regarding to field:

'l_wa_athrdlevels- fin_conf = ''. "parcial/final confirmation '

What can I put where for partial confirmation and for final confirmation? I mean which character shall I use for partial? And for final?

Thanks in Advance

Armando Santos

Read only

0 Likes
674

Not too sure about this one. You can try giving a 'X' there for Final confirmation and ' '(Space) for partial.

Read only

0 Likes
674

Thanks Guru (Guruprasad Moorthy)

Sorry for the late answer, but I've been out of the office.

Your tip, It help me once again.

Unfortenately I've now a new problem, that I'm going to open a new question.

Many Thanks.

Regards

Armando Santos