Application Development 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: 

bapi for physical inventory document

Former Member
0 Kudos

Initially i have used BAPI_MATPHYSINV_CREATE_MULT,

then after this when i use BAPI_MATPHYSINV_COUNT, i need to pass thephysical inventory document which i get from return message of prevous BAPI. But when i give this phy. inv doc, year, count_date

it says that this document no.(phy.inven. doc which i get from first BAPI) does not exist. i don know it is saying so

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi,

PLease commit the First bapi using BAPI_TRANSACTION_COMMIT.

And then call the second one.

Regards,

Swati

6 REPLIES 6

Former Member
0 Kudos

hi,

PLease commit the First bapi using BAPI_TRANSACTION_COMMIT.

And then call the second one.

Regards,

Swati

0 Kudos

Yes i have already used the Commit BAPI. but still it says that this "Document 100000308 does not exist in calendar year 2008".

Message M7-062

0 Kudos

And the phy. inv. doc which i get from the first BAPI, when i manually put it in to Tcode MI04 and enter then it does not giv any error.

0 Kudos

Hi

check by going into SAP system weather that doc. it there in SAP or not .

OR

give time in WAIT in commit . try with increase the TIME .

Former Member
0 Kudos

Hi

Swati is right , just COMMIT first BAPI then call second and pass required value.

Regards

Sachin

Former Member
0 Kudos

HI,

yeah please mention the WAIT time in BAPI_TRANSACTION_COMMIT.

Regards,

Swati