<?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 recording in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-recording/m-p/2631454#M605095</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 recoding allows a user to record keystrokes and other keyboard actions so that they may be incorporated into a BDC session. While any session may be recorded, it does not mean that the recording can be used to create a session. Within a recording individual screens may not be allowed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at the below link&lt;/P&gt;&lt;P&gt;&lt;A href="http://goldenink.com/abap/shdb.html" target="test_blank"&gt;http://goldenink.com/abap/shdb.html&lt;/A&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;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Aug 2007 05:50:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-06T05:50:15Z</dc:date>
    <item>
      <title>BDC recording</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-recording/m-p/2631450#M605091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;what is BDC recording exactly?I have to upload GL master data from legacy system.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2007 05:46:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-recording/m-p/2631450#M605091</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-06T05:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: BDC recording</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-recording/m-p/2631451#M605092</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;Recording in BDC means that suppose you want to update some values in MM01 transaction and these values are in a flat file , so first start the recording from transaction sm35 an go new recording, here give the transaction name (e.g.-MM01) , and when the recording ends then go to the programme, it will give you the full recotding code , apply for these code in your original programme and then you will update the new values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information go through the following l-----&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data Transfer Methods &lt;/P&gt;&lt;P&gt;You can use the following methods to transfer data:&lt;/P&gt;&lt;P&gt;&amp;#149; Direct input: With direct input, the SAP function modules execute the consistency checks. However with batch input, these consistency checks are executed with the help of the screens. This means that direct input has considerable performance advantages. &lt;/P&gt;&lt;P&gt;&amp;#149; CALL TRANSACTION: Data consistency check with the help of screen logic. &lt;/P&gt;&lt;P&gt;&amp;#149; Batch input with batch input sessions : Data consistency check with the help of screen logic.&lt;/P&gt;&lt;P&gt;Batch Input &lt;/P&gt;&lt;P&gt;Batch input is a standard technique for transferring large sets of data into the R/3 System. Here the transaction flow is simulated and the data is transferred as if it were entered online. The advantage of this is that all relevant checks of the transaction are executed, thereby ensuring that the data is consistent.&lt;/P&gt;&lt;P&gt;The batch input process is divided into two phases:&lt;/P&gt;&lt;P&gt;1. The data transfer program creates a batch input session that contains all the relevant data. &lt;/P&gt;&lt;P&gt;2. The batch input session is processed and the data it contains is transferred into the R/3 System.&lt;/P&gt;&lt;P&gt;The majority of SAP standard data transfer programs use the batch input technique. The data transfer program creates a batch input session which is processed later. Batch input sessions can be processed in various ways:&lt;/P&gt;&lt;P&gt;&amp;#149; In the foreground&lt;/P&gt;&lt;P&gt;&amp;#149; In the background&lt;/P&gt;&lt;P&gt;&amp;#149; During processing, with error display&lt;/P&gt;&lt;P&gt;You should process batch input sessions in the foreground or using the error display if you want to test the data transfer. If you want to execute the data transfer or test its performance, you should process the sessions in the background.&lt;/P&gt;&lt;P&gt;You can find detailed information on batch input in the Basis documentation BC - Basis Programming Interfaces under Transferring Data with Batch Input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Difference between Batch Input and CALL TRANSACTION&lt;/P&gt;&lt;P&gt;If the direct input cannot be used for your task, this makes creating a data transfer program easier since the underlying transactions ensure that the data consistency checks are executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the case of an error during the data transfer (if data records are inconsistent, for example), you can restart the transfer at the point in the program where the error occurred. &lt;/P&gt;&lt;P&gt;Data Transfer Overview&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Batch input methods&lt;/P&gt;&lt;P&gt;With the batch input method, an ABAP program reads the external data that is to be entered in the R/3 System and stores the data in a "batch input session". The session records the actions that are required to transfer data into the system using normal SAP transactions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the program has generated the session, you can run the session to execute the SAP transactions in it. You can explicitly start and monitor a session with the batch input management function (by choosing System &amp;amp;#61614; Services &amp;amp;#61614; Batch input), or have the session run in the background processing system.&lt;/P&gt;&lt;P&gt;CALL TRANSACTION methods&lt;/P&gt;&lt;P&gt;In the second method, your program uses the ABAP statement CALL TRANSACTION USING to run an SAP transaction. External data does not have to be deposited in a session for later processing. Instead, the entire batch input process takes place inline in your program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The information in Choosing Data Transfer Methods will help you decide which is the best data transfer method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The MODE Parameter&lt;/P&gt;&lt;P&gt;You can use the MODE parameter to specify whether data transfer processing should be displayed as it happens. You can choose between three modes: &lt;/P&gt;&lt;P&gt;A Display all. All screens and the data that goes in them appear when you run your program. &lt;/P&gt;&lt;P&gt;N No display. All screens are processed invisibly, regardless of whether there are errors or not. Control returns to your program as soon as transaction processing is finished. &lt;/P&gt;&lt;P&gt;E Display errors only. The transaction goes into display mode as soon as an error in one of the screens is detected. You can then correct the error.&lt;/P&gt;&lt;P&gt;The display modes are the same as those that are available for processing batch input sessions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The UPDATE Parameter&lt;/P&gt;&lt;P&gt;You use the UPDATE parameter to specify how updates produced by a transaction should be processed. You can select between these modes: &lt;/P&gt;&lt;P&gt;A Asynchronous updating. In this mode, the called transaction does not wait for any updates it produces to be completed. It simply passes the updates to the SAP update service. Asynchronous processing therefore usually results in faster execution of your data transfer program.&lt;/P&gt;&lt;P&gt;Asynchronous processing is NOT recommended for processing any larger amount of data. This is because the called transaction receives no completion message from the update module in asynchronous updating. The calling data transfer program, in turn, cannot determine whether a called transaction ended with a successful update of the database or not. &lt;/P&gt;&lt;P&gt;If you use asynchronous updating, then you will need to use the update management facility (Transaction SM12) to check whether updates have been terminated abnormally during session processing. Error analysis and recovery is less convenient than with synchronous updating.&lt;/P&gt;&lt;P&gt;S Synchronous updating. In this mode, the called transaction waits for any updates that it produces to be completed. Execution is slower than with asynchronous updating because called transactions wait for updating to be completed. However, the called transaction is able to return any update error message that occurs to your program. It is much easier for you to analyze and recover from errors. &lt;/P&gt;&lt;P&gt;L Local updating. If you update data locally, the update of the database will not be processed in a separate process, but in the process of the calling program. (See the ABAP keyword documentation on SET UPDATE TASK LOCAL for more information.)&lt;/P&gt;&lt;P&gt;The MESSAGES Parameter&lt;/P&gt;&lt;P&gt;The MESSAGES specification indicates that all system messages issued during a CALL TRANSACTION USING are written into the internal table &amp;lt;MESSTAB&amp;gt; . The internal table must have the structure BDCMSGCOLL .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can record the messages issued by Transaction TFCA in table MESSTAB with the following coding:&lt;/P&gt;&lt;P&gt;(This example uses a flight connection that does not exist to trigger an error in the transaction.) &lt;/P&gt;&lt;P&gt;DATA: BEGIN OF BDCDATA OCCURS 100.&lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE BDCDATA.&lt;/P&gt;&lt;P&gt;DATA: END OF BDCDATA.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF MESSTAB OCCURS 10.&lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE BDCMSGCOLL.&lt;/P&gt;&lt;P&gt;DATA: END OF MESSTAB.&lt;/P&gt;&lt;P&gt;BDCDATA-PROGRAM = 'SAPMTFCA'.&lt;/P&gt;&lt;P&gt;BDCDATA-DYNPRO = '0100'.&lt;/P&gt;&lt;P&gt;BDCDATA-DYNBEGIN = 'X'.&lt;/P&gt;&lt;P&gt;APPEND BDCDATA.&lt;/P&gt;&lt;P&gt;CLEAR BDCDATA.&lt;/P&gt;&lt;P&gt;BDCDATA-FNAM = 'SFLIGHT-CARRID'.&lt;/P&gt;&lt;P&gt;BDCDATA-FVAL = 'XX'.&lt;/P&gt;&lt;P&gt;APPEND BDCDATA.&lt;/P&gt;&lt;P&gt;BDCDATA-FNAM = 'SFLIGHT-CONNID'.&lt;/P&gt;&lt;P&gt;BDCDATA-FVAL = '0400'.&lt;/P&gt;&lt;P&gt;APPEND BDCDATA.&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'TFCA' USING BDCDATA MODE 'N'&lt;/P&gt;&lt;P&gt;MESSAGES INTO MESSTAB.&lt;/P&gt;&lt;P&gt;LOOP AT MESSTAB.&lt;/P&gt;&lt;P&gt;WRITE: / MESSTAB-TCODE,&lt;/P&gt;&lt;P&gt;MESSTAB-DYNAME,&lt;/P&gt;&lt;P&gt;MESSTAB-DYNUMB,&lt;/P&gt;&lt;P&gt;MESSTAB-MSGTYP,&lt;/P&gt;&lt;P&gt;MESSTAB-MSGSPRA,&lt;/P&gt;&lt;P&gt;MESSTAB-MSGID,&lt;/P&gt;&lt;P&gt;MESSTAB-MSGNR.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;The following figures show the return codes from CALL TRANSACTION USING and the system fields that contain message information from the called transaction. As the return code chart shows, return codes above 1000 are reserved for data transfer. If you use the MESSAGES INTO &amp;lt;table&amp;gt; option, then you do not need to query the system fields shown below; their contents are automatically written into the message table. You can loop over the message table to write out any messages that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if it helps..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Omakr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2007 05:48:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-recording/m-p/2631451#M605092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-06T05:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: BDC recording</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-recording/m-p/2631452#M605093</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;For uploading data into the SAP system u perform a BDC recording using transaction 'SHDB'. Here u create a recording for the transaction u need to upload.&lt;/P&gt;&lt;P&gt;and use that program for uploading data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Navneeth K.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2007 05:48:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-recording/m-p/2631452#M605093</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-06T05:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: BDC recording</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-recording/m-p/2631453#M605094</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;&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>Mon, 06 Aug 2007 05:49:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-recording/m-p/2631453#M605094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-06T05:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: BDC recording</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-recording/m-p/2631454#M605095</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 recoding allows a user to record keystrokes and other keyboard actions so that they may be incorporated into a BDC session. While any session may be recorded, it does not mean that the recording can be used to create a session. Within a recording individual screens may not be allowed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at the below link&lt;/P&gt;&lt;P&gt;&lt;A href="http://goldenink.com/abap/shdb.html" target="test_blank"&gt;http://goldenink.com/abap/shdb.html&lt;/A&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;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2007 05:50:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-recording/m-p/2631454#M605095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-06T05:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: BDC recording</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-recording/m-p/2631455#M605096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;t&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2007 05:54:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-recording/m-p/2631455#M605096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-06T05:54:04Z</dc:date>
    </item>
  </channel>
</rss>

