Application Development 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: 

Validation in Module Pool Program

Former Member
0 Kudos

Hi,

I have created a MP prog to update table 'x'.

Now the fields of table 'x' r coming from other tables. say 'y' and 'z'.

I have to validate those fields against their respective helps.

I have provided f4 help also.

But i m facing problem during validation.

I have tried function 'F4IF_FIELD_VALUE_REQUEST' also.

Regards,

Chaitanya

2 REPLIES 2

Former Member
0 Kudos

Hi,

if values of fields which are in table 'x' are coming from y and z..u get all the fields required in x into an internal table...then provide f4 help for the fields required using internal table..

then validate the inputs using select query...

or try this sample code..

provide f4 help and in tables parameter give internal table name which has values which u want to be shown in f4 help ..

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'input field name'

dynpprog = 'progname'

dynpnr = 'dynnum'

dynprofield = 'structure-inputfield name'

value_org = 'S'

TABLES

value_tab = itab.(internal table with values u want to get while pressing f4).

OR

create the Search help on data element level for those fields in your ZTABLE, it will work.

hope these would help..

reward if helps.

thanks..

Former Member
0 Kudos

hi Chaitanya,

Before updating 'x' table, just find out what are the check tables of those fields which u r getting from 'y' and 'z' fields.

After that write select(select single) query to the check tables using those values which u want to validate or which u have entered in the screen. there u have put a condistion like. if sy-subrc <> 0. condition satisfy restric that updation.

I hope this will help u.

Or u need more information ask me with out hesitation.

Regards,

Naveen M