Skip to Content
0
Former Member
Nov 26, 2012 at 10:03 AM

Automate a >SUBMIT...AND RETURN< without any interaction?

268 Views

Hi,

this has been all over SCN quite a few times. I have also found quite a few comments on the issue, but none that looks as simple as I imagine the thing to be - maybe it isn't since many SAP-things seem to be from a time when >simple< was not fashionable...

Anyway, here it is:

I have a program that calls a standard SAP report using the >SUBMIT...AND RETURN< command.

Currently, when that executes error-free, I have to hit >RETURN< - or F3 - to continue executing the calling program. The thing is, in case that report failed, it would give me an error message - or rather, the next function which I call right afterwards would give me an error message - that report writes a file to my harddisk, so if it failed, it wouldn't be there and the following function would pass me any of its numerous exceptions. Moreover, I can modify the SELscreen so that no false combination of parameters is possible and the report WILL be executed error-free in all probability.

So, if possible, I would like to automate the "...AND RETURN" part so I - or the user, whoever - doesn't have to hit F3, but the report just executes and then returns automatically to the calling program.

Is that possible?

Thanks a lot!

Best regards,

Sapperdapper