‎2009 Aug 05 1:11 PM
Hi Experts,
Need help from you for the below.
See i have designed a module pool which has some fields. Lets take Start Time and End Time and it will look like this. We need to make sure tht always end time of current line should be same as start time of next line....this is my validation.
start time end time.
10 20
20 30
30 40
40 50
now user tries to change the fields like below.
10 20
21 30
it gives error i manage to do this.
now user tries this way.
10 21
21 30
it should allow this way bcos logically both end and start time is same....but my code give error bcos in my module i first write module for modify and then for validate...so it modify the current line of internal table and in validation when it compares with next line it only shows as 20 in the internal table instead of 21 so it throws error. Can anyone suggest me how to handle this case. See my code below in PAI module
LOOP AT gt_scaling_rule.
CHAIN.
FIELD gt_scaling_rule-from_mins.
FIELD gt_scaling_rule-to_mins.
FIELD gt_scaling_rule-pdm_perc.
MODULE tc_scaling_rule_modify ON CHAIN-REQUEST.
MODULE tc_scaling_rule_validate ON CHAIN-REQUEST.
ENDCHAIN.
ENDLOOP.
‎2009 Aug 05 1:34 PM
Try:
LOOP AT gt_scaling_rule.
CHAIN.
FIELD gt_scaling_rule-to_mins.
FIELD gt_scaling_rule-pdm_perc.
MODULE tc_scaling_rule_modify ON CHAIN-REQUEST.
ENDCHAIN.
FIELD gt_scaling_rule-from_mins.
MODULE tc_scaling_rule_validate ON REQUEST.
ENDLOOP.
‎2009 Aug 05 2:14 PM
Hi Jaya,
If i try the way u said...its giving syntax error.
Thanks
Sathish