SAP Function STATUS_CHANGE_INTERN - Set/Delete System Status

Parameter Reference Type Length Default Optional Text
CHECK_ONLY XFELD C 1 SPACE X 'Carry Out Checks Only' Flag
CLIENT SYST-MANDT C 3 SY-MANDT X Client (Only for Exceptional Cases!)
OBJNR JSTO-OBJNR C 22 Object Number
SET_CHGKZ JSTO-CHGKZ C 1 X 'Activate Change Documents' Flag
ZEILE MESG-ZEILE C 22 SPACE X Predefined Line Number for MESSAGE_STORE

Parameter Reference Type Length Text
ERROR_OCCURRED 0 A General Error has Occurred
OBJECT_NOT_FOUND 0 Status Object Not Found
STATUS_INCONSISTENT 0 Subsequent Status Situation is Inconsistent
STATUS_NOT_ALLOWED 0 'Status Change Not Allowed' Flag

Parameter Reference Length Optional Text
STATUS JSTAT 6 Table of Individual Statuses for the Object

Exception Text
OBJECT_NOT_FOUND Status Object Not Found
STATUS_INCONSISTENT Individual Status Should be Set and Deleted
STATUS_NOT_ALLOWED Status Change Not Allowed

Functionality
A system status is set or deleted.

Notes
The status change is at first executed only in the internal buffer andwritten to the database later using a "COMMIT WORK".
If the message handkler is active, no error messages or exceptions aretriggered. Instead an appropriate message is written in the messagehandler.

Description
When the meassage handler is active this flag indicates that the objectnumber given could not be found in the table JSTO.

Value range
INITIAL or 'X'

Description
When the message handler is active this flag indicates that an attemptwas made to set and delete a status at the same time.
Each status may only appear once in the table STAT.

Value range
INITIAL or 'X'

Description
When the message handler is active this flag indicates that the statuscould not be set.
For more information, see exception STATUS_NOT_ALLOWED.

Value range
INITIAL or 'X'

Description
If this flag is set, no changes are made. The validity of the change ismerely checked.

Value range
INITIAL or 'X'

Default
INITIAL

Description
Client

Description
Objekct number

Value range
Object number must exist in table JSTO.

Description
If this flag is set, the creation of change documents is activated forthis object number. Once activated the creation of change documents cannot be deativated.

Value range
INITIAL or 'X'

Default
INITIAL

Description
Line number for message handler

Description
Table of single statuses to be set/deleted.
STAT field contains internal format of the status.
Status is set if the STAT-INACT flag is intial, otherwise it isdeleted.

Value range
STATUS-STAT : I0000 - I9999
STATUS-INACT: INITIAL oder 'X'

883386Order status PCNF is not set in the order
381938Incorrct dely status for manufacture of co-products
386138Incorrect delivery status according to GR posting