cancel
Showing results for 
Search instead for 
Did you mean: 

Simple search screen

Former Member
0 Kudos

Dear Experts,

Can anyone let me know how to create simple search screen in webdynpro ?...

The scenario is "initially the search screen should consists of one search field and click on "+" button it should add fields which are available in my -ztable.".

PFB the snapshot for reference.

Thanks

KH

Accepted Solutions (1)

Accepted Solutions (1)

ramakrishnappa
Active Contributor
0 Kudos

Hi KH,

The selection screen of this type can be achieved by using standard component WD_SELECT_OPTIONS_20.

Please refer the standard test component WDR_TEST_SEL_OPTIONS_20

You can also use ROWREPEATER ui element to meet your requirement.

Regards,

Rama

Former Member
0 Kudos

Hi Rama,

Can you pls let me know how to use ROWREPEATER UI element/WD_SELECT_OPTIONS_20 in my requirement ?.

Thanks

KH

former_member197475
Active Contributor
0 Kudos

Hello Katrice,

Check the below two links.

steps to create row repeater ui element - Web Dynpro ABAP - SCN Wiki

You can use new WD_SELECT_OPTIONS_20, as gives an enriched look to your UI.

BR,

RAM.

Former Member
0 Kudos

Hi Rama.

Created simple search screen with the help of WD_SELECT_OPTIONS_20. But in Resultant screen,it is sorting search fields in ascending order based on field descriptions after using below statement.

lv_sel_opt_handler->add_attribute( EXPORTING attributes = lt_attributes ).

But my requirment is i need to show key fields first i.e i need to sort search fields based on my table structure fields.

Thanks

KH

Former Member
0 Kudos

Hi,

Issue Resolved.

I can show the search fields based on table structure.

lv_sel_opt_handler->add_attributes(

  EXPORTING

    attributes               lt_attributes 

    initial_data             lt_initial_data

IMPORTING

  proposed_rows            = lt_initial_data   ).

And in LT_INITIAL_DATA, i'm passing the required fields which needs to be shown first.

Thanks

KH

Answers (0)