Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem while accessing f4 help

Former Member
0 Likes
1,356

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

5 REPLIES 5
Read only

christian_lutter
Product and Topic Expert
Product and Topic Expert
0 Likes
1,081

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

Read only

paul_max1
Explorer
0 Likes
1,081

Hello,

Send to your parameter the option "AS LISTBOX...".

F1 on the PARAMETER keyword and you will see the syntax.

Best regards,

Paul.

Read only

former_member241258
Active Participant
0 Likes
1,081

hi.

maintain those a,b,c in fixed values of domain of that zfield of table.

it will work.

Read only

Former Member
0 Likes
1,081


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.

Read only

0 Likes
1,081

Thanks R J . it will works.