â2008 Mar 12 4:40 PM
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
â2008 Mar 12 4:49 PM
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
â2008 Mar 12 4:49 PM
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
â2008 Mar 13 10:32 AM
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
â2008 Mar 17 7:05 AM
Not too sure about this one. You can try giving a 'X' there for Final confirmation and ' '(Space) for partial.
â2008 Mar 18 7:03 PM
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