<?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: Reg: BDC for Multiple transaction, in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-bdc-for-multiple-transaction/m-p/2937357#M692290</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use session methods to use two Tcodes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the details about session mthod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can open a group, code for first BDC insert into the group, code for second BDC, insert to the same group and then close group. There are function module to open, insert and close a group.&lt;/P&gt;&lt;P&gt;&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="4065671"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you can use single file but you need to add a differentiator fields in the beginning of each record to know record belongs to which Transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to simplify process, i will suggest you to have 2 separate files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Oct 2007 14:37:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-18T14:37:03Z</dc:date>
    <item>
      <title>Reg: BDC for Multiple transaction,</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-bdc-for-multiple-transaction/m-p/2937355#M692288</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 have one requirement .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need develop bdc for hiring the new employee so in this bdc i need use two t codes &lt;/P&gt;&lt;P&gt;1.PA40.&lt;/P&gt;&lt;P&gt;2. PP01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please can any tell me how use two tcode in one bdc .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to write the  bdc with two T codes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if possible please send some sample code so that i can anlyze .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will create bdc for my  requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here my question are.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. If it is possible to create BDC with multople tcodes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how maintain the flat file.???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. is it one flat file or two  flat file ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest me  how solve this .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Adavnce.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 14:32:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-bdc-for-multiple-transaction/m-p/2937355#M692288</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T14:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: BDC for Multiple transaction,</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-bdc-for-multiple-transaction/m-p/2937356#M692289</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;Follow this skeleton logic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;open_group for tran1&lt;/P&gt;&lt;P&gt;loop at it_data1.&lt;/P&gt;&lt;P&gt;*Populate bddata structures&lt;/P&gt;&lt;P&gt;bdc_insert. for tran1&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;close_group. for tran 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;open_group for tran2&lt;/P&gt;&lt;P&gt;loop at it_data2.&lt;/P&gt;&lt;P&gt;*Populate bddata structures&lt;/P&gt;&lt;P&gt;bdc_insert. for tran2&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;close_group. for tran 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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>Thu, 18 Oct 2007 14:36:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-bdc-for-multiple-transaction/m-p/2937356#M692289</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T14:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: BDC for Multiple transaction,</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-bdc-for-multiple-transaction/m-p/2937357#M692290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use session methods to use two Tcodes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the details about session mthod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can open a group, code for first BDC insert into the group, code for second BDC, insert to the same group and then close group. There are function module to open, insert and close a group.&lt;/P&gt;&lt;P&gt;&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="4065671"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you can use single file but you need to add a differentiator fields in the beginning of each record to know record belongs to which Transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to simplify process, i will suggest you to have 2 separate files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2007 14:37:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-bdc-for-multiple-transaction/m-p/2937357#M692290</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-18T14:37:03Z</dc:date>
    </item>
  </channel>
</rss>

