<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3443447#M826964</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;   To create bdc first we have to identify&lt;/P&gt;&lt;P&gt;the transcation name to   which ur going to create dbc.&lt;/P&gt;&lt;P&gt;Then u have to be ready with excel file ,with raw datas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then go to shdb and do a recording by entering sample &lt;/P&gt;&lt;P&gt;datas then  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;generate the progam by giving program name in shdb t-code by&lt;/P&gt;&lt;P&gt;selecting the recording.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Feb 2008 10:33:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-26T10:33:11Z</dc:date>
    <item>
      <title>bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3443443#M826960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai ,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;plz tell the step wise procedure to create the bdc with simple example?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;surender&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 09:47:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3443443#M826960</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-26T09:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3443444#M826961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Surender,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go thur these&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/fa/097119543b11d1898e0000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/fa/097119543b11d1898e0000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapbrain.com/TUTORIALS/TECHNICAL/BDC_tutorial.html" target="test_blank"&gt;http://www.sapbrain.com/TUTORIALS/TECHNICAL/BDC_tutorial.html&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;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;&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;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/bdc/bdchome.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/bdc/bdchome.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.planetsap.com/bdc_main_page.htm" target="test_blank"&gt;http://www.planetsap.com/bdc_main_page.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table Control in BDC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer the link:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm" target="test_blank"&gt;http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The concept is easy: it has to indicate the index of the table control in the field name, so if you have to populate the first record of table control:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDC-FIELDNAME = &amp;lt;FIELDNAME&amp;gt;(01).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you fill the second row:&lt;/P&gt;&lt;P&gt;BDC-FIELDNAME = &amp;lt;FIELDNAME&amp;gt;(02).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and so....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the problem is usually on how many records you have to load, because u can fill only the rows of table control available in the screen, If you have more records than it can be displayed yuo have to simulate the command to go next page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The number of recod can be displayed can depend on pc resolution and many program haven't command to go to next page (in this case it could be impossible create a BDC program9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A way to create a bdc program resolution indipendent is to work on the first and second row.&lt;/P&gt;&lt;P&gt;- Place the first hit in the first row of bdc;&lt;/P&gt;&lt;P&gt;- Place the second insert in the second row of bdc;&lt;/P&gt;&lt;P&gt;- Place the last hit to the top of table control;&lt;/P&gt;&lt;P&gt;- Place the next hit in the second row;&lt;/P&gt;&lt;P&gt;- Place the last hit to the top of table control;&lt;/P&gt;&lt;P&gt;- Place the next hit in the second row;&lt;/P&gt;&lt;P&gt;- .... and so&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more info: Search in SDN with TABLE CONTROL IN BDC.&lt;/P&gt;&lt;P&gt;Will get a lot of related links.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward points if this Helps.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Manish&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 09:51:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3443444#M826961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-26T09:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3443445#M826962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;REPORT ZMHYDXCV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*.......Structures the SAP flat file does use (SAPstructures)...........&lt;/P&gt;&lt;P&gt;TABLES: BGR00,                  "Depends on the business object&lt;/P&gt;&lt;P&gt;        BMM00,                  "here for the material master&lt;/P&gt;&lt;P&gt;        BMMH1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*.......Structures the data your provided flat file does use............&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF MY_STRUCTURE OCCURS 1000,  "Depends on your legacy data&lt;/P&gt;&lt;P&gt;        MATERIAL_NO(10)     TYPE C,&lt;/P&gt;&lt;P&gt;        DESCRIPTION(20)     TYPE C,&lt;/P&gt;&lt;P&gt;        ORGANIZATION(10)    TYPE C,&lt;/P&gt;&lt;P&gt;        MATERIAL_TYPE(5)    TYPE C,&lt;/P&gt;&lt;P&gt;        MAT_GROUP(5)        TYPE C,&lt;/P&gt;&lt;P&gt;        WEIGHT(10)          TYPE C,&lt;/P&gt;&lt;P&gt;        PRICE(10)           TYPE C.&lt;/P&gt;&lt;P&gt;DATA: END OF MY_STRUCTURE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*......Some other data that's needed....................................&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF WORK_AREA OCCURS 1000,&lt;/P&gt;&lt;P&gt;        STRING(1500)       TYPE C.&lt;/P&gt;&lt;P&gt;DATA: END OF WORK_AREA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:  FLAT_FILE(50)        TYPE C VALUE 'C:\matmaster.txt',&lt;/P&gt;&lt;P&gt;       FLAT_FILE_SAP(50)    TYPE C VALUE 'C:\material.txt',&lt;/P&gt;&lt;P&gt;       IDENTIFIER(1)        TYPE C.        "Identifies different struct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*......At start-of-selection............................................&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM READ_FLAT_FILE.&lt;/P&gt;&lt;P&gt;  PERFORM ANALYZE.&lt;/P&gt;&lt;P&gt;  PERFORM CONVERT_AND_WRITE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*......Read the your flat file and fill internal table my_structure.....&lt;/P&gt;&lt;P&gt;FORM READ_FLAT_FILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  OPEN DATASET FLAT_FILE FOR INPUT&lt;/P&gt;&lt;P&gt;                         IN TEXT MODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC GT 0.&lt;/P&gt;&lt;P&gt;"  Error message has to be issued, because you can't open the file&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DO.&lt;/P&gt;&lt;P&gt;    CLEAR WORK_AREA.&lt;/P&gt;&lt;P&gt;    READ DATASET FLAT_FILE INTO WORK_AREA.&lt;/P&gt;&lt;P&gt;    IF SYST-SUBRC GT 0.&lt;/P&gt;&lt;P&gt;      EXIT.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLOSE DATASET FLAT_FILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*.....Analyze work_area and move fields into my_structure...............&lt;/P&gt;&lt;P&gt;FORM ANALYZE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT WORK_AREA.&lt;/P&gt;&lt;P&gt;    "loop at all fields in the record&lt;/P&gt;&lt;P&gt;      "get field and move it in the corresponding field in my_structure&lt;/P&gt;&lt;P&gt;    "endloop&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*.......Convert and write the SAP flat file.............................&lt;/P&gt;&lt;P&gt;FORM CONVERT_AND_WRITE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  OPEN DATASET FLAT_FILE_SAP FOR OUTPUT IN TEXT MODE.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC GT 0.&lt;/P&gt;&lt;P&gt;    "Open has failed, so issue an error message&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT MY_STRUCTURE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    "determine the target-structure and set identifier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CASE IDENTIFIER.&lt;/P&gt;&lt;P&gt;      "when structure1&lt;/P&gt;&lt;P&gt;        "fill fields of structure1.&lt;/P&gt;&lt;P&gt;        "transfer the needed SAPstructure(s) to flat_file_sap.&lt;/P&gt;&lt;P&gt;      "when structure2.&lt;/P&gt;&lt;P&gt;        "...&lt;/P&gt;&lt;P&gt;      "when others.&lt;/P&gt;&lt;P&gt;        "that should probably provoke an error!&lt;/P&gt;&lt;P&gt;    ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOSE DATASET FLAT_FILE_SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;************************************************************************chk these links&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sappoint.com/abap/bdcconcept.pdf" target="test_blank"&gt;http://www.sappoint.com/abap/bdcconcept.pdf&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;&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;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/bdc/updhome.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/bdc/updhome.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table control in BDC&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm" target="test_blank"&gt;http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/bdc.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/bdc.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/bdc/bdchome.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/bdc/bdchome.htm&lt;/A&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;P&gt;&lt;A href="http://www.sap-img.com/sap-download/bdcrecording.zip" target="test_blank"&gt;http://www.sap-img.com/sap-download/bdcrecording.zip&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sappoint.com/abap/bdcconcept.pdf" target="test_blank"&gt;http://www.sappoint.com/abap/bdcconcept.pdf&lt;/A&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;/P&gt;&lt;P&gt;-siva&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: SivaKumar on Feb 26, 2008 3:22 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 09:51:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3443445#M826962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-26T09:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3443446#M826963</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;BATCH DATA COMMUNICATIONS:&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This concept deals with data migration from legacy system database into SAP database. Whenever a company moves into SAP from legacy system, BDC is used to populate the new SAP database with their old required records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Methods in BDC:&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. DIRECT INPUT METHOD - Using this method, records from the flat file are uploaded first into an internal table created for the flat file structure. Using a string function (SPLIT functionality), the records are splitted based on the separators and then inserted into a new internal table which is created for a table where the datas are to be inserted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg. code:&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 KNA1 OCCURS 0 WITH HEADER LINE.&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:\BASK.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-KUNNR ITAB1-NAME1 ITAB1-LAND1&lt;/P&gt;&lt;P&gt;ITAB1-ORT01.&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;LOOP AT ITAB1.&lt;/P&gt;&lt;P&gt;INSERT INTO KNA1 VALUES ITAB1.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 'RECORDS ARE INSERTED'.&lt;/P&gt;&lt;P&gt;ELSEIF SY-SUBRC = 4.&lt;/P&gt;&lt;P&gt;WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 'RECORDS ALREADY EXIST'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above program, 'UPLOAD' function module is used to fetch the flat file records and then insert into internal table created for flat file structure (ITAB).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. CALL TRANSACTION METHOD.&lt;/P&gt;&lt;P&gt; CODE:&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;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'UPLOAD'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   FILENAME                      = 'C:\STAL.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;DATA ITAB1 LIKE KNA1 OCCURS 0 WITH HEADER LINE.&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-KUNNR ITAB1-NAME1 ITAB1-ORT01 ITAB1-LAND1.&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;DATA JTAB LIKE BDCDATA OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA KTAB LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM PROGINFO USING 'SAPMZSTALINCT' '100'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM FLDINFO USING 'WA-KUNNR' ITAB1-KUNNR.&lt;/P&gt;&lt;P&gt;PERFORM FLDINFO USING 'WA-NAME1' ITAB1-NAME1.&lt;/P&gt;&lt;P&gt;PERFORM FLDINFO USING 'WA-LAND1' ITAB1-LAND1.&lt;/P&gt;&lt;P&gt;PERFORM FLDINFO USING 'WA-ORT01' ITAB1-ORT01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'ZSTALINCT' USING JTAB MODE 'N' MESSAGES INTO KTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT KTAB.&lt;/P&gt;&lt;P&gt;WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; KTAB-TCODE, KTAB-DYNAME, KTAB-DYNUMB, KTAB-MSGTYP, KTAB-MSGNR, SY-SUBRC.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM PROGINFO USING PROGNAME SCRNUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR JTAB.&lt;/P&gt;&lt;P&gt;REFRESH JTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JTAB-PROGRAM = PROGNAME.&lt;/P&gt;&lt;P&gt;JTAB-DYNPRO = SCRNUM.&lt;/P&gt;&lt;P&gt;JTAB-DYNBEGIN = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND JTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM FLDINFO USING FLDNAME FLDVAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR JTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JTAB-FNAM = FLDNAME.&lt;/P&gt;&lt;P&gt;JTAB-FVAL = FLDVAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND JTAB. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. BDC SESSION METHOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TOOLS USED IN BDC:&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEGACY SYSTEM MIGRATION WORKBENCH (LSMW)&lt;/P&gt;&lt;P&gt;BDC RECORDING METHOD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDC CALL TRANSACTION METHOD:&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since we cannot modify the error record using direct input method, we go for call transaction method. Here, we create a screen to populate error records in input fields and from the screen, we can modify the error records and then insert into database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steps to be followed in Call Transaction MEthod:&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Analyze the flat file.&lt;/P&gt;&lt;P&gt;2. Create a screen for database table fields using MPP. Create a Transaction code for the screen.&lt;/P&gt;&lt;P&gt;3. Write the following code in SE38 editor:&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;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'UPLOAD'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   FILENAME                      = 'C:\KNA.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;DATA ITAB1 LIKE KNA1 OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA JTAB LIKE BDCDATA OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT ITAB-STR AT ',' INTO ITAB1-KUNNR ITAB1-NAME1 ITAB1-ORT01&lt;/P&gt;&lt;P&gt;ITAB1-LAND1.&lt;/P&gt;&lt;P&gt;APPEND ITAB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM PROGINFO USING 'SAPMZCALLTRANSACTION' '100'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM FLDINFO USING 'KARTHIK-KUNNR' ITAB1-KUNNR.&lt;/P&gt;&lt;P&gt;PERFORM FLDINFO USING 'KARTHIK-NAME1' ITAB1-NAME1.&lt;/P&gt;&lt;P&gt;PERFORM FLDINFO USING 'KARTHIK-ORT01' ITAB1-ORT01.&lt;/P&gt;&lt;P&gt;PERFORM FLDINFO USING 'KARTHIK-LAND1' ITAB1-LAND1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'ZCALLTRANS' USING JTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM PROGINFO USING PROGNAME SCRNUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR JTAB.&lt;/P&gt;&lt;P&gt;REFRESH JTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JTAB-PROGRAM = PROGNAME.&lt;/P&gt;&lt;P&gt;JTAB-DYNPRO = SCRNUM.&lt;/P&gt;&lt;P&gt;JTAB-DYNBEGIN = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND JTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM FLDINFO USING FLDNAME FLDVALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR JTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JTAB-FNAM = FLDNAME.&lt;/P&gt;&lt;P&gt;JTAB-FVAL = FLDVALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND JTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save -&amp;gt; Activate -&amp;gt; Execute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDCDATA is a structure used to populate the internal table records into the screen fields. The BDCDATA structure has following components:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROGRAM - Holds the name of MPP program where the screen is created.&lt;/P&gt;&lt;P&gt;DYNPRO - Holds the screen number where the internal fields to be          populated.&lt;/P&gt;&lt;P&gt;DYNBEGIN - Used to initiate the screen when the program is executed.            The default value to be specified is 'X'.&lt;/P&gt;&lt;P&gt;FNAM - Specifies input field name in the screen where the data is to be populated.&lt;/P&gt;&lt;P&gt;FVAL - Specifies from which internal table field, the data should be passed to the screen field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'CALL TRANSACTION' statement is used to call the screen created to populate error records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SYNTAX:&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSACTION &amp;lt;Tcode&amp;gt; USING &amp;lt;BDCDATA_itab&amp;gt; MODE &amp;lt;mode&amp;gt; UPDATE &amp;lt;update&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODE: This is used to specify which mode to be followed when calling transaction. The types of mode are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A - Display the screen.&lt;/P&gt;&lt;P&gt;E - Display only error records from the flat file.&lt;/P&gt;&lt;P&gt;N - Background processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE: This is used to specify the update task of records in the database table. The types of update tasks are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A - Asynchronous update&lt;/P&gt;&lt;P&gt;S - Synchronous update&lt;/P&gt;&lt;P&gt;L - Local update&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Advantages of CALL TRANSACTION:&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Error records can be modified.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;This method can be used in support projects.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps u,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arunsri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 10:05:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3443446#M826963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-26T10:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3443447#M826964</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;   To create bdc first we have to identify&lt;/P&gt;&lt;P&gt;the transcation name to   which ur going to create dbc.&lt;/P&gt;&lt;P&gt;Then u have to be ready with excel file ,with raw datas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then go to shdb and do a recording by entering sample &lt;/P&gt;&lt;P&gt;datas then  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;generate the progam by giving program name in shdb t-code by&lt;/P&gt;&lt;P&gt;selecting the recording.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 10:33:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3443447#M826964</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-26T10:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3443448#M826965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;continuation....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this with the system generated program code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create a bdc program .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using call transcation or session method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2008 10:39:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/3443448#M826965</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-26T10:39:36Z</dc:date>
    </item>
  </channel>
</rss>

