cancel
Showing results for 
Search instead for 
Did you mean: 

Checkboxes with hierarchynodes in webbreporting

Former Member
0 Kudos

Have anyone of you tried to use checkboxes or radiobuttons within a web template on a infoobject that is filtred with hierarchy-nodes?

If I have filtred the query with several nodes, I would like to be able to choose one of the nodes within the report with a checkbox and press "filter".

If I just use the checkbox in the ordinary way, every costcenter that belongs to the nodes are listed. Not practical..

Accepted Solutions (1)

Accepted Solutions (1)

michael_koch9
Active Participant
0 Kudos

Dear Morgan,

this is possible with A Modify Table Class and WEB API Commando for Filtering.

Please ask if you need an example.

Regards

Marcus

Former Member
0 Kudos

I would really like an example!

//Morgan

Answers (1)

Answers (1)

michael_koch9
Active Participant
0 Kudos

Ok,

at first you have to create a new ABAP OO Class with transaction se24 this class has to inherit from class CL_RSR_WWW_MODIFY_CLASS (or sth. near to that).

redefine method Characteristic cell.

insert the following code:

concatenate '<input type="checkbox" name="' i_iobjnm '" value="' i_value '">' c_cell_content into c_cell_content.

save the class and add a parameter:

<param name="MODIFY_CLASS" value="YOUR_CLASS">

to the web table item.

but a <form name="filter"> before web table item and

a </form> after the web table item

If you now excute the template you should see the checkboxes.

Now you have to create a Javascript function in the web template which gets out which checkbox is activated (help is on http://www.selfhtml.org)

concatenate a url whith API Commands the following syntax (look in Web API Documentation, search for it in SDN):

FILTER_IOBJNM_1=0MATERIAL&FILER_VALUE=12345

If you finised that insert a send button in the web template which calls the javascript function.

Please ask if you need more advice.

Regards

Marcus