<?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 problem in FM  STATUS_TEXT_EDIT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fm-status-text-edit/m-p/4012990#M958826</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gud mornin ppl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing a problem while calling the function module &lt;/P&gt;&lt;P&gt;STATUS_TEXT_EDIT. This function module is used to&lt;/P&gt;&lt;P&gt;get the status of the production order, for which we require &lt;/P&gt;&lt;P&gt;to pass the object no OBJNR of tat production order.&lt;/P&gt;&lt;P&gt;I had called the FM in my user exit as follows&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;      CLIENT                            = SY-MANDT&lt;/P&gt;&lt;P&gt;    *FLG_USER_STAT           = ' '&lt;/P&gt;&lt;P&gt;       objnr                         = objnr&lt;/P&gt;&lt;P&gt;       ONLY_ACTIVE                 = 'X'&lt;/P&gt;&lt;P&gt;        spras                        = EN&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;BYPASS_BUFFER         = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         IMPORTING&lt;/P&gt;&lt;P&gt;    *ANW_STAT_EXISTING    =&lt;/P&gt;&lt;P&gt;    *E_STSMA                       =&lt;/P&gt;&lt;P&gt;      line                           = status.&lt;/P&gt;&lt;P&gt;    *USER_LINE                    =&lt;/P&gt;&lt;P&gt;    *STONR                           =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  STAT = STATUS.&lt;/P&gt;&lt;P&gt;  IF stat NS 'TECO'.&lt;/P&gt;&lt;P&gt;  MESSAGE  'Production order cannot be processed' TYPE 'E'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above code OBJNR = OR000010006509&lt;/P&gt;&lt;P&gt;and the result is STATUS = TABG FMAT VOKL ABRV CHPF PLOS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when i execute the FM thru se37&lt;/P&gt;&lt;P&gt;I pass CLIENT = 777&lt;/P&gt;&lt;P&gt;          OBJNR = OR000010006509&lt;/P&gt;&lt;P&gt;ONLY_ACTIVE = X&lt;/P&gt;&lt;P&gt;           SPRAS = en&lt;/P&gt;&lt;P&gt;and the result i get is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LINE = TECO MSPT PRC  BCRQ ILAS SETC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not able to understand why both results are different.&lt;/P&gt;&lt;P&gt;Kindly help me out wid it ..........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jun 2008 06:10:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-23T06:10:01Z</dc:date>
    <item>
      <title>problem in FM  STATUS_TEXT_EDIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fm-status-text-edit/m-p/4012990#M958826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gud mornin ppl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing a problem while calling the function module &lt;/P&gt;&lt;P&gt;STATUS_TEXT_EDIT. This function module is used to&lt;/P&gt;&lt;P&gt;get the status of the production order, for which we require &lt;/P&gt;&lt;P&gt;to pass the object no OBJNR of tat production order.&lt;/P&gt;&lt;P&gt;I had called the FM in my user exit as follows&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;      CLIENT                            = SY-MANDT&lt;/P&gt;&lt;P&gt;    *FLG_USER_STAT           = ' '&lt;/P&gt;&lt;P&gt;       objnr                         = objnr&lt;/P&gt;&lt;P&gt;       ONLY_ACTIVE                 = 'X'&lt;/P&gt;&lt;P&gt;        spras                        = EN&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;BYPASS_BUFFER         = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         IMPORTING&lt;/P&gt;&lt;P&gt;    *ANW_STAT_EXISTING    =&lt;/P&gt;&lt;P&gt;    *E_STSMA                       =&lt;/P&gt;&lt;P&gt;      line                           = status.&lt;/P&gt;&lt;P&gt;    *USER_LINE                    =&lt;/P&gt;&lt;P&gt;    *STONR                           =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  STAT = STATUS.&lt;/P&gt;&lt;P&gt;  IF stat NS 'TECO'.&lt;/P&gt;&lt;P&gt;  MESSAGE  'Production order cannot be processed' TYPE 'E'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above code OBJNR = OR000010006509&lt;/P&gt;&lt;P&gt;and the result is STATUS = TABG FMAT VOKL ABRV CHPF PLOS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when i execute the FM thru se37&lt;/P&gt;&lt;P&gt;I pass CLIENT = 777&lt;/P&gt;&lt;P&gt;          OBJNR = OR000010006509&lt;/P&gt;&lt;P&gt;ONLY_ACTIVE = X&lt;/P&gt;&lt;P&gt;           SPRAS = en&lt;/P&gt;&lt;P&gt;and the result i get is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LINE = TECO MSPT PRC  BCRQ ILAS SETC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not able to understand why both results are different.&lt;/P&gt;&lt;P&gt;Kindly help me out wid it ..........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 06:10:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fm-status-text-edit/m-p/4012990#M958826</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T06:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: problem in FM  STATUS_TEXT_EDIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fm-status-text-edit/m-p/4012991#M958827</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;try to make use of FM STATUS_READ, bcos u will get data from JEST table itself for PP orders.&lt;/P&gt;&lt;P&gt;let me know if not , i will give sample code .&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;PP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 07:04:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fm-status-text-edit/m-p/4012991#M958827</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T07:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: problem in FM  STATUS_TEXT_EDIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fm-status-text-edit/m-p/4012992#M958828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     use the function module as given below.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'STATUS_READ'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        client           = gv_mandt&lt;/P&gt;&lt;P&gt;        objnr            = lv_objnr&lt;/P&gt;&lt;P&gt;        only_active      = 'X'&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        obtyp            = lv_obtyp&lt;/P&gt;&lt;P&gt;        stsma            = lv_stsma&lt;/P&gt;&lt;P&gt;        stonr            = lv_stonr&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        status           = lit_stat&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        object_not_found = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      READ TABLE lit_stat INTO lwa_stat                     "#EC *&lt;/P&gt;&lt;P&gt;               WITH KEY stat = gc_delstat.&lt;/P&gt;&lt;P&gt;      IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;        MOVE gc_flg TO gwa_final-flg.&lt;/P&gt;&lt;P&gt;        MODIFY git_final FROM gwa_final.&lt;/P&gt;&lt;P&gt;        CONTINUE.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      SELECT SINGLE estat INTO lv_estat                     "#EC *&lt;/P&gt;&lt;P&gt;      FROM tj30&lt;/P&gt;&lt;P&gt;      WHERE stsma EQ lv_stsma AND&lt;/P&gt;&lt;P&gt;            stonr EQ lv_stonr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;        SELECT SINGLE txt30&lt;/P&gt;&lt;P&gt;        FROM tj30t INTO lv_apst&lt;/P&gt;&lt;P&gt;        WHERE stsma EQ lv_stsma AND&lt;/P&gt;&lt;P&gt;               estat EQ lv_estat AND&lt;/P&gt;&lt;P&gt;               spras EQ gv_langu AND&lt;/P&gt;&lt;P&gt;               txt04 IN s_nstat.&lt;/P&gt;&lt;P&gt;        IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;          MOVE lv_apst TO gwa_final-astat.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      MOVE lv_estat TO gwa_final-temp_stat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 07:17:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fm-status-text-edit/m-p/4012992#M958828</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T07:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: problem in FM  STATUS_TEXT_EDIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fm-status-text-edit/m-p/4012993#M958829</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;I had the same problem like u and its due to the FM did not automatically refresh by itself as the commit function was not included in the script. All you need is to include the script below at the bottom of the FM.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt;  0.&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.&lt;/P&gt;&lt;P&gt;         MESSAGE 'Failed To Delete the Production Order '  TYPE 'E'.&lt;/P&gt;&lt;P&gt;            ELSE.&lt;/P&gt;&lt;P&gt;              CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.&lt;/P&gt;&lt;P&gt;            ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will solve your problem as it did to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Adis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2008 06:32:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fm-status-text-edit/m-p/4012993#M958829</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-25T06:32:47Z</dc:date>
    </item>
  </channel>
</rss>

