ALV grid - download option
Hi all,
I am using alv grid display, in which each row is displayed in a different color. when i tried to download the content into an excel file, it is giving a dump 'GETWE_NOT_ASSIGNED'. When I removed the color i am able to download it. I am using the functional module 'REUSE_ALV_GRID_DISPLAY'. please help me to find a solution
be sure the field catalog is corresponding exactly to your data
Similar Messages
-
ALV GRID download truncates the last digit of invoice
Hi Experts,
I am facing a production issue related to ALV grid download. When we click export to local file -> spread sheet,
if it is downloaded to Excel file, invoice last digit is truncated.
Can any body face this problem ?
Please let me know if any body has clue to solve this strange issue.
Thanks,
Balaji.T.Hi,
check the type of field used for invoice list. Make it type vbeln. Also try using EXit_alpha_output FM and modify the table for invoice numbers.
Thanks,
Sam. -
Alv Grid download to xl sheet: Column position mismatching
Hi All,
As we know that while downloading the alv grid report data into xl sheet the date cloumn and might some other column positon get shifted to extreme right.
My problem is with five columns in my grid report that got shifted to extreme right while downloading to the xl sheet. They have the data type CURR and DEC. As both the types are basically packed.
I tried to convert one of them into character, but had short dumpfor this conversion.I
Please suggest me to resolve this issue. I shall be greatful to the valuable answer.
Note: My internal table fields order and fields order in fieldcatalog are same.
Thnaks in advance.Answer is to convert it to CHAR .
Conversion error could you post..
Might be the size was not enough to accomodate the DEC/CURR value .
Or the field was not able to recognise the negative/positive signs .
Other option is to play with excel and manually convert all fields to Text by formatting the column in excel. -
ALV Grid Download to Excel - Columns in wrong order
I'm using the object cl_gui_alv_grid to output an ALV grid to the screen. I've populated the field catalogue as follows:
wa_alvfieldcat-col_pos = 1.
wa_alvfieldcat-just = 'L'.
wa_alvfieldcat-reptext = 'Customer Name'.
wa_alvfieldcat-scrtext_s = 'Customer'.
wa_alvfieldcat-scrtext_m = 'Customer'.
wa_alvfieldcat-scrtext_l = 'Customer Name'.
wa_alvfieldcat-outputlen = 35.
wa_alvfieldcat-tabname = 'GTBL_REPORT'.
wa_alvfieldcat-fieldname = 'CUST_NO'.
The screen shows the table correctly in the order I've specified using COL_POS. But when I select the download function from the ALV grid it moves all the date fields to the end instead of using the order I wanted.
Any ideas?CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
i_structure_name = 'ZCONTRACT_REPORT'
CHANGING
ct_fieldcat = tbl_alvfieldcat.
then
LOOP AT tbl_alvfieldcat INTO wa_alvfieldcat.
MOVE 'GTBL_REPORT' TO wa_alvfieldcat-tabname.
CASE wa_alvfieldcat-fieldname.
WHEN 'DATE_ORDER'.
wa_alvfieldcat-col_pos = 4.
wa_alvfieldcat-just = 'L'.
wa_alvfieldcat-reptext = 'Date Order'.
wa_alvfieldcat-scrtext_s = 'Date Order'.
wa_alvfieldcat-scrtext_m = 'Date Order'.
wa_alvfieldcat-scrtext_l = 'Date Order'.
wa_alvfieldcat-outputlen = 10. -
Dear experts,
I my alv grid report, while i try to download the report in excel file some data is coming some other are missing.
can anyone give me solution to solve this
thanks in advance
karthikHi,
Please check your Field catalog thoroughly.
Regards,
Amit -
Hi,
I have a question on the ALV grid.
In the ALV grid, there is the button - EXPORT under which the following options are available:-
- Spreadsheet
- Word Processing
- Local File
- Send...
I just want to whether it is possible to remove the 'Send' option from the list, all other options should be available ?
Regards,
Ajit GHi,
For this kind of a requirement where you want the standard ALV
pf-status to get modified, you have to exclude the required Send Option
functionality from it. You can do like:
DATA: itab_exclude TYPE slis_t_extab,
wa_exclude TYPE slis_extab.
*& *MAINTAINIG INTERNAL TABLE FOR EXCLUDING COMPONENTS FROM THE ALV STANDARD TOOLBAR
* For excluding the components from the standard toolbar we have to comment the
* i_callback_pf_status_set = 'PF_STATUS' in the grid display function module
wa_exclude-fcode = '&LFO'.
APPEND wa_exclude TO itab_exclude.
CLEAR wa_exclude.
wa_exclude-fcode = '&NFO'.
APPEND wa_exclude TO itab_exclude. "You can like this exclude the function code of send Option functionality here
Then you can pass it in the Reuse Function Module,
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
* I_INTERFACE_CHECK = ' '
* I_BYPASSING_BUFFER = ' '
* I_BUFFER_ACTIVE = ' '
i_callback_program = sy-repid
i_callback_pf_status_set = 'PF_STATUS'
i_callback_user_command = 'COMM'
i_callback_top_of_page = 'TOP'
* I_CALLBACK_HTML_TOP_OF_PAGE = ' '
* I_CALLBACK_HTML_END_OF_LIST = ' '
* I_STRUCTURE_NAME =
* I_BACKGROUND_ID = ' '
i_grid_title = it_grid_title
* I_GRID_SETTINGS =
is_layout = it_layout
it_fieldcat = it_field
* it_excluding = itab_exclude " function codes appended in this internal table will get deleted in o/p
Hope it helps,
Regards
Mansi -
Hi expert,
I got problem while downloading ALV GRID ouput to any local file. The output contains two records. but while downloading no records will be downloaded. only field headings are downloaded. What is the problem.
Pls help me to do.
Thanks
Murugan ArumugamI would suggest you add an additional button to the ALV grid toolbar. When the user clicks on this button you call in your event handler method for USER_COMMAND the method CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD with the entire itab.
Or
Set the NO_OUT as 'X' in your fieldcatalog for the particular field.
Reward points if useful -
ALV grid Download to excel not working
Hi All,
I am displaying an Alv list using the function Module
REUSE_ALV_GRID_DISPLAY.
The report is getting displayed correctly..But when Iam trying to downlaod the same in excel.It does not get downloaded correctly.
All the fields get downloaded into one column of excel sheet.
CAn anyone tell me what's going wrong on this.
Thanks
GTHi GT,
try this way,
save as local file this option available on the grid.
and while giving the file name give the name what you want with extension .xls
then check that file all the data will be opend in excel sheet.
http://help.sap.com/saphelp_erp2004/helpdata/en/e3/41a138c4397a42e10000009b38f842/frameset.htm
reward points for helpfull answers and close the thread if your question is solved.
regards,
venu. -
Problem in ALV grid download to excel
Hello Gurus,
I have a ALV report which has 40 columns but at a time it will only display 100 records(max). when I am trying to download it into excel (by using standard funcationality) only headings are getting downloaded. I checked out standard table download like MARA,VBAK but they are downloading properly.
what could be the reason..?
Thanks in advance.
Thanks and Regards,
Saurabh ChhatreHi,
i am implementing alv by grid method using function module. By my previous experience u do not need to do anything to get the alv in excel format(std. funcationality is provided by SAP itself). But this is not working right now .. apart from headings nothing is coming in file download.
thanks and regards,
saurabh chhatre -
Column shifted during Local file download in ALV Grid
Dear Experts,
I have an ALV grid editable report program. The program is developed to maintain custom table data.
The table data will be maintained using this report. User can edit the data and can save it. In this report there are some columns which are defined as checkbox (fieldcat-checkbox = 'X'.).
I have the buttons "Excel Upload" and "Download Template" in the application tool bar of ALV display.
Users can use the "Download Template" which can be used to get the exact excel format.
But sometimes they just download the data into the Local PC file (Excel format), modify the excel data (remove ALV header and space rows) and upload by using the ALV button.(ALV Tool : cl_gui_alv_grid=>mc_mb_export)
While downloading I observed the ALV column values which have defined as checkboxs have shifted to next one in Excel file.
Do any one now how to resolve this error? The column values which are defined as "Check box" (fieldcat-checkbox = 'X', (fieldcat TYPE lvc_s_fcat) should not be shifted to next column in Excel during SAP standard ALV Grid download
(ALV Tool : cl_gui_alv_grid=>mc_mb_export).
I am checking the ALV layout parameters. But doesn't help. If any one knows the solution please share it with me.
Thank you.
Kind Regards,
Senthilraj SHi,
I know that you want to participate in answering the questions which is a good thing.
But please check the posting date before answering.
sorry iam just reminding of the posting date.
Hope you understand what i meant.
thanks.
Aswath
Edited by: aswathsa on Jan 18, 2012 10:56 AM -
Hi Experts,
Can anyone help me out... in keeping the Check box at the Header Level.....
This requirement is in the copy of the standard transaction "ME2N".
1. In ME2N when you click on the Chage Layout button of ALV grid
and choose "Sorting" tabe.
2. Add any 3 fields say 1. Vendor/Supply plant 2. Purchasing group and 3. Purchasing document in the Sort criteria and choose accending order radio button and check box in the sum .
3. Now click on the Displayed Column tab and remove the above 3 fields from the Displayed colums and add it column set
4. Now report shows the heirarchial one in the sorting manner.
5. I want the Check Boxes at all levels both in the header and the item level.
When I click on the Header level check box all the item level check box should get checked. When I add the check box in the field catalog I am able to see the check box in the item level only because only item level data appears in the internal table and Header level is displayed based on the ALV grid sorting option and that row records are unknown in the internal table.
Is there some thing which I can do to get the check box at the header level retaining all the functionality of ME2N and ALV GRID.....
It would be great help if some one solves me this issue... Points will be awarded.
Br,
Laxmi.Hi Bharath,
Thanks for your response. Select ALL already existing... My requirement is not to get the whole report records selected at particular level all items and header should get selected. Say for example I have Vendor2 i.e, vendor 1 and vendor2. So in the Vendor 1 i will have Purchasing group1 , Purchasing document 1 and say 10 items under Purchasing document. say same as like in Vendor2. So if Click on the Vendor1 all the sub items of it have to selected so that I can perform further action only for these items not for the enter items of the report.
Br,
Laxmi. -
Table Maintenance via ALV GRID
Hi Experts,
I have a requirement to do table maintenance for multiple tables using ALV GRID, with options to change, delete, add records and upload multiple records via copy/paste functionality.
Thanks.Your welcome.
Rob -
Hi experts, how are you.
What is the difference between ALV Grid Display and ALV List Display?ALV LIST Can be coded using only FMs
ALV GRID Can be coded using FMs and object oriented concepts
ALV LIST Can be displayed hieraicharlly
ALV GRID cannot be displayed hierarichally
ALV grid uses ActiveX controls
present on the Presentation Server.
Hence, it consumes More Memory
on the presentation server.
ALV LIST is Display Only.
Whereas
ALV Grid Can Be made EDITABLE for entry purpose.
In alv grid, these options are possible,
but not in alv list.
without horizontal lines
without vertical lines
without cell merging during sorts
display total lines above the entries
Thanks
Seshu -
HI all,
Diff between ALV GRID and ALV LIST?
sachin.Hi,
ckeck these differences.
first one is for list display and second one is for grid display.
For all practical purposes, they are the same.
2. Some differences:
a) from abap coding point of view,
alv list is done with Function modules,
alv gris can also be done with FM,
but can also be done using OO concepts.
b) Alv grid (using oo concept) requires
designing the screen layout .
Hence, in one screen, we can show more
then one alv grid
(we cannot show more than
one alv list on one screen)
c) ALV grid uses ActiveX controls
present on the Presentation Server.
Hence, it consumes More Memory
on the presentation server.
d) ALV LIST is Display Only.
Whereas
ALV Grid Can Be made EDITABLE for entry purpose.
e) In alv grid, these options are possible,
but not in alv list.
without horizontal lines
without vertical lines
without cell merging during sorts
display total lines above the entries
ALV LIST Can be coded using only FMs
ALV GRID Can be coded using FMs and object oriented concepts
ALV LIST Can be displayed hieraicharlly
ALV GRID cannot be displayed hierarichally.
reward points if hlpful. -
Downloads from ALV GRID-Text conversion to dates in EXCEL
When downloading table displays of data from ALV-GRID for excel spreadsheet, we end of with files that have a header and various line ifnromation. IF we manually clear up the display, then we can have the individicual column headers used and force them to text but if we just call the file up as an EXCEL spreadsheet, some part numbers such 12-3465 appear in Excel as Dec-65.
The following is an example of the record (but it is word wrapped within this display limit). In actuality, the verbage enclosed with the <b> represent the start of the lines that have actual display data running out about 90 characters.
Suggestions on how to make the download immediately correct in Excel direct from SAP ALV-GRID without cleaning out the heading lines and manually forcing the affected columns to TEXT format?
thanks
<b>03/02/2007</b> Dynamic List Display 1
<b>Materials-Inforecord Details Report</b>
<b>Purchasing Org: ILMO</b>
<b>Report Run Date:03/02/2007</b> <b>Report Time:14:31:16</b>
<b>Plnt Mat Grp Vendor Name 1 Material Material</b> description Vendor Cat Mfr MPN PC Item Chg. OUn Eq to BUn Net price Per OPUn Inforecord PGr Mv Avg per ValCl
<b>0042 04 106070 BURROWS COMPANY</b> 184110 Glv Exam Ltx Non Ster 02-5001 TILLOTSON 02-5001 CA 2,000 EA 93.40 1 CA 5300006999 999 93.40 2,000 6438there are different options to export to excel which all behave differently, if you go for the menu ->export it differs from the export button from the alv buttonbar.
try the different export to excel options perhaps there is one that behaves the way you want
kind regards
arthur de smidt
Maybe you are looking for
-
IPhone 6 won't play with Kenwood stereo USB port. Help !!
I have a Kenwood KDC-BT743U Stereo in my car, which has a front panel USB port. I've been able to connect my iPhone 4S and play music from my iTunes catalog as well as stream music from Pandora, Soundcloud, Tune In Radio, Mixcloud et al, without any
-
Copy from AFP share to AFP share (via VPN-Connection) - stupid?
Hi there We set up an OS X server in a remote facility and are connecting to it over a VPN connection (Netgear Firewall). Everything works fine, there's only one annoying issue: if I want to copy a file from a mounted AFP share (share1) to another mo
-
Ipod Nano sync error : Hard disk write protected
I have a 2nd gen IPod nano 4 GB. I had Itunes 7.1 installed on my PC when I last synced. A week later my disk crashed and in the new disk I installed Itunes 7.2. When I tried to sync, I get a error message which says " disk is write protected. Please
-
DAQmx devices not recognized after reboot
I have a PXI-1042 box communicating with a desktop computer over a MXI-3 bridge. This system has been up and running for several years through four or five revs of code. I am currently running MAX 4.6.0f1, DAQmx 8.9.5, LV 2009 and TS 4.2. Lately whe
-
Can you please tell me if it is possible to see when my account has been accessed? I am worried someone who may know my password has looked into my chat files.