<?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: SAVE_TEXT problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-text-problem/m-p/2294570#M500901</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;Found the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in CO02, input a production order number and in the next screen click create long text button in the top, input some text come back now you can see the text in the long text tabstrip, save, back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now use save_text FM, use tline-tdline   = 'Test data' which is different text from the one you entered in the transaction long text. Now use commit_text. Execute your program, the program text is replaced in the Long text and now it is visible in the tcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table AUFK has a field LTEXT which is long text indicator has to be set 'E' then it is coming as change long text for a particular order number, so now our code works fine, which is replacing the text in the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i need your help.&lt;/P&gt;&lt;P&gt;I dont want to direct update the table like this.&lt;/P&gt;&lt;P&gt;UPDATE aufk SET ltext = 'E'  WHERE aufnr = P_AUFNR. &lt;/P&gt;&lt;P&gt;So for this please tell me a better way to handle this. Coz for a every new production order this will become a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Senthil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 May 2007 20:41:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-15T20:41:27Z</dc:date>
    <item>
      <title>SAVE_TEXT problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-text-problem/m-p/2294550#M500881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I am copying text from sales order and inserting into the production order.&lt;/P&gt;&lt;P&gt;I have used read_text, save_text and commit text.&lt;/P&gt;&lt;P&gt;In the debuggin i can see all the data getting populated, even iam getting sy-subrc = 0 in the save_text FM. &amp;lt;b&amp;gt;However text is not copied into the production order.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Also i have a entry in STXH table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have posted my code for your reference&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM ADD_LONG_TEXT1.&lt;/P&gt;&lt;P&gt;  DATA: ID        LIKE  THEAD-TDID VALUE 'KOPF',&lt;/P&gt;&lt;P&gt;        LANGUAGE  LIKE  THEAD-TDSPRAS,&lt;/P&gt;&lt;P&gt;        NAME      LIKE  THEAD-TDNAME,&lt;/P&gt;&lt;P&gt;        OBJECT    LIKE  THEAD-TDOBJECT VALUE 'AUFK'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: TLINES LIKE TLINE OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;  DATA: IT_THEAD  LIKE THEAD OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Prepare text criteria&lt;/P&gt;&lt;P&gt;  CONCATENATE SY-MANDT txt-aufnr INTO NAME.&lt;/P&gt;&lt;P&gt;  LANGUAGE = SY-LANGU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Begin of insert&lt;/P&gt;&lt;P&gt;MOVE id TO IT_THEAD-TDID.&lt;/P&gt;&lt;P&gt;MOVE language to IT_THEAD-TDSPRAS.&lt;/P&gt;&lt;P&gt;MOVE NAME to IT_THEAD-TDNAME.&lt;/P&gt;&lt;P&gt;MOVE OBJECT to IT_THEAD-TDOBJECT.&lt;/P&gt;&lt;P&gt;append it_thead.&lt;/P&gt;&lt;P&gt;*clear it_thead.&lt;/P&gt;&lt;P&gt;*End of insert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*First read text for existing data&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'READ_TEXT'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            ID                      = ID&lt;/P&gt;&lt;P&gt;            LANGUAGE                = LANGUAGE&lt;/P&gt;&lt;P&gt;            NAME                    = NAME&lt;/P&gt;&lt;P&gt;            OBJECT                  = OBJECT&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            LINES                   = TLINES&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            ID                      = 1&lt;/P&gt;&lt;P&gt;            LANGUAGE                = 2&lt;/P&gt;&lt;P&gt;            NAME                    = 3&lt;/P&gt;&lt;P&gt;            NOT_FOUND               = 4&lt;/P&gt;&lt;P&gt;            OBJECT                  = 5&lt;/P&gt;&lt;P&gt;            REFERENCE_CHECK         = 6&lt;/P&gt;&lt;P&gt;            WRONG_ACCESS_TO_ARCHIVE = 7&lt;/P&gt;&lt;P&gt;            OTHERS                  = 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Append/Insert new text data&lt;/P&gt;&lt;P&gt;  LOOP AT txt-tline INTO wa_bdc.&lt;/P&gt;&lt;P&gt;    CLEAR TLINES.&lt;/P&gt;&lt;P&gt;    TLINES-TDFORMAT = '*'.&lt;/P&gt;&lt;P&gt;    TLINES-TDLINE = wa_bdc-tdline.&lt;/P&gt;&lt;P&gt;    APPEND TLINES.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Secondly append new text data to existing data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'SAVE_TEXT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;   CLIENT                = SY-MANDT&lt;/P&gt;&lt;P&gt;    HEADER                = it_thead&lt;/P&gt;&lt;P&gt;   INSERT                = ' '&lt;/P&gt;&lt;P&gt;   SAVEMODE_DIRECT       = 'X'&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  OWNER_SPECIFIED       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  LOCAL_CAT             = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  FUNCTION              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  NEWHEADER             =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    LINES                 = TLINES&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   ID                    = 1&lt;/P&gt;&lt;P&gt;   LANGUAGE              = 2&lt;/P&gt;&lt;P&gt;   NAME                  = 3&lt;/P&gt;&lt;P&gt;   OBJECT                = 4&lt;/P&gt;&lt;P&gt;   OTHERS                = 5&lt;/P&gt;&lt;P&gt;          .&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'COMMIT_TEXT'&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  OBJECT                = OBJECT&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  NAME                  = NAME&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  ID                    = ID&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  LANGUAGE              = LANGUAGE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  SAVEMODE_DIRECT       = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  KEEP                  = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  LOCAL_CAT             = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  COMMIT_COUNT          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  T_OBJECT              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  T_NAME                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  T_ID                  =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;  T_LANGUAGE            =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                     "ADD_LONG_TEXT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 16:27:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-text-problem/m-p/2294550#M500881</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T16:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: SAVE_TEXT problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-text-problem/m-p/2294551#M500882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;INSERT = ' '&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should be...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;INSERT = 'X'&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Blag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 16:30:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-text-problem/m-p/2294551#M500882</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T16:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: SAVE_TEXT problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-text-problem/m-p/2294552#M500883</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;Where are you changing the IT_THEAD-TDNAME with the production order number before calling the SAVE_TEXT FM??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 16:32:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-text-problem/m-p/2294552#M500883</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T16:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: SAVE_TEXT problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-text-problem/m-p/2294553#M500884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alvaro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting sy-subrc = 5. if i put INSERT = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;I/O error for text AUFK 31000010010534 KOPF EN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 16:35:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-text-problem/m-p/2294553#M500884</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T16:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: SAVE_TEXT problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-text-problem/m-p/2294554#M500885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This piece of code&lt;/P&gt;&lt;P&gt; CONCATENATE SY-MANDT txt-aufnr INTO NAME.&lt;/P&gt;&lt;P&gt;  LANGUAGE = SY-LANGU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Begin of insert&lt;/P&gt;&lt;P&gt;MOVE id TO IT_THEAD-TDID.&lt;/P&gt;&lt;P&gt;MOVE language to IT_THEAD-TDSPRAS.&lt;/P&gt;&lt;P&gt;MOVE NAME to IT_THEAD-TDNAME.&lt;/P&gt;&lt;P&gt;MOVE OBJECT to IT_THEAD-TDOBJECT.&lt;/P&gt;&lt;P&gt;append it_thead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As this is in a loop, the txt-aufnr will change. Kindly help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Senthil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 16:37:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-text-problem/m-p/2294554#M500885</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T16:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: SAVE_TEXT problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-text-problem/m-p/2294555#M500886</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;Is the field txt-aufnr is having leading zeroes to max the length of the field..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the field length is 12 and the value is 1234567890...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should pass 001234567890&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 16:41:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-text-problem/m-p/2294555#M500886</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T16:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: SAVE_TEXT problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-text-problem/m-p/2294556#M500887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes in the debugg mode its the same length txt-aufnr 000100010534. I have tried with creat_text also but i cannot the text in production order.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 16:45:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-text-problem/m-p/2294556#M500887</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T16:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAVE_TEXT problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-text-problem/m-p/2294557#M500888</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;Where are you calling this piece of code..Is it in a user exit??Is it in UPDATE TASK??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 16:54:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-text-problem/m-p/2294557#M500888</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T16:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAVE_TEXT problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-text-problem/m-p/2294558#M500889</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;This is not a user exit, iam not sure about the update task.&lt;/P&gt;&lt;P&gt;It is a normal report program, have to copy the sales text to prod order and mark the user status check for TXTU .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This piece of code.&lt;/P&gt;&lt;P&gt;SELECT SINGLE matnr INTO i_matnr FROM vbap&lt;/P&gt;&lt;P&gt;                      WHERE vbeln = afpo-kdauf AND posnr = afpo-kdpos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      SELECT SINGLE mtart INTO i_mtart FROM mara&lt;/P&gt;&lt;P&gt;                                        WHERE matnr = i_matnr-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF i_mtart-mtart NE 'ZPPG'. " or i_mtart-mtart NE 'HALB'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        IF txt-t_user CS 'TXTU'.&lt;/P&gt;&lt;P&gt;        ELSE.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If the status was changed write out the Order and Date.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          PERFORM ADD_LONG_TEXT1.  &lt;/P&gt;&lt;P&gt;          IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;            READ TABLE GT_STATUS WITH KEY TXT04 = 'TXTU'.&lt;/P&gt;&lt;P&gt;            IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;              PERFORM UPDATE_USER_STATUS&lt;/P&gt;&lt;P&gt;                      USING txt-aufnr GT_STATUS-ESTAT  ''. "D01K956913+&lt;/P&gt;&lt;P&gt;            ENDIF.&lt;/P&gt;&lt;P&gt;            WRITE: / txt-aufnr.&lt;/P&gt;&lt;P&gt;          ELSE.&lt;/P&gt;&lt;P&gt;            FORMAT COLOR COL_NEGATIVE.&lt;/P&gt;&lt;P&gt;            WRITE: /  txt-aufnr.&lt;/P&gt;&lt;P&gt;            FORMAT COLOR OFF.&lt;/P&gt;&lt;P&gt;          ENDIF.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 17:01:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-text-problem/m-p/2294558#M500889</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T17:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: SAVE_TEXT problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-text-problem/m-p/2294559#M500890</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;Ok..Got it..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give COMMIT WORK ..After the COMMIT_TEXT function module..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 17:02:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-text-problem/m-p/2294559#M500890</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T17:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: SAVE_TEXT problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-text-problem/m-p/2294560#M500891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tried with commit work.  its not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 17:09:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-text-problem/m-p/2294560#M500891</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T17:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: SAVE_TEXT problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-text-problem/m-p/2294561#M500892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do i have to check any settings in the production order long text, ie SAP script editor settings??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 17:11:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-text-problem/m-p/2294561#M500892</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T17:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAVE_TEXT problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-text-problem/m-p/2294562#M500893</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;Go to the table TTXOB..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give the object..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the value in the field TDSAVEMODE...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also try passing the values to the COMMIT_TEXT Fm also..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 17:12:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-text-problem/m-p/2294562#M500893</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T17:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: SAVE_TEXT problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-text-problem/m-p/2294563#M500894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Its V in TDSAVEMODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TDOBJECT      AUFK                            &lt;/P&gt;&lt;P&gt;                                              &lt;/P&gt;&lt;P&gt;TDSAVEMODE    V                               &lt;/P&gt;&lt;P&gt;TDAPPL        TA                              &lt;/P&gt;&lt;P&gt;TDLINESIZE    72                              &lt;/P&gt;&lt;P&gt;TDSTYLE                                       &lt;/P&gt;&lt;P&gt;TDFORM                                        &lt;/P&gt;&lt;P&gt;TDTEXTTYPE                                    &lt;/P&gt;&lt;P&gt;TDINCLOBJ                                     &lt;/P&gt;&lt;P&gt;TDTEXT        Order text&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 17:14:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-text-problem/m-p/2294563#M500894</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T17:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: SAVE_TEXT problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-text-problem/m-p/2294564#M500895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help so far, however i didnot get the problem. Will check with my functional if anything is missing. In the mean time if you got some other idea plz post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Senthil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 17:23:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-text-problem/m-p/2294564#M500895</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T17:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: SAVE_TEXT problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-text-problem/m-p/2294565#M500896</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;Check this sample code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is working for me..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

PARAMETERS: p_aufnr TYPE aufk-aufnr.

DATA: thead LIKE  thead.
DATA: tline LIKE  tline OCCURS 0 WITH HEADER LINE.

* initial data.
thead-tdobject = 'AUFK'.
thead-tdid     = 'KOPF'.
thead-tdspras  = sy-langu.
thead-tdname   = p_aufnr.

* Lines
tline-tdformat = '*'.
tline-tdline   = 'Test data'.
APPEND tline.

CALL FUNCTION 'SAVE_TEXT'
     EXPORTING
          header          = thead
          savemode_direct = 'X'
     TABLES
          lines           = tline
     EXCEPTIONS
          id              = 1
          language        = 2
          name            = 3
          object          = 4
          OTHERS          = 5.
IF sy-subrc = 0.
  WRITE: / 'Successful'.
  COMMIT WORK.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 17:30:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-text-problem/m-p/2294565#M500896</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T17:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: SAVE_TEXT problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-text-problem/m-p/2294566#M500897</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;Fine, just copied your code and wrote a test program, i too get sussecful message. However its not display in the co02 tcode in the long text tabstrip.&lt;/P&gt;&lt;P&gt;Did you got that TEST DATA in your long text tab??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Senthil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 18:36:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-text-problem/m-p/2294566#M500897</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T18:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAVE_TEXT problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-text-problem/m-p/2294567#M500898</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;No..I checked using the READ_TEXT FM..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 19:23:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-text-problem/m-p/2294567#M500898</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T19:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: SAVE_TEXT problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-text-problem/m-p/2294568#M500899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes it is working for me too using READ_TEXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However it is not showing in the tcode, didnot know what to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds,&lt;/P&gt;&lt;P&gt;Senthil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 19:41:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-text-problem/m-p/2294568#M500899</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T19:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAVE_TEXT problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/save-text-problem/m-p/2294569#M500900</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;Make sure the text ID is correct..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 20:11:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/save-text-problem/m-p/2294569#M500900</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T20:11:07Z</dc:date>
    </item>
  </channel>
</rss>

