<?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 creating sales order using BAPI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-creating-sales-order-using-bapi/m-p/7924598#M1599063</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;This is a custom condition base value routine (You can check the routine in VOFM).  These routine are used in pricing procedure in your project. The dump is due to data conversion problem ( overflow).  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you are seeing a difference of value when you are doing a BAPI and VA01 for XKWERT for the same data you are using. &lt;/P&gt;&lt;P&gt;For that you need check the value XKWERT in debug mode step by step where the value changes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Jun 2011 21:14:36 GMT</pubDate>
    <dc:creator>atul_mohanty</dc:creator>
    <dc:date>2011-06-24T21:14:36Z</dc:date>
    <item>
      <title>Dump while creating sales order using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-creating-sales-order-using-bapi/m-p/7924575#M1599040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a sales order in my alv report using BAPI_SALESORDER_CREATEFROMDAT2. I get a dump while executing the program. Please suggest me where I am going wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;----------------------------------------------------------------------------------------------------
|Source Code Extract                                                                               |
----------------------------------------------------------------------------------------------------
|Line |SourceCde                                                                                |
----------------------------------------------------------------------------------------------------
|    1|FORM FRM_KOND_BASIS_604.                                                                    |
|    2|*{   INSERT         DEVK910738                                        1                     |
|    3|                                                                                |
|    4|data:  zuomqtyo   LIKE ekpo-menge,                                                          |
|    5|       zuomqtyn   LIKE ekpo-menge,                                                          |
|    6|       zqty1      type i,                                                                   |
|    7|       zqty2(11)   type n.                                                                  |
|    8|                                                                                |
|    9|** Round up billing qty                                                                     |
|   10|   if komp-zzLTKZA ne 'VAR'.                                                                |
|   11|                                                                                |
|&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;|      zqty1   = xkwert.                                                                     |
|   13|      compute zqty2   = zqty1 / 1000.                                                       |
|   14|      xkwert = zqty2 * 1000.                                                                |
|   15|                                                                                |
|   16|     exit.                                                                                |
|   17|   endif.                                                                                |
|   18|                                                                                |
|   19|                                                                                |
|   20|** Samples                                                                                |
|   21|                                                                                |
|   22|  if komp-MATKL = '5400'.                                                                   |
|   23|                                                                                |
|   24|    check not xkomv-kmein is initial.                                                       |
|   25|    check not komp-vrkme  is initial.                                                       |
|   26|                                                                                |
|   27|** Make sure base is correct when sales unit and pricing unit differ                        |
|   28|   if komp-vrkme ne xkomv-kmein.                                                            |
|   29|                                                                                |
|   30|     zuomqtyo = komp-MGAME.                                                                 |
|   31|                                                                                |
----------------------------------------------------------------------------------------------------&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 14:49:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-creating-sales-order-using-bapi/m-p/7924575#M1599040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-24T14:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while creating sales order using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-creating-sales-order-using-bapi/m-p/7924576#M1599041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nani, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There could be a problem with the data type of the fields you are using. Could you please copy/paste the Dump?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ernesto.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 14:52:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-creating-sales-order-using-bapi/m-p/7924576#M1599041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-24T14:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while creating sales order using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-creating-sales-order-using-bapi/m-p/7924577#M1599042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ernesto,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. I am not able to copy/paste the whole dump because it exceeds maximum characters. Please let me know what portion of dump analysis do I need to provide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 15:24:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-creating-sales-order-using-bapi/m-p/7924577#M1599042</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-24T15:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while creating sales order using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-creating-sales-order-using-bapi/m-p/7924578#M1599043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please copy the explanation part. There is a part where it says ERROR ANALYSIS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 15:30:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-creating-sales-order-using-bapi/m-p/7924578#M1599043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-24T15:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while creating sales order using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-creating-sales-order-using-bapi/m-p/7924579#M1599044</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;It seems, the issue is with the below line of your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         zqty1   = xkwert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you make the data tpe of 'Zqty1' same as data type of 'xkwert' refering to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know, if it helps you. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 15:31:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-creating-sales-order-using-bapi/m-p/7924579#M1599044</guid>
      <dc:creator>atul_mohanty</dc:creator>
      <dc:date>2011-06-24T15:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while creating sales order using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-creating-sales-order-using-bapi/m-p/7924580#M1599045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The code is dumping in a custom 604 pricing condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should mean that a std VA01 transaction dumps as well.  Please verify.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If VA01 dumps, I would go to the developer that created or applied recent changes to this pricing condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 15:37:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-creating-sales-order-using-bapi/m-p/7924580#M1599045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-24T15:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while creating sales order using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-creating-sales-order-using-bapi/m-p/7924581#M1599046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ernesto,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the error analysis part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
----------------------------------------------------------------------------------------------------
|Error analysis                                                                                |
|    An exception occurred that is explained in detail below.                                      |
|    The exception, which is assigned to class 'CX_SY_CONVERSION_OVERFLOW', was not                |
|     caught in                                                                                |
|    procedure "FRM_KOND_BASIS_604" "(FORM)", nor was it propagated by a RAISING                   |
|     clause.                                                                                |
|    Since the caller of the procedure could not have anticipated that the                         |
|    exception would occur, the current program is terminated.                                     |
|    The reason for the exception is:                                                              |
|    In the current arithmetic operation with operands of type P an overflow                       |
|    has been detected. Possible causes are:                                                       |
|                                                                                |
|    1. The result field of type P is too small to store the result.                               |
|                                                                                |
|    2. The result or an intermediate result has more than 31 decimal places.                      |
|                                                                                |
|                                                                                |
----------------------------------------------------------------------------------------------------&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 16:00:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-creating-sales-order-using-bapi/m-p/7924581#M1599046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-24T16:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while creating sales order using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-creating-sales-order-using-bapi/m-p/7924582#M1599047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Atul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. That is the standard SAP code. It is not the custom code which I wrote.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 16:02:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-creating-sales-order-using-bapi/m-p/7924582#M1599047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-24T16:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while creating sales order using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-creating-sales-order-using-bapi/m-p/7924583#M1599048</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;Thanks for that. As it was said before, make sure both fields have the same type. The type of the target field is smaller than the type of the source field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ernesto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 16:02:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-creating-sales-order-using-bapi/m-p/7924583#M1599048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-24T16:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while creating sales order using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-creating-sales-order-using-bapi/m-p/7924584#M1599049</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;Make variable zqty1 type kwert instead of type "i". These must be the same type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ernesto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 16:05:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-creating-sales-order-using-bapi/m-p/7924584#M1599049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-24T16:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while creating sales order using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-creating-sales-order-using-bapi/m-p/7924585#M1599050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. When I create a sales order thru VA01. I am not getting a dump. It gets created sucessfully. I really don't have idea why I am getting such type of dump while creating it thru alv program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 16:05:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-creating-sales-order-using-bapi/m-p/7924585#M1599050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-24T16:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while creating sales order using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-creating-sales-order-using-bapi/m-p/7924586#M1599051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set a breakpoint at this statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if komp-zzLTKZA ne 'VAR'.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now run VA01 - does the debugger enter into this IF when running from VA01 - I am assuming that it is not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 16:07:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-creating-sales-order-using-bapi/m-p/7924586#M1599051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-24T16:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while creating sales order using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-creating-sales-order-using-bapi/m-p/7924587#M1599052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes. My breakpoint is entering into the IF statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 16:15:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-creating-sales-order-using-bapi/m-p/7924587#M1599052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-24T16:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while creating sales order using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-creating-sales-order-using-bapi/m-p/7924588#M1599053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then investigate the difference in the XKWERT value when run from VA01 versus your BAPI call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The answer is there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 16:16:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-creating-sales-order-using-bapi/m-p/7924588#M1599053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-24T16:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while creating sales order using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-creating-sales-order-using-bapi/m-p/7924589#M1599054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I debug thru VA01.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
KOMP-ZZLTKZA = NOM
XKWERT = 48000.00
ZQTY1 = 4800000
ZQTY2 = 00000004800&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I debug thru BAPI.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
KOMP-ZZLTKZA = NOM
XKWERT = 38400000.00
It gives a dump right after this.
ZQTY1 = 0
ZQTY2 = 00000000000&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am specifying same order quantity and Unit of measure in VA01 as well as my BAPI. I really don't have have idea why there is a value difference in XKWERT field in VA01 versus my BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advice/suggest me. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 16:39:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-creating-sales-order-using-bapi/m-p/7924589#M1599054</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-24T16:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while creating sales order using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-creating-sales-order-using-bapi/m-p/7924590#M1599055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nani, There was some modification made through " *{   INSERT         DEVK910738 ". Its a custom code. Check last changed by the Include of the FORM FRM_KOND_BASIS_604..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 16:41:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-creating-sales-order-using-bapi/m-p/7924590#M1599055</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-24T16:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while creating sales order using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-creating-sales-order-using-bapi/m-p/7924591#M1599056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not changed recently. The code was changed in 2003. I checked this before opening the thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 16:45:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-creating-sales-order-using-bapi/m-p/7924591#M1599056</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-24T16:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while creating sales order using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-creating-sales-order-using-bapi/m-p/7924592#M1599057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I replied to your response to Atul&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nani wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Thanks for the reply. That is the standard SAP code. It is not the custom code which I wrote.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 16:56:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-creating-sales-order-using-bapi/m-p/7924592#M1599057</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-24T16:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while creating sales order using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-creating-sales-order-using-bapi/m-p/7924593#M1599058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need to see the BAPI call itself and the loading of the internal tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 17:40:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-creating-sales-order-using-bapi/m-p/7924593#M1599058</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-24T17:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dump while creating sales order using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-creating-sales-order-using-bapi/m-p/7924594#M1599059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what I am doing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*Assign Header Data And Move To Header Data Final Table
          GS_ORDERHEADERIN-DOC_TYPE            = GC_AUART.
          GS_ORDERHEADERIN-SALES_ORG           = GC_SORG.
          GS_ORDERHEADERIN-DISTR_CHAN          = GC_DISTC.
          GS_ORDERHEADERIN-DIVISION            = GC_DIVI.
          GS_ORDERHEADERIN-ORD_REASON          = GC_AUGRU.
          GS_ORDERHEADERIN-REQ_DATE_H          = WA-USAGE_DATE.
          GS_ORDERHEADERIN-PURCH_DATE          = WA-USAGE_DATE.
          GS_ORDERHEADERIN-PURCH_NO_C          = WA-USAGE_DOC.
         
*Assign Header Data And Move To Header Data Final Table
          GS_ORDERHEADERINX-DOC_TYPE           = GC_FLAG.
          GS_ORDERHEADERINX-SALES_ORG          = GC_FLAG.
          GS_ORDERHEADERINX-DISTR_CHAN         = GC_FLAG.
          GS_ORDERHEADERINX-DIVISION           = GC_FLAG.
          GS_ORDERHEADERINX-ORD_REASON         = GC_FLAG.
          GS_ORDERHEADERINX-REQ_DATE_H         = GC_FLAG.
          GS_ORDERHEADERINX-PURCH_DATE         = GC_FLAG.
          GS_ORDERHEADERINX-PURCH_NO_C         = GC_FLAG.

*ASSIGN ITEMS DATA AND MOVE TO ITEMS DATA FINAL TABLE
        GS_ORDERITEMSIN-ITM_NUMBER         = WA-POSNR.
        GS_ORDERITEMSIN-MATERIAL           = WA-MATERIAL.
        GS_ORDERITEMSIN-TARGET_QTY         = WA-EXT_QTY.      "EXT_QTY is of type LFIMG
        GS_ORDERITEMSIN-TARGET_QU          = WA-EXT_UOM.      "EXT_UOM is of type VRKME
        APPEND GS_ORDERITEMSIN TO GT_ORDERITEMSIN.
        CLEAR GS_ORDERITEMSIN.

*Assign Items Data And Move To Items Data Final Table
        GS_ORDERITEMSINX-ITM_NUMBER        = WA-POSNR.
        GS_ORDERITEMSINX-MATERIAL          = GC_FLAG.
        GS_ORDERITEMSINX-TARGET_QTY        = GC_FLAG.
        GS_ORDERITEMSINX-TARGET_QU         = GC_FLAG.
        APPEND GS_ORDERITEMSINX TO GT_ORDERITEMSINX.
        CLEAR GS_ORDERITEMSINX.

*Assign Schedule Lines Data And Move To Schedule Lines Final Table
        GS_ORDER_SCHEDULES_IN-ITM_NUMBER   = WA-POSNR.
        GS_ORDER_SCHEDULES_IN-REQ_DATE     = WA-USAGE_DATE.
        GS_ORDER_SCHEDULES_IN-REQ_QTY      = WA-EXT_QTY.      "EXT_QTY is of type LFIMG
        APPEND GS_ORDER_SCHEDULES_IN TO GT_ORDER_SCHEDULES_IN.
        CLEAR  GS_ORDER_SCHEDULES_IN.

*Assign Schedule Lines Data And Move To Schedule Lines Final Table
        GS_ORDER_SCHEDULES_INX-ITM_NUMBER  = WA-POSNR.
        GS_ORDER_SCHEDULES_INX-REQ_DATE    = GC_FLAG.
        GS_ORDER_SCHEDULES_INX-REQ_QTY     = GC_FLAG.
        APPEND GS_ORDER_SCHEDULES_INX TO GT_ORDER_SCHEDULES_INX.
        CLEAR  GS_ORDER_SCHEDULES_INX.

*Assign Sold-To-Partner Data And Move To Final Partners Table
        GS_ORDERPARTNERS-PARTN_ROLE          = GC_SP.
        GS_ORDERPARTNERS-PARTN_NUMB          = GV_SOLD.
        APPEND GS_ORDERPARTNERS TO GT_ORDERPARTNERS.
        CLEAR  GS_ORDERPARTNERS.

*Assign Ship-To-Partner Data And Move To Partners Table
        GS_ORDERPARTNERS-PARTN_ROLE          = GC_SH.
        GS_ORDERPARTNERS-PARTN_NUMB          = GV_SHIP.
        APPEND GS_ORDERPARTNERS TO GT_ORDERPARTNERS.
        CLEAR  GS_ORDERPARTNERS.

*Clear Global Variable Field Of Sales Document
          CLEAR:GV_SALESDOCUMENT.

"Right after pressing F6 button after this. It gives me dump.
*Call Function Module To Create Sales Order
          CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
            EXPORTING
              ORDER_HEADER_IN     = GS_ORDERHEADERIN
              ORDER_HEADER_INX    = GS_ORDERHEADERINX
            IMPORTING
              SALESDOCUMENT       = GV_SALESDOCUMENT
            TABLES
              ORDER_ITEMS_IN      = GT_ORDERITEMSIN
              ORDER_ITEMS_INX     = GT_ORDERITEMSINX
              ORDER_SCHEDULES_IN  = GT_ORDER_SCHEDULES_IN
              ORDER_SCHEDULES_INX = GT_ORDER_SCHEDULES_INX
              ORDER_PARTNERS      = GT_ORDERPARTNERS
              RETURN              = GT_BAPIRETURN.

IF SY-SUBRC = 0.
*Call Function Module For BAPI Commit
            CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
              EXPORTING
                WAIT = GC_FLAG.

ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All my BAPI tables have been filled with required data in them. But, still it is giving me a dump. &lt;/P&gt;&lt;P&gt;I would really appreciate if some one could suggest me where I am going wrong. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2011 18:04:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-while-creating-sales-order-using-bapi/m-p/7924594#M1599059</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-24T18:04:03Z</dc:date>
    </item>
  </channel>
</rss>

