<?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 BDC Program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/3663178#M882405</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After creating a batch in a program what code do i need to put in that program to process the batch immediately &lt;U&gt;(in the same program)&lt;/U&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Apr 2008 07:31:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-08T07:31:31Z</dc:date>
    <item>
      <title>BDC Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/3663178#M882405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After creating a batch in a program what code do i need to put in that program to process the batch immediately &lt;U&gt;(in the same program)&lt;/U&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 07:31:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/3663178#M882405</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T07:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/3663179#M882406</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;If u r  using Session Method, u need to goto SM35 and process it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDC RECORDING METHOD:&lt;/P&gt;&lt;P&gt;________________________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a predefined tool to create BDC code and screens for data migration. BDC Recording method allows the user to record the keystrokes done during data migration. This method can use only existing screens, i.e. predefined screens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MM01 - Create Material&lt;/P&gt;&lt;P&gt;XD01 - Create Customer&lt;/P&gt;&lt;P&gt;XK01 - Create Vendor&lt;/P&gt;&lt;P&gt;VA01 - Create Sales Order&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SHDB is the Transaction code to call Recording Method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Navigations to use Recording Method:&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SHDB -&amp;gt; Opens an interface -&amp;gt; Click on New Recordings pushbutton from appn. toolbar -&amp;gt; Specify Recording Name -&amp;gt; Specify Tcode (MM01) -&amp;gt; Click on Continue -&amp;gt; Opens MM01 Screen -&amp;gt; Specify Sample Data -&amp;gt; Click on Select View pushbutton from appn. toolbar -&amp;gt; Opens an interface -&amp;gt; Select First view (Basic Data 1) -&amp;gt; Click on Continue -&amp;gt; Opens another interface -&amp;gt; Specify short description for the material -&amp;gt; Specify units of measurement -&amp;gt; Save -&amp;gt; Opens an interface with defined field and their values -&amp;gt; Save -&amp;gt; Come back -&amp;gt; Select Recording Object -&amp;gt; Click on Program pushbutton from appn. toolbar to autogenerate the BDC source code -&amp;gt; Opens an interface -&amp;gt; Specify Program Name -&amp;gt; Select Transfer From Recording radiobutton -&amp;gt; Click on Source Code pushbutton -&amp;gt; Opens SE38 Editor with autogenerated code -&amp;gt; Specify following code after include statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;include bdcrecx1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF ITAB OCCURS 0,&lt;/P&gt;&lt;P&gt;       STR(255),&lt;/P&gt;&lt;P&gt;       END OF ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA ITAB1 LIKE MARA OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specify following code after start-of-selection statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'UPLOAD'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   FILENAME                      = 'C:\COUP.TXT'&lt;/P&gt;&lt;P&gt;   FILETYPE                      = 'ASC'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    DATA_TAB                      =  ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;SPLIT ITAB-STR AT ',' INTO ITAB1-MATNR ITAB1-MBRSH ITAB1-MTART&lt;/P&gt;&lt;P&gt;ITAB1-MEINS.&lt;/P&gt;&lt;P&gt;APPEND ITAB1.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specify Loop-Endloop statement for the bdc-dynpro, bdc-field and bdc_transaction statements as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform open_group.&lt;/P&gt;&lt;P&gt;LOOP AT ITAB1.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;ENDLOOP&lt;/P&gt;&lt;P&gt;perform close_group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&amp;gt; Save -&amp;gt; Activate -&amp;gt; Execute -&amp;gt; Choose Call Transaction or Session method to process the datas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The advantage of Recording Method is finally after executing the program, we can choose either Session method or Call Transaction method to upload the datas using predefind Tcode (MM01, MK01, VA01, XD01, XK01).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps u,&lt;/P&gt;&lt;P&gt;Arunsri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Arunsri on Apr 8, 2008 10:24 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 08:24:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/3663179#M882406</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T08:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/3663180#M882407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You would have created a session which would hold all the fields required to be updated. So this session name should be used in your program through a function module.&lt;/P&gt;&lt;P&gt;Creating a program which is used to update the data through session method should have the follwing function modules. BDC_OPEN_GROUP(opens a new session in the background  for a particular transaction for the input of data).BDC_INSERT(Inserts the data into the corresponding fields for any given transaction). BDC_CLOSE_GROUP(closes the session which was opened for data i/p). So in the function module BDC_INSERT you should give the name of the recorded session which was recorded using SM35 transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;archana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 08:45:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/3663180#M882407</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T08:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/3663181#M882408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the answers are very helpful and i thank you for that....&lt;/P&gt;&lt;P&gt;now i need to know how to use PROGRAM RSBDCSUB and submit my session name for processing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 09:25:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/3663181#M882408</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T09:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/3663182#M882409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;The ABAP program RSBDCSUB must be scheduled as a periodic job in the R/3 background processing system. RSBDCSUB checks for and starts any batch input sessions that have not yet been run. It schedules such sessions for immediate execution in the background processing system. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Procedure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Schedule RSBDCSUB to run periodically in one or more background jobs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have regularly scheduled batch input runs, you can schedule separate jobs for each of the scheduled data transfers. The start time for the RSBDCSUB job can be set according to the batch input schedule. And you can use a variant to restrict RSBDCSUB only to the batch input sessions that you expect. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With RSBDCSUB, you can use all of the selection criteria offered on the batch input main menu to select sessions to run:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. session name&lt;/P&gt;&lt;P&gt;2. date and time of generation&lt;/P&gt;&lt;P&gt;3. status: ready to run or held in the queue because of errors&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;STEPS&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;step 1: Create batch input session.&lt;/P&gt;&lt;P&gt;step 2: Call RSBDCSUB and entry batch input session name from step 1.  use command : 'Program &amp;gt; Execute in Background'. Then I can define date/time to execute my batch input session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have "Queue ID" for this batch input.&lt;/P&gt;&lt;P&gt;In batch input overview (SM35), status of this batch input shows as "job".&lt;/P&gt;&lt;P&gt;step 3: Call RSBDCBTC and fill "Queue ID" from step 2, then save this as variant.&lt;/P&gt;&lt;P&gt;step 4: Call SM37 to define new job by use "RSBDCBTC" as ABAP program&lt;/P&gt;&lt;P&gt;and enter variant name from step 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hope this helps.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 09:32:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program/m-p/3663182#M882409</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T09:32:15Z</dc:date>
    </item>
  </channel>
</rss>

