Skip to Content
author's profile photo Former Member
Former Member

Error while using the z t-code

Hi ,

We have created a z t-code and when we enter that we are getting an error msg that "Please schedule the program in background" . The program that was created is scheduled to run in back ground but we are getting this message when we execute the t-code itself. Can someone suggest what could be the problem ?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 23, 2008 at 10:00 AM

    Hi,

    You would have written the code in the initialization. If you want to avoid this, write in some other event.

    Regards

    Srini

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 23, 2008 at 10:08 AM

    Hi Balaji ,

    I think that the prog has been writeen so as to throw the message when it is executed in foreground .

    Check the prog first it seems that this message has been thrown deliberately .

    Thanks

    Sahil

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Sahiil ,

      I checked the code , the person who has created the program has written the coding part for scheduling the job in backgroung under the event Start-of-Selection but he has not concluded the event with End-of-Selection , could the problem be because of this ?

      thanks and best regards ,

      Balaji

  • author's profile photo Former Member
    Former Member
    Posted on Dec 23, 2008 at 10:09 AM

    Hi Balaji,

    Also check the program code itself....check and see if any code is wriiten to give a message as mentioned...since there are ways to identify if a job is background or not,an abaper can easily write code ,give message and exit the program...

    Hope it helps

    Regards

    Byju

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      Search for the keyword 'SY-BATCH' in the program. Check if it is checked for 'X'. If it is checked, eventhough when you run the Ztcode, it takes you to the program so if the program is restricted to Background only the same properties apply to the Ztcode for which the program is assigned.

      Regards,

      Shailaja

  • author's profile photo Former Member
    Former Member
    Posted on Dec 23, 2008 at 10:35 AM

    HI.

    You have to check the SY-BATCH eq 'X' for background job.

    Eg:

    if it_report3[] is not initial and sy-batch ne 'X'.

    perform alv_report (Write your logic here)

    endif.

    Reagrds.

    Jay

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 23, 2008 at 01:18 PM

    Hi Balaji ,

    Check for the code "Please schedule the program in background" in ur pgm and you can find why tht error is displaying,

    Might be the code is checking for sy-batch , if so it is throwing tht message.

    Debugg ur program thoroughly, it helps you a lot.

    Regards,

    Aby

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.