2011 Nov 29 6:08 PM
Hi Experts,
I use FM BAPI_ALM_ORDER_MAINTAIN to update Work order. I have problem with USERSTATUS change. Everytime I got this message. "table USERSTATUS (method CHANGE) was not found " . Any idea? Following is code for user status.
lv_IFREFNUM = lv_IFREFNUM + 1.
ls_method-refnumber = lv_IFREFNUM.
ls_method-objecttype = 'USERSTATUS'.
ls_method-method = 'CHANGE'.
ls_method-objectkey = ls_header-orderid.
APPEND ls_method TO lt_method.
ls_userstatus-user_st_text = lv_cpl.
ls_userstatus-langu = sy-langu.
ls_userstatus-langu_iso = 'EN'.
ls_userstatus-inactive = ' '. " 'X' for inactive
ls_userstatus-change_event = '01'.
APPEND ls_userstatus TO lt_userstatus.
CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
TABLES
it_methods = lt_method
it_header = lt_header
it_header_up = lt_header_up
it_userstatus = lt_userstatus
return = lt_return .
Thanks,
Hi Experts,
I use FM BAPI_ALM_ORDER_MAINTAIN to update Work order. I have problem with USERSTATUS change. Everytime I got this message. "table USERSTATUS (method CHANGE) was not found " . Any idea? Following is code for user status.
lv_IFREFNUM = lv_IFREFNUM + 1.
ls_method-refnumber = lv_IFREFNUM.
ls_method-objecttype = 'USERSTATUS'.
ls_method-method = 'CHANGE'.
ls_method-objectkey = ls_header-orderid.
APPEND ls_method TO lt_method.
ls_userstatus-user_st_text = lv_cpl.
ls_userstatus-langu = sy-langu.
ls_userstatus-langu_iso = 'EN'.
ls_userstatus-inactive = ' '. " 'X' for inactive
ls_userstatus-change_event = '01'.
APPEND ls_userstatus TO lt_userstatus.
CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
TABLES
it_methods = lt_method
it_header = lt_header
it_header_up = lt_header_up
it_userstatus = lt_userstatus
return = lt_return .
Thanks,
2011 Nov 29 6:30 PM
2011 Nov 29 6:33 PM
2011 Nov 29 6:39 PM
Well, according to the documentation for the BAPI:
"User status change not possible."
Rob
2011 Nov 29 6:47 PM
Well, it does possible. I did call the FM in following way, it did update the user status.
CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
TABLES
it_methods = lt_method
***it_header = lt_header
***it_header_up = lt_header_up
it_userstatus = lt_userstatus
return = lt_return .
Thanks,
2011 Nov 29 7:00 PM
OK - there are a number of OSS notes relating to this BAPI and the user status. Maybe you should start with 1454532.
Rob
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |