<?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: using BDC creating customer master...... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bdc-creating-customer-master/m-p/3998612#M955352</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's really not clear what you're trying to do with your dataset. You both try to upload it from the presentation server and the application server. If it really is on the presentation server, get rid of the open dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jun 2008 19:39:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-18T19:39:14Z</dc:date>
    <item>
      <title>using BDC creating customer master......</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bdc-creating-customer-master/m-p/3998599#M955339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guru's,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using BDC i am planning to create customer master but i struck up on mid ...&lt;/P&gt;&lt;P&gt;could please help me out on this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i had uploaded the flat file data using gui_upload and and those data moved into record fields individually...&lt;/P&gt;&lt;P&gt;but i am unable to cteate customer and it is went to short dump...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please correct me what i did mistakes in my program logic...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT zarepas_bdc_customer_create1&lt;/P&gt;&lt;P&gt;       NO STANDARD PAGE HEADING LINE-SIZE 255.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INCLUDE bdcrecx1.&lt;/P&gt;&lt;P&gt;*CHANGE AS PER EQUIREMENT UPLOAD THE FILE DATA&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF gty_itab1,&lt;/P&gt;&lt;P&gt;       xyz(205),&lt;/P&gt;&lt;P&gt;       END OF gty_itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: gt_itab1 TYPE STANDARD TABLE OF gty_itab1,&lt;/P&gt;&lt;P&gt;      gwa_itab1 TYPE gty_itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF gty_itab2,&lt;/P&gt;&lt;P&gt;       vkorg(4),&lt;/P&gt;&lt;P&gt;       vtweg(2),&lt;/P&gt;&lt;P&gt;       spart(2),&lt;/P&gt;&lt;P&gt;       ktokd(4),&lt;/P&gt;&lt;P&gt;       anred(15),&lt;/P&gt;&lt;P&gt;       name1(35),&lt;/P&gt;&lt;P&gt;       stras(35),&lt;/P&gt;&lt;P&gt;       ort01(35),&lt;/P&gt;&lt;P&gt;       ort02(35),&lt;/P&gt;&lt;P&gt;       pstl2(10),&lt;/P&gt;&lt;P&gt;       land1(3),&lt;/P&gt;&lt;P&gt;       spras(2),&lt;/P&gt;&lt;P&gt;       pstlz(10),&lt;/P&gt;&lt;P&gt;       civve(1),&lt;/P&gt;&lt;P&gt;       awahr(3),&lt;/P&gt;&lt;P&gt;       waers(5),&lt;/P&gt;&lt;P&gt;       kzazu(1),&lt;/P&gt;&lt;P&gt;       vsbed(2),&lt;/P&gt;&lt;P&gt;       antlf(1),&lt;/P&gt;&lt;P&gt;       END OF gty_itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: gt_itab2 TYPE STANDARD TABLE OF gty_itab2,&lt;/P&gt;&lt;P&gt;      gwa_itab2 TYPE gty_itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_files TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: dataset(132) LOWER CASE DEFAULT&lt;/P&gt;&lt;P&gt;                              'test_customer_read_file'.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;   DO NOT CHANGE - the generated data section - DO NOT CHANGE    ***&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  If it is nessesary to change the data section use the rules:&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  1.) Each definition of a field exists of two lines&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  2.) The first line shows exactly the comment&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      '* data element: ' followed with the data element&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      which describes the field.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      If you don't have a data element use the&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      comment without a data element name&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  3.) The second line shows the fieldname of the&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      structure, the fieldname must consist of&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      a fieldname and optional the character '_' and&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      three numbers and the field length in brackets&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  4.) Each field must be type C.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Generated data section with specific formatting - DO NOT CHANGE  ***&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;DATA: BEGIN OF record,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: VKORG&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        vkorg_001(004),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: VTWEG&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        vtweg_002(002),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: SPART&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        spart_003(002),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: KTOKD&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        ktokd_004(004),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: ANRED&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        anred_005(015),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: NAME1_GP&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        name1_006(035),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: STRAS_GP&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        stras_007(035),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: ORT01_GP&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        ort01_008(035),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: ORT02_GP&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        ort02_009(035),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: PSTL2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        pstl2_010(010),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: LAND1_GP&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        land1_011(003),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: SPRAS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        spras_012(002),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: PSTLZ&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        pstlz_013(010),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: CIVVE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        civve_014(001),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: AWAHR&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        awahr_015(003),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: WAERS_V02D&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        waers_016(005),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: KZAZU_D&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        kzazu_017(001),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: VSBED&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        vsbed_018(002),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: ANTLF&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        antlf_019(001),&lt;/P&gt;&lt;P&gt;      END OF record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;End generated data section ***&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&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;*using gui_upload we are upload the file data from presentation server to gt_itab1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD cl_gui_frontend_services=&amp;gt;gui_upload&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      filename = p_files&lt;/P&gt;&lt;P&gt;      filetype = 'ASC'&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      data_tab = gt_itab1&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      OTHERS   = 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT gt_itab1 INTO gwa_itab1.&lt;/P&gt;&lt;P&gt;    IF gwa_itab1-xyz(1) = 'T'.&lt;/P&gt;&lt;P&gt;      gwa_itab2 = gwa_itab1-xyz(205).&lt;/P&gt;&lt;P&gt;      APPEND gwa_itab2 TO gt_itab2.&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;*here we are moving from internal structure to record fileds i BDC.&lt;/P&gt;&lt;P&gt;  LOOP AT gt_itab2 INTO gwa_itab2 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MOVE: gwa_itab2-vkorg TO record-vkorg_001,&lt;/P&gt;&lt;P&gt;          gwa_itab2-vtweg TO record-vtweg_002,&lt;/P&gt;&lt;P&gt;          gwa_itab2-spart TO record-spart_003,&lt;/P&gt;&lt;P&gt;          gwa_itab2-ktokd TO record-ktokd_004,&lt;/P&gt;&lt;P&gt;          gwa_itab2-anred TO record-anred_005,&lt;/P&gt;&lt;P&gt;          gwa_itab2-name1 TO record-name1_006,&lt;/P&gt;&lt;P&gt;          gwa_itab2-stras TO record-stras_007,&lt;/P&gt;&lt;P&gt;          gwa_itab2-ort01 TO record-ort01_008,&lt;/P&gt;&lt;P&gt;          gwa_itab2-ort02 TO record-ort02_009,&lt;/P&gt;&lt;P&gt;          gwa_itab2-pstl2 TO record-pstl2_010,&lt;/P&gt;&lt;P&gt;          gwa_itab2-land1 TO record-land1_011,&lt;/P&gt;&lt;P&gt;          gwa_itab2-spras TO record-spras_012,&lt;/P&gt;&lt;P&gt;          gwa_itab2-pstlz TO record-pstlz_013,&lt;/P&gt;&lt;P&gt;          gwa_itab2-civve TO record-civve_014,&lt;/P&gt;&lt;P&gt;          gwa_itab2-awahr TO record-awahr_015,&lt;/P&gt;&lt;P&gt;          gwa_itab2-waers TO record-waers_016,&lt;/P&gt;&lt;P&gt;          gwa_itab2-kzazu TO record-kzazu_017,&lt;/P&gt;&lt;P&gt;          gwa_itab2-vsbed TO record-vsbed_018,&lt;/P&gt;&lt;P&gt;          gwa_itab2-antlf TO record-antlf_019.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM open_dataset USING dataset.&lt;/P&gt;&lt;P&gt;    PERFORM open_group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      READ DATASET dataset INTO record.&lt;/P&gt;&lt;P&gt;      IF sy-subrc &amp;lt;&amp;gt; 0. EXIT. ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      PERFORM bdc_dynpro      USING 'SAPMF02D' '0100'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                    'RF02D-KTOKD'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                    '/00'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'RF02D-VKORG'&lt;/P&gt;&lt;P&gt;                                    record-vkorg_001.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'RF02D-VTWEG'&lt;/P&gt;&lt;P&gt;                                    record-vtweg_002.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'RF02D-SPART'&lt;/P&gt;&lt;P&gt;                                    record-spart_003.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'RF02D-KTOKD'&lt;/P&gt;&lt;P&gt;                                    record-ktokd_004.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_dynpro      USING 'SAPMF02D' '0110'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                    'KNA1-SPRAS'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                    'VW'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'KNA1-ANRED'&lt;/P&gt;&lt;P&gt;                                    record-anred_005.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'KNA1-NAME1'&lt;/P&gt;&lt;P&gt;                                    record-name1_006.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'KNA1-STRAS'&lt;/P&gt;&lt;P&gt;                                    record-stras_007.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'KNA1-ORT01'&lt;/P&gt;&lt;P&gt;                                    record-ort01_008.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'KNA1-ORT02'&lt;/P&gt;&lt;P&gt;                                    record-ort02_009.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'KNA1-PSTL2'&lt;/P&gt;&lt;P&gt;                                    record-pstl2_010.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'KNA1-LAND1'&lt;/P&gt;&lt;P&gt;                                    record-land1_011.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'KNA1-SPRAS'&lt;/P&gt;&lt;P&gt;                                    record-spras_012.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'KNA1-PSTLZ'&lt;/P&gt;&lt;P&gt;                                    record-pstlz_013.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_dynpro      USING 'SAPMF02D' '0120'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                    'KNA1-LIFNR'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                    '=VW'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_dynpro      USING 'SAPMF02D' '0125'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                    'KNA1-NIELS'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                    '=VW'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_dynpro      USING 'SAPMF02D' '0130'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                    'KNBK-BANKS(01)'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                    '=VW'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_dynpro      USING 'SAPMF02D' '0340'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                    'RF02D-KUNNR'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                    '=VW'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_dynpro      USING 'SAPMF02D' '0370'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                    'RF02D-KUNNR'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                    '=VW'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'KNA1-CIVVE'&lt;/P&gt;&lt;P&gt;                                    record-civve_014.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_dynpro      USING 'SAPMF02D' '0360'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                    'KNVK-NAMEV(01)'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                    '=VW'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_dynpro      USING 'SAPMF02D' '0310'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                    'KNVV-BZIRK'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                    '=VW'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'KNVV-AWAHR'&lt;/P&gt;&lt;P&gt;                                    record-awahr_015.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'KNVV-WAERS'&lt;/P&gt;&lt;P&gt;                                    record-waers_016.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_dynpro      USING 'SAPMF02D' '0315'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                    'KNVV-VSBED'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                    '=VW'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'KNVV-KZAZU'&lt;/P&gt;&lt;P&gt;                                    record-kzazu_017.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'KNVV-VSBED'&lt;/P&gt;&lt;P&gt;                                    record-vsbed_018.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'KNVV-ANTLF'&lt;/P&gt;&lt;P&gt;                                    record-antlf_019.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_dynpro      USING 'SAPMF02D' '0320'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                    'KNVV-PERFK'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                    '=VW'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_dynpro      USING 'SAPMF02D' '1350'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                    'RF02D-KUNNR'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                    '=VW'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_dynpro      USING 'SAPMF02D' '0324'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                    'KNVP-PARVW(01)'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_field       USING 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                    '=VW'.&lt;/P&gt;&lt;P&gt;      PERFORM bdc_transaction USING 'XD01'.&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;  ENDLOOP.&lt;/P&gt;&lt;P&gt;    PERFORM close_group.&lt;/P&gt;&lt;P&gt;    PERFORM close_dataset USING dataset.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 17:29:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bdc-creating-customer-master/m-p/3998599#M955339</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T17:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: using BDC creating customer master......</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bdc-creating-customer-master/m-p/3998600#M955340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What error did you get in ST22 ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 17:36:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bdc-creating-customer-master/m-p/3998600#M955340</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T17:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: using BDC creating customer master......</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bdc-creating-customer-master/m-p/3998601#M955341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Can we have the dump information&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 18:00:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bdc-creating-customer-master/m-p/3998601#M955341</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T18:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: using BDC creating customer master......</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bdc-creating-customer-master/m-p/3998602#M955342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;please let me know if this info in not sufficieant....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Short text&lt;/P&gt;&lt;P&gt;    File "test_customer_read_file" is already opened.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What happened?&lt;/P&gt;&lt;P&gt;    Error in the ABAP Application Program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    The current ABAP program "ZAREPAS_BDC_CUSTOMER_CREATE1" had to be terminated&lt;/P&gt;&lt;P&gt;     because it has&lt;/P&gt;&lt;P&gt;    come across a statement that unfortunately cannot be executed.&lt;/P&gt;&lt;P&gt;Error analysis&lt;/P&gt;&lt;P&gt;    An exception occurred that is explained in detail below.&lt;/P&gt;&lt;P&gt;    The exception, which is assigned to class 'CX_SY_FILE_OPEN', was not caught in&lt;/P&gt;&lt;P&gt;    procedure "OPEN_DATASET" "(FORM)", nor was it propagated by a RAISING clause.&lt;/P&gt;&lt;P&gt;    Since the caller of the procedure could not have anticipated that the&lt;/P&gt;&lt;P&gt;    exception would occur, the current program is terminated.&lt;/P&gt;&lt;P&gt;    The reason for the exception is:&lt;/P&gt;&lt;P&gt;    The file with the name "test_customer_read_file" cannot be opened because it is&lt;/P&gt;&lt;P&gt;     already open&lt;/P&gt;&lt;P&gt;    .&lt;/P&gt;&lt;P&gt;Information on where terminated&lt;/P&gt;&lt;P&gt;    Termination occurred in the ABAP program "ZAREPAS_BDC_CUSTOMER_CREATE1" - in&lt;/P&gt;&lt;P&gt;     "OPEN_DATASET".&lt;/P&gt;&lt;P&gt;    The main program was "ZAREPAS_BDC_CUSTOMER_CREATE1 ".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    In the source code you have the termination point in line 110&lt;/P&gt;&lt;P&gt;    of the (Include) program "BDCRECX1".&lt;/P&gt;&lt;P&gt;    The termination is caused because exception "CX_SY_FILE_OPEN" occurred in&lt;/P&gt;&lt;P&gt;    procedure "OPEN_DATASET" "(FORM)", but it was neither handled locally nor&lt;/P&gt;&lt;P&gt;     declared&lt;/P&gt;&lt;P&gt;    in the RAISING clause of its signature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    The procedure is in program "ZAREPAS_BDC_CUSTOMER_CREATE1 "; its source code&lt;/P&gt;&lt;P&gt;     begins in line&lt;/P&gt;&lt;P&gt;    109 of the (Include program "BDCRECX1 ".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   96 &lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   97 *   at selection screen                                                *&lt;/P&gt;&lt;P&gt;   98 &lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   99 AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;  100 * group and user must be filled for create session&lt;/P&gt;&lt;P&gt;  101   IF SESSION = 'X' AND&lt;/P&gt;&lt;P&gt;  102      GROUP = SPACE OR USER = SPACE.&lt;/P&gt;&lt;P&gt;  103     MESSAGE E613(MS).&lt;/P&gt;&lt;P&gt;  104   ENDIF.&lt;/P&gt;&lt;P&gt;  105&lt;/P&gt;&lt;P&gt;  106 &lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  107 *   open dataset                                                       *&lt;/P&gt;&lt;P&gt;  108 &lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  109 FORM OPEN_DATASET USING P_DATASET.&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;   OPEN DATASET P_DATASET&lt;/P&gt;&lt;P&gt;  111                FOR INPUT IN TEXT MODE&lt;/P&gt;&lt;P&gt;  112                ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;  113   IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  114     WRITE: / TEXT-E00, SY-SUBRC.&lt;/P&gt;&lt;P&gt;  115     STOP.&lt;/P&gt;&lt;P&gt;  116   ENDIF.&lt;/P&gt;&lt;P&gt;  117 ENDFORM.&lt;/P&gt;&lt;P&gt;  118&lt;/P&gt;&lt;P&gt;  119 &lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  120 *   close dataset                                                      *&lt;/P&gt;&lt;P&gt;  121 &lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  122 FORM CLOSE_DATASET USING P_DATASET.&lt;/P&gt;&lt;P&gt;  123   CLOSE DATASET P_DATASET.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 18:07:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bdc-creating-customer-master/m-p/3998602#M955342</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T18:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: using BDC creating customer master......</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bdc-creating-customer-master/m-p/3998603#M955343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before you run your program please close the upload file, i mean dont let open the file in  your computer close the file and run the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your file is in application server close the file and come out of it&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;&lt;/P&gt;&lt;P&gt;Edited by: Chaitanya V Kumar Naru on Jun 18, 2008 8:30 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 18:15:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bdc-creating-customer-master/m-p/3998603#M955343</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T18:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: using BDC creating customer master......</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bdc-creating-customer-master/m-p/3998604#M955344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;close the file in AL11 transcation(Not on your PC) before you run your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 18:28:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bdc-creating-customer-master/m-p/3998604#M955344</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T18:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: using BDC creating customer master......</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bdc-creating-customer-master/m-p/3998605#M955345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi&amp;amp;Chaithanya....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my file is in presentation srever and it is close before upload the data ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then then the control comming out from the progam ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wat i did is...&lt;/P&gt;&lt;P&gt;1st i recorded the BDC program...&lt;/P&gt;&lt;P&gt;in that same program i made changes as below...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_files TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF gty_itab1,&lt;/P&gt;&lt;P&gt;       xyz(205),&lt;/P&gt;&lt;P&gt;       END OF gty_itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: gt_itab1 TYPE STANDARD TABLE OF gty_itab1,&lt;/P&gt;&lt;P&gt;      gwa_itab1 TYPE gty_itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF gty_itab2,&lt;/P&gt;&lt;P&gt;       vkorg(4),&lt;/P&gt;&lt;P&gt;       vtweg(2),&lt;/P&gt;&lt;P&gt;       spart(2),&lt;/P&gt;&lt;P&gt;       ktokd(4),&lt;/P&gt;&lt;P&gt;       anred(15),&lt;/P&gt;&lt;P&gt;       name1(35),&lt;/P&gt;&lt;P&gt;       stras(35),&lt;/P&gt;&lt;P&gt;       ort01(35),&lt;/P&gt;&lt;P&gt;       ort02(35),&lt;/P&gt;&lt;P&gt;       pstl2(10),&lt;/P&gt;&lt;P&gt;       land1(3),&lt;/P&gt;&lt;P&gt;       spras(2),&lt;/P&gt;&lt;P&gt;       pstlz(10),&lt;/P&gt;&lt;P&gt;       civve(1),&lt;/P&gt;&lt;P&gt;       awahr(3),&lt;/P&gt;&lt;P&gt;       waers(5),&lt;/P&gt;&lt;P&gt;       kzazu(1),&lt;/P&gt;&lt;P&gt;       vsbed(2),&lt;/P&gt;&lt;P&gt;       antlf(1),&lt;/P&gt;&lt;P&gt;       END OF gty_itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: gt_itab2 TYPE STANDARD TABLE OF gty_itab2,&lt;/P&gt;&lt;P&gt;      gwa_itab2 TYPE gty_itab2.&lt;/P&gt;&lt;P&gt;*here upload the file from presentation server...&lt;/P&gt;&lt;P&gt;  CALL METHOD cl_gui_frontend_services=&amp;gt;gui_upload&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      filename = p_files&lt;/P&gt;&lt;P&gt;      filetype = 'ASC'&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      data_tab = gt_itab1&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      OTHERS   = 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT gt_itab1 INTO gwa_itab1.&lt;/P&gt;&lt;P&gt;    IF gwa_itab1-xyz(1) = 'T'.&lt;/P&gt;&lt;P&gt;      gwa_itab2 = gwa_itab1-xyz(205).&lt;/P&gt;&lt;P&gt;      APPEND gwa_itab2 TO gt_itab2.&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;*here we are moving from internal structure to record fileds i BDC.&lt;/P&gt;&lt;P&gt;  LOOP AT gt_itab2 INTO gwa_itab2 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MOVE: gwa_itab2-vkorg TO record-vkorg_001,&lt;/P&gt;&lt;P&gt;          gwa_itab2-vtweg TO record-vtweg_002,&lt;/P&gt;&lt;P&gt;          gwa_itab2-spart TO record-spart_003,&lt;/P&gt;&lt;P&gt;          gwa_itab2-ktokd TO record-ktokd_004,&lt;/P&gt;&lt;P&gt;          gwa_itab2-anred TO record-anred_005,&lt;/P&gt;&lt;P&gt;          gwa_itab2-name1 TO record-name1_006,&lt;/P&gt;&lt;P&gt;          gwa_itab2-stras TO record-stras_007,&lt;/P&gt;&lt;P&gt;          gwa_itab2-ort01 TO record-ort01_008,&lt;/P&gt;&lt;P&gt;          gwa_itab2-ort02 TO record-ort02_009,&lt;/P&gt;&lt;P&gt;          gwa_itab2-pstl2 TO record-pstl2_010,&lt;/P&gt;&lt;P&gt;          gwa_itab2-land1 TO record-land1_011,&lt;/P&gt;&lt;P&gt;          gwa_itab2-spras TO record-spras_012,&lt;/P&gt;&lt;P&gt;          gwa_itab2-pstlz TO record-pstlz_013,&lt;/P&gt;&lt;P&gt;          gwa_itab2-civve TO record-civve_014,&lt;/P&gt;&lt;P&gt;          gwa_itab2-awahr TO record-awahr_015,&lt;/P&gt;&lt;P&gt;          gwa_itab2-waers TO record-waers_016,&lt;/P&gt;&lt;P&gt;          gwa_itab2-kzazu TO record-kzazu_017,&lt;/P&gt;&lt;P&gt;          gwa_itab2-vsbed TO record-vsbed_018,&lt;/P&gt;&lt;P&gt;          gwa_itab2-antlf TO record-antlf_019.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;here i kept end loop in end of program&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as per exisiting recorded program the is like below...&lt;/P&gt;&lt;P&gt;and the control also comming from here....&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;--&amp;gt;&lt;/STRONG&gt;PERFORM open_dataset USING dataset.&lt;/P&gt;&lt;P&gt;      PERFORM open_group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      READ DATASET dataset INTO record.&lt;/P&gt;&lt;P&gt;      IF sy-subrc &amp;lt;&amp;gt; 0. EXIT. ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : as per existing program one DATASET is there is that effecting for our file...(like below logic)&lt;/P&gt;&lt;P&gt;         PARAMETERS: dataset(132) LOWER CASE DEFAULT&lt;/P&gt;&lt;P&gt;                              'test_customer_read_file'.&lt;STRONG&gt;---&amp;gt;&lt;/STRONG&gt;is this file effecting for us...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please let me know my explation is not clear....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Ravi and verified in the AL11 also..i traced our file name but i don't no how to chect the status of file is open or close...please guide me...(if it is a problam...)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 18:48:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bdc-creating-customer-master/m-p/3998605#M955345</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T18:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: using BDC creating customer master......</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bdc-creating-customer-master/m-p/3998606#M955346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;chaithanya...i executed the same program as u said again i am getting the same error discription like below..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Runtime Errors         DATASET_REOPEN&lt;/P&gt;&lt;P&gt;Except.                CX_SY_FILE_OPEN&lt;/P&gt;&lt;P&gt;Date and Time          18.06.2008 13:29:54&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Short text&lt;/P&gt;&lt;P&gt;     File "test_customer_read_file" is already opened.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; What happened?&lt;/P&gt;&lt;P&gt;     Error in the ABAP Application Program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     The current ABAP program "ZAREPAS_BDC_CUSTOMER_CREATE1" had to be terminated&lt;/P&gt;&lt;P&gt;      because it has&lt;/P&gt;&lt;P&gt;     come across a statement that unfortunately cannot be executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Error analysis&lt;/P&gt;&lt;P&gt;     An exception occurred that is explained in detail below.&lt;/P&gt;&lt;P&gt;     The exception, which is assigned to class 'CX_SY_FILE_OPEN', was not caught in&lt;/P&gt;&lt;P&gt;     procedure "OPEN_DATASET" "(FORM)", nor was it propagated by a RAISING clause.&lt;/P&gt;&lt;P&gt;     Since the caller of the procedure could not have anticipated that the&lt;/P&gt;&lt;P&gt;     exception would occur, the current program is terminated.&lt;/P&gt;&lt;P&gt;     The reason for the exception is:&lt;/P&gt;&lt;P&gt;     The file with the name "test_customer_read_file" cannot be opened because it is&lt;/P&gt;&lt;P&gt;      already open&lt;/P&gt;&lt;P&gt;     .&lt;/P&gt;&lt;P&gt; Missing RAISING Clause in Interface&lt;/P&gt;&lt;P&gt;     Program                                 ZAREPAS_BDC_CUSTOMER_CREATE1&lt;/P&gt;&lt;P&gt;     Include                                 BDCRECX1&lt;/P&gt;&lt;P&gt;     Row                                     109&lt;/P&gt;&lt;P&gt;     Module type                             (FORM)&lt;/P&gt;&lt;P&gt;     Module Name                             OPEN_DATASET&lt;/P&gt;&lt;P&gt;Trigger Location of Exception&lt;/P&gt;&lt;P&gt;    Program                                 ZAREPAS_BDC_CUSTOMER_CREATE1&lt;/P&gt;&lt;P&gt;    Include                                 BDCRECX1&lt;/P&gt;&lt;P&gt;    Row                                     110&lt;/P&gt;&lt;P&gt;    Module type                             (FORM)&lt;/P&gt;&lt;P&gt;    Module Name                             OPEN_DATASET&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Source Code Extract&lt;/P&gt;&lt;P&gt;Line  SourceCde&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;105&lt;/P&gt;&lt;P&gt;106 &lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;107 *   open dataset                                                       *&lt;/P&gt;&lt;P&gt;108 &lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;109 FORM OPEN_DATASET USING P_DATASET.&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;   OPEN DATASET P_DATASET&lt;/P&gt;&lt;P&gt;111                FOR INPUT IN TEXT MODE&lt;/P&gt;&lt;P&gt;112                ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;113   IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;114     WRITE: / TEXT-E00, SY-SUBRC.&lt;/P&gt;&lt;P&gt;115     STOP.&lt;/P&gt;&lt;P&gt;116   ENDIF.&lt;/P&gt;&lt;P&gt;117 ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 18:50:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bdc-creating-customer-master/m-p/3998606#M955346</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T18:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: using BDC creating customer master......</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bdc-creating-customer-master/m-p/3998607#M955347</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 are saying that your file is at presentation server instead of using the method try using FM GUI_UPLOAD&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;&lt;/P&gt;&lt;P&gt;Edited by: Chaitanya V Kumar Naru on Jun 18, 2008 9:19 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 19:18:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bdc-creating-customer-master/m-p/3998607#M955347</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T19:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: using BDC creating customer master......</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bdc-creating-customer-master/m-p/3998608#M955348</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;At Open data set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATA SET &amp;lt;.....&amp;gt; IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 19:25:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bdc-creating-customer-master/m-p/3998608#M955348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T19:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: using BDC creating customer master......</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bdc-creating-customer-master/m-p/3998609#M955349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chaithanya..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exactly what u want me to do for resolving this issuee..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 19:29:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bdc-creating-customer-master/m-p/3998609#M955349</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T19:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: using BDC creating customer master......</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bdc-creating-customer-master/m-p/3998610#M955350</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 are trying to upload the data from your Desktop.&lt;/P&gt;&lt;P&gt;In which case, you should use the function module GUI_UPLOAD and NOT OPEN DATASET/READ DATASET statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YOu should use OPen dataset / read dataset if you are uploading the data from Application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi Kanth Talagana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 19:32:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bdc-creating-customer-master/m-p/3998610#M955350</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T19:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: using BDC creating customer master......</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bdc-creating-customer-master/m-p/3998611#M955351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;at &lt;/P&gt;&lt;P&gt;PERFORM open_dataset USING dataset. &lt;/P&gt;&lt;P&gt;PERFORM OPEN_DATASET IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I have no idea on methods i mean oops if you say that this is correct using open data set in oops then the above solution will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Chaitanya V Kumar Naru on Jun 18, 2008 9:35 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Chaitanya V Kumar Naru on Jun 18, 2008 9:36 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 19:34:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bdc-creating-customer-master/m-p/3998611#M955351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T19:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: using BDC creating customer master......</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bdc-creating-customer-master/m-p/3998612#M955352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's really not clear what you're trying to do with your dataset. You both try to upload it from the presentation server and the application server. If it really is on the presentation server, get rid of the open dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 19:39:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bdc-creating-customer-master/m-p/3998612#M955352</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T19:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: using BDC creating customer master......</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bdc-creating-customer-master/m-p/3998613#M955353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yahh chaithanya that 100% correct for upload file using meathods...&lt;/P&gt;&lt;P&gt;thanks for your valuble time for spending to me.....:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please let me know if anyone you is not clear with my question...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance and will give full points...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 19:44:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bdc-creating-customer-master/m-p/3998613#M955353</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T19:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: using BDC creating customer master......</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bdc-creating-customer-master/m-p/3998614#M955354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ROB...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the file is in [resentation server...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please let me know if you have any questions...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance and will give full points...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 19:46:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bdc-creating-customer-master/m-p/3998614#M955354</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T19:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: using BDC creating customer master......</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bdc-creating-customer-master/m-p/3998615#M955355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;go thru this link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapnet.ru/abap_docu/ABENUNICODE_DATASET.htm" target="test_blank"&gt;http://www.sapnet.ru/abap_docu/ABENUNICODE_DATASET.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from unicode enabled version you have to maintain the things which are given in the above link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no other answers.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 19:54:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bdc-creating-customer-master/m-p/3998615#M955355</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T19:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: using BDC creating customer master......</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bdc-creating-customer-master/m-p/3998616#M955356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;once again thanks chaithanya for ur valuble time and support....:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 19:56:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bdc-creating-customer-master/m-p/3998616#M955356</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T19:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: using BDC creating customer master......</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bdc-creating-customer-master/m-p/3998617#M955357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like I said earlier - if it's on the presentation server, you don't need a READ DATASET. Remove that line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 19:59:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bdc-creating-customer-master/m-p/3998617#M955357</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T19:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: using BDC creating customer master......</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bdc-creating-customer-master/m-p/3998618#M955358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ROB...&lt;/P&gt;&lt;P&gt;i removed and ran and i am etting same problem...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if any alternative process....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please let me know if my question is not clear...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance...and will give full points...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 22:41:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bdc-creating-customer-master/m-p/3998618#M955358</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T22:41:41Z</dc:date>
    </item>
  </channel>
</rss>

