<?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: problem with save_text in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-save-text/m-p/6980933#M1492579</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to use FM &lt;STRONG&gt;COMMIT_TEXT&lt;/STRONG&gt; after call SAVE_TEXT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Jun 2010 05:18:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-06-04T05:18:49Z</dc:date>
    <item>
      <title>problem with save_text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-save-text/m-p/6980932#M1492578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I drop PR to PO in ME21N, the text of PR needs to be displayed in PO header text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im reading the text of  PR, using READ_TEXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I  have used SAVE_TEXT to populate the header text of PO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is the text is not displaying on the header text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, when I double click the header text, it takes me to change editor,after coming back from change editor the text is displaying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls let  me know what would be the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankyou,&lt;/P&gt;&lt;P&gt;Priya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 05:16:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-save-text/m-p/6980932#M1492578</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-04T05:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: problem with save_text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-save-text/m-p/6980933#M1492579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to use FM &lt;STRONG&gt;COMMIT_TEXT&lt;/STRONG&gt; after call SAVE_TEXT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 05:18:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-save-text/m-p/6980933#M1492579</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-04T05:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: problem with save_text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-save-text/m-p/6980934#M1492580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dzed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could you pls provide the sample code for FM COMMIT_TEXT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ur effor would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgss,&lt;/P&gt;&lt;P&gt;Priya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 05:26:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-save-text/m-p/6980934#M1492580</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-04T05:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: problem with save_text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-save-text/m-p/6980935#M1492581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this FM you pass OBJECT, NAME, text ID and LANGUAGE same as you pass into SAVE_TEXT for particular text.&lt;/P&gt;&lt;P&gt;And SAVEMODE_DIRECT = 'X'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 05:37:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-save-text/m-p/6980935#M1492581</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-04T05:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: problem with save_text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-save-text/m-p/6980936#M1492582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dzed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is im not passing the name as Im not aware of the PO no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I double click the header text and come back from the change editor, the text is being displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls let me know if there any alternative for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankyou,&lt;/P&gt;&lt;P&gt;Priya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 05:48:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-save-text/m-p/6980936#M1492582</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-04T05:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: problem with save_text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-save-text/m-p/6980937#M1492583</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;Use SAVE_TEXT with following parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;insert                = 'X'
   savemode_direct       = 'X'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 05:49:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-save-text/m-p/6980937#M1492583</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-04T05:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: problem with save_text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-save-text/m-p/6980938#M1492584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dzed n Vinod,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code which im using after reading the text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls let me know where it is going wrong.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;***populate the text for PO
  IF NOT t_potext[] IS INITIAL.
    header_po-tdobject = 'EKKO'.
    header_po-tdid  = 'F02'.
    header_po-tdspras = v_spras.


    CALL FUNCTION 'SAVE_TEXT'
      EXPORTING
       client                = sy-mandt
        header                = header_po
       insert                = 'X'
         savemode_direct       = 'X'
*   OWNER_SPECIFIED       = ' '
*   LOCAL_CAT             = ' '
 IMPORTING
*   FUNCTION              =
   NEWHEADER             = header_new
      TABLES
        lines                 = t_potext[]
     EXCEPTIONS
       id                    = 1
       language              = 2
       name                  = 3
       object                = 4
       OTHERS                = 5
              .
    IF sy-subrc = 0.
    CALL FUNCTION 'COMMIT_TEXT'
     EXPORTING
       OBJECT                = header_po-tdobject
       NAME                  = '*'
       ID                    = header_po-tdid
       LANGUAGE              = header_po-tdspras
       SAVEMODE_DIRECT       = 'X'
*       KEEP                  = ' '
*       LOCAL_CAT             = ' '
*     IMPORTING
*       COMMIT_COUNT          =
*     TABLES
*       T_OBJECT              =
**       T_NAME                =
*       T_ID                  =
*       T_LANGUAGE            =
              .

    ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankyou,&lt;/P&gt;&lt;P&gt;Priya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 05:55:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-save-text/m-p/6980938#M1492584</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-04T05:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: problem with save_text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-save-text/m-p/6980939#M1492585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are not passing TDNAME ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You must be saving the Long Text after the PO is created, correct ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using BAPI to create the PO, the PO number will be stored in the RETURN param. You can get the PO number from there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suhas Saha on Jun 4, 2010 11:30 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 06:00:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-save-text/m-p/6980939#M1492585</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-06-04T06:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: problem with save_text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-save-text/m-p/6980940#M1492586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tdname is not yet generated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thing is im copying the text from PR to PO, once I drop the PR to PO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The text has to be displayed. But the TDNAME, ie the PO no would be generated once I save the PO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the text needs to be displayed before that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls let me know if there any alternative for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Priya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 06:05:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-save-text/m-p/6980940#M1492586</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-04T06:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: problem with save_text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-save-text/m-p/6980941#M1492587</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;Use this BADI &lt;STRONG&gt;ME_REQ_HEADER_TEXT&lt;/STRONG&gt; for copying the PR text to PO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Surendar Reddy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 06:25:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-save-text/m-p/6980941#M1492587</guid>
      <dc:creator>suredarreddy_pulimamidi</dc:creator>
      <dc:date>2010-06-04T06:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: problem with save_text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-save-text/m-p/6980942#M1492588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;***populate the text for PO&lt;/P&gt;&lt;P&gt;  IF NOT t_potext[] IS INITIAL.&lt;/P&gt;&lt;P&gt;    header_po-tdobject = 'EKKO'.&lt;/P&gt;&lt;P&gt;    header_po-tdid  = 'F02'.&lt;/P&gt;&lt;P&gt;    header_po-tdspras = v_spras.  &lt;/P&gt;&lt;P&gt;    header_po-tdname  = 'XXXXX'   -&amp;gt; Include the tdname&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&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                = header_po&lt;/P&gt;&lt;P&gt;       insert                = 'X'&lt;/P&gt;&lt;P&gt;         savemode_direct       = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OWNER_SPECIFIED       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LOCAL_CAT             = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FUNCTION              =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   NEWHEADER             = header_new&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        lines                 = t_potext[]&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;As you are using savemode_direct ='X' no need of using commit_text.&lt;/P&gt;&lt;P&gt;In the debug just check the exception.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 06:28:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-save-text/m-p/6980942#M1492588</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-04T06:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: problem with save_text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-save-text/m-p/6980943#M1492589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Surender,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you pls paste the code how to use the BADI: ME_REQ_HEADER_TEXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankyou,&lt;/P&gt;&lt;P&gt;Priya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 06:35:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-save-text/m-p/6980943#M1492589</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-04T06:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: problem with save_text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-save-text/m-p/6980944#M1492590</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;&lt;/P&gt;&lt;P&gt;METHOD if_ex_me_req_header_text~copy_header_text.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  re_copy ='X'.&lt;/P&gt;&lt;P&gt;ENDMETHOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Surendar Reddy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 06:45:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-save-text/m-p/6980944#M1492590</guid>
      <dc:creator>suredarreddy_pulimamidi</dc:creator>
      <dc:date>2010-06-04T06:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: problem with save_text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-save-text/m-p/6980945#M1492591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 06:51:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-save-text/m-p/6980945#M1492591</guid>
      <dc:creator>suredarreddy_pulimamidi</dc:creator>
      <dc:date>2010-06-04T06:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: problem with save_text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-save-text/m-p/6980946#M1492592</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;Thanks for your information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Surendar: The badi ME_REQ_HEADER_TEXT is not working .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the worst thing is ME_PROCESS_PO_CUST is not availble in this system as it was 4.6 version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any how thanks everybody for ur time and information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgs,&lt;/P&gt;&lt;P&gt;Priya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 07:26:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-save-text/m-p/6980946#M1492592</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-04T07:26:50Z</dc:date>
    </item>
  </channel>
</rss>

