2023 Jun 05 4:00 PM
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
2023 Jun 05 5:02 PM
2023 Jun 06 7:11 AM
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