‎2010 Jan 29 7:42 AM
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.
‎2010 Jan 29 9:20 AM
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.
‎2010 Jan 29 9:24 AM
‎2010 Jan 29 9:44 AM
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.
‎2010 Feb 01 8:34 AM