Skip to Content
0
Former Member
Dec 17, 2010 at 12:15 PM

Set User status of Maintenance order

360 Views

Dear All ,

I m trying to update the user status of Maintenance order via a report .I m using the BAPI "BAPI_ISUSMORDER_USERSTATUSSET" for it.

Code details are as follows :

USR_STATUS-STATUS_INT = 'E0006' "TJ30T-ESTAT

USR_STATUS-STATUS_EXT = 'WIPR' "TJ30T-TXT04

USR_STATUS-LANGU = 'EN'.

CALL FUNCTION 'BAPI_ISUSMORDER_USERSTATUSSET'

EXPORTING

NUMBER = WA_FINAL-AUFNR

STATUS = USR_STATUS

INACTIVE = 'X'

IMPORTING

RETURN = WA_RETURN.

Bapi is executing successfully but it is not updating the status when I check it from IW33 .

Suggest me for it....

Thanks

Alok