cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

FM or BAPI to update Mass Goods Movement for multiple goods at the same time

archana_a2
Participant
0 Kudos
2,438

Hi All,

BAPI_GOODSMVT_CREATE is used to created goods movement for a single record.

Can anyone suggest if there is any FM/BAPI for create mass goods movement for many records at the same time.

Thanks & Regards,

Archana A

Accepted Solutions (0)

Answers (3)

Answers (3)

MateuszAdamus
Active Contributor

Hello archana.a2

Seeing as SAP standard reports call the function in a LOOP, I'd say there isn't any mass creation function.

Kind regards,
Mateusz
Abinathsiva
Active Contributor

Hi Archana

Question is to create one single transaction for multiple materials eg., transferposting through BAPI_GOODSMVT_CREATE with single document number, loop and load goodsmvt_item table and pass to BAPI

BAPI_GOODSMVT_CREATE

 CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
    EXPORTING
      goodsmvt_header  = wa_gmvt_header
      goodsmvt_code    = '02'
*     TESTRUN          = ' '
*     GOODSMVT_REF_EWM =
    IMPORTING
      goodsmvt_headret = gmvt_headret
*     MATERIALDOCUMENT = gmvt_retmtd
*     MATDOCUMENTYEAR  =
    TABLES
      goodsmvt_item    = gmvt_item[]
*     GOODSMVT_SERIALNUMBER         =
      return           = rt_bapiret[]
*     GOODSMVT_SERV_PART_DATA       =
*     EXTENSIONIN      =
    .
archana_a2
Participant
0 Kudos

Hi Abinath,

Good Day!!

Thanks for the reply.

But my question is is there any FM to create many document number at a single time.

EG: i need to create 10 document for different materials in a single report, then instead of looping BAPI_GOODSMVMT_CREATE is there any other FM that is available?

Thanks & Regards,

Archana A

archana_a2
Participant
0 Kudos

Hi Venkateswaran,

I need to create many material documents at one time.

Rather than looping the BAPI_GOODSMVT_CREATE is there any FM/BAPI that we can use to create mass goods movement at one time.

Thanks & Regards,

Archana A

0 Kudos

Hi, When adding additional information to question please use comments