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

BAPI_ALM_ORDER_MAINTAIN multiple user status

i am using the bapi its not updating multiple user status at one go, its always updating the first status only . Is there any restriction on the user status or am i doing something wrong?

Searched all the forums and looks like nothing found

ls_method-refnumber = 1.

ls_method-objecttype = 'USERSTATUS'(088).

ls_method-method = 'CHANGE'(089).

ls_method-objectkey(12) = ps_input-aufnr.

APPEND ls_method TO lt_methods.

CLEAR ls_method.

ls_method-refnumber = 1.

ls_method-method = 'SAVE'(092).

ls_method-objectkey(12) = ps_input-aufnr.

APPEND ls_method TO lt_methods.

ls_status-user_st_text = 'canc'(036).

ls_status-langu = sy-langu.

ls_status-inactive = ' '.

ls_status-change_event = '01'.

APPEND ls_status TO lt_status.

ls_status-user_st_text = 'DERF'(035).

ls_status-langu = sy-langu.

ls_status-inactive = space.

ls_status-change_event = '01'.

APPEND ls_status TO lt_status.

CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'

TABLES

it_methods = lt_methods

it_userstatus = lt_status

return = lt_return.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Sep 23, 2014 at 12:25 AM

    Hi Sumanth,

    As far as I know you have to call the FM multiple times.

    Cheers,

    Custodio

    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.