Skip to Content
0
Former Member
Jul 27, 2006 at 09:42 AM

how to extend material cross many plants using BAPI?

520 Views

Hi.

when i use BAPI 'BAPI_MATERIAL_SAVEDATA' to extend material cross plants, i can not extent accounting view.

code as below:

BAPI_MARC-PLANT = IT_GOUJIAN-WERKS.

BAPI_MARCX-PLANT = IT_GOUJIAN-WERKS.

CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'

EXPORTING

headdata = BAPIMATHEAD

  • CLIENTDATA = BAPI_MARA

  • CLIENTDATAX = BAPI_MARAx

PLANTDATA = BAPI_MARc

PLANTDATAX = BAPI_MARcx

  • VALUATIONDATA = BAPI_MBEW

  • VALUATIONDATAX = BAPI_MBEWX

IMPORTING

RETURN = IT_RETURN.

  • TABLES

  • MATERIALDESCRIPTION = IT_MATERIALDESC.

i just change the plant data.

any advice?