cancel
Showing results for 
Search instead for 
Did you mean: 

parameters in selection screnn in webdynpro abap

Former Member
0 Kudos

Hello Gurus,

We have a requirement to maintain parameters in selection screnn in webdynpro abap.

now we are able to create parameters using wdr_select_options componet usage of method add_parameter_field.

we need f4 help also for this parameter.

how can we pass exporting parameters to this method.

Could anyone please suggest solutions?

and if possible send me the sample code for this requirement.

Thanks in Advance for your replies.

Regards,

Babu

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Rajasekhar,

If search help(F4 help ) is available at dictionary level you get automatically for that field in select options.

No need to pass any parameters.

If search help is not available at Dictonary level, you need to create OVS help for that.

So you have to do Selectoptions with OVS help.

Please go through this set by step.

http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/707f0d73-94f0-2d10-97a2-a3776e2118d8

Cheers,

Kris.

Former Member
0 Kudos

hi thanks for your quick reply.

but i need this one for parameter only not for select-options.

i used add_parameter_field method for this one.so could u suggest me how can i pass exporting parameters for this method .could you send me sample code regarding this method or refernce links if possible.

regards,

babu

former_member199125
Active Contributor
0 Kudos

Rajsekhar,

You said you are able to get parameters using wdr_select_options for one attribute,

if you assign a dataelement to that attribute automatically F4 help will come in select option.

Note: Dataelement ( in corresponding domain ) should have values in value range or value table.

Or else assign search help to that attribute..

Regards

Srinivas

Former Member
0 Kudos

hi srinivas thanks for your reply.

bu here i need information regarding exporting parameters of

1. i_id

2. i_value_help_type

3. i_value_help_id in add_parameter_field method.

i need f4 help on some criteria.so i need custom search help.how should i pass these above mentioned values.

espicially i need iformation about i_id parameter.what shoul i pass to this one means either field name or data element

name.

could you please provide me the sample code for this method if possible.

CALL METHOD wd_this->m_handler->add_parameter_field

EXPORTING

i_id =

i_within_block = `BL01`

  • i_description =

i_is_auto_description = ABAP_TRUE

  • i_value =

  • i_obligatory = ABAP_FALSE

i_value_help_type = IF_WD_VALUE_HELP_HANDLER=>CO_PREFIX_SEARCHHELP

i_value_help_id =

  • i_value_help_mode =

  • i_value_help_structure =

  • i_value_help_structure_field =

  • i_help_request_handler =

  • i_lower_case =

  • i_memory_id =

  • i_as_checkbox = ABAP_FALSE

  • i_as_dropdown = ABAP_FALSE

  • it_value_set =

  • i_read_only = ABAP_FALSE

  • i_dont_care_value =

  • i_explanation =

  • i_tooltip =

  • i_is_nullable = ABAP_TRUE

  • i_format_properties =

.

former_member199125
Active Contributor
0 Kudos

Hi Rajsekhar,

this is sample code of select option for carr id field. so you can guess and change according to your requirement.

Observe the highlited code in below coding.

nOTE: S_CARR_ID IS THE DATA ELEMENT OF CARR ID FIELD, FOR THAT I AM APPLYING SELECT OPTIONS IN BELOW CODING.

      • WRITE THE BELOW CODE IN WDDOINT( ) METHOD OF REQUIRED VIEW

Data: lt_range_table type ref to data,

read_only type abap_bool.

WD_THIS->M_WD_SELECT_OPTIONS = WD_THIS->WD_CPIFC_SELECT_OPTIONS( ).

WD_THIS->M_HANDLER = WD_THIS->M_WD_SELECT_OPTIONS->INIT_SELECT_SCREEN( ).

WD_THIS->M_HANDLER->SET_GLOBAL_OPTIONS(

I_DISPLAY_BTN_CANCEL = ABAP_FALSE

I_DISPLAY_BTN_CHECK = ABAP_FALSE

I_DISPLAY_BTN_RESET = ABAP_FALSE

I_DISPLAY_BTN_EXECUTE = ABAP_FALSE ).

LT_RANGE_TABLE = WD_THIS->M_HANDLER->CREATE_RANGE_TABLE( I_TYPENAME = 'S_CARR_ID' ).

WD_THIS->M_HANDLER->ADD_SELECTION_FIELD(

* I_ID = 'S_CARR_ID'*

* IT_RESULT = LT_RANGE_TABLE*

* I_READ_ONLY = READ_ONLY* ).

          • BELOW CODE IN REQUIRED ACTION( SAY IN SOME BUTTON ACTION WHICH WILL RETRIEVE THE DATA FROM DATABASE TABLE USING SELECTI OPTIONS VALUES)

fIRST THE GET REFERENCE TO NODE( CTRL F7->READ CONTEXTB-FLIGHT NODE )

***THEN BELOW CODE

DATA: RT_CARRID TYPE REF TO DATA.

DATA:IS_FLIGHT TYPE TABLE OF SFLIGHT.

FIELD_SYMBOLS: <FS_CARRID> TYPE TABLE.

RT_CARRID = WD_THIS-> M_HANDLER->GET_RANGE_TABLE_OF_SEL_FIELD( I_ID = 'S_CARR_ID' ).

ASSIGN RT_CARRID->* TO <FS_CARRID>.

SELECT * INTO CORRRESPONDING FIELDS OF TABLE IS_FLIGHT

FROM SFLIGHT WHERE CARRID IN <FS_CARRID>

NODE_FLIGHT->BIND_TABLE( IS_FLIGHT ).

Former Member
0 Kudos

hi srinivasa thanks for your quick responce.

but i need to impliment parameter only using method add_parameter_field in selections.

so i need sample code regarding parameter only not for select-options.

could you send me the sample code regarding "add_parameter_field' method if possible.

regards,

babu.

former_member199125
Active Contributor
0 Kudos

Rajsekhar,

Please check the below link, in that you wil find everything

http://wiki.sdn.sap.com/wiki/display/Snippets/WebDynproABAP-Complexselect-optionscomponent+usages

Regards

Srinivas