<?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 problem  in recording  va02 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-recording-va02/m-p/1720849#M314637</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;&lt;/P&gt;&lt;P&gt;Am using recording to create sales order with reference to another SO,delete all the items,and upload the new items with several new conditions for the new sales order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is while Iam uploading the new items,the second item overwriting the first one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest me the cause,or post a sample of the&lt;/P&gt;&lt;P&gt;recording code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am posting the part of the recording code used for generating the new-items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_transaction using 'VA01'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMV45A' '0102'.    &lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'          &lt;/P&gt;&lt;P&gt;                                         'VBAK-VBELN'.         &lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'          &lt;/P&gt;&lt;P&gt;                                          '=ENT2'.              &lt;/P&gt;&lt;P&gt;loop at itab.                                       &lt;/P&gt;&lt;P&gt;  perform bdc_dynpro      using 'SAPMV45A' '4001'.  &lt;/P&gt;&lt;P&gt;  perform bdc_field       using 'BDC_OKCODE'        &lt;/P&gt;&lt;P&gt;                                          '=POAN'.            &lt;/P&gt;&lt;P&gt;  perform bdc_field       using 'BDC_CURSOR'        &lt;/P&gt;&lt;P&gt;                                          ' RV45A-KWMENG(01)'. &lt;/P&gt;&lt;P&gt;  perform bdc_field       using 'VBAP-MATNR(01)'    &lt;/P&gt;&lt;P&gt;                                           itab-matnr.         &lt;/P&gt;&lt;P&gt;  perform bdc_field       using 'RV45A-KWMENG(01)'  &lt;/P&gt;&lt;P&gt;                                           itab-kwmeng.        &lt;/P&gt;&lt;P&gt;  perform bdc_dynpro      using 'SAPMV45A' '4001'.  &lt;/P&gt;&lt;P&gt;  perform bdc_field       using 'BDC_OKCODE'        &lt;/P&gt;&lt;P&gt;                                           '=POAN'.   &lt;/P&gt;&lt;P&gt; perform bdc_field       using 'BDC_CURSOR'      &lt;/P&gt;&lt;P&gt;                                         'VBAP-MATNR(02)'. &lt;/P&gt;&lt;P&gt; perform bdc_dynpro      using 'SAPMV45A' '4001'.&lt;/P&gt;&lt;P&gt; perform bdc_field       using 'BDC_OKCODE'      &lt;/P&gt;&lt;P&gt;                                         '=POPO'.          &lt;/P&gt;&lt;P&gt; perform bdc_field       using 'BDC_CURSOR'      &lt;/P&gt;&lt;P&gt;                                         'VBAP-MATNR(04)'. &lt;/P&gt;&lt;P&gt;         &lt;/P&gt;&lt;P&gt; Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mahendhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Nov 2006 06:20:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-22T06:20:54Z</dc:date>
    <item>
      <title>problem  in recording  va02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-recording-va02/m-p/1720849#M314637</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;&lt;/P&gt;&lt;P&gt;Am using recording to create sales order with reference to another SO,delete all the items,and upload the new items with several new conditions for the new sales order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is while Iam uploading the new items,the second item overwriting the first one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest me the cause,or post a sample of the&lt;/P&gt;&lt;P&gt;recording code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am posting the part of the recording code used for generating the new-items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_transaction using 'VA01'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMV45A' '0102'.    &lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'          &lt;/P&gt;&lt;P&gt;                                         'VBAK-VBELN'.         &lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'          &lt;/P&gt;&lt;P&gt;                                          '=ENT2'.              &lt;/P&gt;&lt;P&gt;loop at itab.                                       &lt;/P&gt;&lt;P&gt;  perform bdc_dynpro      using 'SAPMV45A' '4001'.  &lt;/P&gt;&lt;P&gt;  perform bdc_field       using 'BDC_OKCODE'        &lt;/P&gt;&lt;P&gt;                                          '=POAN'.            &lt;/P&gt;&lt;P&gt;  perform bdc_field       using 'BDC_CURSOR'        &lt;/P&gt;&lt;P&gt;                                          ' RV45A-KWMENG(01)'. &lt;/P&gt;&lt;P&gt;  perform bdc_field       using 'VBAP-MATNR(01)'    &lt;/P&gt;&lt;P&gt;                                           itab-matnr.         &lt;/P&gt;&lt;P&gt;  perform bdc_field       using 'RV45A-KWMENG(01)'  &lt;/P&gt;&lt;P&gt;                                           itab-kwmeng.        &lt;/P&gt;&lt;P&gt;  perform bdc_dynpro      using 'SAPMV45A' '4001'.  &lt;/P&gt;&lt;P&gt;  perform bdc_field       using 'BDC_OKCODE'        &lt;/P&gt;&lt;P&gt;                                           '=POAN'.   &lt;/P&gt;&lt;P&gt; perform bdc_field       using 'BDC_CURSOR'      &lt;/P&gt;&lt;P&gt;                                         'VBAP-MATNR(02)'. &lt;/P&gt;&lt;P&gt; perform bdc_dynpro      using 'SAPMV45A' '4001'.&lt;/P&gt;&lt;P&gt; perform bdc_field       using 'BDC_OKCODE'      &lt;/P&gt;&lt;P&gt;                                         '=POPO'.          &lt;/P&gt;&lt;P&gt; perform bdc_field       using 'BDC_CURSOR'      &lt;/P&gt;&lt;P&gt;                                         'VBAP-MATNR(04)'. &lt;/P&gt;&lt;P&gt;         &lt;/P&gt;&lt;P&gt; Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mahendhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2006 06:20:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-recording-va02/m-p/1720849#M314637</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-22T06:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: problem  in recording  va02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-recording-va02/m-p/1720850#M314638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mahendhar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each loop pass you have to increment the record position, have highlighted the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_CURSOR' &lt;/P&gt;&lt;P&gt;' RV45A-KWMENG&amp;lt;b&amp;gt;(01)&amp;lt;/b&amp;gt;'. &lt;/P&gt;&lt;P&gt;perform bdc_field using 'VBAP-MATNR&amp;lt;b&amp;gt;(01)&amp;lt;/b&amp;gt;' &lt;/P&gt;&lt;P&gt;itab-matnr. &lt;/P&gt;&lt;P&gt;perform bdc_field using 'RV45A-KWMENG&amp;lt;b&amp;gt;(01)'&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;itab-kwmeng.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would advice you to consider doing the same via BAPI: BAPI_SALESORDER_CREATEFROMDAT2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2006 06:30:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-recording-va02/m-p/1720850#M314638</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-22T06:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: problem  in recording  va02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-recording-va02/m-p/1720851#M314639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very Simple... It is the case of table controls...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the statement u have written - perform bdc_field using 'VBAP-MATNR(01)' &lt;/P&gt;&lt;P&gt;here the (01) says that u are entering in the 1st row. This no has to change every time u are entering a new row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either use some BAPI to create sales order or if you want to do BDC then u will have to take care of table controls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To know more about table controls in BDC refer to this thread... &lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2762712"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have explained the funda and also have given an example in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will help yu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz reward points for correct and helpful answers...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2006 08:03:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-recording-va02/m-p/1720851#M314639</guid>
      <dc:creator>former_member69765</dc:creator>
      <dc:date>2006-11-22T08:03:03Z</dc:date>
    </item>
  </channel>
</rss>

