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

Module pool program screen validation

Former Member
0 Likes
1,821

Hi all,

Help me in the issue . I am performing some validations on fields in the module pool screen , When i give an error message , all the fields are greyed and user cannot input any values after that . How to solve this problem . i tr

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,648

Hi Eric ,

Whenever we show the error message , its the property associated with it that , it will gray out all the input fields , so in your case what you can do is

1. Either show the warning message so that you can still be able to input the new values in fields

2. Or if it is not possible to use any other type type of error other that the ERROR then you can make use of Chain End-chain. It will resolve your problem.

Regards,

Uma

15 REPLIES 15
Read only

anup_deshmukh4
Active Contributor
0 Likes
1,648

Please elaborate your question..! What Kind of validation you are performing

Read only

0 Likes
1,648

Hi,

I am doing sales order type validation, sales order distributionchannel combination validation i am performing if there no combination i am throughing an error message so that user can change the distribution channel but the fields are greyed out for input . i used chain and enchain for getting rid of this error but still its not working

Thanks in advance,

Read only

0 Likes
1,648

Are you doing it in a exit or BADI , and what kind of Message you are throwing...!

Read only

0 Likes
1,648

it is a custom module pool screen , with screen parameters as sales order type ,distribution channel ,storage location i am doing validation on these three parameters using chain and endchain i am througing error message when the above screen parameters mismatch

Read only

0 Likes
1,648

Hi

See there are 2 scenarios u will handle .

1. Validation on inputs made on screen

2. Greying out input fields for making change only in distribution channel ,on occurence of error.

For 1, Make use of event PAI.do take of help of flag variable (char 1)

For 2 Make use of event PBO.

This Flag variable will be used in PAI event once error messg triggered.this value of flag variable could be used in PBO for screen change.

Hope this helps.

Regds,

Abhee

Read only

0 Likes
1,648

Hi

See there are 2 scenarios u will handle .

1. Validation on inputs made on screen

2. Greying out input fields for making change only in distribution channel ,on occurence of error.

For 1, Make use of event PAI.do take of help of flag variable (char 1)

For 2 Make use of event PBO.

This Flag variable will be used in PAI event once error messg triggered.this value of flag variable could be used in PBO for screen change.

Hope this helps.

Regds,

Abhee

Read only

Former Member
0 Likes
1,649

Hi Eric ,

Whenever we show the error message , its the property associated with it that , it will gray out all the input fields , so in your case what you can do is

1. Either show the warning message so that you can still be able to input the new values in fields

2. Or if it is not possible to use any other type type of error other that the ERROR then you can make use of Chain End-chain. It will resolve your problem.

Regards,

Uma

Read only

0 Likes
1,648

HI uma,

Thanks for the reply i am using

chain.

FIELD field

MODULE check.

endchain.

but stil when the error message comes the fields are greyed out.Please sugges the solution

Read only

0 Likes
1,648

HI,

R u using the single field in the chain endchain ? if yes remove chain just use

field : fieldname module modulename on-request

Read only

0 Likes
1,648

No i am using many fields

Read only

0 Likes
1,648

Can u show the flow logic which u have writen ? or else i dont think there is any issue ..

Read only

0 Likes
1,648

Hi Eric ,

It should work,

Refer to the links below , it will help

Meanwhile I am writing a code to see why is it not working for you.

Also see where have you written a chain End chain .. PBO ? PAI ? Let us know the code you have written.

Regards,

Uma

Edited by: UmaDave on Jun 14, 2010 7:40 AM

Read only

0 Likes
1,648

Hi uma,

In

Chain

Field field-name module check

endchain

in the module i am validating sales order type , distribution channel , storage location etc , for each combition i am using one error message . should i keep each field in chain and endchain.

Thanks in advance,

Read only

0 Likes
1,648

Hi ,

Yes you should keep all the fields in chain end chain who you want to get enabled for input again.

Are you writing this logic in PAI ?

You can do a F1 in chain end chain for exact syntax .

Regards,

Uma

Read only

former_member907073
Participant
0 Likes
1,648

Hi

See there are 2 scenarios u will handle .

1. Validation on inputs made on screen

2. Greying out input fields for making change only in distribution channel ,on occurence of error.

For 1, Make use of event PAI.do take of help of flag variable (char 1)

For 2 Make use of event PBO.

This Flag variable will be used in PAI event once error messg triggered.This value of flag variable could be used in PBO for screen change.

Hope this helps.

Regds,

Abhee