cancel
Showing results for 
Search instead for 
Did you mean: 

Search page for a Z-Table

Former Member
0 Kudos

Hi,

I want to implement a search page in the BSP Workbench. I created my own component for this search page. The search page should be able to filter for criterias described in a Z-Table.

For example: The Z-Table contains the fields 'LOG_ID' and 'LOG_NAME', so I want to the serch page to be able to filter for these two fields. Since the structure is given by a Z-Table, the context node will not be derived from a BOL-entity, so it will be not a model node but a value node.

I understand, that I have to create a view with a value node that refers to the DDIC structure of my Z-Table. Unfortunately, this step is not sufficient. Doas anyone, what else I have to do? Do I have to change the superclasses of my implementation/context node classes? Is a value node not sufficient in order to create a search page, i.e. does it have to be a model node with BOL entity?

Thank you very much in adavnce for your effort.

Regards,

Marc

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Marc ,

you need to create a Custom Controller with the same value node that refers to the DDIC structure , and the view need to be connected to that controler.

you also need to go to the html

and isert the next code to be able configuration:

DATA: lv_xml TYPE string.

lv_xml = controller->configuration_descr->get_config_data( ).

<chtmlb:config xml = "<%= lv_xml %>"

displayMode = " "

mode = "RUNTIME" />

Former Member
0 Kudos

Thank ypu for the quick and helpful reply.

I Created a CuCo and bound my context node to the context node in the CuCo.

I also inserted the following code into my html-file:

<%@page language="abap" %>

<%@extension name="thtmlb" prefix="thtmlb" %>

<thtmlb:advancedSearch id = "advs0"

fieldMetadata = "<%= controller->GET_DQUERY_DEFINITIONS( ) %>"

header = "<%= LOGSEARCH->get_param_struct_name( ) %>"

fieldNames = "<%= controller->GET_POSSIBLE_FIELDS( ) %>"

values = "//LOGSEARCH/PARAMETERS"

maxHits = "//LOGSEARCH/max_hits"

onEnter = "search"

ajaxDeltaHandling = "false" />

Now my situation is the following: I can now call the configuration tool, but the left side, which contains the available search criteria, is empty. I expected the attributes of my context node to be in there.

Any further ideas?

Regards,

Marc

Former Member
0 Kudos

Hi Marc,

go to Component : CRM_THTMLB_COMP

or to se80 -> bsp applicatoin CRM_THTMLB_COMP

in there you will see examples,

go to tableconfig.html or one of the formconfig.

hope you will get there what you need.

Lilach.

Answers (0)