Hide column in webreports (without table interface)
Hi,
I want to hide columns in my webreport only(!) with the context menu. The idea is to set a statement like "remove drill down" --> <SAP_BW_UR CMD='Expand' DATA_PROVIDER='View1'IOBJNM='0COUNTRY' >
The problem is that I don't which InfoObject is selected, because I'm changing the standard template. Is there a chance to get that information by clicking to the menu?
Hoping sb can help.
Barbara
Hi,
i can forward you the documents regarding u r requirement.
mail me at [email protected]
regards,
ravi
Similar Messages
-
How to hide columns in the output table in webdynpro based on input
Hi Experts,
I have 2 inputs and 1 input is optional.If both inputs are given proper table output is displayed,but if only 1 input is given a column is empty in the output table so i want to hide this column dynamically at runtime based on my inputs.And i want to hide some empty rows also at runtime based on inputs.
Can anyone help me out to solve this.
Thanks in advance.
Regards,
Anita.Hi Anitha,
What i understood from your question is,you want to control the table from your inputs.I have a one question for you what do you want to show defaultly i.e when you run the application what you want to show,either no table or table with some values.
Any how i am giving solution in this way.
If both inputs are given proper table output is displayed
Write your below logic in the WDDOMODIFYVIEW )
Here i am assuming that you already have a table element in the view.
Get the values entered in the input fields and compare those 2 values ,if the condition is satisfied then bind the values which you want to show in the table to the context node.
but if only 1 input is given a column is empty in the output table so i want to hide this column dynamically at runtime based on my inputs
You are telling that you know the empty column.If so get the view element reference and use the REMOVE_COLUMN to remove the column.
data:lr_table type ref to cl_wd_table,
lr_column type ref to L_WD_TABLE_COLUMN.
lr_table ?= view->get_element( 'TABLE1' ).
CALL METHOD LR_TABLE->REMOVE_COLUMN
EXPORTING
ID = 'TABLE1_color'
INDEX =
RECEIVING
THE_COLUMN = lr_column.
i want to hide some empty rows also at runtime based on inputs.
Removing the rows is very simple.if you know the key fields data of internal table from your input fields then do in this way.
delete itab from wa where key1= "12" and key2="abd".
Now bind the internal table to context node.
LO_ND_hcm->BIND_TABLE(
NEW_ITEMS = it_final
SET_INITIAL_ELEMENTS = ABAP_TRUE ). -
How do i hide a column in table interface class
Hi,
I need to hide a column in Abap table interface class. When i tried to hide from web item properties it didn't work so i am thinking to hide first column in the table interface class
Thanks,
malaIn the WebApplication Designer start Tools -> View Definition -> Based on a Query. Choose your query, change layout to your requirements and save the view. Now just use the view in your webtemplate.
Pls assign points if answer is useful
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/u/37289">vitaliy</a> -
Hide columns in table interface
I've used SAP's 'How to ... Hide a column in your Web Query with the Table Interface". The problem is that if I do any OLAP function my headings reappear. It doesn't look like the 'structure_cell' method is being called. Is there a way to force this method to be call? Or is there a flag to reset in the table class that tells the class that this is the first time running the report. It seems that the initinal run is different than if you use any OLAP function.
Make sure the STATELESS navigation state of the template is not set. There is no properties which needs to be set in the class for this.
Thanks. -
RE: Hide a column in web report using table interface class
Hi,
I want to hide first column in web template using table interface class. Following is the code i used in CAPTION_CELL and CHARACTERISTIC_CELL. Is this correct?
method CAPTION_CELL.
*First column
if i_x = 1.
add comment tag
move '<!-- ' to C_CELL_CONTENT.
endif.
endmethod.
method CHARACTERISTIC_CELL
First column
if i_x = 1.
save start-time column
move I_CHAVL_EXT to L_STARTTIME.
add comment tag
move '<!-- ' to C_CELL_CONTENT.
endif.
endmethod.
When i execute the web template it is still displaying the first column. Do i have to code in any other method?
Thank you,
Mala VenkateshHi , the implementation should look like...
method CAPTION_CELL .
*CALL METHOD SUPER->CAPTION_CELL
EXPORTING
I_X =
I_Y =
I_IS_EMPTY =
I_IOBJNM_ROW =
I_ATTRINM_ROW =
I_TEXT_ROW =
I_IOBJNM_COLUMN =
I_ATTRINM_COLUMN =
I_TEXT_COLUMN =
I_IS_REPETITION =
I_COLSPAN =
I_ROWSPAN =
CHANGING
C_CELL_ID =
C_CELL_CONTENT =
C_CELL_STYLE =
C_CELL_TD_EXTEND =
First column
if i_x = 1.
add comment tag
move '<!-- ' to C_CELL_CONTENT.
endif.
Second column
if i_x = 2.
close comment tag
concatenate '--> '
C_CELL_CONTENT
into C_CELL_CONTENT.
endif.
endmethod.
method CHARACTERISTIC_CELL .
*CALL METHOD SUPER->CHARACTERISTIC_CELL
EXPORTING
I_X =
I_Y =
I_IOBJNM =
I_AXIS =
I_CHAVL_EXT =
I_CHAVL =
I_NODE_IOBJNM =
I_TEXT =
I_HRY_ACTIVE =
I_DRILLSTATE =
I_DISPLAY_LEVEL =
I_USE_TEXT =
I_IS_SUM =
I_IS_REPETITION =
I_FIRST_CELL = RS_C_FALSE
I_LAST_CELL = RS_C_FALSE
I_CELLSPAN =
I_CELLSPAN_ORT =
CHANGING
C_CELL_ID =
C_CELL_CONTENT =
C_CELL_STYLE =
C_CELL_TD_EXTEND =
First column
if i_x = 1.
save document-item number
move I_CHAVL_EXT to l_docitem.
add comment tag
move '<!-- ' to C_CELL_CONTENT.
endif.
Second column
if i_x = 2.
close comment tag
concatenate '--> '
C_CELL_CONTENT
l_docitem
into C_CELL_CONTENT
separated by space.
endif.
endmethod.
Activate the methods/class and add this in the Web Template!
for example:
<param name="MODIFY_CLASS" value="ZHCOLAPP">
ZHCOLAPP is the table interface class in this case.
Best,
Michael -
How to Hide rows in ALV without affecting total sum at the end of table?
Hi,
I need some help in hiding particular rows in an ALV Grid without affecting the total sum at the end of the table. I am trying to hide the rows that have negative quantities, but I still need those values so that the user can still compute for the total sums. Can anyone help? Thanks.
JosephHi,
Hopw this way you can hide the rows in the GRID.
DATA:
ld_column TYPE lvc_fname,
ld_hide TYPE abap_bool.
FIELD-SYMBOLS:
<ls_entry> TYPE any,
<ld_fld> TYPE any.
ld_column = 'COL_1'. " column which you want to suppress if everything is zero
ld_hide = abap_true. " = 'X'; default hide column
LOOP at <gt_outtab> ASSIGNING <ls_entry>.
ASSIGN COMPONENT (ld_column) OF STRUCTURE <ls_entry> TO <ld_fld>.
IF ( <ld_fld> > 0 ).
ld_hide = abap_false. " display column because at least single value > 0
EXIT. " leave LOOP
ENDIF.
ENDLOOP.
READ TABLE gt_fcat INTO ls_fcat
WITH KEY fieldname = ld_column.
IF ( syst-subrc = 0 ).
ls_fcat-no_out = ld_hide.
MODIFY gt_fcat FROM ls_fcat INDEX syst-tabix.
ENDIF.
hop you will get the total with for those columns too.
Regards,
Madhavi -
Hide/remove column in adf pivot table
Is it somehow possible to hide or to remove column (I need to hide agregate column, but is it possible for regular data cell) dynamically when some conditions are met? I've tried getDataFormat and getheaderFormat methods to set width of the columns to 0, but it doesn't work. Also I've tried to set rawvalue of data cell to null/"" and width to 0 but without success to hide column. Problem applies to adf pivot table 11g.
Thank You!HI,
You have the option for the column as to be suppress or repeat
Go to column properties and go to column format second tab select the option Suppress.
Regards,
VG -
Hide a column in oracle 8i tables
I have a table in oracle which contains user name & password. But Password are not encrypted.When one give command select * from mytable it list all passwords.Is there is any way to encrypt or hide column of oracle table. IF any other way of storing password in table please tell me on urgent basis.
e31e5144-2990-4755-8ca6-7c57ec285959 wrote:
This weblink might help you people in encrypting the passwords in the tables.
ORACLE-BASE - Storing Passwords in an Oracle Database
For any queries, write to me at <redacted>
Wish you luck.
Kind Regards,
Vikas
Congratulations. You just exposed your email address on the World Wide Web. Even as you read this, every web crawler on the planet is harvesting your address to be sold to purveyors of various, uh, anatomical enhancement products and offers to give you a piece of the action if you will only provide your bank account information to assist in laundering money out of Nigeria. I hope you enjoy having your mail box flooded with such offers, because they are on their way.
Also, it is considered poor nettiquete to take a technical discussion "offline" from the forum where it began, as that prevents others from benefiting from the information exchange.
============================================================================
BTW, it would be really helpful if you would go to your profile and give yourself a recognizable name. It doesn't have to be your real name, just something that looks like a real name. Who says my name is really Ed Stevens? But at least when people see that on a message they have a known identity. Unlike the system generated name of 'ed0f625b-6857-4956-9b66-da280b7cf3a2', which is like going to the pub with a bag over your head.
============================================================================ -
Table Interface : Merge cells in the same column
I want to use the Table Interface to accomplish this...
I need to merge cells that are to the top/bottom of eachother. So, the 2 cells have the same InfoObject. They are 2 different values and i want them to appear in the same cell... for example..
A regular table returns:
STATUS
¯¯¯¯¯¯¯¯¯
OPEN
CLOSED
I want it to be displayed like:
STATUS
¯¯¯¯¯¯¯¯¯
OPEN
CLOSED
The vertical lines on the right should be lined up but i cant get it to format. Anyway, how can this be accomplished?
Thanks.We have data object which is a very long text. Much longer than the 60 char limit. So, we're thinking of breaking the text up into 60 char chunks. And then put each chuck beneath one another. But we need the texts to look like they're all in the same cell.
I first thought of manipulating the borders using CSS styles. But I couln't figure out how to tell if I've reached the last line of the text. (I was trying to use I_Y to navigate through the column.)
Second thought, merge the cells. This would be more efficient.
Thanks. -
Table Interface - Webreporting
Hi all,
i got a query with an own structure with 20 rows. Now i want to change the background color of first 3 rows from my structure. I think this should be possible with Table Interface? Anyone knows how?
Thanks in advance.
M. ErbilHi Supriatna,
i showed M. Erbil how to solve it. Well i can give you a short democode:
method STRUCTURE_CELL .
*CALL METHOD SUPER->STRUCTURE_CELL
EXPORTING
I_X =
I_Y =
I_IOBJNM =
I_AXIS =
I_STRUCTUR_MEMBER =
I_STRUCTUR_MEMBER_2 =
I_TEXT =
I_IS_SUM =
I_IS_REPETITION =
I_CELLSPAN =
I_CELLSPAN_ORT =
I_HRY_ACTIVE =
I_DRILLSTATE =
I_DISPLAY_LEVEL =
CHANGING
C_CELL_ID =
C_CELL_CONTENT =
C_CELL_STYLE =
C_CELL_TD_EXTEND =
*- change result rows to font-weight:bold
if i_y = 3.
c_cell_td_extend = 'style="font-weight:bolder; color:#FFCC00"'.
endif.
if i_y = 4.
c_cell_td_extend = 'style="font-weight:bolder; color:#FFCC00"'.
endif.
if i_y = 5.
c_cell_td_extend = 'style="font-weight:bolder; color:#FFCC00"'.
endif.
endmethod.
"if i_y = 3" means that coding starts in row 3 of current "STRUCTURE"! If you are not using a structure (based on key figures or characteristics) nothing will work. Where you get the error message? In the Class Builder?
If you like i can send you a good PDF document with explanation of all fields!
Regards,
Adem -
Hi,
Is there any way that i can delete the rows of a particular column(for example material column).I'm using the WEB ITEM "TABLE" in the web template.
If there is any sample code to delete the rows of a column, please do let me know.
Thank you,
regards,
raviHi,
for this you have to use the so-called query table interface.
see documentation here: How to Enhance your Web Query with the Table Interface
If hiding a column would be an option you can find a how-to paper here:
How to Hide a Column in your Web Query with the Table Interface
regards,
jürgen -
How to hide the data in particular table in oracle 10g
How to hide the data in particular table in oracle 10g
i want stepsIf its on Report u can always hide the column - Keyfigure or Selection - Display - Hide......y do u want to have it on the report if it is to be hided in the first place?
-
Hiding a measure column in a pivot table in BI Answers
Hi,
I need a report to have a hierachical format such as:
Top Company
Middle Company
Customer Name Customer Id Customer Creation Date
To achieve this, I apparently need to add a measure column to the Rows data, but I don't want to show it.
Would anyone know how I can hide a measure column in a pivot table?
Many thanks,
- JennyMeasure Columns can't be hidden like an attribute. How ever you can use custom style sheet for Value and Header Properties to not show the measure.
for the "Custom CSS Style Options (HTML Only)" under measure properties of the column set "Use Custom CSS Style" value to 'display:none'.
Let me know if this worked.
Regards,
Jay -
Hiding a row based on the the drill down via table interfaces
I have a requirement to hide a particular row (key field) of a table if a characterisitic (0PLANT) is included in the table.
I have managed to hide the key field via the table interface but need to know how I would see if the characteristic is drilled down (IE included in the table).
Initially I used CAPTION_CELL to establish whether 0PLANT was in the report but when I then removed 0PLANT from the report, CAPTION_CELL is not reprocessed and thus the report is incorrect.
What is the best way to establish what characteristics are included in any report.
Any help would be appreciated.
Cheers
Shep.Hi Neal,
why not using the service method get_state_infos.
In e_thx_axis_info you should find all relevant information
http://help.sap.com/saphelp_nw04/helpdata/en/32/ab3a3c24b4a00ae10000000a11402f/frameset.htm
Heike -
Hiding a column in the quote table
Hello,
Please i need to hide a column in the quote table (Oracle quoting: Quotes ). How can this be done ? I am not able to get the JSP pages to do the customization ? how to get the name of the JSP in order to get it from the server and modify it?
Please reply ,
Thanks,easiest way to find out the jsp to be modified.
do the view source of the page, search for the item you want to hide and go back upwards in the file, you will find the jsp that renders the field.
customize that jsp.
Thanks
Tapash
Maybe you are looking for
-
Help values for a field in ALV GRID
Hi ! i have a field in a structure, whose field have a table of values in its domain. How does this table values can apear in the ALV, when i click the corresponding field? Best regards, Rui
-
ITunes says 1 app store update but can't install, iPhone says no updates
Hi there in iTunes 7.7, Applications under Library, when I click Check for Updates it says "Updates are available..." So I click View Updates and then it says "No updates are available. Check again Later." If I go back into Applications in the Librar
-
Hi, We have been running FM7.2 and are planning to upgrade to FM8. We start from XML files (to our own DTD) which is then transformed into XML corresponding to the structure we want in the FM file, which is then imported into FM. Everything works fin
-
Unable to create customers in ECC due to DEBITOR_BDCDATA
Hi Gurus, We have a requirement to create customers in ECC (ECC 6.0 EhP4) from CRM (CRM 7.0 SP4) Business Partners. The issue is BDoc is failing with error"Fill in required fields". I am posting in this forum as my issue is on the inbound/posting sid
-
Change to source system not possible
Our source system has a RFC problem conection, and when I try to change the parameters I have this meessage Change to source system not possible Message no. RSAR743 Diagnosis The change to RFC parameters is not possible for source systems with manual