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

Regarding bapi

Former Member
0 Likes
446

Hi,

Can any one tell what are the minimum inputs when using a bapi ''BAPI_PRODORDCONF_CREATE_HDR'

Thanks an advance

3 REPLIES 3
Read only

amit_khare
Active Contributor
0 Likes
408

Refer standard FM "PP_CATT_CONFBAPI_HDR". It has the logic to call the FM "BAPI_PRODORDCONF_CREATE_HDR"

~As found in forum..

Regards,

Amit

reward all helpful replies.

Read only

0 Likes
408

HI ,

I have gone through that FM.

That means Input will be as below:

1)POST_WRONG_ENTRIES

2)TESTRUN

Tables:

1)ATHDRLEVELS

2)GOODSMOVEMENTS

3)LINK_CONF_GOODSMOV

4)DETAIL_RETURN

And RETURN will be output from FM.

Please confirm above.

Thanks in advance.

Read only

Former Member
0 Likes
408

Hi.

I need some help with 'BAPI_PRODORDCONF_CREATE_HDR'.

My code is the following:

data: l_wa_detail_return like BAPI_CORU_RETURN occurs 0 WITH HEADER LINE,

l_wa_return like BAPIRET1 occurs 0 WITH HEADER LINE.

data: l_wa_athrdlevels like BAPI_PP_HDRLEVEL occurs 0 WITH HEADER LINE.

l_wa_athrdlevels-orderid = '1000120'. "Nº ordem

*l_wa_athrdlevels-fin_conf = ''. "Confirmação parcial/final

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

*l_wa_athrdlevels-postg_date = '11.03.2008'.

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

.

data:

  • Return table from bapi call

li_return TYPE STANDARD TABLE OF BAPI_CORU_RETURN ,

l_return TYPE BAPI_CORU_RETURN,

l_errflag(1) TYPE c.

CLEAR l_errflag.

LOOP AT l_wa_detail_return INTO l_return.

WRITE: / l_return-type, l_return-message(50).

IF l_return-type = 'E'.

l_errflag = 'X'.

ENDIF.

ENDLOOP.

IF l_errflag <> 'X'.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

ENDIF.

and I'm getting the following error:

Program ZPPACK

E Order 1000120 not found, check entry

and I don't know what is happen because this order appears on CORK correctely.

Can you please inform what I' am doing wrong?

Regards

Armando Santos