Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Question on SUBMIT!!!!

Former Member
0 Likes
716

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!!!!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
679

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.

5 REPLIES 5
Read only

Former Member
0 Likes
680

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.

Read only

0 Likes
679

ya we can avoid by doing that ... but any specific option for that ???

Read only

0 Likes
679

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.

Read only

0 Likes
679

thanks man... immediately after encountering that submit statement its going for dump... your answer has solved my problem

Read only

Former Member
0 Likes
679

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