<?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 BAPI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1372968#M183255</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 have the following code. i am working in APO-ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refresh it_receipts1.&lt;/P&gt;&lt;P&gt;    wa_receipts-order_number = '12345'.&lt;/P&gt;&lt;P&gt;    wa_receipts-product = '000000000001000253'.&lt;/P&gt;&lt;P&gt;    wa_receipts-location = 'ZZZZ'.&lt;/P&gt;&lt;P&gt;    wa_receipts-loctype = 1001 .&lt;/P&gt;&lt;P&gt;    wa_receipts-proc_type = '0'.&lt;/P&gt;&lt;P&gt;    wa_receipts-delivery_date = c_delivery_date .&lt;/P&gt;&lt;P&gt;    wa_receipts-atpcat = 'AG'.&lt;/P&gt;&lt;P&gt;    wa_receipts-quantity = 4000.&lt;/P&gt;&lt;P&gt;    APPEND wa_receipts TO it_receipts1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    refresh it_receipts_x.&lt;/P&gt;&lt;P&gt;    wa_receipts_x-order_number = '12345'.&lt;/P&gt;&lt;P&gt;    wa_receipts_x-product = 'X'.&lt;/P&gt;&lt;P&gt;    wa_receipts_x-location = 'X'.&lt;/P&gt;&lt;P&gt;    wa_receipts_x-loctype ='X'.&lt;/P&gt;&lt;P&gt;    wa_receipts_x-delivery_date = 'X'.&lt;/P&gt;&lt;P&gt;    wa_receipts_x-atpcat = 'X'.&lt;/P&gt;&lt;P&gt;    wa_receipts_x-proc_type = 'X'.&lt;/P&gt;&lt;P&gt;    wa_receipts_x-quantity = 'X'.&lt;/P&gt;&lt;P&gt;    APPEND wa_receipts_x TO it_receipts_x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_POSRVAPS_SAVEMULTI3'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        logical_system      = 'AD2CLNT200'&lt;/P&gt;&lt;P&gt;         order_type         = ' '&lt;/P&gt;&lt;P&gt;        commit_control      = 'E'&lt;/P&gt;&lt;P&gt;        plng_version        = '000'&lt;/P&gt;&lt;P&gt;        planning_mode_usage = '0'&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        receipts            = it_receipts1[]&lt;/P&gt;&lt;P&gt;        receipts_x          = it_receipts_x[]&lt;/P&gt;&lt;P&gt;        return              = it_return1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i use it in a method use_command for a push button in ALV the BAPI creates a purchase requisition But the number is 12345.But when i use se37 with the same inputs its creates a preq with system generated no.&lt;/P&gt;&lt;P&gt;Does, This is Bcoz i am using in a method its not creating a correct One.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ahasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 May 2006 05:01:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-08T05:01:06Z</dc:date>
    <item>
      <title>BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1372968#M183255</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 have the following code. i am working in APO-ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refresh it_receipts1.&lt;/P&gt;&lt;P&gt;    wa_receipts-order_number = '12345'.&lt;/P&gt;&lt;P&gt;    wa_receipts-product = '000000000001000253'.&lt;/P&gt;&lt;P&gt;    wa_receipts-location = 'ZZZZ'.&lt;/P&gt;&lt;P&gt;    wa_receipts-loctype = 1001 .&lt;/P&gt;&lt;P&gt;    wa_receipts-proc_type = '0'.&lt;/P&gt;&lt;P&gt;    wa_receipts-delivery_date = c_delivery_date .&lt;/P&gt;&lt;P&gt;    wa_receipts-atpcat = 'AG'.&lt;/P&gt;&lt;P&gt;    wa_receipts-quantity = 4000.&lt;/P&gt;&lt;P&gt;    APPEND wa_receipts TO it_receipts1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    refresh it_receipts_x.&lt;/P&gt;&lt;P&gt;    wa_receipts_x-order_number = '12345'.&lt;/P&gt;&lt;P&gt;    wa_receipts_x-product = 'X'.&lt;/P&gt;&lt;P&gt;    wa_receipts_x-location = 'X'.&lt;/P&gt;&lt;P&gt;    wa_receipts_x-loctype ='X'.&lt;/P&gt;&lt;P&gt;    wa_receipts_x-delivery_date = 'X'.&lt;/P&gt;&lt;P&gt;    wa_receipts_x-atpcat = 'X'.&lt;/P&gt;&lt;P&gt;    wa_receipts_x-proc_type = 'X'.&lt;/P&gt;&lt;P&gt;    wa_receipts_x-quantity = 'X'.&lt;/P&gt;&lt;P&gt;    APPEND wa_receipts_x TO it_receipts_x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_POSRVAPS_SAVEMULTI3'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        logical_system      = 'AD2CLNT200'&lt;/P&gt;&lt;P&gt;         order_type         = ' '&lt;/P&gt;&lt;P&gt;        commit_control      = 'E'&lt;/P&gt;&lt;P&gt;        plng_version        = '000'&lt;/P&gt;&lt;P&gt;        planning_mode_usage = '0'&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        receipts            = it_receipts1[]&lt;/P&gt;&lt;P&gt;        receipts_x          = it_receipts_x[]&lt;/P&gt;&lt;P&gt;        return              = it_return1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i use it in a method use_command for a push button in ALV the BAPI creates a purchase requisition But the number is 12345.But when i use se37 with the same inputs its creates a preq with system generated no.&lt;/P&gt;&lt;P&gt;Does, This is Bcoz i am using in a method its not creating a correct One.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ahasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2006 05:01:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1372968#M183255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-08T05:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1372969#M183256</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;Why are you passing the order number to the BAPI which creates a order and should generate a order number. The difference between the ALV and SE37 might be that in SE37 you are not passing the order numbers, so its generating a new one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ALV also, do NOT hard code the order number and then it should generate a new one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Please mark the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2006 05:11:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1372969#M183256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-08T05:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1372970#M183257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  To create a new order the value '12345'. is needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same coding in the method if pasted in start-of-selection it creates an order with system generated no .But in method it creates a order with the no 12345.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ahasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2006 05:17:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1372970#M183257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-08T05:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1372971#M183258</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;I can assure you that it has nothing to do with the place of calling. I am still surprised how can it create a new order with a system generated one, if you are passing the order number, may be because the order already exists it picks up a new one and creates it.&lt;/P&gt;&lt;P&gt;What if you don't pass the order number in the method? Does it throw a error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Please mark the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2006 05:21:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1372971#M183258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-08T05:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1372972#M183259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   The bapi gives the message Invalid value  transferred in parameter/field ORDER_NUMBER.To create a new order with the Bapi the value '12345'. is necessary.Else it does not create.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ahasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2006 05:26:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1372972#M183259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-08T05:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1372973#M183260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i want to create a purchase requisition i.e. ORDER_TYPE = '1' nad PROC_TYPE = '1'. Please tel which parameters should be considered  for doing the same using BAPI_POSRVAPS_SAVEMULTI3.&lt;/P&gt;&lt;P&gt;Also specify the ATP Category.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2007 09:20:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/1372973#M183260</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-15T09:20:05Z</dc:date>
    </item>
  </channel>
</rss>

