<?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: uploading data to EXCEL in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-to-excel/m-p/1393781#M191075</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Timothy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam sending the code code to upload data from excel sheet to a ztable table.All you have to do is browse the location of file which in your case is c drive and then execute. I think all you have to do is create an unternal table with the fields similiar to FB01 and loop the internal table and update the corresponding table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&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;Program to upload data from excel sheet to z340b_md&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Code written by Venkat Goli s&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*******************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT Z340BMD_DATA no standard page heading line-size 255 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables : zabc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : Begin of t_upload occurs 0,&lt;/P&gt;&lt;P&gt;        ZZPHYACT like zabc-ZZPHYACT,  " zzphyact - physician id&lt;/P&gt;&lt;P&gt;        ZZLNAME like zabc-ZZLNAME,    " zzlname - last name&lt;/P&gt;&lt;P&gt;        ZZFNAME like zabc-ZZFNAME,    " zzfname - first name&lt;/P&gt;&lt;P&gt;       end of t_upload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : i_itab_sheet like alsmex_tabline occurs 0 with&lt;/P&gt;&lt;P&gt;       header line.&lt;/P&gt;&lt;P&gt;data: it_dup like t_upload occurs 0 with header line.&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;selection-screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;selection-screen: begin of block blk with frame title text-001.&lt;/P&gt;&lt;P&gt;selection-screen : skip 1.&lt;/P&gt;&lt;P&gt;parameters : p_file like rlgrap-filename.&lt;/P&gt;&lt;P&gt;selection-screen : skip 1.&lt;/P&gt;&lt;P&gt;selection-screen : end of block blk.&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;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;F4 Value for File&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'KD_GET_FILENAME_ON_F4'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PROGRAM_NAME        = SYST-REPID&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DYNPRO_NUMBER       = SYST-DYNNR&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FIELD_NAME          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     STATIC              = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MASK                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      FILE_NAME           = p_file&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     MASK_TOO_LONG       = 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;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            FILENAME                = p_file&lt;/P&gt;&lt;P&gt;            I_BEGIN_COL             = 1&lt;/P&gt;&lt;P&gt;            I_BEGIN_ROW             = 2&lt;/P&gt;&lt;P&gt;            I_END_COL               = 3&lt;/P&gt;&lt;P&gt;            I_END_ROW               = 12507&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            INTERN                  = i_itab_sheet&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            INCONSISTENT_PARAMETERS = 1&lt;/P&gt;&lt;P&gt;            UPLOAD_OLE              = 2&lt;/P&gt;&lt;P&gt;            OTHERS                  = 3.&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;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Reading data in to internal table t_upload&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  loop at i_itab_sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    If i_itab_sheet-col = 1.&lt;/P&gt;&lt;P&gt;      t_upload-ZZPHYACT = i_itab_sheet-value.&lt;/P&gt;&lt;P&gt;    elseIF i_itab_sheet-col = 2.&lt;/P&gt;&lt;P&gt;      t_upload-ZZLNAME = i_itab_sheet-value.&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;      t_upload-ZZFNAME = i_itab_sheet-value.&lt;/P&gt;&lt;P&gt;      append t_upload.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;sorting the records&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;sort t_upload by zzphyact zzlname zzfname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To check for the duplicate records&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at t_upload.&lt;/P&gt;&lt;P&gt;  If it_dup EQ t_upload.&lt;/P&gt;&lt;P&gt;   write : / ' The Following Records Exists More Than Once In The File'.&lt;/P&gt;&lt;P&gt;   skip 2.&lt;/P&gt;&lt;P&gt;   write : /  it_dup.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  it_dup = t_upload.&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;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Deleting the duplicate records&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATES FROM t_upload COMPARING zzphyact zzlname&lt;/P&gt;&lt;P&gt;                                                            zzfname.&lt;/P&gt;&lt;P&gt;&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;Updating the z340b_md table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;modify z340b_md from table t_upload.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Jun 2006 18:33:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-13T18:33:30Z</dc:date>
    <item>
      <title>uploading data to EXCEL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-to-excel/m-p/1393778#M191072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;We currently have a process where the users update a excel spreadsheet and call a ABAP pgm to upload the spreadsheet data to SAP for processing in FB01. The front-end screen is where the user enters the path and filename for the file. this is usually on their C drive. I would like to know if  there a SAP process that will let me enter data similar to an excel spreadsheet or copy data from a excel spreadsheet to a form in SAP? I could then use this form for my processing. This way when I need to update the form and the programs, the two would get transported together and eliminate the problem of the form not matching the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks you in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2006 17:15:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-to-excel/m-p/1393778#M191072</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-13T17:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: uploading data to EXCEL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-to-excel/m-p/1393779#M191073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Hixson&lt;/P&gt;&lt;P&gt;  Have a look at this Link&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/file/file_upexcelalt1.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/file/file_upexcelalt1.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2006 17:29:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-to-excel/m-p/1393779#M191073</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-13T17:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: uploading data to EXCEL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-to-excel/m-p/1393780#M191074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Timothy&lt;/P&gt;&lt;P&gt;I am not aware if there is any form similar to Excel.&lt;/P&gt;&lt;P&gt;But you can upload excel to internal table using function&lt;/P&gt;&lt;P&gt;ALSM_EXCEL_TO_INTERNAL_TABLE&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;Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2006 17:33:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-to-excel/m-p/1393780#M191074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-13T17:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: uploading data to EXCEL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-to-excel/m-p/1393781#M191075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Timothy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam sending the code code to upload data from excel sheet to a ztable table.All you have to do is browse the location of file which in your case is c drive and then execute. I think all you have to do is create an unternal table with the fields similiar to FB01 and loop the internal table and update the corresponding table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&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;Program to upload data from excel sheet to z340b_md&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Code written by Venkat Goli s&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*******************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT Z340BMD_DATA no standard page heading line-size 255 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables : zabc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : Begin of t_upload occurs 0,&lt;/P&gt;&lt;P&gt;        ZZPHYACT like zabc-ZZPHYACT,  " zzphyact - physician id&lt;/P&gt;&lt;P&gt;        ZZLNAME like zabc-ZZLNAME,    " zzlname - last name&lt;/P&gt;&lt;P&gt;        ZZFNAME like zabc-ZZFNAME,    " zzfname - first name&lt;/P&gt;&lt;P&gt;       end of t_upload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : i_itab_sheet like alsmex_tabline occurs 0 with&lt;/P&gt;&lt;P&gt;       header line.&lt;/P&gt;&lt;P&gt;data: it_dup like t_upload occurs 0 with header line.&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;selection-screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;selection-screen: begin of block blk with frame title text-001.&lt;/P&gt;&lt;P&gt;selection-screen : skip 1.&lt;/P&gt;&lt;P&gt;parameters : p_file like rlgrap-filename.&lt;/P&gt;&lt;P&gt;selection-screen : skip 1.&lt;/P&gt;&lt;P&gt;selection-screen : end of block blk.&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;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;F4 Value for File&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'KD_GET_FILENAME_ON_F4'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PROGRAM_NAME        = SYST-REPID&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DYNPRO_NUMBER       = SYST-DYNNR&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FIELD_NAME          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     STATIC              = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MASK                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      FILE_NAME           = p_file&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     MASK_TOO_LONG       = 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;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            FILENAME                = p_file&lt;/P&gt;&lt;P&gt;            I_BEGIN_COL             = 1&lt;/P&gt;&lt;P&gt;            I_BEGIN_ROW             = 2&lt;/P&gt;&lt;P&gt;            I_END_COL               = 3&lt;/P&gt;&lt;P&gt;            I_END_ROW               = 12507&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            INTERN                  = i_itab_sheet&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            INCONSISTENT_PARAMETERS = 1&lt;/P&gt;&lt;P&gt;            UPLOAD_OLE              = 2&lt;/P&gt;&lt;P&gt;            OTHERS                  = 3.&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;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Reading data in to internal table t_upload&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  loop at i_itab_sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    If i_itab_sheet-col = 1.&lt;/P&gt;&lt;P&gt;      t_upload-ZZPHYACT = i_itab_sheet-value.&lt;/P&gt;&lt;P&gt;    elseIF i_itab_sheet-col = 2.&lt;/P&gt;&lt;P&gt;      t_upload-ZZLNAME = i_itab_sheet-value.&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;      t_upload-ZZFNAME = i_itab_sheet-value.&lt;/P&gt;&lt;P&gt;      append t_upload.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;sorting the records&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;sort t_upload by zzphyact zzlname zzfname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To check for the duplicate records&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at t_upload.&lt;/P&gt;&lt;P&gt;  If it_dup EQ t_upload.&lt;/P&gt;&lt;P&gt;   write : / ' The Following Records Exists More Than Once In The File'.&lt;/P&gt;&lt;P&gt;   skip 2.&lt;/P&gt;&lt;P&gt;   write : /  it_dup.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  it_dup = t_upload.&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;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;Deleting the duplicate records&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATES FROM t_upload COMPARING zzphyact zzlname&lt;/P&gt;&lt;P&gt;                                                            zzfname.&lt;/P&gt;&lt;P&gt;&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;Updating the z340b_md table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;modify z340b_md from table t_upload.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2006 18:33:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-data-to-excel/m-p/1393781#M191075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-13T18:33:30Z</dc:date>
    </item>
  </channel>
</rss>

