Application Development and Automation 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: 
Read only

Submit job failed

Former Member
0 Likes
1,520

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,259

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.

6 REPLIES 6
Read only

Former Member
0 Likes
1,259

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

Read only

Kanagaraja_L
Active Contributor
0 Likes
1,259

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

Kanagaraja L

Read only

Former Member
0 Likes
1,260

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.

Read only

0 Likes
1,259

Hi,

Thanks for the reply... I tried what you suggested but it still not working !!! the main problem is this job is not able to het executed in the background. When I ran SM35 and I selected the job and then tried to run it in the fore ground it didn't work but when i tried ot run the same job in foreground, in one of the step i got this message "Field ADDR1_DATA-LANGU. does not exist in the screen SAPMF02K 0111" but when I hit enter and continued it worked perfectly. So I was just wondering if because of this message the job is failing to run in the back ground.

Read only

0 Likes
1,259

Thanks for the replies.... I think the job is failing at this point only as what I described in my previous example.

Read only

0 Likes
1,259

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