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

variant for background processing

Former Member
0 Likes
2,084

I hav a requirement which says," For Background processing create variant with the required selection screen parameters and execute the report in background".

how am i suppose to go about it?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
853

Goto SM36 & click the button Job Wizard.

Create the job by specifing the jobname, program name & give the variant also.

Schedule the program( mostly Immediate).

Then goto SM37 to check the status of job.

Reward if its useful.

Regards,

Sail

5 REPLIES 5
Read only

Former Member
0 Likes
854

Goto SM36 & click the button Job Wizard.

Create the job by specifing the jobname, program name & give the variant also.

Schedule the program( mostly Immediate).

Then goto SM37 to check the status of job.

Reward if its useful.

Regards,

Sail

Read only

0 Likes
853

for doin this, i hav been asked to include this in my report prog.....

is this enough or i hav to do something else???

data off like int4.

call method cl_gui_alv_grid =>offline with recieving parameters in screen 9000 (output screen)

CALL METHOD cl_gui_alv_grid=>offline

RECEIVING

e_offline = off.

IF off IS INITIAL.

IF custom_container IS INITIAL.

*Creating Container for the ALV display

CREATE OBJECT custom_container

EXPORTING

container_name = 'CONTAINER'.

ENDIF.

ENDIF.

wat else i hav to do?

Read only

Former Member
0 Likes
853

Goto SE38 .... execute the report ...... palce all the selection parameters values ...

save it ... it will take you to varient saving screen name the variant as you want ...

then come back your variant was saved ...

Tcode ->SM36 give job name as you want , click on steps give your program name ..... next varient press F4 your varient will be there ... give it save and execute it ...

Girish

Read only

Former Member
0 Likes
853

Hi Balaji,

I am suggesting u the different approach, this will definately work.

1. Use FM "RS_CREATE_VARIANT" to create Variant for program which u want to process in background.

2. Use FM "JOB_OPEN" to Open Job Scheduling Without Dialog (Including COMMIT WORK)

3. Use FM "JOB_SUBMIT" to Insert Background Task in Background Request With COMMIT WORK

4. Use FM "JOB_CLOSE" to Close Background Request With COMMIT WORK

Please try this appraoch it is much simpler,

<b>Do reply for further help.</b>

Regards,

Ranjit Thakur.

<b>Please Mark The Helpful Answer.</b>

Read only

Former Member
0 Likes
853

Hi,

you can do in two ways

1. What u can do list.

Get all the variant of the standard report and

data: variant(14).

variant = 'VARIANT1'. " Based on ur condition change the value to the variable

SUBMIT REPORT01

VIA SELECTION-SCREEN

USING SELECTION-SET VARIANT "Check here

USING SELECTION-SETS OF PROGRAM 'REPORT00'

AND RETURN.

2 .Use the fm: RS_VARIANT_CONTENTS to get the values of the different values in the screen.

move those values to screen fields in the INITIALIZATION event

<b>Reward points</b>

Regards