<?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: Unable to create PR with header text/note using BAPI_PR_CREATE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-create-pr-with-header-text-note-using-bapi-pr-create/m-p/5040806#M1172149</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 better late than never&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;structure name: PRHEADERTEXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just a little correction in the code and...at enjoy the sweet glory &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*PRHEADERTEXT-PREQ_NO = "Not necesary for creation of PR&lt;/P&gt;&lt;P&gt;*PRHEADERTEXT-PREQ_ITEM = '0010' "Not necesary for creation of PR&lt;/P&gt;&lt;P&gt;PRHEADERTEXT-TEXT_ID = 'B01'&lt;/P&gt;&lt;P&gt;*PRHEADERTEXT-TEXT_FORM = 'EN' "Not necesary for creation of PR&lt;/P&gt;&lt;P&gt;PRHEADERTEXT-TEXT_LINE = 'New text' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Dec 2009 02:51:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-12-02T02:51:51Z</dc:date>
    <item>
      <title>Unable to create PR with header text/note using BAPI_PR_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-create-pr-with-header-text-note-using-bapi-pr-create/m-p/5040803#M1172146</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;I have successfully created purchase requisition using &lt;STRONG&gt;BAPI_PR_CREATE&lt;/STRONG&gt;. But, the bapi is not creating  header text/note for the PR even when I give inputs for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have given the following inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;structure name: PRHEADERTEXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PRHEADERTEXT-PREQ_NO = &lt;/P&gt;&lt;P&gt;PRHEADERTEXT-PREQ_ITEM = '0010'&lt;/P&gt;&lt;P&gt;PRHEADERTEXT-TEXT_ID  = 'B01'&lt;/P&gt;&lt;P&gt;PRHEADERTEXT-TEXT_FORM = 'EN' &lt;/P&gt;&lt;P&gt;PRHEADERTEXT-TEXT_LINE = 'New text'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I create PR with header text/note using BAPI_PR_CREATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rajan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rajan Usman Basha on Jan 6, 2009 11:29 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2009 10:00:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-create-pr-with-header-text-note-using-bapi-pr-create/m-p/5040803#M1172146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-06T10:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create PR with header text/note using BAPI_PR_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-create-pr-with-header-text-note-using-bapi-pr-create/m-p/5040804#M1172147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZPURCHASEORDER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;header like BAPIMEPOHEADER,&lt;/P&gt;&lt;P&gt;headerx like BAPIMEPOHEADERX,&lt;/P&gt;&lt;P&gt;it_item like standard table of BAPIMEPOITEM,&lt;/P&gt;&lt;P&gt;it_itemx like standard table of BAPIMEPOITEMX,&lt;/P&gt;&lt;P&gt;return like standard table of BAPIRET2,&lt;/P&gt;&lt;P&gt;wa_item like BAPIMEPOITEM,&lt;/P&gt;&lt;P&gt;wa_itemx like BAPIMEPOITEMX,&lt;/P&gt;&lt;P&gt;p_int type i,&lt;/P&gt;&lt;P&gt;p_matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;p_pono like ekko-ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF BAPIRETURN OCCURS 0.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE BAPIRET2.&lt;/P&gt;&lt;P&gt;DATA: END OF BAPIRETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;constants:&lt;/P&gt;&lt;P&gt;c_x type c value 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;header-comp_code = '3000'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;header-doc_type = 'DP25'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;header-creat_date = sy-datum.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;header-item_intvl = '10'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;header-vendor = 'ARAMI-00'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;header-langu = sy-langu.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;header-pmnttrms = '0001'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;header-purch_org = '3000'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;header-pur_group = '010'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;header-currency = 'USD'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;headerx-comp_code = c_x.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;headerx-doc_type = c_x.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;headerx-creat_date = c_x.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;headerx-item_intvl = c_x .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;headerx-vendor = c_x.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;headerx-langu = c_x.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;headerx-pmnttrms = c_x .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;headerx-purch_org = c_x.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;headerx-pur_group = c_x.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;*LOOP AT it_final2 INTO wa_final2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_int = p_int + 10.&lt;/P&gt;&lt;P&gt;wa_item-po_item = p_int.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_matnr = 'T-SRM01'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;input = p_matnr&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;output = p_matnr&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;length_error = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;*IF sy-subrc = 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;wa_item-material = p_matnr.&lt;/P&gt;&lt;P&gt;wa_item-plant = '3200'.&lt;/P&gt;&lt;P&gt;wa_item-quantity = 100.&lt;/P&gt;&lt;P&gt;wa_item-conf_ctrl = 'Z01'.&lt;/P&gt;&lt;P&gt;wa_item-ACKN_REQD = 'X'.&lt;/P&gt;&lt;P&gt;WA_ITEM-ERS = ''.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND wa_item TO it_item.&lt;/P&gt;&lt;P&gt;wa_itemx-po_item = p_int.&lt;/P&gt;&lt;P&gt;wa_itemx-material = c_x.&lt;/P&gt;&lt;P&gt;wa_itemx-plant = c_x .&lt;/P&gt;&lt;P&gt;wa_itemx-stge_loc = c_x .&lt;/P&gt;&lt;P&gt;wa_itemx-quantity = c_x .&lt;/P&gt;&lt;P&gt;wa_itemx-item_cat = c_x .&lt;/P&gt;&lt;P&gt;wa_itemx-acctasscat = c_x .&lt;/P&gt;&lt;P&gt;wa_itemx-conf_ctrl = 'X'.&lt;/P&gt;&lt;P&gt;wa_itemx-ACKN_REQD = 'X'.&lt;/P&gt;&lt;P&gt;WA_ITEMX-ERS = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND wa_itemx TO it_itemx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BAPI_PO_CREATE1'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;poheader = header&lt;/P&gt;&lt;P&gt;poheaderx = headerx&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;exppurchaseorder = p_pono&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;return = return&lt;/P&gt;&lt;P&gt;poitem = it_item&lt;/P&gt;&lt;P&gt;poitemx = it_itemx.&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; 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;           IMPORTING&lt;/P&gt;&lt;P&gt;                RETURN = BAPIRETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ p_pono.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2009 11:24:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-create-pr-with-header-text-note-using-bapi-pr-create/m-p/5040804#M1172147</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-06T11:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create PR with header text/note using BAPI_PR_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-create-pr-with-header-text-note-using-bapi-pr-create/m-p/5040805#M1172148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krupa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. In this example, you are not passing any values for BAPIMEREQHEADTEXT which is a structure for header text or note.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please get me some other example code, where you have given inputs for header text/note.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once again Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rajan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2009 11:33:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-create-pr-with-header-text-note-using-bapi-pr-create/m-p/5040805#M1172148</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-06T11:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create PR with header text/note using BAPI_PR_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-create-pr-with-header-text-note-using-bapi-pr-create/m-p/5040806#M1172149</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 better late than never&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;structure name: PRHEADERTEXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just a little correction in the code and...at enjoy the sweet glory &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*PRHEADERTEXT-PREQ_NO = "Not necesary for creation of PR&lt;/P&gt;&lt;P&gt;*PRHEADERTEXT-PREQ_ITEM = '0010' "Not necesary for creation of PR&lt;/P&gt;&lt;P&gt;PRHEADERTEXT-TEXT_ID = 'B01'&lt;/P&gt;&lt;P&gt;*PRHEADERTEXT-TEXT_FORM = 'EN' "Not necesary for creation of PR&lt;/P&gt;&lt;P&gt;PRHEADERTEXT-TEXT_LINE = 'New text' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 02:51:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-create-pr-with-header-text-note-using-bapi-pr-create/m-p/5040806#M1172149</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-02T02:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create PR with header text/note using BAPI_PR_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-create-pr-with-header-text-note-using-bapi-pr-create/m-p/5040807#M1172150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the replies&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2011 06:23:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-create-pr-with-header-text-note-using-bapi-pr-create/m-p/5040807#M1172150</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-07T06:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create PR with header text/note using BAPI_PR_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-create-pr-with-header-text-note-using-bapi-pr-create/m-p/5040808#M1172151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above code is not working.&lt;/P&gt;&lt;P&gt;You have inserted &lt;SPAN style="color: #333333; font-size: 12px;"&gt;PRHEADERTEXT-TEXT_ID = 'B01'. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;As I know 'B01' belongs to&amp;nbsp; Item Details&lt;SPAN class="L0S52"&gt; &lt;/SPAN&gt;&lt;SPAN class="L0S70"&gt;-&amp;gt; &lt;/SPAN&gt;Texts tab &lt;SPAN class="L0S70"&gt;-&amp;gt; &lt;/SPAN&gt;Item &lt;SPAN class="L0S52"&gt;text&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;plse suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Hitesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 06:26:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-create-pr-with-header-text-note-using-bapi-pr-create/m-p/5040808#M1172151</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-05-31T06:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create PR with header text/note using BAPI_PR_CREATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-create-pr-with-header-text-note-using-bapi-pr-create/m-p/5040809#M1172152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey do your problem get resolved. If yes, How?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 10:26:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-create-pr-with-header-text-note-using-bapi-pr-create/m-p/5040809#M1172152</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-05-31T10:26:43Z</dc:date>
    </item>
  </channel>
</rss>

