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

bapi for physical inventory document

Former Member
0 Likes
4,963

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
Read only

Former Member
0 Likes
1,820

hi,

PLease commit the First bapi using BAPI_TRANSACTION_COMMIT.

And then call the second one.

Regards,

Swati

6 REPLIES 6
Read only

Former Member
0 Likes
1,821

hi,

PLease commit the First bapi using BAPI_TRANSACTION_COMMIT.

And then call the second one.

Regards,

Swati

Read only

0 Likes
1,820

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

Read only

0 Likes
1,820

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.

Read only

0 Likes
1,820

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 .

Read only

Former Member
0 Likes
1,820

Hi

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

Regards

Sachin

Read only

Former Member
0 Likes
1,820

HI,

yeah please mention the WAIT time in BAPI_TRANSACTION_COMMIT.

Regards,

Swati