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

ABAP Program for background JOB

Former Member
0 Likes
7,281

Dear Abappers,

I am defining background job for Preventive Maintenance Plan in PM module using T Code SM36. When it comes to mention ABAP Program, I am using F1>>>Technical Information of plan to search for program SAPLIWP3 When Program is defined following error occurs:

Please analyze the error from the view point of ABAP & Provide Solution.

Regards,

waqas

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,161

s/m Waqas,

Why would you schedule a screen

Can you post what you want to achieve. If you are trying to post data the method is not this...

Regards

7 REPLIES 7
Read only

Former Member
0 Likes
3,161

IWP3 is a functional groupand this function group is used for transaction processing.

From abap point of view these are foreground screens where user command is expected and hence this particular program will not work in background on its own. You either need to create a BDC or a BAPI for transactions like IP01/IP02 and then schedule that custom program in background.

Only executable programs like reports can be defined as an backgroun job.

Hope this helps.

Read only

arindam_m
Active Contributor
0 Likes
3,161

Hi,

Function pool cannot be scheduled as background job so its not allowed.

Cheers,

Arindam

Read only

Former Member
0 Likes
3,161

Hi,

Type F is a function group and you cannot run a background job on this, however you can call function module in background. Please check the following screenshots:

Regards

Purnand

Read only

Former Member
0 Likes
3,161

Hi,

     Background job you can use only Executable Program, So create an executable program with same parameter of your IWP3 that you are going to execute in background. call IWP3 program or it's transaction in your report program.

Regards

Amit

Read only

Former Member
0 Likes
3,162

s/m Waqas,

Why would you schedule a screen

Can you post what you want to achieve. If you are trying to post data the method is not this...

Regards

Read only

0 Likes
3,161

WS yakub,

Actually I was trying to run background job to schedule my Plan not screen, I found program for that  :

RISTRA20

Thanks for reviewing my thread

Regards,

waqas

Read only

Former Member
0 Likes
3,161

hi ahmed,

               first go to transaction sm36.

enter job name : Zsdf10

click on enter.

you see this screen.

eneter abap program button.

enter program name and varient name

clcik on save button

come back

click on start condition.

click on date/time button

enter date and time

after that go back main screen click on save button.

go to sm37 transaction.

click on execute button.

you see the your job name.