cancel
Showing results for 
Search instead for 
Did you mean: 

how to valid inputs from user in module pool

Former Member
0 Kudos

hi,

i m using table control in module pool and in 1 of the table control fields i m using user defined F4 help which is getting filled from a internal table. if the user enters anything apart from the contents in my F4 help the record should not get saved and system should return error . how and where to put this validation?

please help.

thank you.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

validation is not neccessary u make the field list box.

Former Member
0 Kudos

Hello,

DO like this.

In screen flow logic.

loop at itab.

module validate.

endloop.

In se38.

module validate.

read table f4_tab with key field = itab-field. " Here f4_tab is ur Search help table.

if sy-subrc ne 0.

error message.

endif.

endmodule validate.

Vasanth

Former Member
0 Kudos

hi,

Write the code in PROCESS ON VALUE REQUEST in the Module pool Program ....

PROCESS ON VALUE REQUEST

FIELD <Field_name> MODULE <Module_name> ..

Double click on this field then write the function moduel to get the Internal table values when the user press F4 on that field, after completing this check by pressing the F4, if it working fine then the Validation is automatically done by this POV ..

if the USer enters other than the internal table values then the Error message will raised at that stage

Regards

Sudheer