<?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: How to convert BIN data to STRING data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-bin-data-to-string-data/m-p/3953567#M944916</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;Use Function module TEXT_CONVERT_XLS_TO_SAP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jun 2008 05:01:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-03T05:01:29Z</dc:date>
    <item>
      <title>How to convert BIN data to STRING data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-bin-data-to-string-data/m-p/3953564#M944913</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 upload excel(.XLS) to a internal table whose type is &lt;/P&gt;&lt;P&gt;  BIN.&lt;/P&gt;&lt;P&gt;  How to convert this internal table data to another &lt;/P&gt;&lt;P&gt;  internal table whose fields type is like sap?&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  Thanks you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 03:24:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-bin-data-to-string-data/m-p/3953564#M944913</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T03:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert BIN data to STRING data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-bin-data-to-string-data/m-p/3953565#M944914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ken....&lt;/P&gt;&lt;P&gt;data: ta_excel type standard table of alsmex_tabline initial   &lt;/P&gt;&lt;P&gt;        size 0,&lt;/P&gt;&lt;P&gt;        wa_excel type alsmex_tabline.&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;selection-screen  begin of block session_process with frame title text-001.&lt;/P&gt;&lt;P&gt;parameter: pa_file  type  rlgrap-filename obligatory. "File Name&lt;/P&gt;&lt;P&gt;selection-screen end of block session_process.&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;              At 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;at selection-screen on value-request for pa_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;      field_name = 'PA_FILE'&lt;/P&gt;&lt;P&gt;    importing&lt;/P&gt;&lt;P&gt;      file_name  = pa_file.&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                = pa_file&lt;/P&gt;&lt;P&gt;      i_begin_col             = 1    " this important frm which col &lt;/P&gt;&lt;P&gt;      i_begin_row             = 1   "you have data&lt;/P&gt;&lt;P&gt;      i_end_col               = 255&lt;/P&gt;&lt;P&gt;      i_end_row               = 65000&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      intern                  = ta_excel&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;  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 E000 WITH TEXT-E01 PA_FILE.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Sorting table by Rows and Columns.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  sort ta_excel by row col.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get ROW 1.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  read table ta_excel into wa_excel index 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Match First Row to Current Row&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  tp_currentrow = wa_excel-row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at ta_excel into wa_excel.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Reset Values for Next Row&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if wa_excel-row ne tp_currentrow.&lt;/P&gt;&lt;P&gt;      append wa_mm01 to ta_mm01.&lt;/P&gt;&lt;P&gt;      clear wa_mm01.&lt;/P&gt;&lt;P&gt;      tp_currentrow = wa_excel-row.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    case wa_excel-col.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        when'0001'.&lt;/P&gt;&lt;P&gt;        wa_mm01-matnr    = wa_excel-value.&lt;/P&gt;&lt;P&gt;        when'0002'.&lt;/P&gt;&lt;P&gt;        wa_mm01-mbrsh    = wa_excel-value.&lt;/P&gt;&lt;P&gt;        when'0003'.&lt;/P&gt;&lt;P&gt;        wa_mm01-mtart    = wa_excel-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        when'0004'.&lt;/P&gt;&lt;P&gt;        wa_mm01-werks    = wa_excel-value.&lt;/P&gt;&lt;P&gt;        when'0005'.&lt;/P&gt;&lt;P&gt;        wa_mm01-lgnum   = wa_excel-value.&lt;/P&gt;&lt;P&gt;        when'0006'.&lt;/P&gt;&lt;P&gt;        wa_mm01-lgtyp   = wa_excel-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        when'0007'.&lt;/P&gt;&lt;P&gt;        wa_mm01-ltkza    = wa_excel-value.&lt;/P&gt;&lt;P&gt;        when'0008'.&lt;/P&gt;&lt;P&gt;        wa_mm01-ltkze    = wa_excel-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        when'0009'.&lt;/P&gt;&lt;P&gt;        wa_mm01-lgpla    = wa_excel-value.&lt;/P&gt;&lt;P&gt;    endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;  append wa_mm01 to ta_mm01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 03:32:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-bin-data-to-string-data/m-p/3953565#M944914</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T03:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert BIN data to STRING data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-bin-data-to-string-data/m-p/3953566#M944915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suneel Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks you for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I can not use the function 'ALSM_EXCEL_TO_INTERNAL_TABLE', because the excel is a attachment of activity in CRM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 04:47:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-bin-data-to-string-data/m-p/3953566#M944915</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T04:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert BIN data to STRING data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-bin-data-to-string-data/m-p/3953567#M944916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;Use Function module TEXT_CONVERT_XLS_TO_SAP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 05:01:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-bin-data-to-string-data/m-p/3953567#M944916</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T05:01:29Z</dc:date>
    </item>
  </channel>
</rss>

