2007 May 20 3:53 AM
hello abap gurus,
in my requirement, i have to check, that in one internal table ITAB,
i should make sure that one field A is not empty, and one field B should be empty in all the records.
if this condition is not satisfied it should through an error.
wat is the best way of coding this.
thank you.
hello abap gurus,
in my requirement, i have to check, that in one internal table ITAB,
i should make sure that one field A is not empty, and one field B should be empty in all the records.
if this condition is not satisfied it should through an error.
wat is the best way of coding this.
thank you.
2007 May 20 4:25 AM
data : begin of itab occurs 0,
fld1 type c,
fld2 type c,
end of itab.
data v_flag type c.
loop at itab.
clear v_flag.
if not itab-fld1 is initail .
if itab-fld2 is initial.
v_flag = 'X'
exit.
endif.
endif.
endloop.
if v_flag = 'x'.
message.
endif.
Reward Points if it is helpful
Thanks
Seshu
Message was edited by:
Seshu Maramreddy
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |