<?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 Program to in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-to/m-p/2145893#M452637</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create Sales Order with reference to Scheduling Agreement, but although the &lt;/P&gt;&lt;P&gt;order gets created, it does not contain reference document information.  &lt;/P&gt;&lt;P&gt;The BAPI I am using is BAPI_SALESORDER_CREATEFROMDAT2.  &lt;/P&gt;&lt;P&gt;Could anyone give me the program to upload from an external source for doing this  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Sarath.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Apr 2007 18:20:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-02T18:20:51Z</dc:date>
    <item>
      <title>Program to</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-to/m-p/2145893#M452637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create Sales Order with reference to Scheduling Agreement, but although the &lt;/P&gt;&lt;P&gt;order gets created, it does not contain reference document information.  &lt;/P&gt;&lt;P&gt;The BAPI I am using is BAPI_SALESORDER_CREATEFROMDAT2.  &lt;/P&gt;&lt;P&gt;Could anyone give me the program to upload from an external source for doing this  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Sarath.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2007 18:20:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-to/m-p/2145893#M452637</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-02T18:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Program to</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-to/m-p/2145894#M452638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at &amp;lt;a href="http://www.sap-img.com/fu036.htm"&amp;gt;BAPI to create Sales Order with reference&amp;lt;/a&amp;gt;. Hope it will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2007 18:25:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-to/m-p/2145894#M452638</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2007-04-02T18:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Program to</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-to/m-p/2145895#M452639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to create these references before calling the BAPI:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Add something like this *****&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Assigning header.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  hdr-REF_DOC = i_vakgu-vbeln.  "assign quotation # to sales order&lt;/P&gt;&lt;P&gt;  hdr-REFDOC_CAT = 'B'.         "assign Quotation to VBTYP_N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Assigning ref doc to create line item entries in VBFA.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    itm-REF_DOC    = i_vakgu-vbeln.&lt;/P&gt;&lt;P&gt;    itm-REF_DOC_IT = i_vbap-posnr.&lt;/P&gt;&lt;P&gt;    itm-REF_DOC_CA = 'B'.&lt;/P&gt;&lt;P&gt;    append itm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Add something like this above *****&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt; Now call BAPI with the References created in &amp;lt;b&amp;gt;hdr&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;itm&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: ret_text type BAPIRET2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      ORDER_HEADER_IN           = hdr&lt;/P&gt;&lt;P&gt;      convert                   = 'X'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      SALESDOCUMENT             = salesdoc&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      return                    = ret_tbl&lt;/P&gt;&lt;P&gt;      ORDER_ITEMS_IN            = itm&lt;/P&gt;&lt;P&gt;      ORDER_PARTNERS            = prtnr&lt;/P&gt;&lt;P&gt;      ORDER_ITEMS_inx           = itmx&lt;/P&gt;&lt;P&gt;      ORDER_CONDITIONS_IN       = conds&lt;/P&gt;&lt;P&gt;      ORDER_CONDITIONS_INX      = condsx&lt;/P&gt;&lt;P&gt;      order_schedules_in        = schd_lin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0&lt;/P&gt;&lt;P&gt;  and not salesdoc is initial.&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        = ret_text.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2007 18:25:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-to/m-p/2145895#M452639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-02T18:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Program to</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/program-to/m-p/2145896#M452640</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;Please check this BAPI BAPI_SALESDOCUMENT_COPY.&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>Mon, 02 Apr 2007 18:34:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/program-to/m-p/2145896#M452640</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-04-02T18:34:16Z</dc:date>
    </item>
  </channel>
</rss>

