Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_ALM_ORDER_MAINTAIN

Former Member
0 Likes
392

Hi All,

I would like to create a work order for an existing notification using BAPI_ALM_ORDER_MAINTAIN. How do I do this?

2 REPLIES 2
Read only

former_member214878
Active Participant
0 Likes
309

Hi Smitha,

Try doing it -

  DATA:

    ls_methods TYPE bapi_alm_order_method,
    lt_methods TYPE TABLE OF bapi_alm_order_method,
    lt_return  TYPE bapiret2_t,
    ls_return  TYPE bapiret2.


* repare for BAPI
ls_methods-refnumber = 'XXXXXX'.
ls_methods-objecttype = 'HEADER'.
ls_methods-method = 'ATPCHECK'.
CLEAR ls_methods-objectkey.

ls_methods-objectkey = item_aufnr.
APPEND ls_methods TO lt_methods.

CLEAR ls_methods.
ls_methods-method = 'DIALOG'.
APPEND ls_methods TO lt_methods.


CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
  TABLES
    it_methods = lt_methods

Read only

Former Member
0 Likes
309

Hi,

Refer to the following link:

http://scn.sap.com/thread/967772

Hope it serves useful to you.