Application Development 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: 

InfoSet - Export with message if 'blank'

kstuart
Discoverer
0 Kudos
327

Hey regarding InfoSets -

I know how to display a Message by type T and type S, but was wondering if there was a simple 'If' statement I could add to have a report print a message to an exported report (scheduled) when 'blank'.

As of now if the report is blank, it will not export and wait for a list of transactions to build, they would like this to export daily (already scheduled) even if blank - adding a message is optional, so even a simple exemption would work where it just sent the headers without any populated data at all, either would satisfy the use case.

Thank you

1 ACCEPTED SOLUTION

juan_suros
Contributor
0 Kudos
260

You have tagged this in the ABAP development area, so are most likely referring to list output as seen in the steps of a scheduled batch job.

If this is so, there are several ways to force content in the list to trigger follow-on actions in your batch job.

1) You can use the TOP-OF-PAGE event to write page header text

2) You can use a default call to the WRITE statement to create an empty list

3) You can use abap command MESSAGE with TYPE 'W' or 'I' to send messages to the execution log of your batch job

4 REPLIES 4

Sandra_Rossi
Active Contributor
0 Kudos
260

Sorry, I don't get the question at all.

juan_suros
Contributor
0 Kudos
261

You have tagged this in the ABAP development area, so are most likely referring to list output as seen in the steps of a scheduled batch job.

If this is so, there are several ways to force content in the list to trigger follow-on actions in your batch job.

1) You can use the TOP-OF-PAGE event to write page header text

2) You can use a default call to the WRITE statement to create an empty list

3) You can use abap command MESSAGE with TYPE 'W' or 'I' to send messages to the execution log of your batch job

0 Kudos
260

Thank you - the WRITE message was the solution I was looking for. Final solution was an if statement with the WRITE message.

Apprishiate it!

kstuart
Discoverer
0 Kudos
260

Completed - sorry for any confusion.