<?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: excel uploading in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-uploading/m-p/4122134#M985510</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;You have do the fallowing steps&lt;/P&gt;&lt;P&gt;1) Copy the FM ALSM_EXCEL_TO_INTERNAL_TABLE and make a zFM use this FM.&lt;/P&gt;&lt;P&gt;2) Copy the table ALSMEX_TABLINE make a Ztable using this table.&lt;/P&gt;&lt;P&gt;3) Change the filed(VALUE) in ztable with a 1000 char dataelement.&lt;/P&gt;&lt;P&gt;4) Use this table as table parameter associated type.&lt;/P&gt;&lt;P&gt;then the ZFM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Jul 2008 12:33:26 GMT</pubDate>
    <dc:creator>Subhankar</dc:creator>
    <dc:date>2008-07-02T12:33:26Z</dc:date>
    <item>
      <title>excel uploading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-uploading/m-p/4122129#M985505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am uploading the EXCEL file to SAP using Function Module 'TEXT_CONVERT_XLS_TO _SAP', In that flat file i have one text field around 700 charecters, but from Function Module it is uploading only 256 charcters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have tried with both STRING and CHAR &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : var_text type string,     and &lt;/P&gt;&lt;P&gt;data : var_text(4096) type  c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this variables are not storing more than 256 charecters...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please give me UR valuable and HELPFUL suggestion.....&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;Prasad.EV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 09:13:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-uploading/m-p/4122129#M985505</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-01T09:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: excel uploading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-uploading/m-p/4122130#M985506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please do try the following function module,"'ALSM_EXCEL_TO_INTERNAL_TABLE'"&lt;/P&gt;&lt;P&gt;which will collect the excell to an internal table from where you can update to DB table.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ajith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 10:05:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-uploading/m-p/4122130#M985506</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-01T10:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: excel uploading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-uploading/m-p/4122131#M985507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;EV,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just use like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: BEGIN OF it_excel OCCURS 0,
  belnr(10),
  xblnr(16),
  bktxt(25),
  bldat(10),
  zuonr(18),
  oac(1),
  dmbtr(16),
  pszah(15),
  wrbtr(16),
  kunnr(10),
  budat(10),
  konto(16),
  bukrs(04),
  waers(05),
  agkon(16),
  prctr(10),
  wrbtr1(16),
  spesw(15),
  kostl(10),
  sgtxt(50),

END OF it_excel.

CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
    EXPORTING
*     I_FIELD_SEPERATOR          =
      i_line_header              = 'X'
      i_tab_raw_data             = it_raw
      i_filename                 = pfile
    TABLES
      i_tab_converted_data       = it_excel[]
*   EXCEPTIONS
*     CONVERSION_FAILED          = 1
*     OTHERS                     = 2
            .
  IF sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 10:07:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-uploading/m-p/4122131#M985507</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-01T10:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: excel uploading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-uploading/m-p/4122132#M985508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at FM ALSM_EXCEL_TO_INTERNAL_TABLE this is fine until it gets to  teh following statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  perform separated_to_intern_convert tables excel_tab intern&lt;/P&gt;&lt;P&gt;                                      using  ld_separator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should be able to utilise a lot of the code from here.&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;J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 10:09:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-uploading/m-p/4122132#M985508</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-01T10:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: excel uploading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-uploading/m-p/4122133#M985509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use function &lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u r using ecc 5.0/6.0&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;regds&lt;/P&gt;&lt;P&gt;jigar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 07:19:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-uploading/m-p/4122133#M985509</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-02T07:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: excel uploading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-uploading/m-p/4122134#M985510</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;You have do the fallowing steps&lt;/P&gt;&lt;P&gt;1) Copy the FM ALSM_EXCEL_TO_INTERNAL_TABLE and make a zFM use this FM.&lt;/P&gt;&lt;P&gt;2) Copy the table ALSMEX_TABLINE make a Ztable using this table.&lt;/P&gt;&lt;P&gt;3) Change the filed(VALUE) in ztable with a 1000 char dataelement.&lt;/P&gt;&lt;P&gt;4) Use this table as table parameter associated type.&lt;/P&gt;&lt;P&gt;then the ZFM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 12:33:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-uploading/m-p/4122134#M985510</guid>
      <dc:creator>Subhankar</dc:creator>
      <dc:date>2008-07-02T12:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: excel uploading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-uploading/m-p/4122135#M985511</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;The &lt;STRONG&gt;Character Data Type&lt;/STRONG&gt; (C) can store upto 255 characters.&lt;/P&gt;&lt;P&gt;If you want to store more than 255 characters then go for&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;STRING&lt;/STRONG&gt; Data Type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps 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>Thu, 03 Jul 2008 10:32:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-uploading/m-p/4122135#M985511</guid>
      <dc:creator>former_member787646</dc:creator>
      <dc:date>2008-07-03T10:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: excel uploading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-uploading/m-p/4122136#M985512</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 do not think it is a DATA TYPE problem. As far as I understand one cannot export/import more that 256 characters into excel/word for a single field. I think this is more like a constrain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had a scenario where I tried replacing a word in WORD doc using a macro and it had a similar issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to link &lt;A href="http://support.microsoft.com/kb/212543" target="test_blank"&gt;http://support.microsoft.com/kb/212543&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2008 07:30:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-uploading/m-p/4122136#M985512</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-04T07:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: excel uploading</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/excel-uploading/m-p/4122137#M985513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hii!&lt;/P&gt;&lt;P&gt;  Check Out this code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  z_file3.

DATA: fname(40),
      w_line TYPE i VALUE 1,
      w_file TYPE rlgrap-filename.


DATA:
  t_tab LIKE
  TABLE OF ALSMEX_TABLINE
  WITH HEADER LINE.

DATA: fs_tab LIKE LINE OF t_tab.


w_file = 'C:\Documents and Settings\abc\Desktop\Book1.xls'.
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
  EXPORTING
    filename                      = w_file
    i_begin_col                   = 1
    i_begin_row                   = 1
    i_end_col                     = 10
    i_end_row                     = 100
  tables
    intern                        = t_tab
 EXCEPTIONS
   INCONSISTENT_PARAMETERS       = 1
   UPLOAD_OLE                    = 2
   OTHERS                        = 3
          .
IF sy-subrc &amp;lt;&amp;gt; 0.
 MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ELSE.
  WRITE: 'UPLOAD SUCCESSFUL'.
ENDIF.

fname = '.\zfile.xls'.
OPEN DATASET fname FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
LOOP AT t_tab INTO fs_tab.
  TRANSFER fs_tab TO fname.
ENDLOOP.

IF sy-subrc EQ 0.
  WRITE: / 'FILE OPENED ON APPS SERVER'.
ELSE.
  WRITE: / 'FILE COULD NOT BE OPENED'.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abhijeet Kulshreshtha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 13:07:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/excel-uploading/m-p/4122137#M985513</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T13:07:50Z</dc:date>
    </item>
  </channel>
</rss>

