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

Capturing "transaction not found" errors ...

Former Member
0 Likes
2,222

Is there any way of catching the error when a transaction is not found and has been called?.

I've tried a number of things but it does not look possible. The path I'm currently looking at is to check whether the transaction exists (Table TSTC) before the CALL is made, then and only then call the transaction. This sort of gets around the issue. In theory I know this should never happen, but as the menu system currently in place calls transactions and in some cases there are entries for apps that have not yet been created yet and hence have no transaction code yet. The method that I've mentioned will allow a polite message to "transaction does not exist" and avoid short-dumping.

I am surprised that I've never had to do this before and even more surprised that it's not intuitive to capture these errors. Unless anyone know differently.

Is there any way of catching the error when a transaction is not found and has been called?.

I've tried a number of things but it does not look possible. The path I'm currently looking at is to check whether the transaction exists (Table TSTC) before the CALL is made, then and only then call the transaction. This sort of gets around the issue. In theory I know this should never happen, but as the menu system currently in place calls transactions and in some cases there are entries for apps that have not yet been created yet and hence have no transaction code yet. The method that I've mentioned will allow a polite message to "transaction does not exist" and avoid short-dumping.

I am surprised that I've never had to do this before and even more surprised that it's not intuitive to capture these errors. Unless anyone know differently.

1 REPLY 1
Read only

Former Member
0 Likes
1,952

Hi,

I usually do what you've mentioned ... check to see if the tcode exists in table TSTC. In addition, I like to determine if the user has authorization for the transaction. FM 'AUTHORITY_CHECK_TCODE' serves this purpose well.

Hope this helps ...

Reward if helpfull...

Cheers,

Sundar.