Skip to Content

Uploading components into a Service Order

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jul 16, 2020 at 10:03 AM

    Great!! Using BAPI_COMMIT_TRANSACTION makes it work.

    Thanks!

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.