‎2007 Sep 10 11:39 AM
hi all,
i have a situation to find succesfull entry & unsuccesfull after calling bapi_goodsmvt_create. can i know where does the succes & unsuccess entry lies in the function module. bcoz i need to specify the no individually,
Thanks in advance,
Prem.
‎2007 Sep 10 4:25 PM
Hi Prem,
You can find the BAPI execution status in the RETURN field of the function module.
The FM execution status will be in the field TYPE in RETURN.
Message type: <b>S</b> Success,<b>E</b> Error, <b>W</b> Warning, <b>I</b> Info, <b>A</b> Abort
The message number will be in the field NUMBER.
best regards,
Thangesh
‎2007 Sep 10 4:28 PM
hi
Bapi_goodsmvt_create is used to post material documents with different movement types for consumption, transfer posting etc.,
if it is sucessfully executed then you will get the bapiret structure with a sucess messages and also a material document number is generated.
But this document will not be available in MSEG/ MKPF tables unless you commit work. or use BAPI_TRANSACTION_COMMIT along with it.
Thanks.