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 error

Former Member
0 Likes
635

hi experts,

with the help of this bapi :"BAPI_PRODORDCONF_CREATE_HDR'" I M GENERATING THE CONFIRMATION NUMBer and when i pass this number to the bapi 'BAPI_PRODORDCONF_CREATE_ACT' for confirming the activity it is giving this error::

(<b>from first bapi, wrking fine)Confirmation Number- 0000012634 Confirmation Counter- 00000023

(frm second bapi ,error)Confirmation no. 12634 not found, check entry

</b> ..plz help me rectify this.

4 REPLIES 4
Read only

varma_narayana
Active Contributor
0 Likes
593

Hi

Here the Problem may bcoz of the Format of Confirmation no.i.e 12634

So you have to convert it into internal format. with leading 0s.

So call the FM:

CONVERSION_EXIT_ALPHA_INPUT

EXPORTING

INPUT = <CONF NO>

IMPORTING

OUTPUT = <CONF NO>.

now call the BAPI

BAPI_PRODORDCONF_CREATE_ACT'

<b>Reward if Helpful</b>

Read only

0 Likes
593

hi varma,

i have already tried this but still it is giving this error.....

Read only

0 Likes
593

Hi Ravi..

Have you called the BAPI_TRANSACTION_COMMIT after the First bapi. Then only it will be created in Database.

Then you check in the Table using SELECT single To find whether it is created in DB.

Only then call the Second BAPI.

<b>reward if helpful</b>

Read only

0 Likes
593

ya varma,

i made it like this..

CALL FUNCTION 'BAPI_PRODORDCONF_CREATE_HDR'

EXPORTING

POST_WRONG_ENTRIES = '0'

  • TESTRUN = 'X'

TABLES

ATHDRLEVELS = ATHDRLEVELS

GOODSMOVEMENTS = GM_ITEM

LINK_CONF_GOODSMOV = LINK_CONF_GOODSMOV

DETAIL_RETURN = DETAIL_RETURN.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

WAIT = 'X'.