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: 

Suppress spool file creation from within Info-Set-Coding

0 Kudos
443

Hi everyone,

is there any way to supress the generation of a spool file created

by a background job depending on certain conditions?

Let me explain what i want to do.

I want to run a sap query as background job and send the spoolfile

to some recipients. Depending on the warehouse number the data

belongs to i want to send the results to certain recipients.

Sadly i don't have the warehouse number in the

tables i am reading so i can't directly select for them.

I read additional information in the data set like the warehouse number.

I have already managed to remove results from the list which i am

not looking for. Sometimes after removing the unwanted entries

i end up with and empty list. Although the list ist emtpy the system

still generates an empty spool file.

So is there any way to suppress the spool file generation from inside

the info-set coding?

With best regards,

Tobias

2 REPLIES 2

RaymondGiuseppi
Active Contributor
0 Kudos
323

Did you try to add some code in Code Section END-OF-SELECTION to leave program (before list) or even delete spool request (after list)

0 Kudos
323

Hello Raymond,

leaving the program before the list is created is no option i think.

I have to create the list and check in the end if something in the list

is left to display to the user. Deleting the spool request if there is nothing

left in the list sounds like exactly what i need. Do you have any suggestions

how to do that.

Greetings Tobias