SAP Function STATUS_TEXT_EDIT - The 4 Character Status is Edited within One Line (40 Character)

Parameter Reference Type Length Default Optional Text
BYPASS_BUFFER XFELD C 1 ' ' X 'Read from DB' Flag
CLIENT SYST-MANDT C 3 SY-MANDT X Client (Only for Exceptional Cases!)
FLG_USER_STAT XFELD C 1 ' ' X 'Edit User Status' Flag
OBJNR JEST-OBJNR C 22 Status Object Number
ONLY_ACTIVE XFELD C 1 'X' X 'Only Take Active Statuses into Account' Flag
SPRAS SYST-LANGU C 1 Language, in which Statuses are Edited

Parameter Reference Type Length Text
ANW_STAT_EXISTING XFELD C 1 'User Statuses Exist' Flag
E_STSMA JSTO-STSMA C 8 Status Profile
LINE BSVX-STTXT C 40 Line of Edited System Individual Statuses
STONR TJ30-STONR N 2 Status Number
USER_LINE BSVX-STTXT C 40 Line of Edited User Individual Statuses

Exception Text
OBJECT_NOT_FOUND Status Object does not Exist


Function module converts the single status managed internally andlanguage-independently to a 40-character line for display. The positionand priority of that the single status has in this position are definedas part of the status master data maintenance. The single status isprepared separately for system and user status in their own outputlines.

Description
This flag is set if at least one user status is active or has beenactive.

Value range
INITIAL or 'X'

Description
Delivers the status profile for the status object or INITIAL, if nostatus profile is assigned.

Description
40-character text field with the prepared system status line.

Description
Status number, i.e. status number of the currently active user statuswith status number or 00, if such a one is not active.

Description
40-character text field with the prepared user status line.

Description
If this flag is set, the status line reflect the status of the objectin the database. The status buffer is not changed by this call.

Value range
INITIAL or 'X'

Default
INITIAL

Description
Client

Description
The user status line is also required. If not, only the system statusline is prepared.

Value range
INITIAL or 'X'

Default
INITIAL

Description
Object number

Description
Only active statuses are considered.
If the flag is not set, all the statuses are considered that were atone time active but are no longer active.

Value range
INITIAL or 'X'

Default
'X'

Description
Target language in which the status line is to be prepared.
Statuses that have not been translated into the target language aredisplayed in the maintenance language (user status) or in German(system status).

628210Program termination after reading BOM in collective order