Skip to Content
author's profile photo Former Member
Former Member

Update status

Hi all,

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 20, 2007 at 11:46 AM

    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....

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.