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

Update status

Former Member
0 Likes
565

Hi all,

Do any one know the FM to update system status.If so wat all shud be given as input?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
472

Hi,

For Status Change please use the function : 'STATUS_CHANGE_EXTERN' Or 'STATUS_CHANGE_INTERNAL' Based on your status.

  • Setting the user status to "Return" or "Sold".

CALL FUNCTION 'STATUS_CHANGE_EXTERN'

EXPORTING

CHECK_ONLY = ' '

CLIENT = SY-MANDT

OBJNR = PQMSM-OBJNR

USER_STATUS = R_CODE

SET_INACT = ' '

EXCEPTIONS

OBJECT_NOT_FOUND = 1

STATUS_INCONSISTENT = 2

STATUS_NOT_ALLOWED = 3

OTHERS = 4.

After you have called the above function then you must call the below mentioned function to update.

CALL FUNCTION 'STATUS_UPDATE_DIALOG'

EXCEPTIONS

OTHERS = 1.

Hope this may help you.

thanks,

reward if helpful....

1 REPLY 1
Read only

Former Member
0 Likes
473

Hi,

For Status Change please use the function : 'STATUS_CHANGE_EXTERN' Or 'STATUS_CHANGE_INTERNAL' Based on your status.

  • Setting the user status to "Return" or "Sold".

CALL FUNCTION 'STATUS_CHANGE_EXTERN'

EXPORTING

CHECK_ONLY = ' '

CLIENT = SY-MANDT

OBJNR = PQMSM-OBJNR

USER_STATUS = R_CODE

SET_INACT = ' '

EXCEPTIONS

OBJECT_NOT_FOUND = 1

STATUS_INCONSISTENT = 2

STATUS_NOT_ALLOWED = 3

OTHERS = 4.

After you have called the above function then you must call the below mentioned function to update.

CALL FUNCTION 'STATUS_UPDATE_DIALOG'

EXCEPTIONS

OTHERS = 1.

Hope this may help you.

thanks,

reward if helpful....