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

Regarding Table control ( Row updates )

Former Member
0 Likes
544

Hi all,

This is regarding Table controls , I Have a screen in which i m updating few fields with respect to Company code.

So my problem is while i am using CASE ENDCASE logic in my program like..

<code>

WHEN '1'.

SELECT SINGLE * FROM LFB1 INTO WA_LFB1

WHERE LIFNR = SLKTAB-AGKOK

AND BUKRS = '1000'.

CHECK SY-SUBRC = 0.

RF05A-AGKON = SLKTAB-AGKOK.

RF05A-AGKOA = SLKTAB-AGSAK.

RF05A-AGBUK = '1000'.

RF05A-XNOPS = SLKTAB-XNOPS.

RF05A-AGKOA = SLKTAB-AGKOA.

RF05A-AGUMS = SLKTAB-AGUMS.

WHEN '2'.

SELECT SINGLE * FROM LFB1 INTO WA_LFB1

WHERE LIFNR = SLKTAB-AGKOK

AND BUKRS = '2000'.

CHECK SY-SUBRC = 0.

RF05A-AGKON = SLKTAB-AGKOK.

RF05A-AGKOA = SLKTAB-AGSAK.

RF05A-AGBUK = '2000'.

RF05A-XNOPS = SLKTAB-XNOPS.

RF05A-AGKOA = SLKTAB-AGKOA.

RF05A-AGUMS = SLKTAB-AGUMS.

So i in the table control screen when BUKRS '1000' is availabe its shown in the first row of the control and then it moves to Second "When" condition, where it checks condition two and displays the second one also.

But if First "when" condition fails so it goes to second "when" condition and if second "when" condition is true then second row gets updated leaving First row vaccant, but i need the first row should be updated when second condition is successful.

1000 100 re 1233

2000 200 tr 1333

3000 300 ut 3111

so whats happening is

leaving first row blank

when second condition i.e 2000 sucess still i am getting Table control as

-


2000 200 tr 1333

3000 300 ut 3111

</code>

Thanks,

satish

Hi all,

This is regarding Table controls , I Have a screen in which i m updating few fields with respect to Company code.

So my problem is while i am using CASE ENDCASE logic in my program like..

<code>

WHEN '1'.

SELECT SINGLE * FROM LFB1 INTO WA_LFB1

WHERE LIFNR = SLKTAB-AGKOK

AND BUKRS = '1000'.

CHECK SY-SUBRC = 0.

RF05A-AGKON = SLKTAB-AGKOK.

RF05A-AGKOA = SLKTAB-AGSAK.

RF05A-AGBUK = '1000'.

RF05A-XNOPS = SLKTAB-XNOPS.

RF05A-AGKOA = SLKTAB-AGKOA.

RF05A-AGUMS = SLKTAB-AGUMS.

WHEN '2'.

SELECT SINGLE * FROM LFB1 INTO WA_LFB1

WHERE LIFNR = SLKTAB-AGKOK

AND BUKRS = '2000'.

CHECK SY-SUBRC = 0.

RF05A-AGKON = SLKTAB-AGKOK.

RF05A-AGKOA = SLKTAB-AGSAK.

RF05A-AGBUK = '2000'.

RF05A-XNOPS = SLKTAB-XNOPS.

RF05A-AGKOA = SLKTAB-AGKOA.

RF05A-AGUMS = SLKTAB-AGUMS.

So i in the table control screen when BUKRS '1000' is availabe its shown in the first row of the control and then it moves to Second "When" condition, where it checks condition two and displays the second one also.

But if First "when" condition fails so it goes to second "when" condition and if second "when" condition is true then second row gets updated leaving First row vaccant, but i need the first row should be updated when second condition is successful.

1000 100 re 1233

2000 200 tr 1333

3000 300 ut 3111

so whats happening is

leaving first row blank

when second condition i.e 2000 sucess still i am getting Table control as

-


2000 200 tr 1333

3000 300 ut 3111

</code>

Thanks,

satish

3 REPLIES 3
Read only

Former Member
0 Likes
494

Any solution frnds.

regards,

satish

Read only

Former Member
0 Likes
494

Frnds Its really urgent please help me.

Thanks.

satish

Read only

Former Member
0 Likes
494

Satish,,

I am not able to understand ur problem.

Regards

Siva