<?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  &amp;quot;BAPI_SALESDOCU_CREATEFROMDATA&amp;quot; in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-quot-bapi-salesdocu-createfromdata-quot/m-p/3620005#M872081</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to create a return order with reference to a billing document using the BAPI BAPI_SALESDOCU_CREATEFROMDATA .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have all my billing documents for which the return orders need to be created and was suggested to use the BAPI BAPI_SALESDOCU_CREATEFROMDATA to create the return orders for all the obtained billing documents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I observed that the following are the  mandatory interface pararmeters for the above BAPI:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Import Parameters:&lt;/P&gt;&lt;P&gt;ORDER_HEADER_IN  and BUSINESS_OBJECT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables Parameters:&lt;/P&gt;&lt;P&gt;ORDER_ITEMS_IN  and ORDER_PARTNERS &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and my input to the BAPI is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Import parameters:&lt;/P&gt;&lt;P&gt;ORDER_HEADER_IN - DOC_TYPE  is of type return order&lt;/P&gt;&lt;P&gt;ORDER_HEADER_IN - SALES_ORG&lt;/P&gt;&lt;P&gt;ORDER_HEADER_IN - DISTR_CHAN&lt;/P&gt;&lt;P&gt;ORDER_HEADER_IN - DIVISION&lt;/P&gt;&lt;P&gt;ORDER_HEADER_IN - ORD_REASON&lt;/P&gt;&lt;P&gt;ORDER_HEADER_IN - REF_DOC is my billing document number&lt;/P&gt;&lt;P&gt;ORDER_HEADER_IN - REF_DOC_CA	= M (invoice)&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;BUSINESS_OBJECT = BUS2102 (this business object is for return order)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables Parameters:&lt;/P&gt;&lt;P&gt;ORDER_ITEMS_IN &amp;#150; MATERIAL = providing the material number&lt;/P&gt;&lt;P&gt;ORDER_ITEMS_IN - REQ_QTY = providing the required quantity as well&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ORDER_PARTNERS - PARTN_ROLE is SP(Sold to party)&lt;/P&gt;&lt;P&gt;ORDER_PARTNERS - PARTN_NUMB is the customer number(Sold to party number)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Having given this input to the BAPI, it is creating sales document with document category H(Returns), however the document seems as if the referencing is missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, may i ask you all for your help to provide your inputs on this? Am i passing correct values? anything more needs to be passed to BAPI? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly provide me your inputs ASAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prasad.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Apr 2008 11:39:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-01T11:39:12Z</dc:date>
    <item>
      <title>BAPI  "BAPI_SALESDOCU_CREATEFROMDATA"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-quot-bapi-salesdocu-createfromdata-quot/m-p/3620005#M872081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to create a return order with reference to a billing document using the BAPI BAPI_SALESDOCU_CREATEFROMDATA .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have all my billing documents for which the return orders need to be created and was suggested to use the BAPI BAPI_SALESDOCU_CREATEFROMDATA to create the return orders for all the obtained billing documents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I observed that the following are the  mandatory interface pararmeters for the above BAPI:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Import Parameters:&lt;/P&gt;&lt;P&gt;ORDER_HEADER_IN  and BUSINESS_OBJECT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables Parameters:&lt;/P&gt;&lt;P&gt;ORDER_ITEMS_IN  and ORDER_PARTNERS &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and my input to the BAPI is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Import parameters:&lt;/P&gt;&lt;P&gt;ORDER_HEADER_IN - DOC_TYPE  is of type return order&lt;/P&gt;&lt;P&gt;ORDER_HEADER_IN - SALES_ORG&lt;/P&gt;&lt;P&gt;ORDER_HEADER_IN - DISTR_CHAN&lt;/P&gt;&lt;P&gt;ORDER_HEADER_IN - DIVISION&lt;/P&gt;&lt;P&gt;ORDER_HEADER_IN - ORD_REASON&lt;/P&gt;&lt;P&gt;ORDER_HEADER_IN - REF_DOC is my billing document number&lt;/P&gt;&lt;P&gt;ORDER_HEADER_IN - REF_DOC_CA	= M (invoice)&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;BUSINESS_OBJECT = BUS2102 (this business object is for return order)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables Parameters:&lt;/P&gt;&lt;P&gt;ORDER_ITEMS_IN &amp;#150; MATERIAL = providing the material number&lt;/P&gt;&lt;P&gt;ORDER_ITEMS_IN - REQ_QTY = providing the required quantity as well&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ORDER_PARTNERS - PARTN_ROLE is SP(Sold to party)&lt;/P&gt;&lt;P&gt;ORDER_PARTNERS - PARTN_NUMB is the customer number(Sold to party number)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Having given this input to the BAPI, it is creating sales document with document category H(Returns), however the document seems as if the referencing is missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, may i ask you all for your help to provide your inputs on this? Am i passing correct values? anything more needs to be passed to BAPI? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly provide me your inputs ASAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prasad.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2008 11:39:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-quot-bapi-salesdocu-createfromdata-quot/m-p/3620005#M872081</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-01T11:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI  "BAPI_SALESDOCU_CREATEFROMDATA"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-quot-bapi-salesdocu-createfromdata-quot/m-p/3620006#M872082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;For Return Orders you may to use the BAPI: BAPI_CUSTOMERRETURN_CREATE. &lt;/P&gt;&lt;P&gt;Please check this as BAPI_SALESDOCU_CREATEFROMDATA  may not support the specific order types.&lt;/P&gt;&lt;P&gt;You may have to populate below items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_CUSTOMERRETURN_CREATE'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      SALESDOCUMENTIN               =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        RETURN_HEADER_IN              = lst_header_in&lt;/P&gt;&lt;P&gt;        RETURN_HEADER_INX             = lst_header_inx&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      SENDER                        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      BINARY_RELATIONSHIPTYPE       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      INT_NUMBER_ASSIGNMENT         =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      BEHAVE_WHEN_ERROR             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      LOGIC_SWITCH                  =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      TESTRUN                       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      CONVERT                       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;       SALESDOCUMENT                 = l_babi_vbeln&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        RETURN                        = ltbl_return&lt;/P&gt;&lt;P&gt;        RETURN_ITEMS_IN               = tbl_items&lt;/P&gt;&lt;P&gt;        RETURN_ITEMS_INX              = ltbl_items_inx&lt;/P&gt;&lt;P&gt;        RETURN_PARTNERS               = tbl_partners&lt;/P&gt;&lt;P&gt;        RETURN_SCHEDULES_IN           =  tbl_schedule_in&lt;/P&gt;&lt;P&gt;        RETURN_SCHEDULES_INX          = ltbl_schedule_inx&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      RETURN_CONDITIONS_IN          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      RETURN_CFGS_REF               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      RETURN_CFGS_INST              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      RETURN_CFGS_PART_OF           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      RETURN_CFGS_VALUE             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      RETURN_CFGS_BLOB              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      RETURN_CFGS_VK                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      RETURN_CFGS_REFINST           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      RETURN_TEXT                   =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      RETURN_KEYS                   =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      EXTENSIONIN                   =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      PARTNERADDRESSES              =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;              .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2008 13:30:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-quot-bapi-salesdocu-createfromdata-quot/m-p/3620006#M872082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-01T13:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI  "BAPI_SALESDOCU_CREATEFROMDATA"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-quot-bapi-salesdocu-createfromdata-quot/m-p/3620007#M872083</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;In items_in there is a parameter ref_doc,ref_doc_ca this needs to be filled out.Once this is filled it will show in the document flow of that document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 09:38:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-quot-bapi-salesdocu-createfromdata-quot/m-p/3620007#M872083</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-02T09:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI  "BAPI_SALESDOCU_CREATEFROMDATA"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-quot-bapi-salesdocu-createfromdata-quot/m-p/3620008#M872084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ashok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here i have a small question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i am passing &lt;/P&gt;&lt;P&gt;RETURN_HEADER_IN-REF_DOC = Billing document number (return is to be created with ref to billing document)&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;RETURN_HEADER_IN-REFDOC_CAT = 'M' (Invoice) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to the bapi 'BAPI_CUSTOMERRETURN_CREATE', it is creating the return order, however, it seems as if it is created without reference to billing document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i did some investigation on BAPI to understand its flow, but i could not understand why it is not creating the return order with reference to billing document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly do let me know if you have any inputs on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;KLN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 13:29:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-quot-bapi-salesdocu-createfromdata-quot/m-p/3620008#M872084</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-02T13:29:30Z</dc:date>
    </item>
  </channel>
</rss>

