<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: what is STATUS_TEXT_EDIT function in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-status-text-edit-function/m-p/1279607#M152464</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer pgm ZRQEVAM30.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* 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.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gayathri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Mar 2006 06:10:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-03-17T06:10:34Z</dc:date>
    <item>
      <title>what is STATUS_TEXT_EDIT function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-status-text-edit-function/m-p/1279604#M152461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is system status and user status?&lt;/P&gt;&lt;P&gt;Why this particular function is used?&lt;/P&gt;&lt;P&gt;What does the import and export parameters signify?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2006 05:10:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-status-text-edit-function/m-p/1279604#M152461</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-17T05:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: what is STATUS_TEXT_EDIT function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-status-text-edit-function/m-p/1279605#M152462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai sangeeta,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*System status&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*User status&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*STATUS_TEXT_EDIT.&lt;/P&gt;&lt;P&gt;using this function module  we can find a list of all the statuses available in notification.&lt;/P&gt;&lt;P&gt;status can be find using function module STATUS_TEXT_EDIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample code:&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'STATUS_TEXT_EDIT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;client = sy-mandt&lt;/P&gt;&lt;P&gt;objnr = &amp;gt;object number of order&amp;lt;&lt;/P&gt;&lt;P&gt;only_active = 'X'&lt;/P&gt;&lt;P&gt;spras = 'E'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;line = hold_status&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;object_not_found = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;*Exception in case status is not found&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Check Status of the Order&lt;/P&gt;&lt;P&gt;IF hold_status CS 'CNF'.&lt;/P&gt;&lt;P&gt;confined production orders.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;praba.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2006 05:36:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-status-text-edit-function/m-p/1279605#M152462</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-17T05:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: what is STATUS_TEXT_EDIT function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-status-text-edit-function/m-p/1279606#M152463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The 4 Character Status is Edited within One Line (40 Character)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'STATUS_TEXT_EDIT'                &lt;/P&gt;&lt;P&gt;             EXPORTING                                     &lt;/P&gt;&lt;P&gt;               objnr            = object_tab-objnr         &lt;/P&gt;&lt;P&gt;               spras            = sy-langu                 &lt;/P&gt;&lt;P&gt;               flg_user_stat    = 'X'                      &lt;/P&gt;&lt;P&gt;             IMPORTING                                     &lt;/P&gt;&lt;P&gt;               line             = object_tab-sttxt         &lt;/P&gt;&lt;P&gt;               user_line        = object_tab-ustxt         &lt;/P&gt;&lt;P&gt;             EXCEPTIONS                                    &lt;/P&gt;&lt;P&gt;               object_not_found = 01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2006 05:40:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-status-text-edit-function/m-p/1279606#M152463</guid>
      <dc:creator>vinod_gunaware2</dc:creator>
      <dc:date>2006-03-17T05:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: what is STATUS_TEXT_EDIT function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-status-text-edit-function/m-p/1279607#M152464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer pgm ZRQEVAM30.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* 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.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gayathri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2006 06:10:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-status-text-edit-function/m-p/1279607#M152464</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-17T06:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: what is STATUS_TEXT_EDIT function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-status-text-edit-function/m-p/1279608#M152465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sangeeta,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**What is system status and user status?&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SAP standard &amp;lt;b&amp;gt;system statuses&amp;lt;/b&amp;gt; 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&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  Whereas &amp;lt;b&amp;gt;User Status&amp;lt;/b&amp;gt; (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.  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;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&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**Why this particular function is used?&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;STATUS:&amp;lt;/b&amp;gt; A status is an indicator that fulfills two functions.  &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;First&amp;lt;/b&amp;gt;, 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.  &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Second,&amp;lt;/b&amp;gt; it influences the business transactions you can perform for a particular status&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; There are SAP standard delivered statuses that apply to all object types.  These are known as &amp;lt;b&amp;gt;SYSTEM STATUSES.&amp;lt;/b&amp;gt;  CRTD, REL, SETC, TECO are examples of SAP standard system statuses.  &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**What does the import and export parameters signify? &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Imports&amp;lt;/b&amp;gt; or gets  the data objects from the data buffer declared.&lt;/P&gt;&lt;P&gt; Eg: IMPORT f itab FROM MEMORY&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Export&amp;lt;/b&amp;gt; Stores a data cluster in the data buffer .&lt;/P&gt;&lt;P&gt;The objects declared, obj1 ... objn, are stored as a cluster in the data buffer f. They can be fields, structures, complex structures, or tables. &lt;/P&gt;&lt;P&gt; Eg: EXPORT obj1 ... objn TO DATA BUFFER f. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If ur satisfied ,then please close the thread by rewarding appropriate points to the helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2006 06:11:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-status-text-edit-function/m-p/1279608#M152465</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-17T06:11:21Z</dc:date>
    </item>
  </channel>
</rss>

