ZPRINTING/Z_PRINT_HELP_SERVICE with Table Interface
Hi,
I use the ZPRINTING help service and the Z_PRINT_HELP_SERVICE help service class as a printing solution.
I have modified the table interface to change the look of the table.
I want this table interface change to be reflected in the print solution.
I added this to the URL "&MODIFY_CLASS=ZCL_TABLE_ENHANCE". ZCL_TABLE_ENCHANCE is the name of my table interface class.
The entire url is:
http://SERVER:PORT/sap/bw/BEx?SAP-LANGUAGE=E&PAGENO=1&REQUEST_NO=1&CMD=PROCESS_HELP_WINDOW&HELP_SERVICE=ZPRINTING&DATA_PROVIDER=DP<b>&MODIFY_CLASS=ZCL_TABLE_ENHANCE</b>&P_STYLESHEET=/sap/bw/Mime/BEx/StyleSheets/BWReports_smallfont_print.css&P_PREVIEW_MODE=&P_HEADER_HEIGHT=1.00&P_HEADER_INDENT_LEFT=0.50&P_HEADER_INDENT_RIGHT=0.50&P_FOOTER_HEIGHT=0.8&P_FOOTER_INDENT_LEFT=0.50&P_FOOTER_INDENT_RIGHT=0.50&P_DATA_AREA_PADDING_TOP=0.00&P_DATA_AREA_INDENT_LEFT=0.50&P_DATA_AREA_INDENT_RIGHT=0.50&P_DATA_AREA_COLUMNS=4&P_PAGE_WIDTH=25.40&P_PAGE_HEIGHT=19.05
However, when I run the printing solution, my table interface changes aren't reflected.
Any help is appreciated.
Thanks.
Audrey,
usually, you don't attach "modify_class" to the URL CMD, rather it needs to be attached to the object tag of the "item".
Once it is attached to the object tag, you just need to attach "help_serivce" class & the "item" to the URL CMD.
I've included a few lines of sample code here. Hope it helps.
<object>
<param name="HELP_SERVICE" value="ZPRINTING"/>
<param name="MODIFY_CLASS" VALUE = "ZCL_TABLE_ENHANCE">
ITEM: TABLE_1
</object>
<A href="JavaScript:window.open(SAP_BW_URL_Get() + '&CMD=PROCESS_HELP_WINDOW&help_service=ZPRINTING&item=TABLE_1');" >
Similar Messages
-
Hi to all experts,
i have the following scenario:
I am using a query in web. Well in the lines there is a characteristic (for example sales org) and in the columns a keyfigure with an exception and a top10 condition. I think exception and condition are not important for my problem but the table is. Now i want to see in front off all lines a checkbox. That means i have - for example - now 10 sales organizations in my query and in front of all sales orgs there should be a checkbox. I think that should be realized with table interface. Now the user should be able to mark two ore more checkboxes to jump with the Report Report Interface by using a link to another Web report? Is that possible? Sounds hard i think or isnt it?
Regards,
M. ErbilHi Memo,
try the following. Create a template with a web item table. Than by using se24 create your own class for table interface. Change method DATA_CELL.
method DATA_CELL.
*CALL METHOD SUPER->DATA_CELL
EXPORTING
I_X =
I_Y =
I_VALUE =
I_DISPLAY_VALUE =
I_NUMERICAL_SCALE =
I_NUMERICAL_PRECISION =
I_CURRENCY =
I_UNIT =
I_ALERTLEVEL =
I_IS_SUM =
CHANGING
C_CELL_ID =
C_CELL_CONTENT =
C_CELL_STYLE =
C_CELL_TD_EXTEND =
data: l_cell_content type string.
if i_x = 2 and i_is_sum <> 'X'.
concatenate l_cell_content '<INPUT type=checkbox value=ON name='
'' filter '' '>' into
l_cell_content.
c_cell_content = l_cell_content.
endif.
endmethod.
You can hold the value from characteristic in method CHARACTERISTIC_CELL:
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 =
data: l_filter type string.
Store characteristic value of current row
if i_x = 1 and i_is_sum <> 'X'.
l_filter = i_chavl.
endif.
endmethod.
Please note that "i_chavl" holds the key value from characteristic.
Now back to method DATA_CELL and insert something like this:
filter = l_filter. "l_filter is set in method characteristic cell
so it look like this:
method DATA_CELL.
*CALL METHOD SUPER->DATA_CELL
EXPORTING
I_X =
I_Y =
I_VALUE =
I_DISPLAY_VALUE =
I_NUMERICAL_SCALE =
I_NUMERICAL_PRECISION =
I_CURRENCY =
I_UNIT =
I_ALERTLEVEL =
I_IS_SUM =
CHANGING
C_CELL_ID =
C_CELL_CONTENT =
C_CELL_STYLE =
C_CELL_TD_EXTEND =
data: l_cell_content type string,
filter type string.
if i_x = 2 and i_is_sum <> 'X'.
filter = l_filter.
concatenate l_cell_content '<INPUT type=checkbox value=ON name='
'' filter '' '>' into
l_cell_content.
c_cell_content = l_cell_content.
endif.
endmethod.
Hope it works
Regards,
Adem -
Table Interface / Web: value from free characteristic
Hi,
i am using 2 queries. In the first query i got the free characteristic "calendar year month". Now i created a link with table interface to jump to the second query. With this link i would like to filter query 2 with calendar year month from query 1. How can i get the value from the calendar year month? With drill down there is no problem to get the value in method CHARACTERISTIC_CELL. But with free characteristics this is not so easy.
Any ideas?
Regards,
M. ErbilHi Erbil,
Please find below the usage of GET_STATE_INFOS,
DATA l_sx_axis_data TYPE rsrds_t_axis_data.
CALL METHOD me->GET_STATE_INFOS
IMPORTING
E_T_SLICER = l_sx_axis_data.
You can get the 0CALMONTH from the above resultset.
Cheers,
Kartheek -
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 -
Table Interface "destroys" Excel download
Hello all,
i made a webtemplate with 3 dataproviders. To download all into one excel sheet i implemented the How-To-Paper:" Web printing with Excel". It works fine.
Now i attached a table interface class to the webtemplate which adjust some cells regarding color,....
If i now download the template to excel for example: a percentage value like 48.59% 8web) is shown in excel 0.48 %; a normal value like 600 (which is normally 599.57 but rounded in webtemplate) is in excel 600 it should be 599.57).
If i detach the table interface class it works fine again.
Can anybody help ?
Thanks
MarcHI,
I am having the same problem.
Any solutions for this?
Thanks,
Andreas -
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. -
Hi all,
I would like to use the table interface to hide a lot of consecutive rows (more than 100) in a web query.
Therefore I've redefined both DATA_CELL and
CHARACTERISTIC_CELL method with coding
move '<!-- -->' to c_cell_content for the referring rows.
The effect is, that the cell content is hide but all rows are shown furthermore with a minimal heigth.
Could anybody help me?!
Bye
HagenDear Hagen,
why don´t use the "show rows" paramter of table item in WAD this will not create (not hide) the rows more than 100 or make a condition top 100 into the query this is better for performance than just hide them.
If you want to do it by Table Interface you have to change the methode structure_cell as well.
Regards
Marcus -
Problem with Reversed document with IDOC interface
I have a problem when I create Idoc which will reverse a document.
I use ACC_DOCUMENT_REVERSE, in Idoc is filled like this -
OBJ_TYPE ( BKPFF )
OBJ_KEY( reverse document number + company code + year)
OBJ_SYS ( system id )
OBJ_KEY_R ( obj_key of document which will reverse )
PSTNG_DATE
COMP_CODE
REASON_REV
I formed OBJ_KEY with one select from table bkpf, and get the last number of documents reversed with Idoc interface. The interface creates Idoc reverse document with number 929xxxxxxx. With fb08 - documents created are 92xxxxxxxx.
The problem is when use transaction fs10n, fill customer account number, and the sums are not right. The documents which was reversed with Idoc did not entered in G/L Account Line Item.
But if I start transaction fbl5n - customer line item, the documents reversed by Idoc is there, and the total sum is right.
How can I resolve this problem?
Greetings,
Lazar HristovHi,
I hope you have reversed the posting.Have you cancelled the downpayment invoice.
Please cancel the first downpayment invoice and post the amount for the second downpayment.
Now try to create the final invoice.
Regards,
Krishna. -
Get the filter value in the Modify Table interface
Dear Colleages,
I use a Table Interface in order to get aditional values in a web template from a table, but I need the filter value used in the query.
I can get it with "get parameter" sentence:
GET PARAMETER ID '/BI0/OCALMONTH' FIELD MES1
But I cannot when I have a filter instead of a variable, it doesn't work using a variable without "manual entry" option.
¿How can I get this filter value?
Regards,
JoseHi Jose,
Use method get_state_infos (http://help.sap.com/saphelp_nw04/helpdata/en/32/ab3a3c24b4a00ae10000000a11402f/frameset.htm)
The dynamic filters are in e_t_slicer.
If this a a static filter or a variable, you can find them in e_t_txt_symbols.
Heike -
Default Table Interface Class - 0TPL_BAP_MASTER
Hi there
We are trying to determine which table interface class is used on the default 0TPL_BAP_MASTER web template.
We have created our own web template, but one of the pieces of functionality delivered with the standard template is the sort (ascending/descending) functionality which is included as arrows on the table column headings. We would very much like to use this on our custom template, and believe it to be implemented in the table interface class, but are not sure what that class is.
Anybody know the name of the class?
Cheers,
AndrewHi Deepu,
How are you?
I got a error about 0TPL_BAP_MASTER, when we are exicuting webtemplates in my portal. Can you please tell me what may be the error and how to overcome with this error.
Thanks,
Surendra. -
Table interface: Text aligntment
Hi All,
Would you all give me suggestion, I am try to change text alignment specially for header in web reporting what I did change the stylsheet in mime object (se80) this step is not work. And I used STRUCTURE_CELL method of the table interface it works but all alignment for characteristics was change.
I want to make it all back as default but is not work too.
Its highly appreciated of your respond
Regards
supriatnaHi Lars,
the example you gave is quite a bad example: display a string instead of zeros can be easily done in the query desginer no need to use the table interface or other programming stuff:
See Zero Value display
http://help.sap.com/saphelp_nw2004s/helpdata/en/1e/99ea3bd7896f58e10000000a11402f/frameset.htm
In general there is no easy answer to this question. It depends on the scenario, for which you needed the table interface. Some things can be done with the query designer, some things can be done with the new Enterprise Reports and for some you would probably need some custom solution (Web Dynpro Program, ...). But this really depends on the scenario.
Heike -
Can anyone explain table interface concept with examples
sridharTake a look in the below link
http://help.sap.com/saphelp_nw04/helpdata/en/6e/8fc2d7dd0d11d2bdba080009b4534c/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/a2/06a83a4bd5a27ae10000000a11402f/content.htm -
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 can we find the hostname of the devices connected with the interfaces of switch?
how can we find the hostname of the devices connected with the interfaces of switch ? I have tried mac address and ARP, there are lot of servers connected with the switch having multiples LAN cards. So mac table shows the mac of physical machine as well as virtual machines. But i want to know only the physical machines. Is there any other method to find out the IP address, hostname of the physical machines only?
Hello Leo Laohoo
Thanks for this information
In our network most of the Servers are not of Cisco. Some of them are Vmware machines, some are Hyper V machines, etc.
Does IP device tracking show us only the IP addresses of the Physical Machines of the Vmware Server not of Virtual Machines?
Regards
Mukesh Kumar
Network Engineer
Spooster IT Services -
Access follwing values in table interface
Hi,
how can I access follwing values in the table interface.
I want to use the value of the 9th column cell in the first one to create a link.
But with
if i_x = 1.
endif.
I'm just able to access the current cell.
By the way, is there a possibility to add columns? How?
greetings form munich
MikeHi,
you can have also access on the complete result set of the table (meaning on every cell) at any time in processing the table interface. But this requires some basic understanding on the dataset and especially the cell_data.
http://help.sap.com/saphelp_nw04/helpdata/en/2a/20ac3a22f0785ce10000000a11402f/frameset.htm
and
http://help.sap.com/saphelp_nw04/helpdata/en/e0/42a63adf18e648e10000000a11402f/frameset.htm
Heike
Maybe you are looking for
-
Hello all I want to create new sap query in sq01 , the requirement is like this eg:- customer a/b/c , I want to generate the list of last created sales order for the customers a/b/c here I have given 3 customers but I have to execute for 1500 custom
-
Update DBTAB updating only part of records
Hello Gurus, Need your help. I have an Update Dbtable with Internal Table statement in my ABAP. My IT (Internal table) is a hashed table with same keys and fields as my DB table. Suppose I have 30K records in my IT, ultimately only say 9K records get
-
Lightroom 3, 4 & ACR crop my images
When processing raw images from my Canon (550D and S90), LR crops approximately 200 pixels on the left on the image. I tried several other software (DxO for instance) that doesn't crop my images, and give me access to the full sensor of my camera. I
-
Audio hitching in windows games.
Hello, Ive been running windows for quite a while and Ive noticed the audio has some annoying hitching in some games. (GTA:SA, UT2L4, Swat 4) Its really annoying, I tried formating windows and reinstalling with newest boot camp but i cant seem to fix
-
How do I get my Itunes to see the Apple TV?
I purchased apple TV today & have connected it with my wireless network & all is good from the TV end however I cannot get intunes to sync in with the Apple TV?