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

screen Field validations in Module Pool.

Former Member
0 Likes
633

Dear Friends,

I am doing the screen validations in Module pool.

say if I selected some unvanted radio button and check box I need to through some error message...

Its working fine with my code...I am getting the error but the same time my screen is grayed out.

here I want to be screen active mode and display the message..

here is my code wich i am using:

IF radio_nval = 'X' OR

radio_nstk = 'X' OR

radio_mach = 'X'.

if ZMLSR-ONETIME_TNPR = 'X'.

MESSAGE e010(ad) WITH text-163.

ENDIF.

ENDIF.

could you pls suggest me if I sm wrong..

Thanks,

Sridhar.

3 REPLIES 3
Read only

Former Member
0 Likes
458

You have to include the fields that you want to be input enabled when you get the error message, in a CHAIN-ENDCHAIN block.

in PAI.

chain.

field field1.

field field2.

field field3.

module <name of module that is doing the validation>.

endchain.

Regards,

Ravi

Read only

Former Member
0 Likes
458

chk the PAI in this program

<b>DEMO_DYNPRO_FIELD_CHAIN</b>

you have to use CHAIN ... ENDCHAIN

Read only

Former Member
0 Likes
458

Hi,

Whenever you are doing validations for the fields in the Module Pool Program you have to write those fields between CHAIN and ENDCHAIN Statement in SE51 under Flow Logic.

For eG

CHAIN.

Field Matnr.

Field Werks.

Module Validate_fields.

ENDCHAIN.

you have to write the vcalidation code in the module Validate_fields in SE38.

Pls reward if it is helpful

Regards,

Sangeetha.A