<?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: using Va01 and Va02 in same BDC program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-va01-and-va02-in-same-bdc-program/m-p/2204895#M471481</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/bdc.htm" target="test_blank"&gt;http://www.sap-img.com/bdc.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this link dear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is useful please award some points,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 May 2007 12:02:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-09T12:02:07Z</dc:date>
    <item>
      <title>using Va01 and Va02 in same BDC program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-va01-and-va02-in-same-bdc-program/m-p/2204893#M471479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guru,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do i Design and code a BDC program for Sales Orders that updated records in the sales order screen or will create new sales orders depending on the source data file from external systems using VA01 and VA02 transactions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 11:25:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-va01-and-va02-in-same-bdc-program/m-p/2204893#M471479</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T11:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: using Va01 and Va02 in same BDC program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-va01-and-va02-in-same-bdc-program/m-p/2204894#M471480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;use BDC Session method.&lt;/P&gt;&lt;P&gt;check below example it will help you&lt;/P&gt;&lt;P&gt;if you want to record for two transations then you will use same method as one transation.For example if you want to execute two transations like VA01(sales order) and VL01N(delivery).Here first you can record for both transactions seperately and in the function module calling you will call BDC_INSERT two times&lt;/P&gt;&lt;P&gt;First function module contains Tcode as VA01 and Bdcdata table as data for the va01 transaction and second table contains tcode as VL01N and Bdcdata table conatins data which contains the record data of the delivery recorded data.&lt;/P&gt;&lt;P&gt;PERFORM open_batch_session USING p_sessa.&lt;/P&gt;&lt;P&gt;  LOOP AT ltcap_int&lt;/P&gt;&lt;P&gt;    WHERE NOT tot_inc IS initial.&lt;/P&gt;&lt;P&gt;    ltcap_int-adj = ltcap_int-adj * -1.&lt;/P&gt;&lt;P&gt;    CONCATENATE ltcap_int-fund '/' ltcap_int-cfc INTO zuonr.&lt;/P&gt;&lt;P&gt;    PERFORM fill_bdc_header.&lt;/P&gt;&lt;P&gt;    PERFORM fill_bdc_lines.&lt;/P&gt;&lt;P&gt;    PERFORM post_entries.&lt;/P&gt;&lt;P&gt;    PERFORM insert_batch_session USING 'FB01'.&lt;/P&gt;&lt;P&gt;    ltcap_int-adj = ltcap_int-adj * -1.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;  PERFORM close_batch_session.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;perform start_batch_session using p_sessa.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Budgets&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  WRITE p_fy TO c_fy.&lt;/P&gt;&lt;P&gt;  PERFORM open_batch_session USING p_sessb.&lt;/P&gt;&lt;P&gt;  LOOP AT ltcap_int&lt;/P&gt;&lt;P&gt;    WHERE NOT tot_inc IS initial.&lt;/P&gt;&lt;P&gt;    PERFORM rollup_header.&lt;/P&gt;&lt;P&gt;    PERFORM rollup_line.&lt;/P&gt;&lt;P&gt;    PERFORM rollup_save.&lt;/P&gt;&lt;P&gt;    PERFORM insert_batch_session USING 'FR21'.&lt;/P&gt;&lt;P&gt;    IF NOT ltcap_int-gsef_amt IS INITIAL.&lt;/P&gt;&lt;P&gt;      PERFORM rollup_header_gsef.&lt;/P&gt;&lt;P&gt;      PERFORM rollup_line_gsef.&lt;/P&gt;&lt;P&gt;      PERFORM rollup_save.&lt;/P&gt;&lt;P&gt;      PERFORM insert_batch_session USING 'FR21'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;  PERFORM close_batch_session.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;perform start_batch_session using p_sessb.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;We can process more than 1 transactions in session method.&lt;/P&gt;&lt;P&gt;For this we will create the internal tables equilant to transactions and &lt;/P&gt;&lt;P&gt;Between BDC_open_group and BDC_close_group we will call the BDC_Insert the no.of transactions times and populate the internal tables which contains the data pertaining to diffrent transactions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 11:35:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-va01-and-va02-in-same-bdc-program/m-p/2204894#M471480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T11:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: using Va01 and Va02 in same BDC program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-va01-and-va02-in-same-bdc-program/m-p/2204895#M471481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/bdc.htm" target="test_blank"&gt;http://www.sap-img.com/bdc.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this link dear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is useful please award some points,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 12:02:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-va01-and-va02-in-same-bdc-program/m-p/2204895#M471481</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T12:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: using Va01 and Va02 in same BDC program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-va01-and-va02-in-same-bdc-program/m-p/2204896#M471482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u can call , but without any dependency of on each other  calls ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;means ---&amp;gt;&lt;/P&gt;&lt;P&gt;create SO --&amp;gt;so1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;change So---&amp;gt;SO1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u cannt do both create and change at a time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 12:07:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-va01-and-va02-in-same-bdc-program/m-p/2204896#M471482</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T12:07:39Z</dc:date>
    </item>
  </channel>
</rss>

