cancel
Showing results for 
Search instead for 
Did you mean: 

parameter field in WD screen

Former Member
0 Kudos

Hello All,

how to create a parameter field (as if it were in abap selection screen ) i am using the wd component WDR_SELECT_OPTIONS in my component. i want to display a parameter field with the description taken from DDIC. iam trying to use the method ADD_PARAMETER_FIELD of the interface IF_WD_SELECT_OPTIONS.

here i could not understand how to bind this parameter field with DDIC element so that the description, (if possible F4 help)is taken from ABAP dictionary.

can someone please help.

Thanks in advance

Regards

Amarender Reddy B

Accepted Solutions (1)

Accepted Solutions (1)

Yashpal
Active Contributor
0 Kudos

Hi ,

What i catch from ur query is that u want to create a parameter field in the selection screen .. if so... then see the below code .

declare a variable of type data

data : lr_type ref to data .

then initial that with the type of the data element u want to use ..like WERKS_D .

create data lr_data type WERKS_D .

and call this method ...

CALL METHOD WD_THIS->M_HANDLER->ADD_PARAMETER_FIELD

EXPORTING

I_ID = 'WERKS'

I_VALUE = lr_data

.

Regards

Yash

Former Member
0 Kudos

Thank you Yash, You solved my problem

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Amarender Reddy B ,

Just create an attribute of type your DDIC element. Then in layout create an inputfield UI element. and bind the input field to the attribute you created.

Regards

Sarath