ALV to excel download problem through standard tool bar
I am downloading data into excel from ALV , When there are 128 column data in execl coming as 2 row for 1 row of data in alv. This problem is not there for 78 columns report.
Kindly suggest some solution.
i think there is a limit to the number of columns for ALV and which is i think 92 ..this can be the cause of the issue
amit
Similar Messages
-
Hi Experts,
I display around 15 fields(columns) in ALV output. When I download it to Excel, it downloads exactly.
Then dynamically, when I increase the number of fields to be displayed in ALV it is displaying correctly. But when I download
to excel, half of the fields are coming in one line of excel sheet and remaining fields are coming in the second line of excel.
Why am I not getting all the fields in one line itself in the excel sheet?
Is it a problem in standard ALV?
I am using cl_gui_alv_grid class to display ALV output.
Thanks and regards,
Venkat.Hi!
Which function module you are using for downloading? -
ALv to excel download problems
HI friends,
Probelm I'm facing while saving an ALV report to Excel Sheet by clicking
on the 'Save as File Icon' button on the ALV output.=0D
Here data is going into a new Line after 65 columns.I've used Function
Module 'RSAQ_ALV'.This function module is ultimately using
'REUSE_ALV_GRID_DISPLAY' and 'REUSE_ALV_LIST_DISPLAY' function
modules.ALV output I'm getting correctly but when I save this ALV output
to Excel,columns are getting wrapped and going into 2nd row after 65
columns.=0D
Could anybody tell me what could be the reason ?=0D
Thanks,
Sreekanth.G
Moderator message: duplicate post locked.
Edited by: Thomas Zloch on Jul 9, 2010 12:36 PMch_alv_layout-info_fieldname = 'COLOR'. "infofield for listoutput
ch_alv_layout-colwidth_optimize = 'X'.
try commenting the above values.and also check the Fieldcatlog.
Check the issue similar issue was resolve by checking catalog and layout:
[ALV Issue solution|Re: Problem when export ALV.]
Regards,
Gurpreet -
Problem in ALV to Excel Download
Good Morning Experts,
I am facing one issue related ALV to excel Download.
I Developed one custom report the output is correct displaying.
the output is like for example i am taking 3 columns (plant, material, amt).
plant material amt
1001 aaa 1000
1001 bbb 2000
while downloading to excel
it displaying like
plant
material
amt
1001
aaa
1000
1001
bbb
2000
I dont know why its coming like that.
this is my code
DEFINE field_cat.
wa_field-row_pos = &1.
wa_field-fieldname = &2.
wa_field-tabname = &3.
wa_field-seltext_m = &4.
wa_field-outputlen = &5.
wa_field-currency = &6.
wa_field-ref_fieldname = &7.
wa_field-ref_tabname = &8.
APPEND wa_field to it_field.
clear wa_field.
END-OF-DEFINITION.
field_cat '1' 'BUKRS' 'IT_FINAL' 'Company Code' '6' '' '' ''.
field_cat '2' 'BUTXT' 'IT_FINAL' 'Comp Descrip' '25' '' '' ''.
field_cat '3' 'LIFNR' 'IT_FINAL' 'Vendor No' '10' '' '' ''.
field_cat '4' 'NAME1' 'IT_FINAL' 'Vendor Name' '35' '' '' ''.
field_cat '5' 'STRAS' 'IT_FINAL' 'Vendor Addres' '35' '' '' ''.
field_cat '6' 'FDGRV' 'IT_FINAL' 'Nature Of Work' '30' '' '' ''.
field_cat '7' 'DMBTR' 'IT_FINAL' 'Net Amount' '16' 'X' 'WAERS' 'IT_FINAL'.
field_cat '8' 'QBSHB' 'IT_FINAL' 'TDS Amount' '16' 'X' 'WAERS' 'IT_FINAL'.
field_cat '9' 'TOTAL' 'IT_FINAL' 'Total Amount' '16' 'X' 'WAERS' 'IT_FINAL'.
it_layout-zebra = 'X'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = sy-repid
I_CALLBACK_TOP_OF_PAGE = 'TOP_OF_PAGE'
IS_LAYOUT = it_layout
IT_FIELDCAT = it_field
I_SAVE = 'X'
TABLES
t_outtab = it_final
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
endform. " DISPLAY_ALV
FORM TOP_OF_PAGE.
REFRESH it_head. CLEAR it_head.
wa_head-typ = 'H'.
wa_head-info = 'Vendorwise Expense Details'.
APPEND wa_head to it_head.
wa_head-typ = 'S'.
IF NOT s_MONAT-high is INITIAL.
CONCATENATE 'Period : ' p_gjahr '.' s_MONAT-low ' to ' p_gjahr '.' s_MONAT-high INTO wa_head-info.
ELSE.
CONCATENATE 'Period : ' p_gjahr '.' s_MONAT-low INTO wa_head-info.
ENDIF.
APPEND wa_head to it_head.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = it_head.
ENDFORM.
Regards,
Dhina..Hi,
You can also try in this way
in the output screen
click List (in app tool bar) -> Export -> Spreadsheet
and save at your desired location.
(It will be save in .mhtml format , just rightclick on it and you can open it with excel )
Then you will be able to view in your required format.
Regards,
koolspy. -
While downloading GOA through standard download functionality .
Hello firends,
While downloading GOA through standard download functionality .I need to add one extra column to excel sheet in standard download functionality.
Please give some inputs.Any standard functionality avilable.I mean any BADI or exit.
Thanks in advance.
BR,
Anilhi.
Try using BBP_PD_DOWNLOAD method: APPEND_DOWNLOAD_DATA to append your own data.
Cheers, Renga
**Award points for helpfull answers** -
How to add a standard tool bar in alv
H i
i am developing a custom report in Alv interactive report for to dispaly MRP information.
Can you sejjest me how to add a standard tool bar in alv.
i displayed one final alv grid display there i have to add standard tool bar and application tool bar.
Thanks,
Rams
Edited by: Ramsoft on Oct 27, 2010 12:09 PMHi,
Give the PF ststus name in the PF status parameter of ALV FM
I_CALLBACK_PF_STATUS_SET = ' PF_STATUS'. " this parameter of ALV FM
FORM pf_status USING pt_extab TYPE slis_t_extab.
SET PF-STATUS 'MAIN' .
ENDFORM. "pf_status
Then create a main PF status by double clicking on it , after this goto EXTRA in menu
EXTRA>ADJUST TEMPLATE> then give program - SAPLSLVC and status - STANDARD this will give u standard toolbar of ALV ,
THen add what ever button you require in application toolbar
Regards,
Madhukar Shetty -
Standard tool bar for custom Dialog program
Hi,
I need to have a standard tool bar functionality like (Search & Print) for my screen 9000. Could you please let me know how can i get it. And i have a ALV in that screen, if i print the data will all the lines will be printed or only displayed lines will be printed, could you please let me know how to get all the lines of ALV. Basically i have some fields & ALV... everything should be printed out.
Thanksmy question is when you create a custom screen like 9000, pf-status also need to created. If i need to printing functionality what needs to be done. If i need all the standard functions in my custom screen...what i need to do.
In that custom screen i have normal fields and one ALV. if i have print button in the standard tool bar and if i use it will it print all the lines of alv along with other fields. {please note that i am not talking about the alv print icon, i am talking about that standard tool bar print icon}.
Thanks -
Minor problem here, but how can I get the Standard Tool Bar
to stay where I put it, or even stay active?
Every time I open Dreamweaver, I have to reopen the tool bar
and place it where ever I want.
Is there a lock somewhere? I'm sure I'm missing something,
but I've looked all over.
I'm using CS3 if that helps.
Thanks.
Randy Overmanroverman wrote:
> Thanks.
> I'll give it a try next chance I get.
Why not also submit an enhancement request to the Dreamweaver
team for
the "standard" toolbar to be made standard (in other words,
displayed by
default)? It's something that beta testers have been
hammering on about
for years. A few more voices from others might tip the
balance.
http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
Creating button in standard tool bar
Hi gurus,
I hve to create button in standard tool bar along with the existing icons and buttons, plz help
how to suppres the fields other than screen table methods?
reward asure
with regards,
thambehi,
if u using ALV then go to SE41.
Give SAPLKKBL as program name and STANDARD_FULLSCREEN as status....
now click on Copy Status and in that give ur program and status name into To.....
now in REUSE_ALV_GRID_DISPLAY
FORM display_list.
g_f_repid = sy-repid.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = g_f_repid
i_callback_user_command = 'USER_COMMAND'
i_callback_pf_status_set = 'SET_STAT'
it_fieldcat = g_t_fieldcat[]
it_events = g_t_events[]
TABLES
t_outtab = g_t_itab
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " display_list
FORM set_stat USING rt_extab TYPE slis_t_extab.
SET PF-STATUS 'ZSTAT' EXCLUDING rt_extab.
ENDFORM. "set_stat
here my status name is ZSTAT which i gave in SE41...
and in user_command form...
FORM user_command USING u_comm LIKE sy-ucomm selfield TYPE slis_selfield.
CASE u_comm.
WHEN 'DET'.
........ur logic.........
ENDCASE.
ENDFORM. "user_command
reward if usefull... -
Enable/Disable Standard Tool Bar
Hi, Experts
Using module pool how can I get control on Standard tool bar and application toolbar to make it ENABLE or DISABLE as per requirement.
With warm regards
Rajiv singh.Yes you can ..
Check this code:
DATA: itab TYPE TABLE OF sy-ucomm.
APPEND 'DELE' TO itab.
APPEND 'PICK' TO itab.
SET PF-STATUS 'STA3' EXCLUDING itab.
Here DELE and PICK are functionCodes. Once you include them in your PF-STATUS you can disable 'em.
The problem here is you want to do it standard toolbar which is not possible but you can surely copy the standard GUI-Status and use it. And the functionality will not change and all standard SAP buttons will work as standard.
Just let me know at what stage you want to disable in a program execution and i'll let you know the GUI-Status for standard toolbar.
Regards
Nishant -
Disable standard tool bar button
I want to disable standard tool bar Save button during run time.
Is it possible to achieve this.
Thanks,
Sai.Hi Sai,
We use the ABAP statement "set pf-status" in PBO to set a tool bar in the module pool program
We can deactivate any button by passing the function code in the "excluding" syntax addition of the
"Set pf-status 'XXXX' excluding int_fcode'.
data declarations:
data: wa_fcode type ty_status.
data: int_fcode type table of ty_status.
eg : 'SAVE' is the function code for 'SAVE' button and '
ÉXAMPLE' is the name of pf-status in the module pool
then according to condition required.....say, if we want to hide save button for user 'SAI'
then write
if sy-uname = 'SAI'.
wa_fcode = 'SAV'.
append wa_fcode to int_fcode.
clear wa_fcode.
endif.
then
set pf-status 'EXAMPLE' excluding int_fcode.
then you will no longer be able to use the 'SAVE'functionality for the user 'SAI'
Hope the example and code solves the problem
Regards -
Two days ago I downloaded the web developer tool bar (aus2.mozilla.com). I tried to use it but gave up. I deleted the tool bar.
I don't have any images anymore. I use Google.com as my home page (default) and the large GOOGLE isn't there anymore. I've also noticed some of the sites I use don't have the continue or next or enter keys anymore. It seems the only thing I have now is the text.Are you sure you are looking at the Google page?? In Firefox 4.0 the default homepage / Start Page in Firefox was changed to '''about:home''' which looks a lot like the former www.google.com/firefox homepage.
-
Disable Standard Tool bar from FBL1N
Hi everyone!!
I have a doubt with transaction FBL1N. My user want to disable from the standard tool bar the Print Button. I know it's a crazy idea but I have to investigate It.
I 'm trying to do it by a Transaction Variant ( SHD0) but although I disable all the print functions the button continue active.
Anyone have any ideas about it?
Many thanks!!
NuriaHi Nuria,
You may be able to block it using authorisations - maybe you can ask one of your authorisations team to investigate as well?
Regards,
Tony -
Using the Default standard Tool-bar with a new screen.
I created a screen with a table put would like the gui-status of the screen to be the same as that of a normal selection screen with all the functions. Is this possible and how do i go about it. Please help
hi ,
you can see the gui status of the any standard tool bar and copy the sane ..
but you need to add custom code in you zprogram for their functionality..
prabhudas -
Function codes to Standard Tool bar
Hi Guy's,
Please help me how to add Fuction Codes to Standard Tool bar in Function keys.
Thanks and Regards,
Sai.hi
use the following function codes which will be very easy to remember and use in your programs
Cancel - CANC
Back - BACK
enter - ENTER
exit - EXIT
print - PRINT
<REMOVED BY MODERATOR>
prince
Edited by: Alvaro Tejada Galindo on Apr 21, 2008 4:04 PM
Maybe you are looking for
-
How do i move photos from one mac to another
I just purchased a MacBook Pro, and would like to move the photos on my old iMac to it. How do I do that? Thanks.
-
Month to date Actual vs Forecast
Hi Experts, we have Reporting Requirement like we have monthly sales forecast product vise and sales actuals daywise, now we need to design the Report which shows Actual vs forecast Month to date. to design a report for actuals month to date we can g
-
Multithreading in Flash 11.4?
Flash Player "Dolores" Adobe is planning an additional Flash Player release in the second half of 2012. Code-named "Dolores", this release focuses on enabling features and functionality for the gaming market, as well as improvements for general Flash
-
Oracle Database 10g Express Edition Beta 2 Installation
Oracle Database 10g Express Edition Beta 2 Release for Microsoft Windows installation successful, no problems.
-
Error when using Runtime Workbench
HI all i am getting following error when iam trying to use the Component monitoring and others in work bench.. Regards Buddhike *An error occurred:com.sap.aii.rwb.exceptions.BuildLandscapeException: Error during communication with System Landscape Di