‎2011 Sep 13 10:56 AM
Dear Experts,
I want to post more than one documents from BAPI "BAPI_GOODSMVT_CREATE". It is working fine for GR(gmcode = 02) 101 Mvt. type. But the problem is that when there is a GI (gmcode = 03), serial numbers document comes; it display an error as " Content of order 1000400: 40000134 transferred to interface (IMSEG)".
My Question is that: Is this a correct BAPI for serial numbers assigned materials, OR I should use another bapi for these serial number materials.
Will you please let me know the name of the BAPI which I should use in this regards.
***** I am using BAPI_GOODSMVT_CREATE as follows for Process Orders:::::
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
goodsmvt_header = gmhead
goodsmvt_code = gmcode
* TESTRUN = ' '
* GOODSMVT_REF_EWM =
* IMPORTING
* GOODSMVT_HEADRET =
* MATERIALDOCUMENT =
* MATDOCUMENTYEAR =
TABLES
goodsmvt_item = fitab "bapi_itab
goodsmvt_serialnumber = itab_serials
return = errmsg
* GOODSMVT_SERV_PART_DATA =
* EXTENSIONIN =
.Thanks,
Sohail
‎2011 Sep 13 11:29 AM
Hi,
This is kind of error takes place in case of there is a difference between the interface data and the order data. Please check the structure IMSEG (MMIM: Input Structure for General FM to Post Goods Movement) .
Example: The order was created for plant 0001, but plant 0002 is passed on in the interface.
Please check your data. Also check the structure IMSEG.
BR
Tanmoy
‎2011 Sep 13 11:46 AM
The function is intended to create a single document , Here is an excerpt from the FM documentation :
Functionality
You can use this method to create a material document for a goods movement.
You can only create one material document each time you call up the method.
You can use a simulation function before posting the goods movement to check how the data is updated in the database. The standard system is configured so that the goods movement is posted immediately, without prior simulation.
‎2011 Sep 13 12:08 PM
Thanks dear;
I have also test it for single document creation of Serial number(s) based material. But error remains same.
‎2011 Sep 13 12:41 PM
In that case I think it has to do with the data your sending the bapi.
Try reading the FM documentation It's very extensive for a change
‎2011 Sep 16 8:55 AM