Supress flaged items display in ALV with CL_GUI_ALV_GRID
Hi There,
I am using CL_GUI_ALV_GRID and displaying details in my custom program. Based on some criteria i'll set a flag for a row in PAI. I don't want to display those entries further. How to handle this in PBO? which events and methods should I use for this?
Thanks in advance.
Ram.
Hello Rams
When you display your ALV list then you can set the appropriate <b>filter conditions</b>. For example, your flag field is something like itab-flag = 'X'. Then you define a filter condition where flag ne 'X' meaning that all entries where flag is set will be filtered (not displayed).
Regards
Uwe
Similar Messages
-
No line item display after clering with F-03
Dear Experts,
After clearing with F-03 for rate differences, we had a doc number, but no line item display in that document.
kindly advice.
thank youDear Prasada,
thanks for the answer.
This is clearing for exchange rate differences.
usually the journal should be:
dr xxxxx- stock in transit
dr xxxxx- stock in transit
cr yyyy - profit/loss exch rate variance
cr yyyy - profit/loss exch rate variance
kindly advice
thanks -
Display "Classic ALV" from CL_GUI_ALV_GRID
Hi,
When using ALV using the Class CL_GUI_ALV_GRID, you can click on the "Views" button and you get a list of "List Output", "Excel inplace", "Lotus inplace" and "Crystal Reports preview".
If you select the "List Output" it seems to display the ALV as if it were called using the FM REUSE_ALV_LIST_DISPLAY.
Now I was wondering if there was a way to still use the ALV Objects but by default use the "List Output" option?
Cheers,
Pat.Howdy,
Are you refreshing the ALV grid after you apply the style change?
Cheers
Alex -
How to display 3 alv with top-of-page using splitter container
Hi,
I want to display 3 different alv in a single container corresponding to the 3 check boxes on selection screen.
i.e.
If user selects 1 check box only one alv should be displayed, if 2 checkboxes selected by user 2 alv should be displayed and same for 3.
I cannot use 3 different containers bcoz if second checkbox is not selected then that place remains blank. So I am using single container and using splitter container dividing it into the no of rows corresponding to the no. of checkboxs selected by user.
Now I also want to display top-of-page for each alv. Please guide me how to achieve this.
Thanks & regards,
Harshadacreate with some IF_ELSE conditions as i have done below. in my case the same things are required. if error table is there only then it will be displayed, else only output will be displayed.
* First Main Container
CREATE OBJECT obj_main1
EXPORTING
container_name = 'CC_CONTAINER'
style = cl_gui_custom_container=>ws_maximizebox.
* create top-document
CREATE OBJECT obj_dyndoc_id
EXPORTING
style = 'ALV_GRID'.
IF pr_view EQ c_x OR pr_stat EQ c_x.
* First Splitter Container
CREATE OBJECT obj_splitter1
EXPORTING
parent = obj_main1
rows = 2
columns = 1.
* Place obj_parent_html in First row First column
* for Top_of_page
CALL METHOD obj_splitter1->get_container
EXPORTING
row = 1
column = 1
RECEIVING
container = obj_parent_html.
* Place obj_container1 in Second row First column
CALL METHOD obj_splitter1->get_container
EXPORTING
row = 2
column = 1
RECEIVING
container = obj_container1.
* Set the height of Top of page
CALL METHOD obj_splitter1->set_row_height
EXPORTING
id = 1
height = 24.
ELSEIF pr_email EQ c_x.
* First Splitter Container
CREATE OBJECT obj_splitter1
EXPORTING
parent = obj_main1
rows = 3
columns = 1.
* Place obj_parent_html in First row First column
* for Top_of_page
CALL METHOD obj_splitter1->get_container
EXPORTING
row = 1
column = 1
RECEIVING
container = obj_parent_html.
* Place obj_container1 in First row First column
CALL METHOD obj_splitter1->get_container
EXPORTING
row = 2
column = 1
RECEIVING
container = obj_container1.
* Place obj_container2 in Second row First column
CALL METHOD obj_splitter1->get_container
EXPORTING
row = 3
column = 1
RECEIVING
container = obj_container2.
* Set the height of Top of page
CALL METHOD obj_splitter1->set_row_height
EXPORTING
id = 1
height = 24.
ENDIF.
Please note there is no need to create a hEADER in the container, but create it for the 1st table only which is always displayed
ags.
Edited by: ags on Nov 4, 2009 4:49 PM
Edited by: ags on Nov 4, 2009 4:50 PM -
How to display the number with negative sign in the front in ALV.
most important, this ALV is also can totalize.
can someone give me some suggestion?
thanks
jisuweni hope you want a negative sign before a char but holding some number. then that case
loop at itab.
concatenate itab-char '-' into itab-char.
modify itab.
endloop.
and you can display in ALV with negative sign...
Totalling you need to Specify
DO_SUM = 'X' while populating fieldcatalog...
If subtotals then you have to Build sort table and based on that you can proceed./.
examples are there you can find inn SLIS package..
vijay. -
Get Node Key Multiple Items Selected from ALV tree
Hello Experts,
I'm having a problem in getting Node keys for the items displayed as ALV tree.
I'm able to get Node key, when only ONE record (Item) is selected.
But, when I select multiple items under a Single node am not able to read(get) the node keys for all the selected items.
I'm using the classCL_GUI_ALV_TREE.
I have tried using the method GET_CHECKED_ITEMS, but not getting the keys.
method GET_SELECTED_ITEM is giving node for a single item. I need it for multiple items selected.
Thank you for your time.
-SANGARHi,
You need to use checkbox concept. and use method GET_CHECKED_ITEMS get selected items
please check this tread.
CL_GUI_ALV_TREE and Checkboxes
aRs -
Hi Experts,
I have an ALV grid display with check box.
I need to display the ALV with only check box. I don't need the Grid towards the left.
So can anyone tell me how to avoid the Grid which is at the left.
I am using "REUSE_ALV_GRID_DISPLAY" Function Module.
Thanks,
Karthik MDHi,
I am pasted my code below.
wa_fieldcat_s-fieldname = 'FLAG'.
wa_fieldcat_s-outputlen = 1.
wa_fieldcat_s-checkbox = c_check.
wa_fieldcat_s-edit = c_check.
wa_fieldcat_s-col_pos = 1.
wa_fieldcat_s-seltext_l = 'Select'.
wa_fieldcat_s-no_out = 'X'.
APPEND wa_fieldcat_s TO fieldcat_s.
CLEAR wa_fieldcat_s.
wa_fieldcat_s-fieldname = 'SRID'.
wa_fieldcat_s-key = 'X'.
wa_fieldcat_s-fix_column = 'X'.
wa_fieldcat_s-seltext_l = 'SR Global ID'(101).
wa_fieldcat_s-col_pos = 2.
APPEND wa_fieldcat_s TO fieldcat_s.
CLEAR wa_fieldcat_s.
wa_fieldcat_s-fieldname = 'PERNR'.
wa_fieldcat_s-seltext_l = 'Employee Number'(102).
wa_fieldcat_s-col_pos = 3.
APPEND wa_fieldcat_s TO fieldcat_s.
CLEAR wa_fieldcat_s.
wa_fieldcat_s-fieldname = 'ZZAGREEMENT_ID'.
wa_fieldcat_s-seltext_l = 'Agreement ID'(103).
wa_fieldcat_s-col_pos = 4.
APPEND wa_fieldcat_s TO fieldcat_s.
CLEAR wa_fieldcat_s.
wa_fieldcat_s-fieldname = 'IT0041ENDDA'.
wa_fieldcat_s-seltext_l = 'HCMS END DATE'(104).
wa_fieldcat_s-col_pos = 5.
APPEND wa_fieldcat_s TO fieldcat_s.
CLEAR wa_fieldcat_s.
wa_fieldcat_s-fieldname = 'ASSIGN_END_DATE'.
wa_fieldcat_s-seltext_l = 'Assignment End Date'(105).
wa_fieldcat_s-col_pos = 6.
APPEND wa_fieldcat_s TO fieldcat_s.
CLEAR wa_fieldcat_s.
wa_fieldcat_s-fieldname = 'FNAME'.
wa_fieldcat_s-seltext_l = 'First Name'(106).
wa_fieldcat_s-col_pos = 7.
APPEND wa_fieldcat_s TO fieldcat_s.
CLEAR wa_fieldcat_s.
wa_fieldcat_s-fieldname = 'LNAME'.
wa_fieldcat_s-seltext_l = 'Last Name'(106).
wa_fieldcat_s-col_pos = 8.
APPEND wa_fieldcat_s TO fieldcat_s.
CLEAR wa_fieldcat_s.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = prog_name
i_callback_pf_status_set = 'PF_STATUS'
i_callback_user_command = 'USER_COMMAND'
is_layout = l_layout
it_fieldcat = fieldcat_s[]
it_events = t_events[]
i_save = 'X'
TABLES
t_outtab = lt_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.
Thanks,
Karthik MD -
Help on ALV with multiple header/item output
Dear all:
Below is the actual working code on a multiple header/item display. The alv is supposed to output the details differently in each list. But somehow it only display the last i_tab I gave in all the list(they all look the same). Please help me out here how I can change my code to work properly. Thanks...
*& Report ZTEST2
REPORT ZTEST2.
type-pools: slis.
data : NUM1 type I,
NUM type I,
begin of str,
client like mara-mandt,
mat like mara-matnr,
end of str,
tab like standard table of str.
data :wa2 type slis_alv_event ,
tab2 like standard table of wa2,
wa1 type slis_layout_alv,
wa type line of slis_t_fieldcat_alv,
tab1 like standard table of wa.
wa-reptext_ddic = 'Client Num'.
wa-fieldname = 'CLIENT'.
wa-tabname = 'TAB'.
wa-ref_fieldname = 'MANDT'.
wa-ref_tabname = 'MARA'.
wa-seltext_l = 'CLIENT'.
append wa to tab1.
wa-reptext_ddic = 'Mat Number'.
wa-fieldname = 'MAT'.
wa-tabname = 'TAB'.
wa-ref_fieldname = 'MATNR'.
wa-ref_tabname = 'MARA'.
wa-seltext_l = 'MATERIAL'.
append wa to tab1.
wa1-no_colhead = 'X'.
wa2-NAME = SLIS_EV_TOP_OF_PAGE.
wa2-FORM = 'WRITE_TOP_PAGE'.
APPEND wa2 TO tab2.
NUM = 0.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
EXPORTING
I_CALLBACK_PROGRAM = sy-cprog.
do 2 times.
NUM1 = NUM1 + 10.
refresh: tab.
select mandt matnr up to NUM1 rows from mara into table tab.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
EXPORTING
IS_LAYOUT = wa1
IT_FIELDCAT = tab1
I_TABNAME = 'TAB'
IT_EVENTS = tab2
TABLES
T_OUTTAB = tab.
enddo.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'.
FORM WRITE_TOP_PAGE.
NUM = NUM + 1.
WRITE: / ,
/ 'TABLE NUMBER :', NUM.
ENDFORM.Hi Jim,
yes for some reason ALV expects you to be using different tables. It seems that it does not save the contents of the tables at each call of 'append' rather it waits until 'display' to deal with the table contents at that time, which in your case is the 20 items.
What you can do is use dynamic tables. check this out:
REPORT ZNRW_ALV_BLOCK .
type-pools: slis.
data : NUM1 type I,
NUM type I.
types:
begin of str,
client like mara-mandt,
mat like mara-matnr,
end of str.
data
tab type standard table of str.
data :wa2 type slis_alv_event ,
tab2 like standard table of wa2,
wa1 type slis_layout_alv,
wa type line of slis_t_fieldcat_alv,
tab1 like standard table of wa.
wa-reptext_ddic = 'Client Num'.
wa-fieldname = 'CLIENT'.
wa-tabname = 'TAB'.
wa-ref_fieldname = 'MANDT'.
wa-ref_tabname = 'MARA'.
wa-seltext_l = 'CLIENT'.
append wa to tab1.
wa-reptext_ddic = 'Mat Number'.
wa-fieldname = 'MAT'.
wa-tabname = 'TAB'.
wa-ref_fieldname = 'MATNR'.
wa-ref_tabname = 'MARA'.
wa-seltext_l = 'MATERIAL'.
append wa to tab1.
wa1-no_colhead = 'X'.
wa2-NAME = SLIS_EV_TOP_OF_PAGE.
wa2-FORM = 'WRITE_TOP_PAGE'.
APPEND wa2 TO tab2.
NUM = 0.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
EXPORTING
I_CALLBACK_PROGRAM = sy-cprog.
DATA tabDREF TYPE REF TO DATA.
FIELD-SYMBOLS <tab> TYPE table.
do 2 times.
CREATE DATA tabdref TYPE table of str.
ASSIGN tabDREF->* TO <tab>.
NUM1 = NUM1 + 10.
refresh: tab.
select mandt matnr up to NUM1 rows from mara into table <tab>.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
EXPORTING
IS_LAYOUT = wa1
IT_FIELDCAT = tab1
I_TABNAME = 'TAB'
IT_EVENTS = tab2
TABLES
T_OUTTAB = <tab>.
enddo.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'.
FORM WRITE_TOP_PAGE.
NUM = NUM + 1.
WRITE: / ,
/ 'TABLE NUMBER :', NUM.
ENDFORM. -
Nested Internal tables with cl_gui_alv_grid - not displaying records
Hi,
I wrote a program using nested internal tables with cl_gui_alv_grid class
At runtime, when I select dropdown on one of the cells (RESWK - driver to the nested table), it does not bring the related record and display it
Does cl_gu_alv_grid support nested internal tables?
Or which class to use
Appreciate reply at the latest
Thanks
Rajeev
Edited by: Thomas Zloch on Feb 7, 2011 4:11 PM - priority reducedHi Rajeev,
Maybe checking out this documnetation will answer your question:
[ALV Grid Control (BC-SRV-ALV)|http://help.sap.com/saphelp_erp2004/helpdata/EN/bf/3bd1369f2d280ee10000009b38f889/frameset.htm]
To my knowledge ALV does not support deep structures.
Kind regards,
Robert -
Vendor line item display with internal order
In Vendor line item display is it possibe to see details of the line item of offsetting account .
For example a expense account is debited & vendor account is credited .At the time expense account debit a internal order has been assigned in line item.
User wants to see the vendor line item display ( T code FBL1N) with details of internal order appearing in open line items display etc .
Is this possible .I created a layout with order as a field but order does not show any values in the line display of vendor.
Please revert back if this can be possibe.
Thanks
Manojwith a combination of notes
112312 - Line item - Display of offsetting ac information
373268 - Line item - new display field
569939 - Line item - Open FI - Absolute amounts
1034354 - FAGLL03 - Display of offsetting account information
you should be able to get it there. -
Problem with Line Item display of G/L account
Hi,
I am struggling with a typical problem that I have two company codes in two different countries. I have created a tax account with Open Item management and Line Item display in both the company codes.
When I am trying to post vendor invoices, taxes are being posted on line item wise in one company code but not doing so in other company code eventhough the attributes of the G/L account are same.
G/L accounts, tax condition types and account keys are same in both the cases.
Can any body give me an idea to fix the problem.
thanks in advance,
MallikHI,
check the condition types you've defined for the both of the countries
sprofin accting-f/a gl sett-tax on sales/pur -basic settings-check cal procd--define cond types
there is a check box named item condition see whether it is ticked for the another company's condn type.
because due to this only it takes the condn item wise.
reward pts if it helps.
Regards -
Display Currency symbol with value in ALV Report
Hi Experts,
I need to display currency symbol with value in ALV Report like if currency type is dollar then $200.
Here I am using field catalog type slis_t_fieldcat_alv and suing field merge catalog FM: 'REUSE_ALV_FIELDCATALOG_MERGE'
I tried like this
IF <fs_fieldcat>-fieldname = 'STPRS'.
<fs_fieldcat>-seltext_s = 'Std Cost '.
<fs_fieldcat>-seltext_m = 'Std Cost'.
<fs_fieldcat>-seltext_l = 'Std Cost '
<fs_fieldcat>-tabname = 'MBEW'.
<fs_fieldcat>-ctabname = 'T001'.
<fs_fieldcat>-cfieldname ='WAERS'.
<fs_fieldcat>-datatype = 'CURR'.
ENDIF.
Please any one can suggest the solution for this.
Advance Thanks.
Regards,
Bala AchariHİ,
Check this link.
http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=24379571
Take care.
Çağatay -
How to display Cleared/open item symbol' in alv?
Hi Experts,
I am developing ALV report like faglb03,additionaly including some fields as per user requirement.here i want to display " Cleared/open item symbol' in alv.Can anyone tel me how to do this.In which and how it is stored in table?
Thanks in Advance![Formatting Column Contents|http://help.sap.com/saphelp_nw04/helpdata/en/ff/4649a6f17411d2b486006094192fe3/frameset.htm]
check the documentation for ICON , check the table ICON for more symbols
[Sample code of alv list|http://www.sap-img.com/abap/regarding-icon-display-in-alv.htm]] -
Dear colleagues,
We have used BSIS table within a batch input program using standard transactions such as F-02 and OASV, in order to leave several "old" G/L accounts completely up to zero, and therefore transferring their complete amount to "new" G/L accounts.
What we see in several "old" accounts after doing the transfer is that system still displays me 1, 2 or 3 cents in transaction FS10N......but if I double click for its G/L account line item display, system correctly tells me that the old g/l account is completely balanced. Logically, for I have checked in BSIS table through program which is the necessary amount to balance the old g/l account.
So we can say there is a lack of coordination between what I see in the first screen of FS10N and the Line Item display screen of the g/l account. No doubt, old account is completely balanced and well transferred to new g/l account (checked in BSIS table), but FS10N still reports few cents.........isn´t it somehow mischievous?
Does anyone know how to clean those cents (which actually are virtual cents)? Is there any sap note reporting this bug and providing the solution?
Thank you so much for your kind attention on reading my post and best regards.
F. AlbisuDear Neeraj,
Yes you are right, there a lots of notes related to this issue.
I have found note 595776 which I think best fit with my problem. Would you hindly read it and confirm to me, from your point of view, I am in the correct track?
(Of course, the system I am talking to you abput, proceeded to the Euro Conversion in 2002)
Thanks! -
Displaying columns of alv with Main Heading and Sub Heading
Hi friends.
I have certain fields in display of ALV.
Out of all fields(columns), I would have to display some columns with one Main Heading,Below it's being split in multiple rows.
I have data relevent to that multiple fields.
Let say ,
In first row it will show |Allowance |
In second |HRA |PA | OTHERS|
Thanks And Regards,
Amit RautHi,
This is not possible
Refer these links
Re: ALV query
Re: Multiple lines in alv column headings
If this solves ur problem reward points and close the thread
Maybe you are looking for
-
Doc or docx file stop upload at 100% but never complete
My PC is Windows XP using Firefox2.0.0.7 today I start to try adobe share I try to upload a png file is ok then i try to upload a docx file..... the file upload normally at start... however, when it reach 100% the upload will not complete even i wait
-
Deadline Panic--Encore Subtitles Do Not Burn with DL link Project
I have a big SD DV project that I DL ed to Encore where I did the usual Menu and Chapter Work, and this time I added subtitles. They are made by the book, per the docs, as shown in the tutorials, and they preview perfectly from the Encore Monitor, a
-
ADF Messages and background color
I'm using the ADF components and I need to know how to change the background color the the af:messages component. It's currently tied to the accent background color in the xss file, but I would like to make it something else. Anyone know what style t
-
With today's changeover to British Standard Time in the UK (GMT+1), the clock widget displays inaccurate time information for Honolulu (and possibly other cities). Is anyone else seeing this problem? iMac G4 800MHz Mac OS X (10.4.5)
-
Hi , I have a problem using https protocol in Netscape.I have SSL enabled in Web Server. When i try to access my site using this url https://www....../ using Netscape , some of the images(.gifs ) are not picking up whereas it works fine with IE. I do