Quantcast
Viewing all articles
Browse latest Browse all 2794

Call same tcode without falling into endless loops

Hello Experts,

 

When Changing Report A it is nesecceary to use


SUBMIT Report B

                 WITH s_batch IN rt_charg

         EXPORTING LIST TO MEMORY  AND RETURN.

 

But in our case Report B is a Replica of Report A and we would not want to keep two identical programs to prevent the accumulation amount of information that we do not need making it difficult to categorize.


Is it possible to Submit the Same Report A but avoiding the endless loop. eg the first time it will submit Report A. When inside Report A there should be a condition that will prevent Sumbmision again Report A and continue the rest of the code.


Searching the web I have come across with inner session. I was thinking something like:

 

If inner session = 1 then:


SUBMIT Report A

                 WITH s_batch IN rt_charg

         EXPORTING LIST TO MEMORY  AND RETURN.

else.

exit.

 

 

Thanks in advance


Viewing all articles
Browse latest Browse all 2794

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>