<?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: Bdc queries in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-queries/m-p/1157474#M119323</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. under one group you cannot use two trxns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. you can use, by writing two different BDC's inone program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. yes, you can use both this is possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jan 2006 06:31:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-01-27T06:31:50Z</dc:date>
    <item>
      <title>Bdc queries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-queries/m-p/1157471#M119320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;Can any body give the answers to the follwong BDC queries?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.is it possible to incude two transactions with one group name  in one program in session method?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.Suppose we  transfer data through BDC from leagacy to SAP and there is some duplicate data in legacy system but we don't want this in SAP system .So how can we check that this data is  already exist?  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.Can we use two transaction code in one BDC like XK01 &amp;amp; XD01 if yes how? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4.Can we use Session method &amp;amp; Call transaction both in one BDC if yes &lt;/P&gt;&lt;P&gt;please give me example and scenerio  where we use this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2006 06:22:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-queries/m-p/1157471#M119320</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-27T06:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Bdc queries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-queries/m-p/1157472#M119321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. .is it possible to incude two transactions with one group name in one program in session method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ABSOLUTELY NO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. &lt;/P&gt;&lt;P&gt;Suppose we transfer data through BDC from leagacy to SAP and there is some duplicate data in legacy system but we don't want this in SAP system .So how can we check that this data is already exist? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have to check this&lt;/P&gt;&lt;P&gt;in our program&lt;/P&gt;&lt;P&gt;for that particular record&lt;/P&gt;&lt;P&gt;explicitly&lt;/P&gt;&lt;P&gt;before populating the bdc table&lt;/P&gt;&lt;P&gt;for that data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. &lt;/P&gt;&lt;P&gt;Can we use two transaction code in one BDC like XK01 &amp;amp; XD01 if yes how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No we cannot do in one bdc.&lt;/P&gt;&lt;P&gt;Ya, but we can do in one program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. &lt;/P&gt;&lt;P&gt;Can we use Session method &amp;amp; Call transaction both in one BDC if yes &lt;/P&gt;&lt;P&gt;please give me example and scenerio where we use this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ya, logically we can use &lt;/P&gt;&lt;P&gt;by writing code for sesesion and call transaction&lt;/P&gt;&lt;P&gt;sepearately&lt;/P&gt;&lt;P&gt;in the same program.&lt;/P&gt;&lt;P&gt;BUT,&lt;/P&gt;&lt;P&gt;practically this kind is never used.&lt;/P&gt;&lt;P&gt;BCOS,&lt;/P&gt;&lt;P&gt;CALL Transaction will update data,&lt;/P&gt;&lt;P&gt;immediately,&lt;/P&gt;&lt;P&gt;whereas,&lt;/P&gt;&lt;P&gt;for session,&lt;/P&gt;&lt;P&gt;we have to SEPARATELY run the session,&lt;/P&gt;&lt;P&gt;so that data is updated.&lt;/P&gt;&lt;P&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2006 06:27:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-queries/m-p/1157472#M119321</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-27T06:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Bdc queries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-queries/m-p/1157473#M119322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1.It is not possible to incude two transactions with one group name in one program in session method&lt;/P&gt;&lt;P&gt;4.Call transaction processes the data immediately whereas you can schedule it later in Session method.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2006 06:27:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-queries/m-p/1157473#M119322</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-27T06:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Bdc queries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-queries/m-p/1157474#M119323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. under one group you cannot use two trxns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. you can use, by writing two different BDC's inone program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. yes, you can use both this is possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2006 06:31:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-queries/m-p/1157474#M119323</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-27T06:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Bdc queries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-queries/m-p/1157475#M119324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope these links will give you an idea of what BDC is..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case the field alredy exists in the SAP ..it will be checked automatically..in case it is primay in the table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm" target="test_blank"&gt;http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/question-about-bdc-program.htm" target="test_blank"&gt;http://www.sap-img.com/abap/question-about-bdc-program.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/learning-bdc-programming.htm" target="test_blank"&gt;http://www.sap-img.com/abap/learning-bdc-programming.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2006 06:32:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-queries/m-p/1157475#M119324</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-27T06:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Bdc queries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-queries/m-p/1157476#M119325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) and 3) Yes - it's quite easy to use different transactions in one session. Generally, you do this if you have similar transactions that you want to call in different situations:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  LOAD_BUDGET
*&amp;amp;---------------------------------------------------------------------*
form load_budget.
  perform open_batch_session using job_name.
* add supplements to batch input session -------------------------------
  loop at raw_int
  where type = 'S'.
    perform rollup_header.
    perform rollup_line.
    perform rollup_save.
    perform insert_batch_session using 'FM9G'.
  endloop.
* add returns to batch input session -----------------------------------
  loop at raw_int
  where type = 'R'.
    perform rollup_header.
    perform rollup_line_r.
    perform rollup_save.
    perform insert_batch_session using 'FM9I'.
  endloop.
* close and execute batch input session --------------------------------
  perform close_batch_session.
* PERFORM START_BATCH_SESSION USING JOB_NAME.
endform.                               " LOAD_BUDGET
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;4) Also yes - if you have a call transaction session that fails for some reason, you can turn around and put the transaction into a session. This gives the user an opportunity to analyze and fix the problem:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp; call transaction and capture results
  clear sy_int.
  call transaction 'FM28' using bdcdata mode p_dmode update 'S'
                          messages into messtab.
  move-corresponding sy to sy_int.
  if sy_int-subrc = 0.                 "fails
    tran_int-subrc = 0.
  else.
    tran_int-subrc = 1.
    if p_test ne 'X'.
      perform batch_input using 'FM28'.
    endif.
  endif.
  if p_test ne 'X'.
    move sy-msgv1 to tran_int-doc#.
  endif.
  if p_test ne 'X'.
    move sy-msgv1 to tran_int-doc#.
  endif.
  perform get_message using sy_int
                      changing tran_int-text.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2006 15:35:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-queries/m-p/1157476#M119325</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-27T15:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Bdc queries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-queries/m-p/1157477#M119326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bdc queries &lt;/P&gt;&lt;P&gt;Posted: Jan 27, 2006 1:22 AM  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.It is not possible to have two transactions with one group name in session method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.Read the database table with the available key and remove those records from the legacy file to avoid duplicate records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.First Call transaction XK01 after completing this call transaction XD01 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4.You can use  Session method &amp;amp; Call transaction both in one BDC program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call transaction method for XK01&lt;/P&gt;&lt;P&gt;Example . Call transaction XK01&lt;/P&gt;&lt;P&gt;                    using bdcdata&lt;/P&gt;&lt;P&gt;                     mode   ctumode&lt;/P&gt;&lt;P&gt;                     update cupdate&lt;/P&gt;&lt;P&gt;                     messages into messtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Session Method use function modules for transaction XD01&lt;/P&gt;&lt;P&gt;  call function 'BDC_OPEN_GROUP'&lt;/P&gt;&lt;P&gt;  call function 'BDC_INSERT'&lt;/P&gt;&lt;P&gt;  call function 'BDC_CLOSE_GROUP'.&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;Regards,&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2006 16:02:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-queries/m-p/1157477#M119326</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-27T16:02:25Z</dc:date>
    </item>
  </channel>
</rss>

