<?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: Regarding uploading excel file into internal table having two rows in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-uploading-excel-file-into-internal-table-having-two-rows/m-p/7310463#M1535422</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  Oman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciated for your help, i want this program to  be run in Background  .  can i run this program run in background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;subba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Sep 2010 17:12:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-09-28T17:12:05Z</dc:date>
    <item>
      <title>Regarding uploading excel file into internal table having two rows</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-uploading-excel-file-into-internal-table-having-two-rows/m-p/7310459#M1535418</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;I have a problem of uploading data which conatins two rows in excel.First row contains say ten fields  and second row conatns three fields .  example    matnr   ersda  maktl  mtart   in first row and second row contains   fields of diffrent type&lt;/P&gt;&lt;P&gt;example  spras  langu region  .How to upload from excel to internal table . I need to pass again to BAPI .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;subbara.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Sep 2010 17:02:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-uploading-excel-file-into-internal-table-having-two-rows/m-p/7310459#M1535418</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-27T17:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding uploading excel file into internal table having two rows</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-uploading-excel-file-into-internal-table-having-two-rows/m-p/7310460#M1535419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the file upload usually needs a fixed structure defined for the upload file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Two things that you can do - &lt;/P&gt;&lt;P&gt;1&amp;gt; convert the two rows into one with 13 fields and upload it and use in the BAPI using further data mapping or logic to move the fields.&lt;/P&gt;&lt;P&gt;2&amp;gt; Define a genereic structure of length equal to the length of the 10 fields. Read the file and depending on the line(odd for 10 fields and even for 3 fields) move it in a structure as defined for the 10 fields and 3 fields. Then you can transfer the data to the BAPI.&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;swanand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Sep 2010 17:48:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-uploading-excel-file-into-internal-table-having-two-rows/m-p/7310460#M1535419</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-27T17:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding uploading excel file into internal table having two rows</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-uploading-excel-file-into-internal-table-having-two-rows/m-p/7310461#M1535420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sada,&lt;/P&gt;&lt;P&gt;Appreciated for your answer,  can you please send some sample code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;subbara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Sep 2010 04:24:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-uploading-excel-file-into-internal-table-having-two-rows/m-p/7310461#M1535420</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-28T04:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding uploading excel file into internal table having two rows</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-uploading-excel-file-into-internal-table-having-two-rows/m-p/7310462#M1535421</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;Try Below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:      it_data1 TYPE              kcde_intern WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;           wa_data1 LIKE LINE OF      it_data1.&lt;/P&gt;&lt;P&gt;TYPES :     BEGIN     OF             ty_data          ,&lt;/P&gt;&lt;P&gt;            zbukr     TYPE           payr-zbukr       ,&lt;/P&gt;&lt;P&gt;            hbkid     TYPE           payr-hbkid       ,&lt;/P&gt;&lt;P&gt;            hktid     TYPE           payr-hktid       ,&lt;/P&gt;&lt;P&gt;            rzawe     TYPE           payr-rzawe       ,&lt;/P&gt;&lt;P&gt;            chect     TYPE           payr-chect       ,&lt;/P&gt;&lt;P&gt;            laufd     TYPE           reguh-laufd      ,&lt;/P&gt;&lt;P&gt;            laufi     TYPE           reguh-laufi      ,&lt;/P&gt;&lt;P&gt;            lifnr     TYPE           reguh-lifnr      ,&lt;/P&gt;&lt;P&gt;            vblnr     TYPE           reguh-vblnr      ,&lt;/P&gt;&lt;P&gt;            rwbtr     TYPE           reguh-rwbtr      ,             &lt;/P&gt;&lt;P&gt;            END       OF             ty_data          .&lt;/P&gt;&lt;P&gt;DATA it_tab type ty_data OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETER : pr_file   TYPE           rlgrap-filename         .&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;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'KCD_EXCEL_OLE_TO_INT_CONVERT'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        filename                = pr_file&lt;/P&gt;&lt;P&gt;        i_begin_col             = '1'&lt;/P&gt;&lt;P&gt;        i_begin_row             = '4'&lt;/P&gt;&lt;P&gt;        i_end_col               = '11'&lt;/P&gt;&lt;P&gt;        i_end_row               = '60000'&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        intern                  = it_data1&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;&lt;/P&gt;&lt;P&gt;*******Now IT_DATA1 contains all the data of excelsheet, manipulate it as per your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT it_data1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        MOVE it_data1-col TO ld_index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        ASSIGN COMPONENT ld_index OF STRUCTURE&lt;/P&gt;&lt;P&gt;        it_tab TO &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;        MOVE : it_data1-value TO &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    MOVE it_data1-value TO p_table.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        AT END OF row.&lt;/P&gt;&lt;P&gt;          APPEND it_tab.&lt;/P&gt;&lt;P&gt;          CLEAR it_tab.&lt;/P&gt;&lt;P&gt;        ENDAT.&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;Here data will come in it_data as per my requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do manipulation as per your requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Sep 2010 15:21:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-uploading-excel-file-into-internal-table-having-two-rows/m-p/7310462#M1535421</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-28T15:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding uploading excel file into internal table having two rows</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-uploading-excel-file-into-internal-table-having-two-rows/m-p/7310463#M1535422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  Oman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciated for your help, i want this program to  be run in Background  .  can i run this program run in background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;subba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Sep 2010 17:12:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-uploading-excel-file-into-internal-table-having-two-rows/m-p/7310463#M1535422</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-28T17:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding uploading excel file into internal table having two rows</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-uploading-excel-file-into-internal-table-having-two-rows/m-p/7310464#M1535423</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;I have resolved my self  as i did using FTP and read dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my program is working fine in background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;subba&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Sep 2010 07:54:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-uploading-excel-file-into-internal-table-having-two-rows/m-p/7310464#M1535423</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-30T07:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding uploading excel file into internal table having two rows</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-uploading-excel-file-into-internal-table-having-two-rows/m-p/7310465#M1535424</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;I could able to resolve this issue on myself.&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;subbara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Sep 2010 07:56:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-uploading-excel-file-into-internal-table-having-two-rows/m-p/7310465#M1535424</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-30T07:56:10Z</dc:date>
    </item>
  </channel>
</rss>

