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

Change user status

Former Member
0 Likes
964

Does any body know of any FM to change a user status on a notification or have any idea how to get this down?

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
878

Use this FM

>BAPI_SERVNOT_CHANGEUSRSTAT

Look into function Groups

>IQS6

and

>IQS7

Hope this Helps

a

Does any body know of any FM to change a user status on a notification or have any idea how to get this down?

Thanks

3 REPLIES 3
Read only

Former Member
0 Likes
879

Use this FM

>BAPI_SERVNOT_CHANGEUSRSTAT

Look into function Groups

>IQS6

and

>IQS7

Hope this Helps

a

Read only

0 Likes
878

Perhaps you can find useful the next one: STATUS_CHANGE_EXTERN

Luck.

Read only

Former Member
0 Likes
878

Hi Sheldon,

I've succesfully managed to change the user status by executing the

coding below. The possible user statuses you can find in table TJ30T.


CALL FUNCTION 'STATUS_CHANGE_EXTERN'
  EXPORTING
*   CHECK_ONLY                = ' '
*   CLIENT                    = SY-MANDT
    OBJNR                     = 'VB0010000249000000'
    USER_STATUS               = 'E0001'
*   SET_INACT                 = ' '
*   SET_CHGKZ                 =
*   NO_CHECK                  = ' '
* IMPORTING
*   STONR                     =
 EXCEPTIONS
   OBJECT_NOT_FOUND          = 1
   STATUS_INCONSISTENT       = 2
   STATUS_NOT_ALLOWED        = 3
   OTHERS                    = 4
          .
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
 EXPORTING
   WAIT          = 'X'
* IMPORTING
*   RETURN        =
          .

If this helped you out don't forget to reward points.

Best regards,

Tom.