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

Error message displayed after scrolling..

Former Member
0 Likes
659

Hi,

I need to do validation through modulepool..The table is designed using module pool,say table1 and another transparent say table2.I did coding for validation.suppose if entries in table1 exists in table2 then an error message should be displayed like 'ENTRIES ALREADY EXISTS IN TABLE2'.Now its working fine.Once this message is dispayed and again if user does scroll again this message is getting displayed.

4 REPLIES 4
Read only

vinod_vemuru2
Active Contributor
0 Likes
607

Hi,

I think you can keep a check at the validation for the OK_CODE/user command which is not equal to P+ and P++.

Thanks,

Vinod.

Read only

Former Member
0 Likes
607

Try to apply a check point on P+ and P++.

Manas M.

Read only

Former Member
0 Likes
607

Hi,

1. If you have coded Error message inside the User command validation (CASE & WHEN), Check whether you have cleared the OK_CODE or SY-UCOMM properly immediately after WHEN '----' statement.

2. It is always better for your case, you validate the condition inside CHAIN -- ENDCHAIN as given below.

Flow Logic page:

PROCESS AFTER INPUT.


LOOP AT itab.
CHAIN.
FIELD itab-fld1 MODULE mod1.
FIELD ......

ENDCHAIN.
ENDLOOP.

Code the module in PAI Include

MODULE mod1 INPUT.

< Code the condition and populate error message from here >

ENDMODULE.

Read only

Former Member
0 Likes
607

solved.thank u.