<?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: simple excel logic in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-excel-logic/m-p/3059773#M724721</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You want to change company 3000 to 3050 within excel then &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Copy the entire column into another excel then do like ctrl+F ,Select Replace -&amp;gt; now enter value and new value -&amp;gt; replace all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now copy the data -&amp;gt; goto original excel file -&amp;gt; paste it entire column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Nov 2007 18:59:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-20T18:59:52Z</dc:date>
    <item>
      <title>simple excel logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-excel-logic/m-p/3059772#M724720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi friends,&lt;/P&gt;&lt;P&gt;i am given a big excel sheet of FI transactional data, which has around 60 000 records,&lt;/P&gt;&lt;P&gt;the company codes have changed , previously which were 3000 are now 3050,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now  there are a thousand records with comp code 3000, how  do i change  all these compcodes to 3050.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 18:40:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-excel-logic/m-p/3059772#M724720</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-20T18:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: simple excel logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-excel-logic/m-p/3059773#M724721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You want to change company 3000 to 3050 within excel then &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Copy the entire column into another excel then do like ctrl+F ,Select Replace -&amp;gt; now enter value and new value -&amp;gt; replace all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now copy the data -&amp;gt; goto original excel file -&amp;gt; paste it entire column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 18:59:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-excel-logic/m-p/3059773#M724721</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-20T18:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: simple excel logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-excel-logic/m-p/3059774#M724722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi seshu,&lt;/P&gt;&lt;P&gt;thank you very much for responding,&lt;/P&gt;&lt;P&gt;actually i too thought of doing this but  there are 60,000 records,&lt;/P&gt;&lt;P&gt;doing this manually, would be too tedious,&lt;/P&gt;&lt;P&gt;what i expected some one would help me with excel functions like&lt;/P&gt;&lt;P&gt;if(condion_true, true_value,false_value)&lt;/P&gt;&lt;P&gt;if(bukrs=3000, 3050, No_change)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;some thing like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please look into this.&lt;/P&gt;&lt;P&gt;thank  you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 19:12:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-excel-logic/m-p/3059774#M724722</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-20T19:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: simple excel logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-excel-logic/m-p/3059775#M724723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But again it will take some time and you need to apply that formula to each row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, better to replace it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open your excel file.. &lt;/P&gt;&lt;P&gt;Select the Entire columns(say column A) by clicking on the top .&lt;/P&gt;&lt;P&gt;Press Cntrl+F.. in the pop up select replace tab&lt;/P&gt;&lt;P&gt;Enter 3000 into Find what &lt;/P&gt;&lt;P&gt;Enter 3050 into replace with &lt;/P&gt;&lt;P&gt;Press button REPLACE ALL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will take some time, but it will change all bukrs from 3000 to 3050&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 19:17:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-excel-logic/m-p/3059775#M724723</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-11-20T19:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: simple excel logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-excel-logic/m-p/3059776#M724724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sanjana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you need tochange that's records only in excel sheet? Or do you need to change in the database too?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need, I have one sample code to change this in excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&amp;amp; Report  ZEXEMPLOEXCEL                                               *&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&amp;amp; EXPORT DATA TO EXCEL USING "CLIPBOARD", EXPORTING DATA FOR      *&lt;/P&gt;&lt;P&gt;*&amp;amp; CLIPBOARD  AND "PAST" THE INTERNAL TABLE   *&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZEXEMPLOEXCEL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;**FIELD-SYMBOL AND OLE FOR EXPORTING&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;INCLUDE ole2incl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols: .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: w_cell1 type ole2_object,&lt;/P&gt;&lt;P&gt;      w_cell2 type ole2_object.&lt;/P&gt;&lt;P&gt;data: h_excel type ole2_object, " Excel object&lt;/P&gt;&lt;P&gt;      h_mapl type ole2_object, " list of workbooks&lt;/P&gt;&lt;P&gt;      h_map type ole2_object, " workbook&lt;/P&gt;&lt;P&gt;      h_zl type ole2_object, " cell&lt;/P&gt;&lt;P&gt;      worksheet type ole2_object,&lt;/P&gt;&lt;P&gt;      h_cell type ole2_object,&lt;/P&gt;&lt;P&gt;      range type ole2_object,&lt;/P&gt;&lt;P&gt;      h_sheet1 type ole2_object, "FIRST SHEET TO BE CREATED&lt;/P&gt;&lt;P&gt;      h_sheet2 type ole2_object, "SECOND SHEET TO BE CREATED&lt;/P&gt;&lt;P&gt;      h_sheet3 type ole2_object, "THIRD SHEET TO BE CREATED&lt;/P&gt;&lt;P&gt;      gs_font type ole2_object.&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;TABLES AND TYPES&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;TABLES: SCUSTOM, SBOOK, SFLIGHT.&lt;/P&gt;&lt;P&gt;TYPES: data1(1500),&lt;/P&gt;&lt;P&gt;       ty_data type table of data1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;**INTERNAL TABLES, CONSTANTS AND VARIABLES&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;DATA: ti_scustom LIKE STANDARD TABLE OF scustom WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      ti_sbook LIKE STANDARD TABLE OF sbook WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      ti_sflight LIKE STANDARD TABLE OF sflight WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;      wa_scustom type ty_data with header line,&lt;/P&gt;&lt;P&gt;      wa_sbook type ty_data with header line,&lt;/P&gt;&lt;P&gt;      wa_sflight type ty_data with header line,&lt;/P&gt;&lt;P&gt;      begin of hex,&lt;/P&gt;&lt;P&gt;        tab type x,&lt;/P&gt;&lt;P&gt;      end of hex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;constants cns_09(2) type n value 09.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: deli(1) type c,&lt;/P&gt;&lt;P&gt;      l_amt(18) type c,&lt;/P&gt;&lt;P&gt;      nome_planilha(20) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--FIELDS TO CONCATENATE&lt;/P&gt;&lt;P&gt;*--&lt;/P&gt;&lt;P&gt;DATA: FORCURAM(15),   "field FORCURAM   of table SBOOK&lt;/P&gt;&lt;P&gt;      LOCCURAM(15),   "field LOCCURAM   of table SBOOK&lt;/P&gt;&lt;P&gt;      PRICE(20),      "field PRICE      of table SFLIGHT&lt;/P&gt;&lt;P&gt;      SEATSMAX(10),   "field SEATSMAX   dof table SFLIGHT&lt;/P&gt;&lt;P&gt;      SEATSOCC(10),   "field SEATSOCC   of table SFLIGHT&lt;/P&gt;&lt;P&gt;      PAYMENTSUM(20). "Cfield PAYMENTSUM of table SFLIGHT&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;SET IN FIELD DELI THE SYMBOL '#'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;assign deli to  = hex-tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--CALL FORMS&lt;/P&gt;&lt;P&gt;PERFORM preenche_tabelas_internas.&lt;/P&gt;&lt;P&gt;PERFORM abre_excel.&lt;/P&gt;&lt;P&gt;*--EXPORTE DATAS FROM WORKAREA WA_SCUSTOM&lt;/P&gt;&lt;P&gt;PERFORM exporta_dados using 'SCUSTOM' h_sheet1 wa_scustom[].&lt;/P&gt;&lt;P&gt;*--EXPORTA DATAS FROM  WORKAREA WA_SBOOK&lt;/P&gt;&lt;P&gt;PERFORM exporta_dados using 'SBOOK' h_sheet2 wa_sbook[].&lt;/P&gt;&lt;P&gt;*--EXPORTA DATAS FROM WORKAREA WA_SFLIGHT&lt;/P&gt;&lt;P&gt;PERFORM exporta_dados using 'SFLIGHT' h_sheet3 wa_sflight[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--CLOSE EXCEL CONNECTION&lt;/P&gt;&lt;P&gt;free object h_zl.&lt;/P&gt;&lt;P&gt;free object h_mapl.&lt;/P&gt;&lt;P&gt;free object h_map.&lt;/P&gt;&lt;P&gt;free object h_excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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; FORM preenche_tabelas_internas&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&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; POPULATING INTERNAL TABLES AND WORKAREAS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;form preenche_tabelas_internas.&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; POPULATING INTERNAL TABLES AND WORKAREAS "WA_"&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;  select * from scustom into table ti_scustom.&lt;/P&gt;&lt;P&gt;  select * from sbook into table ti_sbook.&lt;/P&gt;&lt;P&gt;  select * from sflight into table ti_sflight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  concatenate 'CARRID' 'CONNID' 'FLDATE' 'CUSTOMID'&lt;/P&gt;&lt;P&gt;              'CLASS' 'FORCURAM' 'FORCURKEY' 'LOCCURAM'&lt;/P&gt;&lt;P&gt;              'LOCCURKEY' 'ORDER_DATE' 'AGENCYNUM'&lt;/P&gt;&lt;P&gt;        into wa_sbook&lt;/P&gt;&lt;P&gt;  separated by deli.&lt;/P&gt;&lt;P&gt;  append wa_sbook.&lt;/P&gt;&lt;P&gt;  clear wa_sbook.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  concatenate 'ID' 'NAME' 'STREET' 'POSTBOX'&lt;/P&gt;&lt;P&gt;              'POSTCODE' 'CITY' 'COUNTRY' 'TELEPHONE'&lt;/P&gt;&lt;P&gt;        into wa_scustom&lt;/P&gt;&lt;P&gt;  separated by deli.&lt;/P&gt;&lt;P&gt;  append wa_scustom.&lt;/P&gt;&lt;P&gt;  clear wa_scustom.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate 'CARRID' 'CONNID' 'FLDATE' 'PRICE' 'CURRENCY'&lt;/P&gt;&lt;P&gt;            'PLANETYPE' 'SEATSMAX' 'SEATSOCC' 'PAYMENTSUM'&lt;/P&gt;&lt;P&gt;        into wa_sflight&lt;/P&gt;&lt;P&gt;  separated by deli.&lt;/P&gt;&lt;P&gt;  append wa_sflight.&lt;/P&gt;&lt;P&gt;  clear wa_sflight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-- WA_SCUSTOM DATA'S&lt;/P&gt;&lt;P&gt;  loop at ti_scustom.&lt;/P&gt;&lt;P&gt;    concatenate ti_scustom-ID ti_scustom-NAME ti_scustom-STREET&lt;/P&gt;&lt;P&gt;                ti_scustom-POSTBOX ti_scustom-POSTCODE ti_scustom-CITY&lt;/P&gt;&lt;P&gt;                ti_scustom-COUNTRY ti_scustom-TELEPHONE&lt;/P&gt;&lt;P&gt;          into wa_scustom&lt;/P&gt;&lt;P&gt;    separated by deli.&lt;/P&gt;&lt;P&gt;    append wa_scustom.&lt;/P&gt;&lt;P&gt;    clear wa_scustom.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--WA_SBOOK DATA'S&lt;/P&gt;&lt;P&gt;  loop at ti_sbook.&lt;/P&gt;&lt;P&gt;    FORCURAM = ti_sbook-FORCURAM.&lt;/P&gt;&lt;P&gt;    LOCCURAM = ti_sbook-LOCCURAM.&lt;/P&gt;&lt;P&gt;    concatenate ti_sbook-CARRID ti_sbook-CONNID ti_sbook-FLDATE&lt;/P&gt;&lt;P&gt;                ti_sbook-CUSTOMID ti_sbook-CLASS FORCURAM&lt;/P&gt;&lt;P&gt;                ti_sbook-FORCURKEY LOCCURAM ti_sbook-LOCCURKEY&lt;/P&gt;&lt;P&gt;                ti_sbook-ORDER_DATE ti_sbook-AGENCYNUM&lt;/P&gt;&lt;P&gt;          into wa_sbook&lt;/P&gt;&lt;P&gt;    separated by deli.&lt;/P&gt;&lt;P&gt;    append wa_sbook.&lt;/P&gt;&lt;P&gt;    clear wa_sbook.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--WA_SFIGHT DATA'S&lt;/P&gt;&lt;P&gt;  loop at ti_sflight.&lt;/P&gt;&lt;P&gt;  PRICE = ti_sflight-PRICE.&lt;/P&gt;&lt;P&gt;  SEATSMAX = ti_sflight-SEATSMAX.&lt;/P&gt;&lt;P&gt;  SEATSOCC = ti_sflight-SEATSOCC.&lt;/P&gt;&lt;P&gt;  PAYMENTSUM = ti_sflight-PAYMENTSUM.&lt;/P&gt;&lt;P&gt;    concatenate ti_sflight-CARRID ti_sflight-CONNID&lt;/P&gt;&lt;P&gt;                ti_sflight-FLDATE PRICE ti_sflight-CURRENCY&lt;/P&gt;&lt;P&gt;                ti_sflight-PLANETYPE SEATSMAX SEATSOCC PAYMENTSUM&lt;/P&gt;&lt;P&gt;          into wa_sflight&lt;/P&gt;&lt;P&gt;    separated by deli.&lt;/P&gt;&lt;P&gt;    append wa_sflight.&lt;/P&gt;&lt;P&gt;    clear wa_sflight.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;endform.                    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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; FORM abre_excel&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&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; OPEN EXCEL&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;form abre_excel.&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;START AND PREPARE EXCEL&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;  if h_excel-header = space or h_excel-handle = -1.&lt;/P&gt;&lt;P&gt;    create object h_excel 'EXCEL.APPLICATION'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call method of h_excel 'Workbooks' = h_mapl.&lt;/P&gt;&lt;P&gt;  set property of h_excel 'Visible' = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call method of h_mapl 'Add' = h_map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    "abre_excel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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; FORM exporta_dados&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&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; EXPORTA OS DADOS PARA A PLANILHA ESPECIFICADA NO PERFORM "USING"&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;form exporta_dados using nome sheet table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--CRIA UMA PLANILHA COM O NOME SBOOK&lt;/P&gt;&lt;P&gt;  nome_planilha = nome.&lt;/P&gt;&lt;P&gt;  get property of h_excel 'Sheets' = sheet .&lt;/P&gt;&lt;P&gt;  call method of sheet 'Add' = h_map.&lt;/P&gt;&lt;P&gt;  set property of h_map 'Name' = nome_planilha .&lt;/P&gt;&lt;P&gt;  get property of h_excel 'ACTIVESHEET' = worksheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--FORMATA A PRIMEIRA LINHA COMO NEGRITO (CABEÇALHO)&lt;/P&gt;&lt;P&gt;*--Linhas e Colunas onde a formatação Inicia&lt;/P&gt;&lt;P&gt;  call method of h_excel 'Cells' = w_cell1&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      #1 = 1 "Linha&lt;/P&gt;&lt;P&gt;      #2 = 1. "Coluna&lt;/P&gt;&lt;P&gt;*--Linhas e Colunas onde a formatação Termina&lt;/P&gt;&lt;P&gt;  call method of h_excel 'Cells' = w_cell2&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      #1 = 1 "Linha&lt;/P&gt;&lt;P&gt;      #2 = 50. "Coluna&lt;/P&gt;&lt;P&gt;  call method of h_excel 'Range' = h_cell&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      #1 = w_cell1&lt;/P&gt;&lt;P&gt;      #2 = w_cell2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  get property of h_cell 'Font' = gs_font .&lt;/P&gt;&lt;P&gt;  set property of gs_font 'Bold' = 1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--COPY WA_SBOOK FOR CLIPBOARD&lt;/P&gt;&lt;P&gt;  data l_rc type i.&lt;/P&gt;&lt;P&gt;  call method cl_gui_frontend_services=&amp;gt;clipboard_export&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      data                 = table&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      rc                   = l_rc&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      cntl_error           = 1&lt;/P&gt;&lt;P&gt;      error_no_gui         = 2&lt;/P&gt;&lt;P&gt;      not_supported_by_gui = 3&lt;/P&gt;&lt;P&gt;      others               = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--PREPARE SHEET TO RECEIVE DATA'S&lt;/P&gt;&lt;P&gt;  call method of h_excel 'Cells' = w_cell1&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      #1 = 1&lt;/P&gt;&lt;P&gt;      #2 = 1.&lt;/P&gt;&lt;P&gt;  call method of h_excel 'Cells' = w_cell2&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      #1 = 1&lt;/P&gt;&lt;P&gt;      #2 = 1.&lt;/P&gt;&lt;P&gt;  call method of h_excel 'Range' = range&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      #1 = w_cell1&lt;/P&gt;&lt;P&gt;      #2 = w_cell2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--PAST DATA'S IN SBOOK SHEET&lt;/P&gt;&lt;P&gt;  call method of range 'Select'.&lt;/P&gt;&lt;P&gt;  call method of worksheet 'Paste'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    "exporta_dados_sbook&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just sorry for portuguese code. I don't had time to translate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Balbino&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 19:21:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-excel-logic/m-p/3059776#M724724</guid>
      <dc:creator>balbino_soaresferreirafil</dc:creator>
      <dc:date>2007-11-20T19:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: simple excel logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-excel-logic/m-p/3059777#M724725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sanjana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do u want to change it at excel?&lt;/P&gt;&lt;P&gt;so, only do it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF(&amp;lt;Cell&amp;gt;=3000;3050;&amp;lt;Cell&amp;gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like this:&lt;/P&gt;&lt;P&gt;=IF(B2=3000;3050;B2)&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;&lt;/P&gt;&lt;P&gt;Allan Cristian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 19:32:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-excel-logic/m-p/3059777#M724725</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-20T19:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: simple excel logic</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-excel-logic/m-p/3059778#M724726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi naimesh,&lt;/P&gt;&lt;P&gt;your suggestion seems to work,&lt;/P&gt;&lt;P&gt;thanks for your effort.&lt;/P&gt;&lt;P&gt;as you said, the other methos needs to be applied for each row, yours seems to be a better way,&lt;/P&gt;&lt;P&gt;thanks for your effort.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2007 21:59:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-excel-logic/m-p/3059778#M724726</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-20T21:59:19Z</dc:date>
    </item>
  </channel>
</rss>

