‎2008 Nov 18 12:26 PM
Hello All,
I am facing problem in dynamic parameter declaration in selection screen. My requirement is as below,
Want to have 2 parameters in selection screen and based on first parameter (table fields) selected value, the second parameter (display the value of the selected table field) should display value of the selected field.
The problem is the second paramter type should be of first parameter selected field.
How to declare parameter dynamically after getting the first parameter selected field.
Thanks in Advance.
Regards,
Suganya.
‎2008 Nov 18 12:41 PM
hi
You may use the Runtime Type Information(RTTI)/ RTTS to get the parameter type at runtime
Process would be :
> create a variable: l_var type ref to CL_ABAP_ELEMDESCR.
> l_var ?= cl_abap_typedescr=>describe_by_data(parameter).
> loop at l_var->components into wa
> process.
> endloop
shiva
‎2008 Nov 18 12:41 PM
hi
You may use the Runtime Type Information(RTTI)/ RTTS to get the parameter type at runtime
Process would be :
> create a variable: l_var type ref to CL_ABAP_ELEMDESCR.
> l_var ?= cl_abap_typedescr=>describe_by_data(parameter).
> loop at l_var->components into wa
> process.
> endloop
shiva
‎2008 Nov 18 1:00 PM
Hi,
As per my understanding you should try search helps.
Create elemantery search help if the fields are from single table else create collective search help.
Vikas.