‎2008 Oct 29 1:41 PM
Hi ABAP guru's,
In this scenario,
data: w_c1(3) type c,
w_c2 type i,
zemp1 like table of zemp.
field-symbols <fs> type zemp.
select * from zemp into table zemp1.
read table zemp1 with key empno = '1' assigning <fs>.
assert id AAB_DEMO condition sy-subrc = 0.
w_c1 = <fs>-empno.
write w_c1.
Here AAB_DEMO is check group created in SAAB transaction inactive mode.
if sy-subrc ne 0. is it possible to run this program without getting any runtime error?
Thanks in advance.
Prasad G.V.K
‎2008 Oct 29 2:11 PM
Check the weather the field-symbol is assigned or not before accessing it.
select * from zemp into table zemp1.
read table zemp1 with key empno = '1' assigning <fs>.
assert id AAB_DEMO condition sy-subrc = 0.
check <fs> is assigned. " << check assigned status of the <FS>
w_c1 = <fs>-empno.
write w_c1.
Regards,
Naimesh Patel
‎2008 Oct 29 2:11 PM
Check the weather the field-symbol is assigned or not before accessing it.
select * from zemp into table zemp1.
read table zemp1 with key empno = '1' assigning <fs>.
assert id AAB_DEMO condition sy-subrc = 0.
check <fs> is assigned. " << check assigned status of the <FS>
w_c1 = <fs>-empno.
write w_c1.
Regards,
Naimesh Patel