<?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 appending PO-header text in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-appending-po-header-text/m-p/2548753#M580093</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;clear this 't_res' after the write statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if helpful,&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;seshu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jul 2007 09:02:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-10T09:02:37Z</dc:date>
    <item>
      <title>Problem with appending PO-header text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-appending-po-header-text/m-p/2548752#M580092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With th following code im able to append the text in different lines to Po-Header.If i want to change the text for another PO,then the old of PO is also getting appended.To avoid this what i have to do ::&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Report  Z_PO_CHANGE&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  z_po_change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : i_poheader LIKE bapimepoheader OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA : i_poheaderx LIKE bapimepoheaderx OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA : i_result LIKE bapimepoheader OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;*DATA : po_num(15) TYPE n VALUE '4500008083'.&lt;/P&gt;&lt;P&gt;DATA : t_text TYPE STANDARD TABLE OF bapimepotext with header line.&lt;/P&gt;&lt;P&gt;DATA : t_res TYPE STANDARD TABLE OF bapimepotext WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA : e_text TYPE bapimepotext.&lt;/P&gt;&lt;P&gt;DATA return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETER v_text(100) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;To read the text *****&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'READ_TEXT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    id       = 'F02'&lt;/P&gt;&lt;P&gt;    language = sy-langu&lt;/P&gt;&lt;P&gt;    name     = 'Append'&lt;/P&gt;&lt;P&gt;    object   = 'EKKO'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    lines    = t_res.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;e_text-po_number = '4500008082'.&lt;/P&gt;&lt;P&gt;e_text-text_id   = 'F02'.&lt;/P&gt;&lt;P&gt;e_text-text_form = '*'.&lt;/P&gt;&lt;P&gt;e_text-text_line = v_text.&lt;/P&gt;&lt;P&gt;APPEND e_text TO t_res.&lt;/P&gt;&lt;P&gt;CLEAR e_text.&lt;/P&gt;&lt;P&gt;clear t_res.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="5" type="ul"&gt;&lt;P&gt;Sav the new text in a tabe *****&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'CREATE_TEXT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    fid       = 'F02'&lt;/P&gt;&lt;P&gt;    flanguage = sy-langu&lt;/P&gt;&lt;P&gt;    fname     = 'Append'&lt;/P&gt;&lt;P&gt;    fobject   = 'EKKO'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    flines    = t_res.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="6" type="ul"&gt;&lt;P&gt;To change the PO-Header *****&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear t_res.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_PO_CHANGE'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    purchaseorder = '4500008082'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    return        = return&lt;/P&gt;&lt;P&gt;    potextheader  = t_res.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    wait = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT return.&lt;/P&gt;&lt;P&gt;  WRITE : return-message.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 08:59:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-appending-po-header-text/m-p/2548752#M580092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T08:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with appending PO-header text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-appending-po-header-text/m-p/2548753#M580093</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;clear this 't_res' after the write statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if helpful,&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;seshu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 09:02:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-appending-po-header-text/m-p/2548753#M580093</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T09:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with appending PO-header text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-appending-po-header-text/m-p/2548754#M580094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;remove below code from your program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'READ_TEXT'
EXPORTING
id = 'F02'
language = sy-langu
name = 'Append'
object = 'EKKO'
TABLES
lines = t_res.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 09:09:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-appending-po-header-text/m-p/2548754#M580094</guid>
      <dc:creator>Pawan_Kesari</dc:creator>
      <dc:date>2007-07-10T09:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with appending PO-header text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-appending-po-header-text/m-p/2548755#M580095</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;Still im unable to change the other PO header text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Asmitha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2007 09:15:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-appending-po-header-text/m-p/2548755#M580095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-10T09:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with appending PO-header text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-appending-po-header-text/m-p/2548756#M580096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all,This helps me a lot.But i had given points to more than one person.I dont know wethet it works or not.shall i assign the points to more than one person.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2007 08:58:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-appending-po-header-text/m-p/2548756#M580096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-12T08:58:05Z</dc:date>
    </item>
  </channel>
</rss>

