‎2007 Sep 05 7:13 AM
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.
‎2007 Sep 05 7:17 AM
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>
‎2007 Sep 05 7:22 AM
hi varma,
i have already tried this but still it is giving this error.....
‎2007 Sep 05 7:27 AM
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>
‎2007 Sep 05 7:37 AM
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'.