Skip to Content
author's profile photo Former Member
Former Member

how to upload operations and components using BAPI_ALM_ORDER_MAINTAIN

Hi Experts,

I have a requirement like - I need to upload components and operations for IW32 at a time using BAPI_ALM_ORDER_MAINTAIN against a work order .

as of now tried to upload components and operations separately and system uploading correct but when i am trying to upload both at a time and i unable to fill IT_METHODS correctly BAPI returining error messages and not uploading the data.So please share your thoughts on this.How can i fill the IT_METHODS table if i want to upload both Components and operations at a time.

Thanks in advance.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on May 26, 2016 at 12:18 PM

    Hi,

    For operation -

    REFNUMBER = '1'

    OBJECTTYPE = 'OPERATION'

    METHOD = 'CREATE'

    OBJECTKEY = '<order no in alpha conversion>'.

    keep on appending this records in method table and keep increasing the REFNUMBER by 1 .

    For Component -

    REFNUMBER = '1'

    OBJECTTYPE = 'COMPONENT'

    METHOD = 'CREATE'

    OBJECTKEY = '<order no in alpha conversion>'.

    keep appending this records to method table and keep increasing the REFNUMBER by 1.

    the trick is that the REFNUMBER should be equal to the number of records in operation and component table ,i.e. the number of components and operations you are adding.

    Say you have 3 operations and 2 components to upload, then your method table will filled like this -


    '1' 'OPERATION' 'CREATE' '<Order No>'

    '2' 'OPERATION' 'CREATE' '<Order No>'

    '3' 'OPERATION' 'CREATE' '<Order No>'

    '1' 'COMPONENT' 'CREATE' '<Order No>'

    '2' 'COMPONENT' 'CREATE' '<Order No>'

    Regards

    Ashish

    Add a comment
    10|10000 characters needed characters exceeded