2016 Feb 02 4:23 PM
Hi,
I am facing problem while click on f4 help. i have one z field and i am giving search help for that z field and i have maintain some values for that z field e.g. values = a,b,c. means system display a,b,c for that z field but if i enter d system take this value .but requirement is when i click on f4 help for z field system must be only takes a,b,c only not d. how to fulfill this requirement.
Thanks,
Yogesh
2016 Feb 02 4:35 PM
Hi,
the F4 help only provides input help, but no input validation.
You probably want a conversion exit or an input validation in your report.
Conversion exit is a routine defined in the Definition of the domain.
You can convert from an internal representation to an external representation. But you could also write error messages, if the input is not valid.
If you only need validation and no conversion from internal to external representation, you can validate the input in PROCESS AFTER INPUT section of a dynpro. Or somewhere else in a report.
Regards
Christian
2016 Feb 02 4:37 PM
Hello,
Send to your parameter the option "AS LISTBOX...".
F1 on the PARAMETER keyword and you will see the syntax.
Best regards,
Paul.
2016 Feb 04 4:45 AM
hi.
maintain those a,b,c in fixed values of domain of that zfield of table.
it will work.
2016 Feb 04 5:04 AM
Hi Yogesh,
Set a validation to your input field.
When user enters input, under AT-SELECTION-SCREEN event write the validation logic.
For eg: Select single <field_name>
from <DB_TABLE_NAME> into <lv_check> where <field> eq <input_field_name>.
IF sy-subrc <> 0.
Throw error message here.
Message e001 (00).
endif.
2016 Feb 11 5:04 AM