0% found this document useful (0 votes)
252 views2 pages

Add Notification To Work Order

The document contains code that calls the BAPI_ALM_ORDER_MAINTAIN function twice. It first fills and appends data to internal tables lt_methods, lt_object_list, and lt_object_list_up and calls the function. It then fills and appends additional data to internal tables lt_methods, lt_header, lt_header_up, lt_object_list, and lt_object_list_up and calls the function again.

Uploaded by

Armin Suljovic
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
252 views2 pages

Add Notification To Work Order

The document contains code that calls the BAPI_ALM_ORDER_MAINTAIN function twice. It first fills and appends data to internal tables lt_methods, lt_object_list, and lt_object_list_up and calls the function. It then fills and appends additional data to internal tables lt_methods, lt_header, lt_header_up, lt_object_list, and lt_object_list_up and calls the function again.

Uploaded by

Armin Suljovic
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

The following works for me:

ls_methods-refnumber = 1.
ls_methods-objecttype = 'OBJECTLIST'.
ls_methods-method = 'CREATE'.
ls_methods-objectkey = '000480000020'.
APPEND ls_methods TO lt_methods.

* Fill method structure


ls_methods-refnumber = 1.
ls_methods-method = 'SAVE'.
ls_methods-objecttype = ''.
ls_methods-objectkey = '000480000020'.
APPEND ls_methods TO lt_methods.

* Fill object list structure


ls_object_list-notif_no = '100000356980'.
APPEND ls_object_list TO lt_object_list.

* Fill object list up structure


ls_object_list_up-processing_ind = 'X'.
APPEND ls_object_list_up TO lt_object_list_up.

CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'


TABLES
it_methods = lt_methods
it_objectlist = lt_object_list
it_objectlist_up = lt_object_list_up
return = lt_return.

* Fill method structure


ls_methods-refnumber = 1.
ls_methods-method = 'SAVE'.
APPEND ls_methods TO lt_methods.

ls_methods-refnumber = 1.
ls_methods-objecttype = 'OBJECTLIST'.
ls_methods-method = 'CHANGE'.
ls_methods-objectkey = '000480000020'.
APPEND ls_methods TO lt_methods.

ls_methods-refnumber = 1.
ls_methods-objecttype = 'HEADER'.
ls_methods-method = 'CHANGE'.
ls_methods-objectkey = '000480000020'.
APPEND ls_methods TO lt_methods.

* Fill header structure


ls_header-orderid = '000480000020'.
ls_header-notif_no = '100000356980'.
APPEND ls_header TO lt_header.
* Fill header up structure
ls_header_up-orderid = '000480000020'.
ls_header_up-notif_no = '100000356980' .
APPEND ls_header_up TO lt_header_up.

* Fill object list structure


ls_object_list-notif_no = '100000356980'.
APPEND ls_object_list TO lt_object_list.

* Fill object list up structure


ls_object_list_up-processing_ind = 'X'.
APPEND ls_object_list_up TO lt_object_list_up.

CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'


TABLES
it_methods = lt_methods
it_header = lt_header
it_header_up = lt_header_up
it_objectlist = lt_object_list
it_objectlist_up = lt_object_list_up
return = lt_return .

You might also like