Skip to Content
avatar image
Former Member

Background job getting cancelled when using submit statement

Hi All,

I have a requirement where i need to extract output ST22 tcode into an excel on daily basis via a custom report.

For this i have created custom report in which i have used “SUBMIT” statement, and i am running this report daily in background to get the list of dumps for that day into an excel.

But the problem is if we have some dumps for that particular day, then background job is getting finished and output is generated.

If there are no dumps for particular day then back ground job is getting cancelled.

Please assist

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Jan 05, 2015 at 11:50 AM

    Dear,

    You can use "Submit and return " statement. As in your case, if there is no record is found, it must not go for generating excel sheet. Put the check if no record found dont go for excel generating.

    Hope these two steps will resolve your query.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Abdul,

      Thanks for your reply.

      But to put a check on internal table i should first execute submit statement, output which has come using submit will be stored in the internal table.

  • Jan 05, 2015 at 01:14 PM

    Question posted already Dec 21, 2014, and rejected. Thread locked.

    Add comment
    10|10000 characters needed characters exceeded