10-09-2007 6:53 AM
10-09-2007 6:55 AM
10-09-2007 6:57 AM
Check SY-SUBRC after executing every statement in ur ABAP code. IF SY-SUBRC is equal to ZERO, then the stmt is successful in execution,
10-09-2007 6:57 AM
if it is select ,read or any function ,modules
You can use System variable of SYST structure SY-SUBRC .
Please reward if useful.
10-09-2007 6:57 AM
Hi you can use sy-subrc statement for check.
if sy-subrc = 0.
then the statement is successfulll.
if it is other than zero then not success...
10-09-2007 7:00 AM
after u r abap statement
write: sy-subrc.............
system field sy-subrc gives the return code of a statement
if sy-subrc = 0...u r statement is success ful
if sy-subrc = 4 ...u r statement is not success ful
reward points if helpful.........
10-09-2007 7:01 AM
Hi ,
Use SY-SUBRC.If sy-subrc =0 ,it means stmt returns some value ;else it does not .See code below to understand it better .
Reward if useful.
report ztx0902.
tables ztxt005t.
parameters `land1 like ztxlfa1-land1 obligatory default 'US'.
select single * from ztxt005t
where spras = ? "current logon language
and land1 = `land1.
if sy-subrc = 0.
write: 'Description:', ztxt005t-landx.
else.
write: 'No description exists for', `land1.
endif.
10-09-2007 7:03 AM
sy-subrc = 0 is success and sy-subrc <> 0 is unsuccessfull.
u can place sy-subrc after any executable statement in bap and test whether the statement is executed successfully or not.