Set Filter in ALV report, blank screen returned
I have a standard ALV report (uses REUSE_ALV_GRID_DISPLAY). The user has to be able to filter the results based on entries from certain columns.
When I try to filter any columns other than a column with a date a blank screen is returned.
This filtering problem only exists with the Single value field. I can filter the results in the "select ranges", "exclude values" and "exclude ranges" without any problems.
Any suggestions?
Edited by: Damien Crowe on Jul 6, 2009 5:09 PM
Set the fieldcatalog-edit_maskto "==ALPHA".
Edited by: Damien Crowe on Jul 14, 2009 5:35 PM
what was the solution to this problem?
Thanks
Similar Messages
-
How to filter standard ALV report with custom UI element?
Hello Expert,
I got a requirement to filter standard ALV report based on the custom UI element (which is created in the screen before displaying the ALV report). Upon entering the values in the Custom field, the ALV report is displayed accordingly.
Any ideas how to approach it?
Thanks,
MohammedHi,
Okay, let me explain the steps in detail
Let us say you have alv table with 10 records and alv table is shown first time with all 10 records
Create an internal table in component controller's attribute GT_ORIGINAL_DATA and save all 10 records into this table first time
Now, user enters value in FILTER_MATNR field 123 and press apply_filter button or press enter key
Read the value of field filter_matnr and get the only matching records from global internal table GT_ORIGINAL_DATA into local internal table as below
data lv_matnr type matnr.
data lt_data like wd_comp_controller->gt_original_data.
" read the value from context attribute of filter_matnr
lv_matnr = ???
" copy all data into local table
lt_data[] = wd_comp_controller->gt_original_data.
"delete the records which does not match
delete lt_data where matnr NP lv_matnr.
Now, bind the data lt_data to context node of alv table
Hope this helps you.
Regards,
Rama -
How to disable 'set filter' in alv list display
Hi Friends,
I am working on alv report and I came across a requirement that I need to disable the 'set filter' to restrict the user from filtering records in output.
please help on this.
thanks in advance.HI
check these sample codes
Here are some code snippets:
FORM output_report.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = 'ZRRRMPROJSTAT'
is_layout = gs_layout
it_fieldcat = gt_fieldcat
it_sort = gt_sort
i_save = 'A'
it_events = gt_events
TABLES
t_outtab = i_project
EXCEPTIONS
program_error = 1
OTHERS = 2.
ENDFORM. " output_report
FORM build_fieldcat.
DATA: s_fieldcat TYPE slis_fieldcat_alv.
DATA: l_col_count like s_fieldcat-col_pos.
l_col_count = 1.
CLEAR s_fieldcat.
s_fieldcat-col_pos = l_col_count.
l_col_count = l_col_count + 1.
s_fieldcat-tabname = i_project.
s_fieldcat-fieldname = 'PSPID'.
s_fieldcat-datatype = 'CHAR'.
s_fieldcat-outputlen = '10'.
s_fieldcat-seltext_l = 'Project Number'.
s_fieldcat-seltext_m = 'Project Number'.
s_fieldcat-seltext_s = 'Project Number'.
s_fieldcat-key = 'X'.
s_fieldcat-fix_column = 'X'.
s_fieldcat-just = 'C'.
s_fieldcat-no_zero = 'X'.
APPEND s_fieldcat TO gt_fieldcat.
* and so on....
ENDFORM
FORM sort_layout.
DATA: ls_sort TYPE slis_sortinfo_alv.
REFRESH gt_sort.
CLEAR ls_sort.
ls_sort-spos = '1'.
ls_sort-tabname = 'i_project'.
ls_sort-fieldname = 'PSPID'.
APPEND ls_sort TO gt_sort.
CLEAR ls_sort.
ls_sort-spos = '2'.
ls_sort-tabname = 'i_project'.
ls_sort-fieldname = 'POSID'.
APPEND ls_sort TO gt_sort.
ENDFORM. " sort_layout
FORM build_layout.
CLEAR gs_layout.
* gs_layout-totals_before_items = 'X'.
gs_layout-zebra = 'X'.
gs_layout-numc_sum = 'X'.
gs_layout-get_selinfos = 'X'.
gs_layout-box_tabname = 'X'.
gs_layout-info_fieldname = 'COLOR'.
ENDFORM. "
Reward alll helpfull answers
Regards
Pavan -
hello!
i have a weird problem in alv report with the filter function.
for example the field serial like viqmel-serial, if it contains the value for example 1234 the filter want work. if it contains the value N16 the filter will work.
i cant understand what might be the problem.
another information that concerns this field is that the ls_fieldcat-inttype is 'C' and that the intlen eq ' '.
thanks
yifatI think your problem is with internal/external format. The reason that N16 works, is because in the database it is stored as N16. The reason why 1234 doesn't work, is because it is stored in the database as 000000000000001234. I suggest that you make sure that you filter includes the internal format. You could use a function module to convert it.
<b>
CONVERSION_EXIT_ALPHA_INPUT
</b>
Regards,
Rich Heilman -
'Save layout' button missing in the ALV report layout screen
Hi Friends,
In one of our ALV report the 'save layout' button is missing in the report output screen.i have used the OO concept for creating the ALV output and not the function module.I have attached the code below used for creating the ALV grid.
CREATE OBJECT alv_grid
EXPORTING i_parent = g_container_2.
CALL METHOD alv_grid->set_table_for_first_display
exporting
i_structure_name = 'PA0002'
is_layout =
CHANGING
it_outtab = gt_outtab
it_fieldcatalog = wa_fieldcat.
But i'm not able to trace why the 'save layout' button is missing in the output.Can anyone of you help me in sorting out this problem.
Thanks and Regards,
Vadivel.Pass <u><i><b>A to I_SAVE</b></i></u> parameter. That will give the options to the user to save the layout outs.
I_SAVE = SPACE
Layouts cannot be saved.
I_SAVE = 'U'
Only user-defined layouts can be saved.
I_SAVE = 'X'
Only global layouts can be saved.
I_SAVE = 'A'
Both user-defined and global layouts can be saved.
Regards,
Ravi
Note : Please mark all the helpful answers
Message was edited by: Ravikumar Allampallam -
ALV Report - Selection screen information should appear in Output screen
Hi experts,
I am working on ALV Reports.
I want selection screen information to appear in ouputscreen when report executed.
Those who know the sloution pls tell me as soon as possible.
regards,
ImranHi Imrangs ,
Ur requirement is not clear -
if u want ur selection screen and the output screen on the same screen, i.e if u fill ur selection options with input and press the button then ur ALV will display on the same screen. For this try to use Screen painter, it will get resolved.
http://www.kodyaz.com/articles/sap-abap-tutorial-alv-grid-cl_gui_alv_grid-screen-painter.aspx
chreers
Regards
Neha -
Preview and Download in ALV report blank
Dear All,
I have a problem. When user preview and download to local save (txt, xls, etc) from report in ALV format, user get blank preview and blank file.
I use 2 FM.
1st i use FM REUSE_ALV_LIST_LAYOUT_INFO_GET to get fieldcat because user want to download after customize the layout (example default there are 5 field then user hide 2 field so only 3 field are displayed and downloaded).
2nd I use FM REUSE_ALV_GRID_DISPLAY to display as ALV format. and user can download via download button default in ALV format.
so, anyone.. could u help me ??
ThanksHi,
ok I generaeted the fieldcatalog for the above and try to execute as this as I described above
i am giving the code just check it.
type-pools SLIS.
data : lv_vbeln type vbak-vbeln.
select-options : so_vbeln for lv_vbeln.
initialization.
so_vbeln-low = '4970'.
so_vbeln-high = '4975'.
append so_vbeln.
data : lt_fcat type SLIS_T_FIELDCAT_ALV,
ls_fcat like line of lt_fcat.
types : begin of ty_vbak,
vbeln type vbak-vbeln,
erdat type vbak-erdat,
erzet type vbak-erzet,
ernam type vbak-ernam,
end of ty_vbak.
data : lt_vbak type standard table of ty_vbak,
ls_vbak type ty_vbak.
data : ls_variant like DISVARIANT.
data : ls_layo type SLIS_LAYOUT_ALV.
start-of-selection.
perform getvbak.
if sy-subrc eq 0.
perform displayvbak.
endif.
FORM GETVBAK .
select vbeln erdat erzet ernam from vbak
into table lt_vbak
where vbeln in so_vbeln.
ENDFORM. " GETVBAK
FORM DISPLAYVBAK .
clear ls_fcat.
ls_fact-fieldname = 'VBELN'.
ls_fcat-colpos = 1.
ls_fcat-seltext_m = 'Sales No'.
ls_fcat-outputlen = 10.
append ls_fcat to lt_fcat.
clear ls_fcat.
ls_fact-fieldname = 'ERDAT'.
ls_fcat-colpos = '2'.
ls_fcat-seltext_m = 'Date'.
ls_fcat-outputlen = 10.
append ls_fcat to lt_fcat.
clear ls_fcat.
ls_fact-fieldname = 'ERZET'.
ls_fcat-colpos = '3'.
ls_fcat-seltext_m = 'Time'.
ls_fcat-outputlen = 10.
append ls_fcat to lt_fcat.
clear ls_fcat.
ls_fact-fieldname = 'ERNAM'.
ls_fcat-colpos = '4'.
ls_fcat-seltext_m = 'Created By'.
ls_fcat-outputlen = 10.
append ls_fcat to lt_fcat.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = sy-repid
IS_LAYOUT = ls_layo
IT_FIELDCAT = lt_fcat[]
I_SAVE = 'X'
IS_VARIANT = ls_variant
TABLES
T_OUTTAB = lt_vbak[].
ENDFORM. " DISPLAYVBAK
Thanks & Regards,
Raghunadh K -
Lead Selection does not work after setting filter for ALV.
Hi, Can you please suggest on below scenario :
I have a Node with a sub node in it .
I am using the supply function on Sub Node to retrieve the date based on Parent Node.
There are two ALV's to display parent and item data. The issue is when a filter(user defined filter) is done on Parent table, the supply function does not work. The value is that of the selected row before setting the filter. Even after removing the filter, the item data is stuck and does not change on Lead Selection.
One thing I noticed is if the child table is a table UI, there is no issue. The only problem is when the second table is ALV
Thanks In AdvanceHi Prashanthi,
Your issue can be resolved as below
Create an event handler method 'set_alv_data' for the event 'ON_LEAD_SELECT' of parent alv
Write the below code inside the event handler method
METHOD set_alv_data.
DATA lo_node TYPE REF TO if_wd_context_node.
DATA lv_path TYPE string.
DATA lv_index TYPE string.
lv_index = r_param->index.
CONDENSE lv_index.
CONCATENATE wd_this->wdctx_my_parent_node
lv_index
wd_this->wdctx_my_child_node
INTO lv_path SEPARATED BY '.'.
lo_node = wd_context->path_get_node(
path = lv_path
DATA lo_interface TYPE REF TO iwci_salv_wd_table.
lo_interface = wd_this->wd_cpifc_alv_child( ). "get the ref of alv comp of child
lo_interface->set_data(
EXPORTING
* only_if_new_descr =
r_node_data = lo_node
ENDMETHOD.
The above code sets the data node of child alv based on lead selection of parent alv data.
Note: Replace 'parent_node', 'child_node' with your nodes & 'alv_child' with your alv component name of child alv.
If you want to control the data of child alv on filter function, you can use the event ON_STD_FUNCTION_AFTE and once you define the filter you get the r_param->id = 'SALV_WD_FILTER_DEFINE' & now you can clear data of child alv.
Hope this helps you.
Regards,
Rama -
DEAR ALL
in my alv grid program output (which is basically for sales register),the standard menu bar is filled with full of ????????????????????? (question marks) i can able to see only few standard menus such as edit ,system rest of the menus are hide behind the question marks.Help me to understand this problem.
i have the screen shots with me ,if someone needs that for providing solution i will send it to him/her.
looking forward to here from u all.
Regards
KarthikHi frend,
Pls check the pf-status module in ur program and define suitable buttons in that.
U can send the program and screen-shots to me at my id-
[email protected]
Regards,
Ameet -
Tooltip on pushbutton on alv report selection screen
Hi Experts,
I have a selection screen with two pushbuttons i want to provide tooltip on this button when user takes his cursor on it .. some part of my code
Selection screen:
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-t01.
SELECTION-SCREEN: BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(20) text-t02 FOR FIELD p_info.
PARAMETERS: p_info TYPE string.
SELECTION-SCREEN: PUSHBUTTON 68(10) but1 USER-COMMAND cli1.
SELECTION-SCREEN : END OF LINE.
PARAMETERS: r_exe_im RADIOBUTTON GROUP rb1.
PARAMETERS: r_st RADIOBUTTON GROUP rb1.
SELECTION-SCREEN SKIP 1.
SELECTION-SCREEN: PUSHBUTTON /1(20) exec1 USER-COMMAND cli2.
SELECTION-SCREEN: FUNCTION KEY 1.
SELECTION-SCREEN END OF BLOCK b1.
please tell me on these selection fields how to display tool tip.
Thanks and regards,
Roshan.Hi,
After completing your executable program in SE38, activate it and goto SE51(Screen painter).
Here give the name of your program and screen number as 1000.
Click on Change.
Goto Element List Tab.
Here you will find all your elements from your program.
Select the required element and click on Properties.
Here you will find a Tooltip Text property. Click on the button 'Text' of this property.
You will be given 2 options 1) Text from Text element 2) Text from Variable
Enter as per requirement
Save and Activate.
Hope this will be useful
Regards
Bhupal -
Display logo on screen in ALV Report.
Hello ,
I want to change the logo displayed in ALV report on screen.
I have imported logo from SE78 as BMP image.
The logo imported successfully.And it can be seen in SE78.
But when i replace the old logo name with new logo in function module
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
IT_LIST_COMMENTARY = LIST_TOP
I_LOGO = 'ENJOYSAP_LOGO'.
The logo is not getting displayed on screen.The dimensions and other parameters of old and new logo are same.
What needs to be done to resolve this problem?
Regards,
Deepak.GOTO - OAOR (Business Document Navigator)
Give Class Name - PICTURES Class Type - OT..... then Execute
It will show you the list, then select ENJOYSAP_LOGO.
On that list, you will find one control with a "create" tab.
Click std. doc types.
Select SCREEN and double-click.
It will push FILE selection screen.
Select your company logo (.gif) and press OK.
It will ask for a description- for instance: "company logo".
It will let you know your doc has been stored successfully.
You can find your logo under ENJOYSAP_LOGO->Screen->company logo.
Use the TOP-OF-PAE event.
FORM top_of_page.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = gt_page
i_logo = 'ENJOYSAP_LOGO'.
ENDFORM. "top_of_page
Just run your ALV program, you should find your company logo in place of the EnjoySAP logo.
Cheers! -
EXE Playback Exhibits Blank Screens
Adobe:
Some users report blank screens appearing when running
published EXE file generated by Captivate. When a user experiences
this problem, he is able to reproduce it consistently at exactly
the same place. If the user does nothing, when the blank screen
appears, the user continues to hear audio until the end of the
playback. One workaround to this problem we have found is for the
user to simply click the fast forward button briefly at the moment
the blank screen appears: video returns and playback continues
normally. Though this problem is consistently reproducible by
specific users, it does not occur for all users: some users are
able to playback the EXE file from start to finish without issue. I
have searched through all the forums, but have not found something
specific to this problem - perhaps I've missed it. Can someone
assist us? Thanks you.Hi StephanABren, and to you too geekygURL
Stepahn, I concur with geekygURL re the question on the LMS
as this could have an impact. Something else to look at would be
what version of Flash you are publishing to and the reason is that
if you are publishing to Flash9 and some of your users are still
running Flash7, then you could potentially have problems. Lastly,
if you do not have a PreLoader active, then I would suggest that
you do this as it "holds back" on play until a set % of the file
has loaded. PreLoaders can be setup from:
Edit / Preferences / Start and End node - select the Loading
Screen option on the right
Cheers
Andrew -
Startx & gdm give blank screen
I'd like to get GNOME installed for a GUI environment. Proving difficult. Anybody have any idea how to help me?
typing "startx" gives blank screen
setting "systemctl enable gdm" gives blank screen after boot
setting "systemctl start gdm" gives blank screen
I installed brand new Arch (2014.10.01) following the wiki step by step. Everything worked okay. So I set out to get gnome installed.
To install gnome, I installed:
xorg-server
xorg-xinit
xf86-video-intel
libva-intel-driver
libva
lib32-mesa-libgl (after uncommenting pacman.conf)
gnome (with all 1-40)
I tried adding "exec gnome-session" to the ~./xinitrc file and then rebooting but this did nothing.
Did I miss installing something? Some file need configuring?
By the way, how do I get internet at boot automatically without having to type "dhcpcd <ethernet-adapter-name here>" after every boot?bzpnbx wrote:
I'd like to get GNOME installed for a GUI environment. Proving difficult. Anybody have any idea how to help me?
typing "startx" gives blank screen
setting "systemctl enable gdm" gives blank screen after boot
setting "systemctl start gdm" gives blank screen
I installed brand new Arch (2014.10.01) following the wiki step by step. Everything worked okay. So I set out to get gnome installed.
To install gnome, I installed:
xorg-server
xorg-xinit
xf86-video-intel
libva-intel-driver
libva
lib32-mesa-libgl (after uncommenting pacman.conf)
gnome (with all 1-40)
I tried adding "exec gnome-session" to the ~./xinitrc file and then rebooting but this did nothing.
Did I miss installing something? Some file need configuring?
By the way, how do I get internet at boot automatically without having to type "dhcpcd <ethernet-adapter-name here>" after every boot?
Not sure how to fix it, but you should need the base install, xorg-server, gnome, and I usually include the option xorg-server-utils but that shouldn't be needed?
At that point you should be able to enable/start GDM and if everything goes good it will work. Obviously not your case, I just say this to point out that so far your not wrong...
No idea on that one, but first I would be looking at making sure I had the right video drivers for xorg (see the xorg wiki page about identifying video card with 'lspci | grep -e VGA -e 3D' ), and look up the logs to see what X is actually doing and if its running and just outputing to the wrong display or if there are errors, ect...
Internet kind depends on how/what your trying to do, however in your case the most normal thing would likely be to install network manager, then you will probably also have to download a gnome network manager applet (I think its network-manager-applet)
This will give you the normal system tray icon to manage your network manager settings.
With only a command line I typically prefer wifi-menu for ease. -
How to select multiple row in ALV report
Hi friends,
1. How to select multiple row in ALV report
( How to set tab in ALV report and want to select multiple line.)
Thanking you.
SubashHi Sahoo,
If you are using the class CL_GUI_ALV_GRID. In methods SET_TABLE_FOR_FIRST_DISPLAY.
in layout structure you will find field SEL_MODE
pass :
LS_LAYOUT-SEL_MODE = 'A'.
In PAI.
CALL METHOD GRID->GET_SELECTED_ROWS
IMPORTING
ET_INDEX_ROWS = T_ROWS
ET_ROW_NO = T_ROWID.
Hope these will solve your problem.
Regards,
Kumar M. -
Add New Column in ALV Report of Standard SAP ME28.
Hi anybody,
I want add new column in alv report of standard SAP Program ME28 Screen.
Add Last PO Price column inside ALV Report ME28 Screen.
Can u please anybody tell me how to add new column in ME28 Screen.
Thanks
S.Muthu.Try to find any BADI for the same
Follow the below steps to find out what all BADI's are called when you press any button in any transaction.
1) Goto se24 (Display class cl_exithandler)
2) Double click on the method GET_INSTANCE.
3) Put a break point at Line no.25 (CASE sy-subrc).
Now
4) Execute SAP standard transaction
5) Press the required button for which you need to write an exit logic, the execution will stop at the break point.
6) Check the values of variable 'exit_name', it will give you the BADI name called at that time.
7) This way you will find all the BADIs called on click of any button in any transaction.
OR
Also one more option is to copy ME28 and, make modifications to the copied program.
Maybe you are looking for
-
Customized Execute SQL Task in SSIS
Hi, I,m using Execute SQL Task in SSIS Package with these configuration .. But, If SQL Statement doesn't report any record mean Query is not returning any data then this Task will be failed. How can I assure that If there is no record is returning in
-
Screenshot cmd-shift-4 not working after startup
Guys, please help me. I have a 7 months old Imac running on OS X 10.9.4 with a bluetooth/wireless keyboard. Recently my keyboard shortcut for screenshot (cmd-shift-4) stopped working. The funny thing is when I restart, the screenshot shortcut works f
-
Acquisition Tax Account is missing
Forum, When trying to add an AP Invoice with 'service type' lines I get the following error: "Acquisition Tax Account is missing" Where's this defined? The version of SBO is 2007A Regards, Juan
-
Direct question to Kappy, OR others #2
_Now ThiS is odd (to me), while waitng for the last little nudge needed on getting Deja Vu activated __(see hours old ignored post), i checked a coup'la folders in the clone, and it's already mirroring up~to~the~minute !, seemingly. I've specified no
-
How to create PBR functionality using WDS deployment
Dear sir/madam, We are a Dutch OEM currently working on deployment and DIS. I have a question about deployment I’m hoping you can help us with. We were tought to deploy images via USB using the following script: dism /Apply-Image /ImageFile:%1 /Index