<?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 problem ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/4173757#M997769</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Balu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First point you are using REFRESH comment inside loop statment that means you are clearing the body of the BDCDATA tab everytime you loop. SO tables does not contain any data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second in just pass 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field using 'MSICHTAUSW-KZSEL(01)'  'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it resolves you issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Nagaraj Kalbavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Jul 2008 12:41:25 GMT</pubDate>
    <dc:creator>former_member70391</dc:creator>
    <dc:date>2008-07-21T12:41:25Z</dc:date>
    <item>
      <title>BDC problem ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/4173749#M997761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello i am getting my BDc code syntactically correct but, when i am executeing the code system is asking for the input rather than taking from the flatfile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is in my SE38 whole code....&lt;/P&gt;&lt;P&gt;please help me to achieve this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF TY_STU,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       MATNR LIKE RMMG1-MATNR,     "MATERIAL NUMBER"&lt;/P&gt;&lt;P&gt;       MBRSH LIKE RMMG1-MBRSH,     "INDUSTRY SECTOR"&lt;/P&gt;&lt;P&gt;       MTART LIKE RMMG1-MTART,     "MATERIAL TYPE"&lt;/P&gt;&lt;P&gt;       WERKS LIKE RMMG1-WERKS,     "PLANT"&lt;/P&gt;&lt;P&gt;       LGORT LIKE RMMG1-LGORT,     "STROAGE LOCATION"&lt;/P&gt;&lt;P&gt;       MAKTX LIKE MAKT-MAKTX,      "DESCRIPTION"&lt;/P&gt;&lt;P&gt;       MEINS LIKE MARA-MEINS,      "BUM"&lt;/P&gt;&lt;P&gt;       MATKL LIKE MARA-MATKL,      "MATERIAL GROUP"&lt;/P&gt;&lt;P&gt;       EKGRP LIKE MARC-EKGRP,      "PURCHASE GROUP"&lt;/P&gt;&lt;P&gt;       DISMM LIKE MARC-DISMM,      "MRP TYPE"&lt;/P&gt;&lt;P&gt;       DISPO LIKE MARC-DISPO,      "MRP CONTROLLER"&lt;/P&gt;&lt;P&gt;       DISLS LIKE MARC-DISLS,      "LOT SIZE"&lt;/P&gt;&lt;P&gt;       PLIFZ LIKE MARC-PLIFZ,      "PLANNED DELIVERY TIME"&lt;/P&gt;&lt;P&gt;       FHORI LIKE MARC-FHORI,      "SCHEDULING MARGIN KEY"&lt;/P&gt;&lt;P&gt;       BKLAS LIKE MBEW-BKLAS,       "VALUATION CLASS"&lt;/P&gt;&lt;P&gt;       VPRSV LIKE MBEW-VPRSV,        "PRICE CONTROL"&lt;/P&gt;&lt;P&gt;       PEINH LIKE MBEW-PEINH,        "PRICE UNIT"&lt;/P&gt;&lt;P&gt;       VERPR LIKE MBEW-VERPR,        "MOVING PRICE"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       END OF TY_STU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;INTERNAL TABLE &amp;amp; WORKAREA DECLARATION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : T_UPLOAD TYPE  STANDARD TABLE OF TY_STU INITIAL SIZE 0,&lt;/P&gt;&lt;P&gt;       T_BDCDATA TYPE STANDARD TABLE OF BDCDATA INITIAL SIZE 0,&lt;/P&gt;&lt;P&gt;       T_BDCMSGCOLL TYPE STANDARD TABLE OF BDCMSGCOLL INITIAL SIZE 0,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      W_UPLOAD TYPE TY_STU,&lt;/P&gt;&lt;P&gt;      BDCDATA TYPE BDCDATA,&lt;/P&gt;&lt;P&gt;      W_BDCMSGCOLL TYPE BDCMSGCOLL,&lt;/P&gt;&lt;P&gt;      G_MESSAGE TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA :  G_FILE TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      SELECTION SCREEN&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME.&lt;/P&gt;&lt;P&gt;PARAMETERS : p_file LIKE rlgrap-filename OBLIGATORY.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK blk1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'F4_FILENAME'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;program_name = syst-cprog&lt;/P&gt;&lt;P&gt;dynpro_number = syst-dynnr&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;file_name = p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;g_file = p_file.&lt;/P&gt;&lt;P&gt;&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 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    FILENAME                      = g_file&lt;/P&gt;&lt;P&gt;   FILETYPE                      = 'ASC'&lt;/P&gt;&lt;P&gt;   HAS_FIELD_SEPARATOR           = 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    DATA_TAB                      = T_UPLOAD&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT T_UPLOAD INTO W_UPLOAD.&lt;/P&gt;&lt;P&gt;REFRESH T_BDCDATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLMGMM' '0060'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'RMMG1-MATNR'.&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 'RMMG1-MATNR'&lt;/P&gt;&lt;P&gt;                              W_UPLOAD-MATNR.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RMMG1-MBRSH'&lt;/P&gt;&lt;P&gt;                              W_UPLOAD-MBRSH.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RMMG1-MTART'&lt;/P&gt;&lt;P&gt;                              W_UPLOAD-MTART.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLMGMM' '0070'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'MSICHTAUSW-DYTXT(14)'.&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 'MSICHTAUSW-KZSEL(01)'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                             W_UPLOAD-KZSEL_01_004.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*perform bdc_field       using 'MSICHTAUSW-KZSEL(02)'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                             W_UPLOAD-KZSEL_02_005.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*perform bdc_field       using 'MSICHTAUSW-KZSEL(09)'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                             W_UPLOAD-KZSEL_09_006.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*perform bdc_field       using 'MSICHTAUSW-KZSEL(12)'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                             W_UPLOAD-KZSEL_12_007.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*perform bdc_field       using 'MSICHTAUSW-KZSEL(13)'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                             W_UPLOAD-KZSEL_13_008.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*perform bdc_field       using 'MSICHTAUSW-KZSEL(14)'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                             W_UPLOAD-KZSEL_14_009.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLMGMM' '0070'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'MSICHTAUSW-DYTXT(01)'.&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_dynpro      using 'SAPLMGMM' '0070'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'MSICHTAUSW-DYTXT(16)'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=ENTR'.&lt;/P&gt;&lt;P&gt;*perform bdc_field       using 'MSICHTAUSW-KZSEL(16)'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                             W_UPLOAD-KZSEL_16_010.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLMGMM' '0080'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'RMMG1-LGORT'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=ENTR'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RMMG1-WERKS'&lt;/P&gt;&lt;P&gt;                              W_UPLOAD-WERKS.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RMMG1-LGORT'&lt;/P&gt;&lt;P&gt;                              W_UPLOAD-LGORT.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLMGMM' '4004'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=SP09'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MAKT-MAKTX'&lt;/P&gt;&lt;P&gt;                              W_UPLOAD-MAKTX.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'MARA-MATKL'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MARA-MEINS'&lt;/P&gt;&lt;P&gt;                              W_UPLOAD-MEINS.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MARA-MATKL'&lt;/P&gt;&lt;P&gt;                              W_UPLOAD-MATKL.&lt;/P&gt;&lt;P&gt;*perform bdc_field       using 'MARA-MTPOS_MARA'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                             record-MTPOS_MARA_016.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLMGMM' '4000'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=SP12'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MAKT-MAKTX'&lt;/P&gt;&lt;P&gt;                              W_UPLOAD-MAKTX.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'MARC-EKGRP'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MARA-MEINS'&lt;/P&gt;&lt;P&gt;                              W_UPLOAD-MEINS.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MARC-EKGRP'&lt;/P&gt;&lt;P&gt;                              W_UPLOAD-EKGRP.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MARA-MATKL'&lt;/P&gt;&lt;P&gt;                              W_UPLOAD-MATKL.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLMGMM' '4000'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              'SP13'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MAKT-MAKTX'&lt;/P&gt;&lt;P&gt;                              W_UPLOAD-MAKTX.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MARA-MEINS'&lt;/P&gt;&lt;P&gt;                              W_UPLOAD-MEINS.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MARC-EKGRP'&lt;/P&gt;&lt;P&gt;                              W_UPLOAD-EKGRP.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MARC-DISMM'&lt;/P&gt;&lt;P&gt;                              W_UPLOAD-DISMM.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MARC-DISPO'&lt;/P&gt;&lt;P&gt;                              W_UPLOAD-DISPO.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'MARC-DISLS'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MARC-DISLS'&lt;/P&gt;&lt;P&gt;                              W_UPLOAD-DISLS.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLMGMM' '4000'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=SP24'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MAKT-MAKTX'&lt;/P&gt;&lt;P&gt;                              W_UPLOAD-MAKTX.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'MARC-FHORI'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MARC-PLIFZ'&lt;/P&gt;&lt;P&gt;                              W_UPLOAD-PLIFZ.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MARC-FHORI'&lt;/P&gt;&lt;P&gt;                              W_UPLOAD-FHORI.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLMGMM' '4000'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=BU'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MAKT-MAKTX'&lt;/P&gt;&lt;P&gt;                              W_UPLOAD-MAKTX.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MARA-MEINS'&lt;/P&gt;&lt;P&gt;                              W_UPLOAD-MEINS.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'MBEW-VERPR'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MBEW-BKLAS'&lt;/P&gt;&lt;P&gt;                              W_UPLOAD-BKLAS.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MBEW-VPRSV'&lt;/P&gt;&lt;P&gt;                              W_UPLOAD-VPRSV.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MBEW-PEINH'&lt;/P&gt;&lt;P&gt;                              W_UPLOAD-PEINH.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MBEW-VERPR'&lt;/P&gt;&lt;P&gt;                              W_UPLOAD-VERPR.&lt;/P&gt;&lt;P&gt;*perform bdc_transaction using 'MM01'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'MM01' USING T_BDCDATA MODE 'A' update 'S' MESSAGES&lt;/P&gt;&lt;P&gt;INTO T_BDCMSGCOLL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR W_BDCMSGCOLL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE T_BDCMSGCOLL INTO W_BDCMSGCOLL INDEX 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FORMAT_MESSAGE'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   ID              = SY-MSGID&lt;/P&gt;&lt;P&gt;   LANG            = '-D'&lt;/P&gt;&lt;P&gt;   NO              = SY-MSGNO&lt;/P&gt;&lt;P&gt;   V1              = SY-MSGV1&lt;/P&gt;&lt;P&gt;   V2              = SY-MSGV2&lt;/P&gt;&lt;P&gt;   V3              = SY-MSGV3&lt;/P&gt;&lt;P&gt;   V4              = SY-MSGV4&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   MSG             = G_MESSAGE&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   NOT_FOUND       = 1&lt;/P&gt;&lt;P&gt;   OTHERS          = 2&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE : / G_MESSAGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFRESH T_BDCMSGCOLL.&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;&lt;/P&gt;&lt;P&gt;*enddo.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*perform close_group.&lt;/P&gt;&lt;P&gt;*perform close_dataset using dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       Start new screen                                              *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM BDC_DYNPRO USING PROGRAM DYNPRO.&lt;/P&gt;&lt;P&gt;  CLEAR BDCDATA.&lt;/P&gt;&lt;P&gt;  BDCDATA-PROGRAM  = PROGRAM.&lt;/P&gt;&lt;P&gt;  BDCDATA-DYNPRO   = DYNPRO.&lt;/P&gt;&lt;P&gt;  BDCDATA-DYNBEGIN = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND BDCDATA TO T_BDCDATA.&lt;/P&gt;&lt;P&gt;  CLEAR bdcdata.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       Insert field                                                  *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM BDC_FIELD USING FNAM FVAL.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; IF FVAL &amp;lt;&amp;gt; NODATA.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CLEAR BDCDATA.&lt;/P&gt;&lt;P&gt;    BDCDATA-FNAM = FNAM.&lt;/P&gt;&lt;P&gt;    BDCDATA-FVAL = FVAL.&lt;/P&gt;&lt;P&gt;    APPEND BDCDATA TO T_BDCDATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 11:46:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/4173749#M997761</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T11:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: BDC problem ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/4173750#M997762</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;In the Loop Remove/Comment  the following statement.&lt;/P&gt;&lt;P&gt;(Below LOOP AT T_UPLOAD INTO W_UPLOAD.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFRESH T_BDCDATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this would help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Murthy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 12:06:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/4173750#M997762</guid>
      <dc:creator>former_member787646</dc:creator>
      <dc:date>2008-07-21T12:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: BDC problem ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/4173751#M997763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi balu ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have copied this same code and upload the thru a dummy data and it was working fine . It was not asking for any data rather it is taking data from the "tab delimited file".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to upload same and still u finds prob then paste the screen shot of that along with ur data file...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Binod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 12:09:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/4173751#M997763</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T12:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: BDC problem ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/4173752#M997764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u need to select atleast one view from the first screen...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but in ur code it was commented....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;uncomment atleast one view from ur code, then u can able to create the material.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the statement&lt;/P&gt;&lt;P&gt;*perform bdc_field using 'MSICHTAUSW-KZSEL(01)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should be  perform bdc_field using 'MSICHTAUSW-KZSEL(01)'    'X'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 12:15:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/4173752#M997764</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T12:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: BDC problem ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/4173753#M997765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi thks for the reply how come it is working for you...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i am executeing the program the material number is taking and the error message is throwing after like enter material type....&lt;/P&gt;&lt;P&gt;Please help me to achieve this.&lt;/P&gt;&lt;P&gt;Thks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 12:16:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/4173753#M997765</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T12:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: BDC problem ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/4173754#M997766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello i have disabled REFRESH T_BDCDATA but still it is taking only material number from the flatfile and throwing the error like please enter material type.&lt;/P&gt;&lt;P&gt;Any modification that i have to do still. Please help me to achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 12:18:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/4173754#M997766</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T12:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: BDC problem ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/4173755#M997767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi thks for responding i have done the relavent modifications suggested wise...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MSICHTAUSW-KZSEL(01)''X'&lt;/P&gt;&lt;P&gt;                              W_UPLOAD-KZSEL_01_004.&lt;/P&gt;&lt;P&gt;*perform bdc_field       using 'MSICHTAUSW-KZSEL(02)'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                             W_UPLOAD-KZSEL_02_005.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have uncommented the first view but in this it is throwing error like "&lt;STRONG&gt;The data object 'w_upload' does not have a component called 'KZSEL_01_004'&lt;/STRONG&gt;".&lt;/P&gt;&lt;P&gt;Can there be anymore modifications.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 12:26:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/4173755#M997767</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T12:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: BDC problem ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/4173756#M997768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Balu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls let me know for which u need to update the data?&lt;/P&gt;&lt;P&gt;for that view just pass value as 'X'. thats it...&lt;/P&gt;&lt;P&gt;no need to place the value W_UPLOAD-KZSEL_01_004.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of this  we are placing 'X'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 12:36:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/4173756#M997768</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T12:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: BDC problem ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/4173757#M997769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Balu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First point you are using REFRESH comment inside loop statment that means you are clearing the body of the BDCDATA tab everytime you loop. SO tables does not contain any data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second in just pass 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field using 'MSICHTAUSW-KZSEL(01)'  'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it resolves you issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Nagaraj Kalbavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 12:41:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/4173757#M997769</guid>
      <dc:creator>former_member70391</dc:creator>
      <dc:date>2008-07-21T12:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: BDC problem ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/4173758#M997770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;balu ,&lt;/P&gt;&lt;P&gt;actually there were some commented line which i uncomeented and it was working fine.just massage it and u will get the outcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gudluck buddy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards binod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 13:53:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-problem/m-p/4173758#M997770</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T13:53:28Z</dc:date>
    </item>
  </channel>
</rss>

