Hello,
My head is blowing away since I´m not able to load components into a Service Order:
I´m trying to use the BAPI: BAPI_ALM_ORDER_MAINTAIN
Parameters are set as follows:
IT_HEADER
ORDERID: My service Order
ORDER_TYPE: ZS02
PLANTPLANT: My plant
PLANT My plant
IT_METHODS
Entry 1
REFNUMBER: EMPTY
OBJECTTYPE: EMPTY
METHOD: ‘SAVE’
OBJECTKEY: EMPTY
Entry 2
REFNUMBER: '000001'
OBJECTTYPE: ‘COMPONENT’
METHOD: ‘CREATE’
OBJECTKEY: My service Order
IT_COMPONENT
MATERIAL: My ID SAP
PLANT: My plant
STGE_LOC: My storage loc.
ACTIVITY: My Activity
UNLOAD_PT: Any text
ITEM_CAT: L
GR_RCPT: Any text
REQUIREMENT_QUANTITY: Quantity
RESERV_NO: My Reserv_No
RES_ITEM: New item possition
Result from the BAPI:
S IW 080 Order saved with number XXXXXXXXX
S IWO_BAPI2 110 BAPI control was ended
It seems to be successfully completed but if I check the Service Order (IW33) the component is not loaded...
Is it necessary to use BAPI_TRANSACTION_COMMIT after executing the first one?
Thanks in advanced for your support.
Regards
Tomás.