How to download logo and heading in excel sheet.
Hi ,
can any one tell me how i will download the logo in the excel sheet by using program.
Regards,
Priti shrivastava
Hope you are comfortable with inserting header in to excel sheet.
Regarding Logo see the below code snippet:-
TABLES:
sflight.
* header data................................
DATA :
header1 LIKE gxxlt_p-text VALUE 'Suresh',
header2 LIKE gxxlt_p-text VALUE 'Excel sheet'.
* Internal table for holding the SFLIGHT data
DATA BEGIN OF t_sflight OCCURS 0.
INCLUDE STRUCTURE sflight.
DATA END OF t_sflight.
* Internal table for holding the horizontal key.
DATA BEGIN OF t_hkey OCCURS 0.
INCLUDE STRUCTURE gxxlt_h.
DATA END OF t_hkey .
* Internal table for holding the vertical key.
DATA BEGIN OF t_vkey OCCURS 0.
INCLUDE STRUCTURE gxxlt_v.
DATA END OF t_vkey .
* Internal table for holding the online text....
DATA BEGIN OF t_online OCCURS 0.
INCLUDE STRUCTURE gxxlt_o.
DATA END OF t_online.
* Internal table to hold print text.............
DATA BEGIN OF t_print OCCURS 0.
INCLUDE STRUCTURE gxxlt_p.
DATA END OF t_print.
* Internal table to hold SEMA data..............
DATA BEGIN OF t_sema OCCURS 0.
INCLUDE STRUCTURE gxxlt_s.
DATA END OF t_sema.
* Retreiving data from sflight.
SELECT * FROM sflight
INTO TABLE t_sflight.
* Text which will be displayed online is declared here....
t_online-line_no = '1'.
t_online-info_name = 'Created by'.
t_online-info_value = 'SURESH KUMAR PARVATHANENI'.
APPEND t_online.
* Text which will be printed out..........................
t_print-hf = 'H'.
t_print-lcr = 'L'.
t_print-line_no = '1'.
t_print-text = 'This is the header'.
APPEND t_print.
t_print-hf = 'F'.
t_print-lcr = 'C'.
t_print-line_no = '1'.
t_print-text = 'This is the footer'.
APPEND t_print.
* Defining the vertical key columns.......
t_vkey-col_no = '1'.
t_vkey-col_name = 'MANDT'.
APPEND t_vkey.
t_vkey-col_no = '2'.
t_vkey-col_name = 'CARRID'.
APPEND t_vkey.
t_vkey-col_no = '3'.
t_vkey-col_name = 'CONNID'.
APPEND t_vkey.
t_vkey-col_no = '4'.
t_vkey-col_name = 'FLDATE'.
APPEND t_vkey.
* Header text for the data columns................
t_hkey-row_no = '1'.
t_hkey-col_no = 1.
t_hkey-col_name = 'PRICE'.
APPEND t_hkey.
t_hkey-col_no = 2.
t_hkey-col_name = 'CURRENCY'.
APPEND t_hkey.
t_hkey-col_no = 3.
t_hkey-col_name = 'PLANETYPE'.
APPEND t_hkey.
t_hkey-col_no = 4.
t_hkey-col_name = 'SEATSMAX'.
APPEND t_hkey.
t_hkey-col_no = 5.
t_hkey-col_name = 'SEATSOCC'.
APPEND t_hkey.
t_hkey-col_no = 6.
t_hkey-col_name = 'PAYMENTSUM'.
APPEND t_hkey.
* populating the SEMA data..........................
t_sema-col_no = 1.
t_sema-col_typ = 'STR'.
t_sema-col_ops = 'DFT'.
APPEND t_sema.
t_sema-col_no = 2.
APPEND t_sema.
t_sema-col_no = 3.
APPEND t_sema.
t_sema-col_no = 4.
APPEND t_sema.
t_sema-col_no = 5.
APPEND t_sema.
t_sema-col_no = 6.
APPEND t_sema.
t_sema-col_no = 7.
APPEND t_sema.
t_sema-col_no = 8.
APPEND t_sema.
t_sema-col_no = 9.
APPEND t_sema.
t_sema-col_no = 10.
t_sema-col_typ = 'NUM'.
t_sema-col_ops = 'ADD'.
APPEND t_sema.
CALL FUNCTION 'XXL_FULL_API'
EXPORTING
* DATA_ENDING_AT = 54
* DATA_STARTING_AT = 5
filename = 'TESTFILE'
header_1 = header1
header_2 = header2
no_dialog = 'X'
no_start = ' '
n_att_cols = 6
n_hrz_keys = 1
n_vrt_keys = 4
sema_type = 'X'
* SO_TITLE = ' '
TABLES
data = t_sflight
hkey = t_hkey
online_text = t_online
print_text = t_print
sema = t_sema
vkey = t_vkey
EXCEPTIONS
cancelled_by_user = 1
data_too_big = 2
dim_mismatch_data = 3
dim_mismatch_sema = 4
dim_mismatch_vkey = 5
error_in_hkey = 6
error_in_sema = 7
file_open_error = 8
file_write_error = 9
inv_data_range = 10
inv_winsys = 11
inv_xxl = 12
OTHERS = 13
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Similar Messages
-
How to download data from itab to Excel sheet..
Hi sap Experts,
I develop one report to download data from itab to excel sheet.I done it perfectly.
My doubt is in the excel sheet i need to put headings. and also at last i need to display total no.of Records.
Please help me how to do this.
Thanks in Advance....
Thanks and Regards
Siri.......................u can either use GUI_DOWNLOAD or the method below...just give a try
DATA:WK_string TYPE STRING.
DATA:Wk_EXT(4) TYPE C value '.xls'.
DATA:WK_path TYPE STRING.
DATA:wk_file_name type string.
data:wk_records type sy-tfill.
wk_file_name = 'Downloaded'.
describe table itab lines wk_records.
LOOP AT ITAB.
at first.
**Provide path
concatenate 'C:\' wk_file_name Wk_EXT into wk_path.
open dataset WK_path for output in text mode encoding default.
if sy-subrc 0.
write:'ERROR while opening dataset !!!!!!'.
EXIT.
endif.
CONDENSE wk_path.
**Heading Part
concatenate 'Part No' 'Description'
into wk_string separated by cl_abap_char_utilities=>horizontal_tab.
endat.
**Data ITAB
CONCATENATE ITAB-MATNR itab-maktx into wk_string
separated by cl_abap_char_utilities=>horizontal_tab.
transfer wk_string to WK_path.
at last.
clear wk_string.
Concatenate 'Records Passed:' wk_string into wk_string.
transfer wk_string to WK_path.
close dataset WK_path.
endat.
endloop. -
How to download BDC transaction data to excel sheet directly.
Please don't have your subject in all CAPITALS. Now edited
Hello Experts,
i have been working on a BDC Tool,so the main job of this tool is
Generate BDCDATA from Excel Tool and pass as an input to a program to perform BDC (Session/Call Transaction).
so i want to the download data from BDC recording directly to excel sheet but i am unable to download it.
hope u all are clear with my question
with thanx and regards
harish
Edited by: Matt on Apr 24, 2009 10:44 AMHiii,
Plz refer the below code.
CALL TRANSACTION 'MEK1' USING it_bdcdata OPTIONS FROM x_ctuprms
MESSAGES INTO it_bdcmsg.
***collect the messages.
LOOP AT it_bdcmsg INTO wa_bdcmsg.
CALL FUNCTION 'FORMAT_MESSAGE'
EXPORTING
id = wa_bdcmsg-msgid
lang = sy-langu
no = wa_bdcmsg-msgnr
v1 = wa_bdcmsg-msgv1
v2 = wa_bdcmsg-msgv2
v3 = wa_bdcmsg-msgv3
v4 = wa_bdcmsg-msgv4
IMPORTING
msg = message
EXCEPTIONS
not_found = 1
OTHERS = 2.
**collect the messages into an internal table.
endloop.
then use "gui_download" to download data.
Regards,
Anil N. -
How to download itunes and how to use windows in my iPad?
How to download itunes and how to use windows in my iPad?
The iTunes app comes pre installed on your iPad.
Use Windows? The iPad is an iOS device. Not possible to run Windows on an iPad. -
How to download drivers and software for hp pavilion dv6-3127tx . product unable to search
How to download software and drivers for HP Pavilion dv6-3127TX. Unable to search the product in help and support center.
Mohan SinghHi,
I can't find a listing for this model either, but you should find the drivers available on the link below work.
http://h20000.www2.hp.com/bizsupport/TechSupport/DriverDownload.jsp?prodNameId=4331848&lang=en&cc=us...
Regards,
DP-K
****Click the White thumb to say thanks****
****Please mark Accept As Solution if it solves your problem****
****I don't work for HP****
Microsoft MVP - Windows Experience -
How to download movies and video on my Iphone 3g
how to download movies and video on my Iphone 3g
You convert them to a format compatible with the iPhone, import them to iTunes, and sync them to the phone.
-
What's the best App for downloading, editing and saving Microsoft Excel spreadsheets please?
You can have a look at Quickoffice
http://i1224.photobucket.com/albums/ee374/Diavonex/74fb0e85.jpg -
How to download pictures and videos from my ipad 2 to laptop
How to download photos and videos from my ipad 2 to laptop
You can use 3rd party apps like Photo Transfer App.
http://i1224.photobucket.com/albums/ee374/Diavonex/Album%205/79b3173fda7b6a6e148 5b463198f6acf.jpg -
i bough a new imac, this haven't dvd burner, i bought a external dvd burner but the imac havent a idvd and i need this program, no other one, how to download this and install?
Hi
how to download this and install?
There are no free DownLoads !
There are no legal DownLoads at all !
If there is no iDVD on Your Mac (and it's not on newer Macs as Apple discarded it) then You need a program that can do this.
Your Mac can burn CDs and DVDs - BUT DVD as Data-DVDs not as Video-DVDs - they need a program to be encoded and STRUCTURED as such.
• iDVD is part of the boxed version of iLife'11 and can only be bought outside Apple as on Amazon and e-bay
• DVD Studio pro - Part of FinalCut Studio Pro bundle - this to has expired and can only be bought second handed. (High price and tough learning Curve - but best ever done.)
• Roxio Toast™ - Not as elegant as iDVD - but has many other positive additions (I like it as 10-Pro incl BD-component) (now version 11)
• Burn - only free alternative I know of on internet. Very simple - Just for doing a plain Video-DVD
Burn http://www.digital-digest.com/software/Burn.html
only You can buy from Apple is
• FinalCut Pro-X which also can burn to DVD but without any nice themes.
AppleMan1958
You can also buy Compressor from Apple for $50 US. It will also create DVD and BluRay but without the nice themes.
Yours Bengt W -
System does not show the logo and header
Hi,
My system doesn't show the header & Logo in ALV Grid Report. Other system showed that report Properly. Please Clarify.DATA : head1 TYPE slis_listheader,
head2 TYPE slis_t_listheader.
form head.
head1-typ = 'H'.
head1-info = 'REPORT Check'.
APPEND head1 TO head2.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = head2
i_logo = 'ENJOY_SAP_LOGO'
I_END_OF_LIST_GRID = ''
endform.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
i_callback_top_of_page = 'head' .
the above report does not display the SAP logo and header info. please help. the same report is display the logo and info. in other system. Please clarify.
Edited by: bala on Dec 8, 2008 10:44 AM -
Just download lion and my words/excel/powerpoint didn't work anymore
Just download lion and my words/excel/powerpoint dont work anymore, any idea why?
Office 2004 is a PPC (Power PC) based application. That CPU stopped bing used more than 6 years ago, and there was a program called Rosetta which could run PPC apps. But Lion does not support Rosetta, a fact which has been warned of for years.
The only versions of Office supported in Lion are 2008 (if it was on already) or 2011 (new install).
You can by Pages, iWorks, free Office-replacements like NeoOffice or Open Office or LibreOffice.
Or pay $200 for Office 2011. -
How to download songs and movies from iTunes? e top bar...
How to download songs and movies from iTunes? The music and movie tab is not on the top bar at the iTunes store...
To use the iTunes Store in a country you need a credit card issued in that country, billed to an address in that country, and also be physically present in that country when using the store. Basically all you have access to would be anything offered in South Africa unless you move to a different country.
It's the media owners who get to tell Apple where and where they cannot sell their media. I'm sure Apple would be happy to take your money but if the media companies are not happy then they can say no to sales in SA.
Even if there were a way to bypass this we certainly couldn't tell you on this forum because it would violate the Terms of use of this web site and get the whole topic removed. -
Lumia 800: How to download videos and songs
How to download videos and songs in lumia from google sites
Moderator's post: The subject was changed as this post was moved from another thread.Can you give a sample url of one of the downloads?
-
How to download photos and albums to PSE10
How to download photos and albums to PSE10?
Photoshop.com sharing and storage has been discontinued, and therefore Elements 10 can no longer communicate with it. If you allowed migration, then your photos should be safely stored in Revel and you can login using the same username and password you used in photoshop.com to see them. Revel does not have connectivity with Elements 10. Elements 11 is the first version of Elements that can communicate with Revel.
Elements organizer/Revel Help: http://helpx.adobe.com/elements-organizer/using/revel.html
Getting Started with Revel: http://www.adobe.com/support/revel/gettingstarted/revel_gs.html
Pattie -
How to download data in Word or Excel file from webdynpro?
Hello everybody,
In my webdynpro application, I want to download my Table control data in word or excel file. Is there anyway to do this?
Thanks in advance,
BhavikI am sorry.Please ignore this reply
Please go through the following
downloading internal table contents to excel sheet
Regards,VIP
Message was edited by: Anilkumar Vippagunta
Message was edited by: Anilkumar Vippagunta
Maybe you are looking for
-
I use Adobe Acrobat Pro 9.4.5 for creating .pdf files on a Windows XP SP3 platform. Firefox 6.0.2 is my browser of choice. This question only applies to the .pdf printing process. All other printer drivers work fine with this version of Firefox. In a
-
How to use complex function as condition in Oracle Rule Decision Table?
How to use complex function as condition in Oracle Rule Decision Table? We want to compare an incoming date range with the date defined in the rules. This date comparison is based on the input date in the fact & the date as defined for each rule. Can
-
DisplayPor​t on T500
I just acquired a T500 which has a DisplayPort adapter. I want to show PC movies on my HDTV television though a DisplayPort to HDMI adapter cable. I am able to see the video on the TV but can't get the audio to work. Does anyone know if there is s
-
Hi My shared services is starting and stopping frequently. I tried starting the service from startup menu and in the command prompt it said unable to connect the database. Reconfigure using configuration utlity. I tried the same and the configuration
-
How to default Business Area at line item entry to particular GL accounts Satish Points assured