2007 Sep 20 12:36 PM
Hi all,
Do any one know the FM to update system status.If so wat all shud be given as input?
2007 Sep 20 12:46 PM
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....
Hi all,
Do any one know the FM to update system status.If so wat all shud be given as input?
2007 Sep 20 12:46 PM
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....
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |