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

doubt in module pool programing

Former Member
0 Likes
598

hi all

i am doing type 'm' programing... and getting Purchase Order and corresponding vendor as input in screen 9001.i do validations for the same in the pai of 9001 and displaying error messages.when error occurs i change the vendor and excecute again but new vendor which i had entered is not reflected and it validates with the old value and throws error again ..

how to capture the vendor entered in the screen 9001 to pai .

is it right validate fields in pai of a screen.

thanks in advance

lokesh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
570

Hi

U should show your code of PAI process, but it should be this:

PROCESS PAI.

CHAIN.

FIELD: EKKO-EBELN,

EKKO-LIFNR.

MODULE VALIDATION.

ENDCHAIN.

In VALIDATION you should insert your code for validation

Max

5 REPLIES 5
Read only

Former Member
0 Likes
571

Hi

U should show your code of PAI process, but it should be this:

PROCESS PAI.

CHAIN.

FIELD: EKKO-EBELN,

EKKO-LIFNR.

MODULE VALIDATION.

ENDCHAIN.

In VALIDATION you should insert your code for validation

Max

Read only

Former Member
0 Likes
570

Yes you have to validate in the PAI only,

check in debug mode what is the vendor value you are getting

Read only

venkata_ramisetti
Active Contributor
0 Likes
570

Hi,

You are correct. You ave to do validation in PAI only.

But just before performing your validation, assign the new value.

What is happening in the current situation is, it is no assigning the new value in the error situation.

Thanks,

Ramakrishna

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
570

Yes, it is is correct to validate in the PAI, but I'm not sure about your problem. Please post the code for the screen flow control of the PAI as well as the module which does the validation.

Regards,

Rich Heilman

Read only

andreas_mann3
Active Contributor
0 Likes
570

Hi,

validation is in PAI - correct

use this flow-logic:

FIELD xxx MODULE check_abc ON INPUT.

A.