<?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: Dump while using BAPI for Creating SO in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-using-bapi-for-creating-so/m-p/9325402#M1728751</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Contract is created, and i can able to create Sales Order manually without error. but while using BAPI, i am getting error.&lt;/P&gt;&lt;P&gt;Its failing in Standard Code&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;IF &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;L_REC_UPD &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;NE &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;SPACE&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;CLEAR &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;L_REC_UPD&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;INSERT &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;OICQ8 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;FROM TABLE &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;XOICQ8&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 10pt;"&gt;. - trying to insert the Record which already exits.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080; font-size: 10pt;"&gt;this is taking from ST22 dump.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080; font-size: 10pt;"&gt;Thanks &amp;amp; Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080; font-size: 10pt;"&gt;Srinivas&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Feb 2013 10:13:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-02-08T10:13:19Z</dc:date>
    <item>
      <title>Dump while using BAPI for Creating SO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-using-bapi-for-creating-so/m-p/9325396#M1728745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am creating the Sales Order with Reference to Contract. &lt;/P&gt;&lt;P&gt;My user will send a file where it contains, Ship to part, Net weight, Date, Incoterms, Material number, Shipping condition and Shipping type. Depends on Unit provide in Contract, same is using while passing the value to BAPI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using &lt;SPAN style="font-size: 10pt;"&gt;BAPI_SALESORDER_CREATEFROMDAT2. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I am passing all the information required. But at end i am getting the message in RETURN Parameters as (SD Document ********** is Archived or not in Database). And getting as Updated Terminated. When i check in ST22 - its giving as &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error analysis&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; An exception occurred that is explained in detail below.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The exception, which is assigned to class 'CX_SY_OPEN_SQL_DB', was not caught&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; in&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; procedure "OIC_UPDATE_FORMULAE" "(FORM)", nor was it propagated by a RAISING&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clause.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Since the caller of the procedure could not have anticipated that the&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; exception would occur, the current program is terminated.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The reason for the exception is:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you use an ABAP/4 Open SQL array insert to insert a record in&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; the database and that record already exists with the same key,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; this results in a termination.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (With an ABAP/4 Open SQL single record insert in the same error&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; situation, processing does not terminate, but SY-SUBRC is set to 4.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i am trying to Create Sales Order manually (with refernce to Contrace), i can able to Create Sales Order. But while using BAPI, i am unable to create.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help to solve the issue. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 09:37:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-using-bapi-for-creating-so/m-p/9325396#M1728745</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-02-08T09:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while using BAPI for Creating SO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-using-bapi-for-creating-so/m-p/9325397#M1728746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srini ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess the problem is with the Contract you have passed while creating Sale Order using BAPI ,&lt;/P&gt;&lt;P&gt;Have you checked with that particular Contract ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 09:47:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-using-bapi-for-creating-so/m-p/9325397#M1728746</guid>
      <dc:creator>Sijin_Chandran</dc:creator>
      <dc:date>2013-02-08T09:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while using BAPI for Creating SO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-using-bapi-for-creating-so/m-p/9325398#M1728747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sijin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. &lt;/P&gt;&lt;P&gt;I check the Contract what i am passing to BAPI.&lt;SPAN style="font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;header&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-size: 10pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;doc_type &lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 10pt;"&gt;= ***&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;header&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-size: 10pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;ref_doc&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 10pt;"&gt;= **********&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080; font-size: 10pt;"&gt;In Header i am passing Contract Number and in HeaderX with 'X'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080; font-size: 10pt;"&gt;Thanks &amp;amp; Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080; font-size: 10pt;"&gt;Srinivas&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080; font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 09:59:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-using-bapi-for-creating-so/m-p/9325398#M1728747</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-02-08T09:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while using BAPI for Creating SO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-using-bapi-for-creating-so/m-p/9325399#M1728748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No , am saying that try creating a Sale Order manually with Contract using VA01 .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 10:02:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-using-bapi-for-creating-so/m-p/9325399#M1728748</guid>
      <dc:creator>Sijin_Chandran</dc:creator>
      <dc:date>2013-02-08T10:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while using BAPI for Creating SO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-using-bapi-for-creating-so/m-p/9325400#M1728749</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;check whether the contract is created or not and also check in database&amp;nbsp; tables.make sure that pass&amp;nbsp; same data which is contact.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me know if still any issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gurunath Kumar D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 10:08:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-using-bapi-for-creating-so/m-p/9325400#M1728749</guid>
      <dc:creator>gurunathkumar_dadamu</dc:creator>
      <dc:date>2013-02-08T10:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while using BAPI for Creating SO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-using-bapi-for-creating-so/m-p/9325401#M1728750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sajin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can able to create Sales Order manually with Contract.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I check whether any Incomplete log, there is no error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 10:09:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-using-bapi-for-creating-so/m-p/9325401#M1728750</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-02-08T10:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while using BAPI for Creating SO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-using-bapi-for-creating-so/m-p/9325402#M1728751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Contract is created, and i can able to create Sales Order manually without error. but while using BAPI, i am getting error.&lt;/P&gt;&lt;P&gt;Its failing in Standard Code&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;IF &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;L_REC_UPD &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;NE &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;SPACE&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;CLEAR &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;L_REC_UPD&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;INSERT &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;OICQ8 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;FROM TABLE &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;XOICQ8&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 10pt;"&gt;. - trying to insert the Record which already exits.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080; font-size: 10pt;"&gt;this is taking from ST22 dump.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080; font-size: 10pt;"&gt;Thanks &amp;amp; Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080; font-size: 10pt;"&gt;Srinivas&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 10:13:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-using-bapi-for-creating-so/m-p/9325402#M1728751</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-02-08T10:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while using BAPI for Creating SO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-using-bapi-for-creating-so/m-p/9325403#M1728752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srini ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paste your program .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 10:20:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-using-bapi-for-creating-so/m-p/9325403#M1728752</guid>
      <dc:creator>Sijin_Chandran</dc:creator>
      <dc:date>2013-02-08T10:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while using BAPI for Creating SO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-using-bapi-for-creating-so/m-p/9325404#M1728753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sajin, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please the code. Date is in US format MM/DD/YYYY. This format will depends upon our User Profile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; header-doc_type&amp;nbsp;&amp;nbsp; = p_auart.&lt;BR /&gt;&amp;nbsp; header-ref_doc&amp;nbsp;&amp;nbsp;&amp;nbsp; = p_zsd_spl-vbelnc ( Contract number).&lt;BR /&gt;&amp;nbsp; header-refdoc_cat = wc_g.&lt;BR /&gt;&amp;nbsp; header-sales_org&amp;nbsp; = wc_2072.&lt;BR /&gt;&amp;nbsp; header-distr_chan = wc_30.&lt;BR /&gt;&amp;nbsp; header-division&amp;nbsp;&amp;nbsp; = wc_41.&lt;BR /&gt;&amp;nbsp; header-purch_no_c = p_zsd_spl-bstkd.&lt;BR /&gt;&amp;nbsp; header-ship_cond&amp;nbsp; = wa_vsbed.&lt;BR /&gt;&amp;nbsp; header-ship_type&amp;nbsp; = p_zsd_spl-vsbed.&lt;BR /&gt;&amp;nbsp; header-req_date_h = p_zsd_spl-loaddat.&lt;BR /&gt;&amp;nbsp; header-name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = p_zsd_spl-bol ( Internal Number or Name).&lt;BR /&gt;&amp;nbsp; header-price_date = p_zsd_spl-loaddat.&lt;BR /&gt;&amp;nbsp; headerx-sales_org = wc_x.&lt;BR /&gt;&amp;nbsp; headerx-distr_chan = wc_x.&lt;BR /&gt;&amp;nbsp; headerx-division&amp;nbsp;&amp;nbsp; = wc_x.&lt;BR /&gt;&amp;nbsp; headerx-ref_doc&amp;nbsp;&amp;nbsp;&amp;nbsp; = wc_x.&lt;BR /&gt;&amp;nbsp; headerx-refdoc_cat = wc_x.&lt;BR /&gt;&amp;nbsp; headerx-purch_no_c = wc_x.&lt;BR /&gt;&amp;nbsp; headerx-ship_cond&amp;nbsp; = wc_x.&lt;BR /&gt;&amp;nbsp; headerx-ship_type&amp;nbsp; = wc_x.&lt;BR /&gt;&amp;nbsp; headerx-req_date_h = wc_x.&lt;BR /&gt;&amp;nbsp; headerx-sales_grp&amp;nbsp; = wc_x.&lt;BR /&gt;&amp;nbsp; headerx-name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = wc_x.&lt;BR /&gt;&amp;nbsp; headerx-price_date = wc_x.&lt;/P&gt;&lt;P&gt;&amp;nbsp; item-itm_number = '000010'.&lt;BR /&gt;&amp;nbsp; item-material&amp;nbsp;&amp;nbsp; = p_zsd_spl-matnr.&lt;BR /&gt;&amp;nbsp; IF wlv_vrkme = 'GAL'.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; item-target_qty = p_zsd_spl-qtygal.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; item-sales_unit = 'GLL'.&lt;BR /&gt;&amp;nbsp; ELSEIF wlv_vrkme = 'GLL'.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; item-target_qty = p_zsd_spl-qtygal.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; item-sales_unit = 'GLL'.&lt;BR /&gt;&amp;nbsp; ELSE.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; item-target_qty = p_zsd_spl-qtylb.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; item-sales_unit = 'LB'.&lt;BR /&gt;&amp;nbsp; ENDIF.&lt;BR /&gt;&amp;nbsp; item-ship_point = wa_vstel.&lt;BR /&gt;&amp;nbsp; item-route&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = wa_route.&lt;BR /&gt;&amp;nbsp; item-plant&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = wa_werks.&lt;BR /&gt;&amp;nbsp; item-store_loc&amp;nbsp; = wa_loc.&lt;BR /&gt;&amp;nbsp; item-ref_doc&amp;nbsp;&amp;nbsp;&amp;nbsp; = p_zsd_spl-vbelnc.&lt;BR /&gt;&amp;nbsp; item-ref_doc_it = p_zsd_spl-posnrc.&lt;BR /&gt;&amp;nbsp; item-ref_doc_ca = wc_g.&lt;BR /&gt;&amp;nbsp; item-val_contr&amp;nbsp; = p_zsd_spl-vbelnc (Contract Number).&lt;BR /&gt;&amp;nbsp; item-val_con_i&amp;nbsp; = p_zsd_spl-posnrc.&lt;BR /&gt;&amp;nbsp; APPEND item.&lt;/P&gt;&lt;P&gt;&amp;nbsp; itemx-itm_number = '000010'.&lt;BR /&gt;&amp;nbsp; itemx-material&amp;nbsp;&amp;nbsp; = wc_x.&lt;BR /&gt;&amp;nbsp; itemx-target_qty = wc_x.&lt;BR /&gt;&amp;nbsp; itemx-sales_unit = wc_x.&lt;BR /&gt;&amp;nbsp; itemx-ship_point = wc_x.&lt;BR /&gt;&amp;nbsp; itemx-route&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = wc_x.&lt;BR /&gt;&amp;nbsp; itemx-plant&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = wc_x.&lt;BR /&gt;&amp;nbsp; itemx-store_loc&amp;nbsp; = wc_x.&lt;BR /&gt;&amp;nbsp; itemx-ref_doc&amp;nbsp;&amp;nbsp;&amp;nbsp; = wc_x.&lt;BR /&gt;&amp;nbsp; itemx-ref_doc_it = wc_x.&lt;BR /&gt;&amp;nbsp; itemx-ref_doc_ca = wc_x.&lt;BR /&gt;&amp;nbsp; itemx-val_contr&amp;nbsp; = wc_x.&lt;BR /&gt;&amp;nbsp; itemx-val_con_i&amp;nbsp; = wc_x.&lt;BR /&gt;&amp;nbsp; APPEND itemx.&lt;/P&gt;&lt;P&gt;&amp;nbsp; schedules-itm_number = item-itm_number.&lt;BR /&gt;&amp;nbsp; schedules-req_qty = item-target_qty.&lt;BR /&gt;&amp;nbsp; APPEND schedules.&lt;/P&gt;&lt;P&gt;&amp;nbsp; schedulesx-itm_number = item-itm_number.&lt;BR /&gt;&amp;nbsp; schedulesx-req_qty = wc_x.&lt;BR /&gt;&amp;nbsp; APPEND schedulesx.&lt;/P&gt;&lt;P&gt;&amp;nbsp; partner-partn_role = 'WE'.&lt;BR /&gt;&amp;nbsp; partner-partn_numb = p_zsd_spl-kunwe (Ship to Party).&lt;BR /&gt;&amp;nbsp; APPEND partner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my example. Sold to party will differ from Shipt to party.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 10:28:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-using-bapi-for-creating-so/m-p/9325404#M1728753</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-02-08T10:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while using BAPI for Creating SO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-using-bapi-for-creating-so/m-p/9325405#M1728754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi srini,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think no need to pass the reference doc no as contract no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/183031" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gurunath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 10:40:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-using-bapi-for-creating-so/m-p/9325405#M1728754</guid>
      <dc:creator>gurunathkumar_dadamu</dc:creator>
      <dc:date>2013-02-08T10:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while using BAPI for Creating SO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-using-bapi-for-creating-so/m-p/9325406#M1728755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a new contract with Sales Unit GAL, Now i can able to create Sales order. &lt;/P&gt;&lt;P&gt;But when i try to created the Contract with Sales unit LB, but i am unable to create SO through BAPI, but manually i can able to create SO. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am passing the reference doc no as contract no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not aware why this happen when Sales Unit is LB. I will try to create Sales Order with sales unit TO also. I will check whether i can able to create SO or Not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 11:00:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-using-bapi-for-creating-so/m-p/9325406#M1728755</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-02-08T11:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while using BAPI for Creating SO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-using-bapi-for-creating-so/m-p/9325407#M1728756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had a problem regarding ship to party. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i run the BAPI to create SO with reference Contract, It should copy the exisiting values from contract and need to create SO. &lt;/P&gt;&lt;P&gt;Eg. Sold to party in Contract is XXXXXX&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ship to party in Contract is YYYYY.&lt;/P&gt;&lt;P&gt;It should copy these values. &lt;/P&gt;&lt;P&gt;But while mainiting the Customer YYYYY, we maintian two Ship to Party - YYYYY and NNNNN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in BAPI, it is picking this NNNNN( from KNVP Table)&amp;nbsp; instead of XXXXX and creating SO. So my Pricing is not calculated. In KNVP table, for Ship to party we have 2 entries ( YYYYY and NNNNN). &lt;/P&gt;&lt;P&gt;The value NNNNN is passing as Sold to Party to created SO. But it is wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly sort my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 12:17:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-using-bapi-for-creating-so/m-p/9325407#M1728756</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-02-08T12:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while using BAPI for Creating SO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-using-bapi-for-creating-so/m-p/9325408#M1728757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srini,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while picking the sols-to-party and ship to party pick the values based on partner function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if partner func = 'AG'.&amp;nbsp; (ship-to-party)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pick the partner value and paas it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if partner func = 'WE' (ship-to-party)&lt;/P&gt;&lt;P&gt;pick the partner value&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gurunath Kumar D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 12:47:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-using-bapi-for-creating-so/m-p/9325408#M1728757</guid>
      <dc:creator>gurunathkumar_dadamu</dc:creator>
      <dc:date>2013-02-08T12:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while using BAPI for Creating SO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-using-bapi-for-creating-so/m-p/9325409#M1728758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First read&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A class="urLnkFunction urVt1" href="https://service.sap.com/sap/support/notes/370988" title="Right mouse click to add this SAP Note to your browser favorites"&gt;&lt;SPAN class="urTxtH1" id="header_data"&gt;Note 370988 - BAPIs in SD: Creation with reference&lt;/SPAN&gt;&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A class="urLnkFunction urVt1" href="https://service.sap.com/sap/support/notes/550726" title="Right mouse click to add this SAP Note to your browser favorites"&gt;&lt;SPAN class="urTxtH1" id="header_data"&gt;Note 550726 - FAQ: BAPIs in sales - restrictions&lt;/SPAN&gt;&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 12:53:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-using-bapi-for-creating-so/m-p/9325409#M1728758</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2013-02-08T12:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while using BAPI for Creating SO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-using-bapi-for-creating-so/m-p/9325410#M1728759</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 am getting same dump while creating Sales Order with refernece to contract, by using BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I am passing all the information required. But at end i am getting the message in RETURN Parameters as (SD Document ********** is Archived or not in Database). And getting as Updated Terminated. When i check in ST22 - its giving as &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error analysis&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; An exception occurred that is explained in detail below.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The exception, which is assigned to class 'CX_SY_OPEN_SQL_DB', was not caught&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; in&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; procedure "OIC_UPDATE_FORMULAE" "(FORM)", nor was it propagated by a RAISING&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clause.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Since the caller of the procedure could not have anticipated that the&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; exception would occur, the current program is terminated.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The reason for the exception is:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you use an ABAP/4 Open SQL array insert to insert a record in&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; the database and that record already exists with the same key,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; this results in a termination.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (With an ABAP/4 Open SQL single record insert in the same error&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; situation, processing does not terminate, but SY-SUBRC is set to 4.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help me to solve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2013 05:03:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-using-bapi-for-creating-so/m-p/9325410#M1728759</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-02-11T05:03:06Z</dc:date>
    </item>
  </channel>
</rss>

