‎2007 Jun 20 7:26 AM
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?
‎2007 Jun 20 7:29 AM
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
‎2007 Jun 20 7:29 AM
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
‎2007 Jun 20 7:34 AM
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?
‎2007 Jun 20 7:31 AM
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
‎2007 Jun 20 7:45 AM
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>
‎2007 Jun 20 7:52 AM
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