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: Document is not getting saved

Former Member
0 Kudos

Hi friends,

I am using 'BAPI_MATPHYSINV_POSTDIFF' function module to post differences for certain items in a physical inv.document(equal to MI07). When I am trying to post the document using MI07 transaction document is getting saved and posted and the status of document is initial which we can see using MI22 but the same thing I am doing programatically thru above BAPI function module then also it is getting saved but not getting posted and the status is showing as active in MI22 which should not be shown. Again if I open the same doc.thru MI07 and saved then it is actually getting posted n status is becoming null.I am doing 'BAPI_TRANSACTION_COMMIT' also after the above step.

What changes I need to do in the programming?

Can anybody help me in resolving this issue.

Rewarded....

Regards,

Steve

3 REPLIES 3

Former Member
0 Kudos

hi,

check this bapi whether u r passing all the required parameters properly or not .

FUNCTION BAPI_MATPHYSINV_POSTDIFF.

rgds

Chalam

Former Member
0 Kudos

Solution:Handled programatically using BDC.

Regards,

Steve

Former Member
0 Kudos

Hi Stephen,

Hi Experts,

ITS FOR PHYSICAL INVENTORY.

FIRST WE NEED TO CREAE IT IN MI01.

THEN WE NEED TO PROCESS IN MI08.

IN MIO8 THE FIIRST SCREEN HAS THE PHYSICAL DOCUMENT NO,THEN YEAR.

THEN IN THE NEXT SCREEN IT WILL ASK FOR MATERIAL DESCRIPTION FOR THE ARTICLE AND THE QUANTITY .WHEN WE ENTER QUANTITY THERE WILL BE POP WINDOW COMING UP ASKG FOR SERIALNO ENTRY.

THE PROBLEM LIES IN THIS PART IN BDC....WHEN I M DOING RECORDING EVERYTG COMES

EXCEPT THE POP UP WINDOW SHOWING THE SERIAL NO ENTRY.

EVRYTHG WORKS FOR THE ARTICLES THAT DOENT HAVE POP UP SERIAL NUMBER.

I M ABLE TO DO RECORDING FOR THE ARTICLES THAT DOENT HAVE SERIAL NUMBERS...

pls tell me how to solve this issue.

Sincerely

Jayalakshmy