<?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: Using Function module BAPI_PR_CREATE Header Text not able to add in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-bapi-pr-create-header-text-not-able-to-add/m-p/411499#M10973</link>
    <description>&lt;P&gt;Please check SAP-KBA &lt;A target="_blank" href="https://launchpad.support.sap.com/#/notes/2075535/E"&gt;2075535&lt;/A&gt; "BAPI_PR_CREATE: one header text" for this.&lt;/P&gt;&lt;P&gt;Extract :&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"&lt;STRONG&gt;Cause&lt;/STRONG&gt;&lt;BR /&gt;Even if you are able to define more than one text ID for the Preq, the system can only handle one text on the header level, text id B01, because they are considered internal documents, which does not support the creation of additional header memos.&lt;BR /&gt;In the standard SAP system, entering other header texts alongside the header memos is not supported.&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Resolution&lt;/STRONG&gt;&lt;BR /&gt;It is also not possible for online transaction codes. When using transaction ME51N, if you try to insert a test for the second text id, system will clear it out. Only the Header Note B01 will be considered. When using the BAPI, system will concatenate the two text IDs in the B01.&lt;BR /&gt;This functionality was not programmed in the system."&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Apr 2017 10:34:13 GMT</pubDate>
    <dc:creator>NTeunckens</dc:creator>
    <dc:date>2017-04-28T10:34:13Z</dc:date>
    <item>
      <title>Using Function module BAPI_PR_CREATE Header Text not able to add</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-bapi-pr-create-header-text-not-able-to-add/m-p/411498#M10972</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;I am facing one problem I am using &lt;BR /&gt;CALL FUNCTION 'BAPI_PR_CREATE' For creating Purchase Request,&lt;BR /&gt;Everything is correct, But Purchase Header text i am not able to Add it, I have 3 Header texts At Indent ME51n.  It only taking only one text for each indent.&lt;BR /&gt;If i give at a time 3 texts only last one which means what i passed last in the code it is taking as header text &lt;/P&gt;&lt;P&gt;like in coding.&lt;/P&gt;&lt;P&gt;header text1&lt;/P&gt;&lt;P&gt;header text2&lt;/P&gt;&lt;P&gt;header text3.&lt;/P&gt;&lt;P&gt;It only update Header text3.&lt;/P&gt;&lt;P&gt;   IT_HTEXT TYPE BAPIMEREQHEADTEXT OCCURS 0,&lt;/P&gt;&lt;P&gt;The code is like.&lt;/P&gt;&lt;P&gt;     IF WA_FINAL1-HTEXT1 IS NOT INITIAL.&lt;BR /&gt;
 WA_HTEXT-TEXT_ID = 'B01'.&lt;BR /&gt;
 WA_HTEXT-TEXT_LINE = WA_FINAL1-HTEXT1.&lt;BR /&gt;
 APPEND WA_HTEXT TO IT_HTEXT.&lt;BR /&gt;
 CLEAR : WA_HTEXT.&lt;BR /&gt;
 ENDIF.&lt;/P&gt;&lt;P&gt;     IF WA_FINAL1-HTEXT1 IS NOT INITIAL.&lt;BR /&gt;
 WA_HTEXT-TEXT_ID = 'B02'.&lt;BR /&gt;
 WA_HTEXT-TEXT_LINE = WA_FINAL1-HTEXT1.&lt;BR /&gt;
 APPEND WA_HTEXT TO IT_HTEXT.&lt;BR /&gt;
 CLEAR : WA_HTEXT.&lt;BR /&gt;
 ENDIF.&lt;/P&gt;&lt;P&gt;IF WA_FINAL1-HTEXT1 IS NOT INITIAL.&lt;BR /&gt;WA_HTEXT-TEXT_ID = 'B03'.&lt;BR /&gt;WA_HTEXT-TEXT_LINE = WA_FINAL1-HTEXT1.&lt;BR /&gt;APPEND WA_HTEXT TO IT_HTEXT.&lt;BR /&gt;CLEAR : WA_HTEXT.&lt;BR /&gt;ENDIF.&lt;/P&gt;&lt;P&gt;All header texts not able to pass.Any suggestions update me, If it is not possible Please provide me Alternatives.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 10:15:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-bapi-pr-create-header-text-not-able-to-add/m-p/411498#M10972</guid>
      <dc:creator>former_member196331</dc:creator>
      <dc:date>2017-04-28T10:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using Function module BAPI_PR_CREATE Header Text not able to add</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-bapi-pr-create-header-text-not-able-to-add/m-p/411499#M10973</link>
      <description>&lt;P&gt;Please check SAP-KBA &lt;A target="_blank" href="https://launchpad.support.sap.com/#/notes/2075535/E"&gt;2075535&lt;/A&gt; "BAPI_PR_CREATE: one header text" for this.&lt;/P&gt;&lt;P&gt;Extract :&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"&lt;STRONG&gt;Cause&lt;/STRONG&gt;&lt;BR /&gt;Even if you are able to define more than one text ID for the Preq, the system can only handle one text on the header level, text id B01, because they are considered internal documents, which does not support the creation of additional header memos.&lt;BR /&gt;In the standard SAP system, entering other header texts alongside the header memos is not supported.&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Resolution&lt;/STRONG&gt;&lt;BR /&gt;It is also not possible for online transaction codes. When using transaction ME51N, if you try to insert a test for the second text id, system will clear it out. Only the Header Note B01 will be considered. When using the BAPI, system will concatenate the two text IDs in the B01.&lt;BR /&gt;This functionality was not programmed in the system."&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 10:34:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-bapi-pr-create-header-text-not-able-to-add/m-p/411499#M10973</guid>
      <dc:creator>NTeunckens</dc:creator>
      <dc:date>2017-04-28T10:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using Function module BAPI_PR_CREATE Header Text not able to add</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-bapi-pr-create-header-text-not-able-to-add/m-p/411500#M10974</link>
      <description>&lt;P&gt;hi, thanks for you reply.&lt;BR /&gt;Solution i did not understood.What i understood is, I has to enter either 1 or 2 or 3.&lt;BR /&gt;Only one should be inserted. &lt;/P&gt;&lt;P&gt;I tried, any one it is taking. But not multiple.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 10:56:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-bapi-pr-create-header-text-not-able-to-add/m-p/411500#M10974</guid>
      <dc:creator>former_member196331</dc:creator>
      <dc:date>2017-04-28T10:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using Function module BAPI_PR_CREATE Header Text not able to add</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-bapi-pr-create-header-text-not-able-to-add/m-p/411501#M10975</link>
      <description>&lt;P&gt;Hi Kali,&lt;/P&gt;&lt;P&gt;try to set break point at FM : SAVE_TEXT and check some parameter input to FM, maybe you input wrong some data.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;John &lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 10:57:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-bapi-pr-create-header-text-not-able-to-add/m-p/411501#M10975</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-04-28T10:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using Function module BAPI_PR_CREATE Header Text not able to add</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-bapi-pr-create-header-text-not-able-to-add/m-p/411502#M10976</link>
      <description>&lt;P&gt;No no lot of posts are available, Like above problem, But no solution for above one.&lt;BR /&gt;Default behavior is like this, as per my knowledge.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 10:59:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-bapi-pr-create-header-text-not-able-to-add/m-p/411502#M10976</guid>
      <dc:creator>former_member196331</dc:creator>
      <dc:date>2017-04-28T10:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using Function module BAPI_PR_CREATE Header Text not able to add</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-bapi-pr-create-header-text-not-able-to-add/m-p/411503#M10977</link>
      <description>&lt;P&gt;Did you debug as i suggest ? and no error return after call FM save_text ?&lt;/P&gt;&lt;P&gt;Also call bapi commit  if you are missing&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 11:07:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-bapi-pr-create-header-text-not-able-to-add/m-p/411503#M10977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-04-28T11:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using Function module BAPI_PR_CREATE Header Text not able to add</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-bapi-pr-create-header-text-not-able-to-add/m-p/411504#M10978</link>
      <description>&lt;P&gt;This means that the BAPI can not do more than what you can do via SAP Enjoy transaction.&lt;/P&gt;&lt;P&gt;Please try to add Multiple HeaderTexts in your PR via trx. "ME51N" ... Then the following behaviour should occur, mentioned in the KBA :&lt;/P&gt;&lt;P&gt;"&lt;EM&gt;It is also not possible for online transaction codes. When using 
transaction ME51N, if you try to insert a test for the second text id, 
system will clear it out. Only the Header Note B01 will be considered&lt;/EM&gt;"&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 11:23:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-bapi-pr-create-header-text-not-able-to-add/m-p/411504#M10978</guid>
      <dc:creator>NTeunckens</dc:creator>
      <dc:date>2017-04-28T11:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using Function module BAPI_PR_CREATE Header Text not able to add</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-bapi-pr-create-header-text-not-able-to-add/m-p/411505#M10979</link>
      <description>&lt;P&gt;I am calling commit.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 11:27:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-bapi-pr-create-header-text-not-able-to-add/m-p/411505#M10979</guid>
      <dc:creator>former_member196331</dc:creator>
      <dc:date>2017-04-28T11:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using Function module BAPI_PR_CREATE Header Text not able to add</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-bapi-pr-create-header-text-not-able-to-add/m-p/411506#M10980</link>
      <description>&lt;P&gt;Did some tests myself and indeed :&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;You can Update the Texts only for one 'TEXT_ID' at a Time ... In my Test THE LAST TEXT_ID is used to Fill the HeaderTexts ...&lt;/LI&gt;&lt;LI&gt;By filling the 'TEXT_FORM' in the HEADERTEXT-structure with '  /  ' you can set up the Texts as Separate lines ...&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;&lt;CODE&gt; IF WA_FINAL1-HTEXT1 IS NOT INITIAL.
   WA_HTEXT-TEXT_ID   = 'B01'.    "Won't be used, only the ID of LAST RECORD of HDRTXT-Table!
   WA_HTEXT-TEXT_FORM = '/'.      "SET AS A NEW LINE
   WA_HTEXT-TEXT_LINE = WA_FINAL1-HTEXT1.
   APPEND WA_HTEXT TO IT_HTEXT.
   CLEAR : WA_HTEXT.
 ENDIF.

 IF WA_FINAL1-HTEXT1 IS NOT INITIAL.
   WA_HTEXT-TEXT_ID = 'B02'.      "LAST RECORD HDRTXT-Table =&amp;gt; ALL RECORDS added with this ID
   WA_HTEXT-TEXT_FORM = '/'.      "SET AS A NEW LINE
   WA_HTEXT-TEXT_LINE = WA_FINAL1-HTEXT1.
 APPEND WA_HTEXT TO IT_HTEXT.
 CLEAR : WA_HTEXT.
 ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;That is how it worked in my system ...?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 13:15:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-bapi-pr-create-header-text-not-able-to-add/m-p/411506#M10980</guid>
      <dc:creator>NTeunckens</dc:creator>
      <dc:date>2017-04-28T13:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using Function module BAPI_PR_CREATE Header Text not able to add</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-bapi-pr-create-header-text-not-able-to-add/m-p/411507#M10981</link>
      <description>&lt;P&gt;I passed the data like above,&lt;/P&gt;&lt;P&gt;Still same problem only B02 is adding  i mean last one it is updating the text.&lt;/P&gt;&lt;P&gt;Can i use any Save_text function module&lt;/P&gt;</description>
      <pubDate>Sat, 29 Apr 2017 04:30:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-bapi-pr-create-header-text-not-able-to-add/m-p/411507#M10981</guid>
      <dc:creator>former_member196331</dc:creator>
      <dc:date>2017-04-29T04:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using Function module BAPI_PR_CREATE Header Text not able to add</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-bapi-pr-create-header-text-not-able-to-add/m-p/411508#M10982</link>
      <description>&lt;P&gt;Hi kali,&lt;/P&gt;&lt;P&gt;Try   passing   the  text   with  the pr   item   in the  structure PRITEMTEXT   TYPE BAPIMEREQITEMTEXT. &lt;/P&gt;&lt;P&gt;Hope  it helpful,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkat.&lt;/P&gt;</description>
      <pubDate>Sat, 29 Apr 2017 04:53:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-bapi-pr-create-header-text-not-able-to-add/m-p/411508#M10982</guid>
      <dc:creator>VenkatRamesh_V</dc:creator>
      <dc:date>2017-04-29T04:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using Function module BAPI_PR_CREATE Header Text not able to add</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-bapi-pr-create-header-text-not-able-to-add/m-p/411509#M10983</link>
      <description>&lt;P&gt;I need at header not item level, Item level working fine. Ok correct me anything is wrong.&lt;/P&gt;</description>
      <pubDate>Sat, 29 Apr 2017 05:04:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-function-module-bapi-pr-create-header-text-not-able-to-add/m-p/411509#M10983</guid>
      <dc:creator>former_member196331</dc:creator>
      <dc:date>2017-04-29T05:04:16Z</dc:date>
    </item>
  </channel>
</rss>

