Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Issue in passing select option as method parameter


I have written one common validation method for all select-options in selection-screen.

Which will be called for every select option validation.

I will pass s_vkorg, s_vtweg, s_abgru etc.. for each of the validations.

In the method i have created structrure & table type for the im_sel_scr_field.

This zsel_field structure is created with sign(char1), option(char2), low(45), high(45) field values.

zsel_field_tt (Table type for zsel_field structure).

Now when i am calling validation method as below, i am getting 'type compatible' error.

If i can create i.table of above structure: zsel_field i can pass the sel-opt value to i.table to avoid this error.

But i need to do this for each select option.




im_sel_scr_field = s_vkorg[]/s_abgru[] etc...

Note: I don't want to create structure/table type for each select option.

I want to make s_vkorg[], s_abgru[] etc... passed without type-compatibale error.

Can anyone provide input for resolving this issue!

Thanks in advance.



Not what you were looking for? View more on this topic or Ask a question