‎2006 Mar 17 5:10 AM
What is system status and user status?
Why this particular function is used?
What does the import and export parameters signify?
‎2006 Mar 17 5:40 AM
The 4 Character Status is Edited within One Line (40 Character)
Function module converts the single status managed internally and language-independently to a 40-character line for display. The position and priority of that the single status has in this position are defined as part of the status master data maintenance. The single status is prepared separately for system and user status in their own output lines.
CALL FUNCTION 'STATUS_TEXT_EDIT'
EXPORTING
objnr = object_tab-objnr
spras = sy-langu
flg_user_stat = 'X'
IMPORTING
line = object_tab-sttxt
user_line = object_tab-ustxt
EXCEPTIONS
object_not_found = 01.
regards
vinod
‎2006 Mar 17 5:36 AM
hai sangeeta,
*System status
A system status is a status set by the system, which informs the user that the system has executed a specific business transaction on an object. You cannot influence this status unless you execute a business transaction that changes the system status.
*User status
A user status is a status that you set, that you can create as additional information to the existing system status. You define user statuses in a status profile. This is created in Customizing for business transactions. You can define and activate as many user statuses as you wish.
*STATUS_TEXT_EDIT.
using this function module we can find a list of all the statuses available in notification.
status can be find using function module STATUS_TEXT_EDIT.
Sample code:
CALL FUNCTION 'STATUS_TEXT_EDIT'
EXPORTING
client = sy-mandt
objnr = >object number of order<
only_active = 'X'
spras = 'E'
IMPORTING
line = hold_status
EXCEPTIONS
object_not_found = 1
OTHERS = 2.
*Exception in case status is not found
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
*Check Status of the Order
IF hold_status CS 'CNF'.
confined production orders.
ENDIF.
regards,
praba.
‎2006 Mar 17 5:40 AM
The 4 Character Status is Edited within One Line (40 Character)
Function module converts the single status managed internally and language-independently to a 40-character line for display. The position and priority of that the single status has in this position are defined as part of the status master data maintenance. The single status is prepared separately for system and user status in their own output lines.
CALL FUNCTION 'STATUS_TEXT_EDIT'
EXPORTING
objnr = object_tab-objnr
spras = sy-langu
flg_user_stat = 'X'
IMPORTING
line = object_tab-sttxt
user_line = object_tab-ustxt
EXCEPTIONS
object_not_found = 01.
regards
vinod
‎2006 Mar 17 6:10 AM
Hi,
Refer pgm ZRQEVAM30.
* GENERATE STATUS AND USER TEXTS
call function 'STATUS_TEXT_EDIT'
exporting
objnr = qals-objnr
flg_user_stat = g_x
spras = sy-langu
importing
line = object_tab-sttxt
user_line = object_tab-ustxt
exceptions
object_not_found = 01.
if sy-subrc ne 0.
clear object_tab-sttxt.
clear object_tab-ustxt.
endif.Regards,
Gayathri
‎2006 Mar 17 6:11 AM
Hi Sangeeta,
**What is system status and user status?
SAP standard <b>system statuses</b> cannot be removed from use. You cannot override the SAP system status with a user status. You cannot change the behavior of an SAP system status
Whereas <b>User Status</b> (or user defined statuses) exist in addition to SAP standard statuses. User statuses are intended to augment or refine SAP standard statuses, not replace them.
There is no limitation to the number of user statuses that can be created. Both system and user statuses influence business transactions in the same way
**Why this particular function is used?
<b>STATUS:</b> A status is an indicator that fulfills two functions.
<b>First</b>, it informs you that a particular status has been reached. For example, an internal order has been created and released; a settlement rule has been entered; a particular business transaction has been executed, etc.
<b>Second,</b> it influences the business transactions you can perform for a particular status
There are SAP standard delivered statuses that apply to all object types. These are known as <b>SYSTEM STATUSES.</b> CRTD, REL, SETC, TECO are examples of SAP standard system statuses.
**What does the import and export parameters signify?
<b>Imports</b> or gets the data objects from the data buffer declared.
Eg: IMPORT f itab FROM MEMORY
<b>Export</b> Stores a data cluster in the data buffer .
The objects declared, obj1 ... objn, are stored as a cluster in the data buffer f. They can be fields, structures, complex structures, or tables.
Eg: EXPORT obj1 ... objn TO DATA BUFFER f.
If ur satisfied ,then please close the thread by rewarding appropriate points to the helpful answers.
Cheers
Sunny