01-20-2006 4:59 AM
I have run a BAPI function 'BAPI_GOODSMVT_CREATE' using 'TEST FUNCTION MODULE'.
The process is successful and I can see the return material doucment number and year.
However, when I search the table MKPF, no such document exists.....
It seems that a document no. has been used but no such document is really created...as when I create a material document manually using transaction code MIGO, a doucment with doc. no. = that return by BAPI by using test function module + 1.
I want to know is there any way to commit the transaction created by test function module? and it is wierd that it makes my document number becomes discontinue....
thanks!
01-20-2006 5:07 AM
Hi
you can do this way..
go to Menu <b>Function module -> Test -> TEst sequence</b> there you can get the popup, just give the BAPI_TRANSACTION_COMMIT in that.
and say enter, then run the FM.
regards
vijay
01-20-2006 5:07 AM
Hi
you can do this way..
go to Menu <b>Function module -> Test -> TEst sequence</b> there you can get the popup, just give the BAPI_TRANSACTION_COMMIT in that.
and say enter, then run the FM.
regards
vijay
01-20-2006 5:10 AM
you can do this way..
go to Menu Function module -> Test -> TEst sequence there you can get the popup, just give the
your bapi first, then
BAPI_TRANSACTION_COMMIT in that.
and say enter, then run the FM.
regards
vijay
01-20-2006 5:20 AM
Gundam,
whenever you use TEST facility, the changes are never committed to the database. However, you loose the serial number because of Serial Number Range Object. Once you take a number of the object, that number is lost and that is why you are missing the sequence.
Regards,
Ravi
Note : please reward the posts that help you.