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_GOODSMVT_CREATE Material Document Posting against Process Order

muhammad_sohail
Participant
0 Likes
1,783

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

5 REPLIES 5
Read only

Former Member
0 Likes
1,191

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

Read only

Former Member
0 Likes
1,191

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.

Read only

0 Likes
1,191

Thanks dear;

I have also test it for single document creation of Serial number(s) based material. But error remains same.

Read only

0 Likes
1,191

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

Read only

muhammad_sohail
Participant
0 Likes
1,191

done it through BDC.