‎2006 Dec 25 3:39 PM
Hi all,
For subroutines we have an option IF FOUND to avoid short dump when we call a form which does not exist...
like that if i call a program which doesnot exist... using the SUBMIT ,,, do we have ny option to avoid short dump. IF FOUND is not working in this case!!!!
‎2006 Dec 25 4:19 PM
I think you can Query the database table REPOSRC before doing a submit. this table has all the report programs stored in it.
So only if SY-SUBRC eq 0 on this query you can do a submit.
‎2006 Dec 25 4:19 PM
I think you can Query the database table REPOSRC before doing a submit. this table has all the report programs stored in it.
So only if SY-SUBRC eq 0 on this query you can do a submit.
‎2006 Dec 25 4:50 PM
ya we can avoid by doing that ... but any specific option for that ???
‎2006 Dec 25 4:56 PM
I didnt understand what SPECIFIC OPTION is, but anyway since SUBMIT is used for executable programs, what you can do is
SELECT * FROM REPSORC
where NAME = <PROGRAM NAME>
and SUBC = '1'. ( means executable program).
If sy-subrc eq 0.
sumbit <PROGRAM NAME> ........
endif.
‎2006 Dec 26 8:01 PM
thanks man... immediately after encountering that submit statement its going for dump... your answer has solved my problem
‎2006 Dec 25 4:52 PM
Hi,
There is no such option for SUBMIT...Actually I was trying using the CATCH..ENDCATCH.. But I am not able to catch that error..
Thanks,
Naren