MINI_JOB_WIZARD & Dynamic variants

Does anyone know how to create variants dynamically?
On the selection screen of a report I am using a button to call the MINI_JOB_WIZARD to schedule a background job.  Input to this function module is a program name and a variant.  I don’t want the user to be saving the variants and then schedule the background jobs, I just want the user to enter the selection conditions and schedule the job. 
Similar to the SAP functionality of menu path Program --> Execute in Background (F9).
The SAP standard functionality of "Execute in Background" apparently creates a variant dynamically based on the user’s input in selection screen and schedules a background jobs using that dynamically created variant.  These variants are look something like "&0000000001234."
I want to use the MINI_JOB_WIZARD function module because it’s functionality looks much better than the "Execute in Background."  Simply, its a lot more user friendly.
Does anyone know of a better way of using the MINI_JOB_WIZARD function module?
Thanks,
Sumit

Check out the function group
<b>SVAR</b>
RS_CREATE_VARIANT
RS_VARIANT_DELETE
RS_VARIANT_CHANGE
Regards
Raja

Similar Messages

  • How to set up Dynamic Variants for job which is based on Pay Period

    Hi,
    We need to set up dynamic variant for payroll interface.  This interface is based on Pay periods and that is why we need to use different variant for each month.  Letus know how to set up dynamic variant which will take care of Pay Periods

    Hi,  Thnx for reply.
    We are not changing the control records, current period will be some old period in system. 
    payroll is not processed in SAP,

  • Using dynamic variants in ABAP

    Hi,
    I have an issue. I want to use dynamic variants in my program. On the selection screen of my program, I have a parameter called Planning date which takes in the current week of the year as input value, i.e lets say today we are Monday 14th of May 2007, so the current week is 20. I want to make this parameter dynamic, i.e to change automatically so that next week the value is week 21.
    Also is setting dynamic variants version dependent? My version is 5.0 SR1 and I don't have the option of save my variant using the 'D' traffic signal.
    Please help me out.
    Thanks

    Hi,
    you can fill your parameter in the initialization event of your report. In order to get the week you can use the function DATE_GET_WEEK.
    Kostas

  • How to create a multipage PDF with same template but dynamically varying data?

    Hello,
    I need to create a multi-page PDF where I need to use the same template but dynamically varying data.
    Eg Scenario:
    1. I have data for 5 material in my ABAP program.
    2. I have a PDF template in SFP which has a 2 page structure.
    3. Based on the number of materials (5 in this case), I need to generate a PDF which will have 10 pages (2 for each material).
    4. the generated PDF should be like the one shown below:
    e.g.  MATERIAL_PDF (pdf name)  
          |  Page1(Mat1[View1].data)
          |  Page2(Mat1[View2].data)
          |  Page3(Mat2[View1].data)
          |  Page4(Mat2[View2].data)
          |  Page5(Mat3[View1].data)
          |  Page6(Mat3[View2].data)
             .. and so on...
    Thanks,
    Aniket

    Isn't it just by setting the two pages into a form ( like an subform in the content ) and put the settings in a proper way?
    There is this setting, that the masterpage comes up everytime the pagecount is done.
    Example
    Page 1 3 5 --> Masterpage 1
    Page 2 4 6 --> Masterpage 2
    And the designview with the flowing data, you can do it by scripting to get to the next page after the pos is finished.
    Unfortunaly I do not got a system atm, so I hope the explaination give you a clue, where to search.
    Regards
    Florian

  • How to set a dynamic variant for date in select-options in the upper field

    Hi  Variant experts Good Evening!
           I have the following problem while setting up a dynamic varinat .
    Ex: select-options: dat for sy-datum.  
    I am able to save the lower limit as a dynamic value but not able to save the upper values as dynamic in the select-options. Could any of you please help me in this.
    Regards
    Ravi.

    i hope dynamic variant concept is not there,
    but u can use the fn module DYPRO_GET_VALUES  and
    DYNPRO_SET_VALUES
    DYNPRO_GET_VALUES gets the values in the screen,
    DYNPRO_SET VALUES sets the values.
    first get the values, compare and set the values as u want

  • Dynamic variant create for select option High value

    Hi ,
    I would like to set a dynamic variant for Date filed in selection screen as lower limit as 01/01/2009 and Last day of previous month as hiher limit. For examplae: Lower limit = 01/01/2009 and higher limit as 02/28/2011.
    Please help me in creating dynamic variant as mentiond above.
    Thanks & Regards,
    Venkat N.

    Hi,
    Thank you for your reply and could you please provide if you have any code.
    Thanks & Regards,
    Venkat N.

  • Dynamic Variant in ECC 6.0

    Hi All,
    Can any one tell me how to create a dynamic variant in ECC 6.0 for a exicutable program? In ECC 5.0 its easy to create but in ECC 6.0 the varinat creation screen has been changed.
    Thanks
    Manas

    it's buried in there
    this thread may help if you need to define custom variables
    Re: CASH SALES
    you'll see it under the variant attributes screen.  i know people get reluctant to choose something from a grayed out field but you will be able to choose a selection variable and then the name of the variable
    so for a date field you could choose say D and Previous Month

  • Create dynamic variante in report

    hello masters, im trying to create a dynamic variant for a report, im following the instructions of document that exists in <blocked site removed by moderator> but the option D- Dynamic date calculation doesnt appear to me in the field that i want to calculate date... the field it is of type S - selection-option... someone have any clue that could be.
    regards and thanks in advance
    Mario
    Edited by: Thomas Zloch on Jul 11, 2011 2:34 PM

    hello Alvaro, thanks for your answer.
    you are right, my field isnt DATE it is CHAR.
    thanks for your help.
    Mário

  • Dynamic variant at job - selection options

    Hi Experts,
    Could any of You pls help me to find out the original selection for a job, if the selection variant was not saved previously?
    There are a couple of user report, which could be run at the background with an ad-hoc selection variant, such as RM07DOCS (MB51). Here the user could set the actual selection and run the report at background by creating a job. But in this job the selection variant has a dinamic identification code such as &0000000000001.
    After the job is set, run and have a result, I could find no way to check what had been the original selection represented by this varian code.
    Is there a way to find out what was the selection for the job, if I only have a dynamic variant parameter?
    Answers will be appreciated

    thanq.
    and pls. let me further clarify that,
    programitically am populating the date as current date minus 1 in the field of my_date in the selection screen.
    now, they wanna to run the report in back ground, daily.
    now, I followed ur tip/link and saved with_date_variant, fine.
    so, pls. let me know that,
    1) if the report runs in back ground tomorrow with with_date_variant(which is i created by seeing ur link), Is the selection screen my_date(prog. populates as June 5th) will be override with current date(i.e. June 6th)?
    In broad, Is the selection criteria wuld be over writes with the Dynamic varints?
    thanq

  • Dynamic variant calling multiple screens

    Hi all,
    The concerned issue is that i am trying to execute a report( which on execution throws a selection screen) from a program using 'submit' statement passing a variant. along with it iam creating a dynamic varinat using FM RS_CREATE_VARIANT, the variant is being made, but on execution , the program throws an error meassage " invalid variant called'.
    This is because the varinat is calling multiple screens , although only one screen number is passed in teh FM,( screen no 0170).
    Please tell me the possible solution fr this .
    Cheers,
    Thanks in advance.

    Hi,
    first try to pass only the static variant with the submit statement and c whether its working properly.
    and than check for dynamic variant..
    c the difference and let me know what happens ??
    thanks
    ravi aswani

  • Dynamic variant calling multiple selection screens

    Hi all,
    The concerned issue is that i am trying to execute a report( which on execution throws a selection screen) from a program using 'submit' statement passing a variant. along with it iam creating a dynamic varinat using FM RS_CREATE_VARIANT, the variant is being made, but on execution , the program throws an error meassage " invalid variant called'.
    This is because the varinat is calling multiple  screens , although only one screen number is passed in teh FM,( screen no 0170).
    Please tell me the possible solution fr this .
    Cheers,
    Thanks in advance.

    Hi,
    first try to pass only the static variant with the submit statement and c whether its working properly.
    and than check for dynamic variant..
    c the difference and let me know what happens ??
    thanks
    ravi aswani

  • Dynamic variant date range

    Hi experts,
    i need to create dynamic variant for date range (so_date-low, so_date-high): sy-datum-1.
    that will bring the data in the report for yesterday.
    How can i do this?
    i know how can i make variant for so_date-low
    i dont know how can i do that on so_date-high.
    thanks,
    Michal.

    1. Execute the report and you will get your selection screen then press save
    2. system will take u to variant screen , select the line of your date select-options field from the list and scroll right
    3. double clik on "selection variable " column and select "D"
    4. double clik on "Name of variable" last column and select "Current date - xxx,current date + yyy" system will provide you popup with "Enter a value xxx" and "Enter a value for yyy" and enter value 1 in xxx and 0 in yyy
    and save the variant . now your S_DATE_LOW will be system date - 1 ie yesterdays date

  • Dynamic variant

    hi all,
      i created a report and that report has to be execute in back ground daily with variant,but my report contains some date field, so i need to change the date value in that varient,how can i do it.How can i create dynamic variant,could you please help me.
    regards,
    Bujji.

    Hi Murali,
    You can do this in the variant itself.
    Please follow these steps
    1. Enter the values in the selection screen
    2. Save the variant using the SAVE button
    3. In the next screen for the date variable select the 'Selection variable' checkbox (L) and click on the button 'Selection variable' in the toolbar.
    4. Now you will see this variable in the next screen with 3 types of buttons. Click on the middle button (ie. D - Dynamic date calculation).
    5. Click on the down arrow button and select the option 'Current Date'.
    6. Save the variant.
    Kindly assign points if this is helpful.
    Cheers
    Vinod
    Message was edited by: Vinod C

  • Dynamic Variant for Date filed

    Hi All,
    I need to create a dynamic variant for date fields for standard report.
    in date Low field...value will be harcoded as '01.01.2011' and S_Date-high date field should be current date - 1.
    I dnt want to go for code in report to handle this.
    I tried with many option but could not able to see up the dates like as above.
    Kindly help.
    Piyush

    Hi,
    try this code
    data prevday like sy-datum.
    SELECT-OPTIONS s_date for sy-datum DEFAULT '20110101'   .", sy-datum-1.
    INITIALIZATION.
    AT SELECTION-SCREEN OUTPUT.
    *  S_DATE-HIGH = PREVDAY.
      prevday = sy-datum.
    s_date-high = prevday.
    modify s_date index 1.
    Hope the help
    Edited by: j.ortiz on Jan 27, 2011 3:01 PM

  • Dynamic Variant -Current date  in selection screen - for batch jobs

    Hi Experts,
    My report runs in batch job with a variant, daily.
    One of the filed in selction screen should hv CURRENT DATE, with out providing as input explicitly by user.
    So, How Can I get it done?
    Its some thing with Dynamic variants + Selection Variables +  date selection, but, I forgot the navigation etc.
    pl. let me know
    thanq

    thanq.
    and pls. let me further clarify that,
    programitically am populating the date as current date minus 1 in the field of my_date in the selection screen.
    now, they wanna to run the report in back ground, daily.
    now, I followed ur tip/link and saved with_date_variant, fine.
    so, pls. let me know that,
    1) if the report runs in back ground tomorrow with with_date_variant(which is i created by seeing ur link), Is the selection screen my_date(prog. populates as June 5th) will be override with current date(i.e. June 6th)?
    In broad, Is the selection criteria wuld be over writes with the Dynamic varints?
    thanq

Maybe you are looking for

  • Bug in print module still not fixed in LR2.1RC

    MacPro 10.5.5 iPF9000 Canon driver 1.30 What I found out is that when going to Print Setup under Color Matching I can choose Vendor Matching and then I can choose CM off in the Driver. If I then hit Print One the print is correct. If I go to Print un

  • Spry Framework Ajax IE7 Bug

    Hi, I used Dreamweaver CS3 to load the photo/albums node of an XML file called photolist.xml - the end result after creating Spry Master and Detail areas is a page which lets you click on the text to change the image. Trouble is it works in all brows

  • Pre requisite errors

    Dear All, The pre requisite checker run for SAP ECC6 installation on Solaris 10/Oracle using zones gives following errors: 1) Environment variable CPIC_MAX_CONV should be set and the value should be at least 200 I've done this on windows. Used "set e

  • My new ipod touch - how actually it syncs contacts and calend events?

    hello, I have finally my ipod touch. I really like it, not perfect of course but then if it would be , would be boring isnt it ? It syncs well with my outlook contacts but i dont know.. does it overwrite my outlook with info on my touch? or it overwr

  • Logic Pro Midi Kontakt Issue...

    I've just bought the Spitfire Albion 1 library and love it already. Although there is one problem which I can't seem to find the answer to anywhere, which is that when i am recording for instance a legato strings section from my midi keyboard, and us