<?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: Bapi_requisition_create in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-requisition-create/m-p/1887661#M372189</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;You can use FM SAVE_TEXT to save PR's header text after BAPI_REQUISITION_CREATE was committed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  ...

  CLEAR HEADER.
  HEADER-TDOBJECT = 'EBANH'.
  HEADER-TDNAME   = '0010000000'
  HEADER-TDID     = 'B01'.
  HEADER-TDSPRAS  = SY-LANGU.
                                         
  CLEAR I_LINES.
  REFRESH I_LINES.
  I_LINES-TDFORMAT = '*'.
  I_LINES-TDLINE   = 'INSERT HEADER DATA'.
  APPEND I_LINES.

  CALL FUNCTION 'SAVE_TEXT'
    EXPORTING
      CLIENT          = SY-MANDT
      HEADER          = HEADER
      SAVEMODE_DIRECT = 'X'
    IMPORTING
      NEWHEADER       = HEADER
    TABLES
      LINES           = I_LINES
    EXCEPTIONS
      ID              = 1
      LANGUAGE        = 2
      NAME            = 3
      OBJECT          = 4
      OTHERS          = 5.

  IF SY-SUBRC &amp;lt;&amp;gt; 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jan 2007 17:22:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-23T17:22:51Z</dc:date>
    <item>
      <title>Bapi_requisition_create</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-requisition-create/m-p/1887658#M372186</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;I am looking for the way to pass to the bapi in object the Header Texts for Purchase Requisition.&lt;/P&gt;&lt;P&gt;Did anyone else have my same problem? Do you have any suggest for me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2007 17:15:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-requisition-create/m-p/1887658#M372186</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-23T17:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi_requisition_create</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-requisition-create/m-p/1887659#M372187</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;The requisition hasn't an header table so you can try to transfer the text without assigning the item number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2007 17:20:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-requisition-create/m-p/1887659#M372187</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-23T17:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi_requisition_create</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-requisition-create/m-p/1887660#M372188</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;You can use the parameter REQUISITION_ITEM_TEXT to pass the text..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REQUISITION_ITEM_TEXT STRUCTURE  BAPIEBANTX&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that don't populate PREQ_ITEM.Just populate the requisition number PREQ_NO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps..&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, 23 Jan 2007 17:22:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-requisition-create/m-p/1887660#M372188</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-23T17:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi_requisition_create</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-requisition-create/m-p/1887661#M372189</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;You can use FM SAVE_TEXT to save PR's header text after BAPI_REQUISITION_CREATE was committed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  ...

  CLEAR HEADER.
  HEADER-TDOBJECT = 'EBANH'.
  HEADER-TDNAME   = '0010000000'
  HEADER-TDID     = 'B01'.
  HEADER-TDSPRAS  = SY-LANGU.
                                         
  CLEAR I_LINES.
  REFRESH I_LINES.
  I_LINES-TDFORMAT = '*'.
  I_LINES-TDLINE   = 'INSERT HEADER DATA'.
  APPEND I_LINES.

  CALL FUNCTION 'SAVE_TEXT'
    EXPORTING
      CLIENT          = SY-MANDT
      HEADER          = HEADER
      SAVEMODE_DIRECT = 'X'
    IMPORTING
      NEWHEADER       = HEADER
    TABLES
      LINES           = I_LINES
    EXCEPTIONS
      ID              = 1
      LANGUAGE        = 2
      NAME            = 3
      OBJECT          = 4
      OTHERS          = 5.

  IF SY-SUBRC &amp;lt;&amp;gt; 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2007 17:22:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-requisition-create/m-p/1887661#M372189</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-23T17:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Bapi_requisition_create</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-requisition-create/m-p/1887662#M372190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ferry is correct, you will have to use SAVE_TEXT fm. You cannot insert the header text using the BAPI.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2007 17:42:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-requisition-create/m-p/1887662#M372190</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-23T17:42:45Z</dc:date>
    </item>
  </channel>
</rss>

