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

Validation of Module Pool Table Control Fields

Former Member
0 Likes
645

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.

2 REPLIES 2
Read only

Former Member
0 Likes
393

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.

Read only

0 Likes
393

Hi Jaya,

If i try the way u said...its giving syntax error.

Thanks

Sathish