2012 Dec 21 7:01 PM
hi experts ,
My program is running well , but when i am debugging my programs I am getting error ie sy-subrc = 4 .
please help me to resolve this error.
Thanks & Regards
Navin Mahindra
Moderator message: too vague, please search for information before posting, provide all relevant details when posting.
.
Message was edited by: Thomas Zloch
2012 Dec 21 7:04 PM
Hi ,
Please clarify where this sy-subrc is getting changed.
or
put your code here.
Regards,
Amit
2012 Dec 21 8:03 PM
2012 Dec 22 3:32 AM
Amit ,
When I am Debugging my code in that I am able to see that Sy-Subrc = 4.
and in my code I think , the error would be while " reading the data ".
Error is not showing in my code its synthically correct , but while debugging why ? it so .
READ TABLE IT_PWR INTO WA_PWR INDEX 1 .
V_TDATE = WA_PWR-PW_TDATE.
V_ERZET = WA_PWR-PW_ERZET.
Edgar
from where i didnt get u ?
2012 Dec 22 3:35 AM
Please go through basics of ABAP and read the SAP help documentation before posting on this forum.
2012 Dec 22 4:37 AM
Hi navin,
If you are saying that you are reading some table and the data is not coming from there i.e. sy-subrc = 4.
This is not an error which will show in your program but its a read statemnt failure.
My understanding of your problem.
READ TABLE IT_PWR INTO WA_PWR INDEX 1 .
if sy-subrc = 0.
V_TDATE = WA_PWR-PW_TDATE.
V_ERZET = WA_PWR-PW_ERZET.
endif.
If the above sy-subrc = 4 , this means that table IT_PWR is empty.
Check this in debugging mode.
Hope this will help.
Regards,
Amit
2012 Dec 22 8:48 AM
Hi Navin,
IT_PWR[] is may be empty is correct.Please check it and give the feedback.
Thanks
Dinesh