2007 Dec 10 12:12 PM
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
2007 Dec 10 12:24 PM
2007 Dec 10 2:03 PM
2007 Dec 10 2:14 PM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |