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
Amarender Reddy B
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
I_ID = 'WERKS'
I_VALUE = lr_data