Skip to Content
0
Jul 26, 2019 at 09:49 PM

BAPI_ALM_ORDER_MAINTAIN - Create IW81 order with different From and To Material No

209 Views

Hello All,

I am trying to create a refurbishment order with BAPI_ALM_ORDER_MAINTAIN. However, when I create with BAPI, from and to materials are coming out same. Any help is appreciated.

Methods:

REFNUM OBJECTTYPE METHOD OBJECTKEY

000001 HEADER CREATETONOTIF %00000000001000300002635

000001 SAVE

Header:

ORDERID = %00000000001
ORDER_TYPE = ZMMC

PLANPLANT = 1106

MN_WK_CTR = SHOP

PLANT = 1106

PMACTTYPE = C01

SERIALNO = JS10AAZS0001

MATERIAL = 10ZS

Refurbishment Item List

ORDERID = %00000000001

REQUIREMENT_QUANTITY = 1

REQUIREMENT_QUANTITY_UNIT = EA

PLANT_TO = 1106

STGE_LOC_TO = 1000

MATERIAL_TO = 10ZI

PLANT_FROM = 1106

STGE_LOC_FROM = 1000

Serial Number list:

ORDERID = %00000000001

SERIALNO = JS10AAZS0001

Expectation on Header Data:

From Matl No. 10ZS

To Material No. 10ZI

Actual Result:

10ZS

Material 10ZS

Regards,

Prashanth