Hello there ABAP'ers.
I have got a question haw to validate selection screen field.
In the selection-screen I have got two fields:
F_DATAELEMENT (Type: FIELDNAME) F_VALUE (Type: CHAR60)
I have got a SearchHelp attached to the F_DATAELEMENT. SHelp list shows list of ADRC table fields. I obtain it using module
CALL FUNCTION 'DDIF_FIELDINFO_GET' EXPORTING tabname = 'ADRC' TABLES dfies_tab = it_dfies EXCEPTIONS not_found = 1 internal_error = 2 OTHERS = 3 .
where it_dfies contains detailed information about fields (datatype, control table ...)
And now my question is it possible to validate the selection screen field F_VALUE with data taken from DDIF_FIELDINFO_GET FModue?
I mean such example:
User choses a CITY_CODE value in F_DATAELEMENT field
Now I would like the F_VALUE field to be validated respecting the ADRCITY control table (CITY_CODE has got a ADRCITY control table assigned - such info I am getting from the DDIF_FIELDINFO_GET FModule)
I will be thankful for suggestions.