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

multiple line item in table control

Former Member
0 Likes
1,064

hi all,

i am creating module pool program with subscreen. two screen creation for one ztable.

first screen having 5 fields.  Is a single entry screen

second screen having 10 fields(in that 5 is same as first screen) .   Is a Table control with 10 lines.

once give entry to first screen and press display pushbutton,data of that 5 field move to second screen corresponding fields of all lines.

but it is moving only to the first line. not for all lines.

for that i did DO and ENDDO. So now it is coming for all lines of secondscreen.

now i giving entry to second screen remaining fields(10 lines), but only last line entry only getting updating into ztable.

other line entries are not updated in ztable .

how to slove this. 

regards,

S.kavitha

3 REPLIES 3
Read only

ipravir
Active Contributor
0 Likes
679

Hi Kavitha,

Can you check the Key Combination (Composite Key) of your Z Table?

May be whatever the records your are trying to upload, due to key combination, final records / lines information is only coming after all process.

Regards.

Praveer.

Read only

Former Member
0 Likes
679

HI sir,

first screen 5 field is a primary key, bcoz of that it is not Accepting? right.

in that 5 field one is like counter field,

i.e.,

3961     01     10001     2015     20.01.2015

3961     02     10001     2015     20.01.2015

3961     03     10001     2015     20.01.2015

3961     04     10001     2015     20.01.2015

like this. whether  problem is bcoz of duplicate entries ?  is my question is correct

regards,

s.kavitha

Read only

ipravir
Active Contributor
0 Likes
679

Hi kavitha,

If the above 5 fields are primary key combination, so based on the Count field, the records would be unique.

If the same Information are updating into the another Table Control (Which is having 10 Fields),

then check 2nd table control is contains the right information.

Like Below.

1. Table Control.

3961     01     10001     2015     20.01.2015

3961     02     10001     2015     20.01.2015

3961     03     10001     2015     20.01.2015

3961     04     10001     2015     20.01.2015

2, Table Control.

3961     01     10001     2015     20.01.2015     X     X     X     X     X

3961     02     10001     2015     20.01.2015     X     X     X     x     X

3961     03     10001     2015     20.01.2015     X     ......

3961     04     10001     2015     20.01.2015     ....

Regards.

Praveer