Skip to Content

Submit job failed

Hi All,

I have a program RPRAPA00, when I execute this program it will create a batch job with creation program "RFBIKR00". but to execute this creation program we need to go SM35 to and then execute it manually. I ghave written the following code to made this process automatc:

SUBMIT rsbdcsub WITH mappe = 'A/P_ACCOUNTS'
                    WITH von   = sy-datum
                    WITH bis   = sy-datum
                    WITH z_verarb = 'X' AND RETURN.

But now when I execute the above code it will give me the following message: "

1 Session(s) selected to be processed

1 Session(s) successfully processed"

now when I look into SM35, I saw that the job gets an error status (error) and now when I execute this job manually again then it works. So can you please tell mw how can I fox thios.

Thanks,

Raj

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 07, 2009 at 11:43 AM

    pass dates in your system format and not sy-datum

    example:

    data : l_date1 type c length 10,
    l_date2 type c length 10.
    
    write sy-datum to l_date1 MM/DD/YYYY.  " Note: This will automatically pick your date format although it says mm/dd/yyyy
    write sy-datum to l_date2 MM/DD/YYYY.
    
    SUBMIT rsbdcsub WITH mappe = 'A/P_ACCOUNTS'
                        WITH von   = l_date1
                        WITH bis   = l_date1
                        WITH z_verarb = 'X' AND RETURN.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Raj G

      Hi,

      This is not the problem with your SUBMIT JOB.

      It is issue while filling BDCDATA.

      Check your program to create BDC Session. It is trying to pass field which does not exists on screen.

      In foreground, you press ENTER and it works fine, but there is no user action possible after message in background hence those records failed.

      Regards,

      Mohaiyuddin

  • author's profile photo Former Member
    Former Member
    Posted on Sep 07, 2009 at 03:39 AM

    Hi Raja,

    Pls see the error log of the job & you will able to know the exact error, where its stopping & why its failing.

    Pls post the same here, so that, suggestion can be given.

    Rgds,

    Sripal

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 07, 2009 at 08:23 AM

    Additionally you have to Use VIA JOB <JOBNAME> NUMBER <JOBCOUNT>.

    Kanagaraja L

    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.