Application Development 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: 

How to run a program in background

Former Member
0 Kudos

Hi Experts,

Pl. give me the procedure for running of program in background and functions of debugging screen.

Regards,

Uday

3 REPLIES 3

former_member156446
Active Contributor
0 Kudos

on the selection screen if you hit F9 key they program will be executed in background... to debug the code in background u need to use transaction Sm51 and in the server check for the background job and goto>debugging will open he debugging screen of the program

Former Member
0 Kudos

Hi Uday,

Solution :Execute the Report 

In the selection screen :After filling the screen fields press F9.

A screen appears requesting U to print the Background Parameters

*Enter the output device(Eg HPLJ /SAP2 etc)

*In the spool options Uncheck Print immedietly,Uncheck delete after output,and new spool request.

Press enter.

Another screen appears with heading start time .U can press start immly ,then save

Now the Background job is scheduled for the given program .

To View the status of background Job,The transaction code is SM37.

Execute from the resulting screen .Job overview -->From the Job list select U’r program and select Spool from the application toolbarOutput Controller :List of Spool RequestsSelect U’r Spool request and click Display icon from the overview screen .

U will be displayed with the List.

Caution :See to that the list with does not exceed 255 columns ,If it exceeds the extra columns will be truncated in Background

functions of the debugger screen

- Single step(F5) - Use this option to step through the program statement by statement. This allows you to branch into subroutines and function modules, and to execute these routines step by step as well. Once a subroutine or function module has been processed, control returns to the statement following the CALL FUNCTION or PERFORM statement.

- Execute(F6)- Use this option to process a program line by line. All of the statements on the current line are processed in a single step. If you are positioned on a line that calls a subroutine and you choose Execute, the Debugger processes the whole subroutine and then moves on to the line following the subroutine call. This allows you to jump through the statements within the subroutine.

- Return(F7) - The Debugger returns from a routine to the point at which control returns to the main program. Use this option to return from a subroutine, function module, or called program to the calling program.

- Continue(F8)- Use this option to process the program up to the next dynamic or static breakpoint or up to the cursor position. If there are no more breakpoints in the program and no cursor has been set, the system exits debugging mode and executes the rest of the program normally.

- Tables - Display the contents of internal tables.

Reward points if useful

Regards,

Jayaram

Former Member
0 Kudos

Hi,

Goto SM36 define background job - Give job name Click Job Wizard botton.Tehn press continue and give name and priority , Press continue ABAP Program step ( if it is abap program ) ,press continue and give abap program name if varient is there then give that name also.

Give all the details and goto SM37 Give job name and press execute.

U set job for every one minite ,one hour and all options are come u select based on u r requirement.

If useful give reward.

Regards,

Narasimha.