<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: BDC Recording Error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-recording-error/m-p/2358971#M521609</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is the entire code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report ZME2L_BDC&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;&lt;/P&gt;&lt;P&gt;parameters: dataset(132) lower case.&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;P&gt;DATA: begin of it_matmaster occurs 0,&lt;/P&gt;&lt;P&gt;      lifnr type lifnr,&lt;/P&gt;&lt;P&gt;      werks type werks,&lt;/P&gt;&lt;P&gt;      matnr type matnr,&lt;/P&gt;&lt;P&gt;      end of it_matmaster.&lt;/P&gt;&lt;P&gt;DATA:v_file TYPE string.&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:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        LOW_001(010),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        LISTU_002(010),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        LOW_003(004),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        LOW_004(018),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: OAX&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        SELFLAG_01_005(001),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: OAX&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        SELFLAG_02_006(001),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        DY_PATH_007(255),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        DY_FILENAME_008(255),&lt;/P&gt;&lt;P&gt;      end of record.&lt;/P&gt;&lt;P&gt;PARAMETERS:p_file LIKE rlgrap-filename OBLIGATORY.&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;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.&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;      field_name    = 'P_FILE'&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;start-of-selection.&lt;/P&gt;&lt;P&gt; v_file = p_file.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      filename                      = v_file&lt;/P&gt;&lt;P&gt;     filetype                      = 'ASC'&lt;/P&gt;&lt;P&gt;     has_field_separator           = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER_LENGTH                 = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  READ_BY_LINE                  = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DAT_MODE                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILELENGTH                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER                        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab                      =  it_matmaster&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     file_open_error               = 1&lt;/P&gt;&lt;P&gt;     file_read_error               = 2&lt;/P&gt;&lt;P&gt;     no_batch                      = 3&lt;/P&gt;&lt;P&gt;     gui_refuse_filetransfer       = 4&lt;/P&gt;&lt;P&gt;     invalid_type                  = 5&lt;/P&gt;&lt;P&gt;     no_authority                  = 6&lt;/P&gt;&lt;P&gt;     unknown_error                 = 7&lt;/P&gt;&lt;P&gt;     bad_data_format               = 8&lt;/P&gt;&lt;P&gt;     header_not_allowed            = 9&lt;/P&gt;&lt;P&gt;     separator_not_allowed         = 10&lt;/P&gt;&lt;P&gt;     header_too_long               = 11&lt;/P&gt;&lt;P&gt;     unknown_dp_error              = 12&lt;/P&gt;&lt;P&gt;     access_denied                 = 13&lt;/P&gt;&lt;P&gt;     dp_out_of_memory              = 14&lt;/P&gt;&lt;P&gt;     disk_full                     = 15&lt;/P&gt;&lt;P&gt;     dp_timeout                    = 16&lt;/P&gt;&lt;P&gt;     OTHERS                        = 17&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;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  ENDIF.&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;loop at it_matmaster.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'RM06EL00' '1000'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'S_MATNR-LOW'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=ONLI'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'EL_LIFNR-LOW'&lt;/P&gt;&lt;P&gt;                              it_matmaster-lifnr.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'LISTU'&lt;/P&gt;&lt;P&gt;                              'ALV'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'S_WERKS-LOW'&lt;/P&gt;&lt;P&gt;                              it_matmaster-werks.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'S_MATNR-LOW'&lt;/P&gt;&lt;P&gt;                              it_matmaster-matnr.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLSLVC_FULLSCREEN' '0500'.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;perform bdc_field       using 'BDC_OKCODE' '=%PC'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLSPO5' '0101'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'SPOPLI-SELFLAG(02)'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=OK'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'SPOPLI-SELFLAG(01)'&lt;/P&gt;&lt;P&gt;                              ' '.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'SPOPLI-SELFLAG(02)'&lt;/P&gt;&lt;P&gt;                              'X'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLSFES' '0200'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'DY_PATH'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=FILE'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'DY_PATH'&lt;/P&gt;&lt;P&gt;                              'C:\Documents and Settings\satish.jadhav\Desktop\'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'DY_FILENAME'&lt;/P&gt;&lt;P&gt;                              'BDC_ME2l.xls'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLSLVC_FULLSCREEN' '0500'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'  '=&amp;amp;F03'.&lt;/P&gt;&lt;P&gt;perform bdc_transaction using 'ME2L'.&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;*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;%pc is the function code of the button that is used to download to local file in spreadsheet format where im getting the error..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jun 2007 10:36:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-04T10:36:10Z</dc:date>
    <item>
      <title>BDC Recording Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-recording-error/m-p/2358970#M521608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Ive used BDC recording for the transaction ME2L. Here's the recording.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;Recording&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'RM06EL00' '1000'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'S_MATNR-LOW'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=ONLI'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'EL_LIFNR-LOW'&lt;/P&gt;&lt;P&gt;                              it_matmaster-lifnr.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'LISTU'&lt;/P&gt;&lt;P&gt;                              'ALV'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'S_WERKS-LOW'&lt;/P&gt;&lt;P&gt;                              it_matmaster-werks.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'S_MATNR-LOW'&lt;/P&gt;&lt;P&gt;                              it_matmaster-matnr.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLSLVC_FULLSCREEN' '0500'.&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=%PC'.&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLSPO5' '0101'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'SPOPLI-SELFLAG(02)'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=OK'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'SPOPLI-SELFLAG(01)'&lt;/P&gt;&lt;P&gt;                              ' '.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'SPOPLI-SELFLAG(02)'&lt;/P&gt;&lt;P&gt;                              'X'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLSFES' '0200'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'DY_PATH'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=FILE'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'DY_PATH'&lt;/P&gt;&lt;P&gt;                              'C:\Documents and Settings\satish.jadhav\Desktop\'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'DY_FILENAME'&lt;/P&gt;&lt;P&gt;                              'BDC_ME2l.xls'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLSLVC_FULLSCREEN' '0500'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=&amp;amp;F03'.&lt;/P&gt;&lt;P&gt;perform bdc_transaction using 'ME2L'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The highlighted part is to download the report to Local xls file. But once it comes to that command it says &amp;lt;b&amp;gt;Function Code cant be selected.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if i select it manually in the while running the BDC it goes on properly on the next steps. I dont understand what the error is? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help!!!!!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Prashant Kamat&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 10:18:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-recording-error/m-p/2358970#M521608</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-04T10:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Recording Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-recording-error/m-p/2358971#M521609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is the entire code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report ZME2L_BDC&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;&lt;/P&gt;&lt;P&gt;parameters: dataset(132) lower case.&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;P&gt;DATA: begin of it_matmaster occurs 0,&lt;/P&gt;&lt;P&gt;      lifnr type lifnr,&lt;/P&gt;&lt;P&gt;      werks type werks,&lt;/P&gt;&lt;P&gt;      matnr type matnr,&lt;/P&gt;&lt;P&gt;      end of it_matmaster.&lt;/P&gt;&lt;P&gt;DATA:v_file TYPE string.&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:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        LOW_001(010),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        LISTU_002(010),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        LOW_003(004),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        LOW_004(018),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: OAX&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        SELFLAG_01_005(001),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element: OAX&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        SELFLAG_02_006(001),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        DY_PATH_007(255),&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;data element:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        DY_FILENAME_008(255),&lt;/P&gt;&lt;P&gt;      end of record.&lt;/P&gt;&lt;P&gt;PARAMETERS:p_file LIKE rlgrap-filename OBLIGATORY.&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;AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.&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;      field_name    = 'P_FILE'&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;start-of-selection.&lt;/P&gt;&lt;P&gt; v_file = p_file.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      filename                      = v_file&lt;/P&gt;&lt;P&gt;     filetype                      = 'ASC'&lt;/P&gt;&lt;P&gt;     has_field_separator           = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER_LENGTH                 = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  READ_BY_LINE                  = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DAT_MODE                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILELENGTH                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER                        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab                      =  it_matmaster&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     file_open_error               = 1&lt;/P&gt;&lt;P&gt;     file_read_error               = 2&lt;/P&gt;&lt;P&gt;     no_batch                      = 3&lt;/P&gt;&lt;P&gt;     gui_refuse_filetransfer       = 4&lt;/P&gt;&lt;P&gt;     invalid_type                  = 5&lt;/P&gt;&lt;P&gt;     no_authority                  = 6&lt;/P&gt;&lt;P&gt;     unknown_error                 = 7&lt;/P&gt;&lt;P&gt;     bad_data_format               = 8&lt;/P&gt;&lt;P&gt;     header_not_allowed            = 9&lt;/P&gt;&lt;P&gt;     separator_not_allowed         = 10&lt;/P&gt;&lt;P&gt;     header_too_long               = 11&lt;/P&gt;&lt;P&gt;     unknown_dp_error              = 12&lt;/P&gt;&lt;P&gt;     access_denied                 = 13&lt;/P&gt;&lt;P&gt;     dp_out_of_memory              = 14&lt;/P&gt;&lt;P&gt;     disk_full                     = 15&lt;/P&gt;&lt;P&gt;     dp_timeout                    = 16&lt;/P&gt;&lt;P&gt;     OTHERS                        = 17&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;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  ENDIF.&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;loop at it_matmaster.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'RM06EL00' '1000'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'S_MATNR-LOW'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=ONLI'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'EL_LIFNR-LOW'&lt;/P&gt;&lt;P&gt;                              it_matmaster-lifnr.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'LISTU'&lt;/P&gt;&lt;P&gt;                              'ALV'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'S_WERKS-LOW'&lt;/P&gt;&lt;P&gt;                              it_matmaster-werks.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'S_MATNR-LOW'&lt;/P&gt;&lt;P&gt;                              it_matmaster-matnr.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLSLVC_FULLSCREEN' '0500'.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;perform bdc_field       using 'BDC_OKCODE' '=%PC'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLSPO5' '0101'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'SPOPLI-SELFLAG(02)'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=OK'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'SPOPLI-SELFLAG(01)'&lt;/P&gt;&lt;P&gt;                              ' '.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'SPOPLI-SELFLAG(02)'&lt;/P&gt;&lt;P&gt;                              'X'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLSFES' '0200'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'DY_PATH'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=FILE'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'DY_PATH'&lt;/P&gt;&lt;P&gt;                              'C:\Documents and Settings\satish.jadhav\Desktop\'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'DY_FILENAME'&lt;/P&gt;&lt;P&gt;                              'BDC_ME2l.xls'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLSLVC_FULLSCREEN' '0500'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'  '=&amp;amp;F03'.&lt;/P&gt;&lt;P&gt;perform bdc_transaction using 'ME2L'.&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;*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;%pc is the function code of the button that is used to download to local file in spreadsheet format where im getting the error..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 10:36:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-recording-error/m-p/2358971#M521609</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-04T10:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Recording Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-recording-error/m-p/2358972#M521610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Please go through the problem and suggest me some solution..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prashant Kamat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 02:59:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-recording-error/m-p/2358972#M521610</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T02:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Recording Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-recording-error/m-p/2358973#M521611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BDC will not work since it is report program and use submit command..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT report name VIA SELECTION-SCREEN&lt;/P&gt;&lt;P&gt;                          WITH SELECTION-TABLE t_param&lt;/P&gt;&lt;P&gt;                          AND RETURN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 03:03:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-recording-error/m-p/2358973#M521611</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T03:03:55Z</dc:date>
    </item>
  </channel>
</rss>

