Background Report Program with Variants to be Overwritten

I have an Following Scenario.
I have an Report program with the Selection Screen displaying an Input Parameter of date type sy-datum.This particular program is scheduled as an Background Job.
Now when i execute the program  in background  the existing variant date must be overwritten with any new values . So please provide an solution for this.
Thanks
K.Nadesh Kumar

hi nadesh,
enter date on your selection screen , then save variant.
tick the selection variable check box i.e L.
now click on pushbutton SELETION VARIABLE.
Then select type D and select the criteria current date or whatver of your choice.
if you are not clear then search for the thread "daily background job". I think you will get the answer from there.
Regards
Abhinesh

Similar Messages

  • How to save varaint in a report program with tabstrip in selection-screen

    Hi Gurus,
    We have a custom report program and selection screen of this program has a tabstrip of 9 tabs. This program will run in background job and we are facing problem to save variant for this report program. 
    We saved one variant with 'TAB2' populated. But when we execute the report and select that variant and we are not navigated to 'TAB2' automatically. So, code for TAB2 is not triggerd and we are not getting desired output.
    When we set this program with variant in Job, program is not navigated to 'TAB2' as per variant setup.
    Is there any way to save variant for this kind of report ?
    Please help with your suggestions
    Thanks & Regards
    Chandan

    Thanks for your help.
    I found during debugging that it is holding the sy-ucomm of the first tab as default value.  So, I declared a new field in selection screen with No-Display option. When user will select a tab, this new field will hold the value of that sy-ucomm. As this field is in selection screen, it is getting stored in variant also.
    In start-of-selection of program I am checking this field value and accordingly set the TABSTRIP.
    Thanks again for your help.....
    Regards,
    Chandan

  • Can I change background of program with a desired picture?

    Hi
    Can I change background of program with a desired picture? how?
    Solved!
    Go to Solution.

    Hi behzad,
    to requote my message #2: Right-click the right window scrollbar (VI in edit mode) and select "properties"…
    What don't you understand of this?
    When you don't trust me you should read the LabVIEW help on this topic!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Execute report RMMVRZ00 with variants

    Hi Experts,
    Could someone explain how to execute report RMMVRZ00 with variants.
    Report RMMVRZ00 is similar to transaction MM60.
    I am checking how to execute this report with variants.
    Thank you

    The following link would help in creating variants
    [Creating Report Variants|http://help.sap.com/saphelp_45b/helpdata/en/73/69ee7d55bb11d189680000e829fbbd/content.htm]
    If you have any specific requirement with variant, please post again

  • How to create a job thru ABAP program for calling a program with variant???

    Hello experts,
    can u give me step wise procedure to create jobs for  a program with a variant name thru ABAP???
    Also, can a transaction can be scheduled as a job to run in background with a variant name???
    Edited by: SAP USER on Jul 22, 2008 6:08 AM

    Hi,
    To create a job through ABAP program you can do the following.
    Go to Menu bar.
    In there, go to   SYTSTEM> SERVICES> JOBS--> DEFINE JOB.
    Then give the JOB NAME and CLASS in the screen that comes up.
    This is how we schedule a program.
    Now, to create a variant for a program -
    First activate your program in SE38. Then execute it .
    Now, click on SAVE button. It will open up  the variant creation screen. Give the details there like variant name and value for the fields. Save and come back.
    Hope this helps.
    Regards,
    Hari Kiran

  • How to run the program with variant automatically

    Hi experts,
    I want to know how can I run the program with a variant automatically without defining any transactions or jobs. I want my program to run with a variant automatically, when I press F8.

    Try doing this way...
    First Create a Sel Screen varient, 'ZTEST123' in this case
    Report ZTEST.
    parameters:
      w_kunnr type kna1-kunnr,
      w_flag type c no-display.
    start-of-selection.
    if w_flag eq ' '.
      submit ZTEST USING SELECTION-SET 'ZTEST123' with w_flag eq 'X'.
    endif.
    end-of-selection.
      write:  w_kunnr.
    Thanks.

  • How to create 2 transaction codes for same report program with diff title

    Hi All -
      I have created report program and create 2 transaction codes with different short description. I want to display the Tcodes decriptions instead of program attributes title.
    Can anyone pls tell me how to do this?
    Thanks,
    Kannan

    Hi Kannan,
    define 2 titlebars t1 and t2 for the report. In report initialization,
    IF sy-tcode = 't1'
      SET TITLE t1.
    ELSE.
      SET TITLE t2.
    ENDIF.
    Regards,
    Clemens

  • Submit a report program with same selection screen with some values exclude

    Dear All,
    I have to  submit a stndard report program from a copied zprogram with same slection screen values ,
    and in some slect-options some values will be excluded depending upon the zprogram.
    How to make it.
    I mean when i submit , same selction screen values should go along with , depending upon some condions i have to exclude some values .
    for ex: selection screen from a to b
    posting date should go same
    but may be along with it i have to pass movem,ent type <> 202 to the submit screen ,.
    how to do this?

    Hi Rajendra
    >What if i have to pass the movement type also 200 to 250 , with 202 and 203 exluded .
    Use BT ( between ) operator for 200 to 250 :
    lr_move_type-sign = 'I'.
    lr_move_type-option = 'BT'.
    lr_move_type-low = '200'.
    lr_move_type-high = '250'.
    COLLECT lr_move_type.
    And use NE ( not equal )  operator to exclude 202 and 203 :
    lr_move_type-sign = 'I'.
    lr_move_type-option = 'NE'.
    lr_move_type-low = '202'.
    COLLECT lr_move_type.
    lr_move_type-low = '203'.
    COLLECT lr_move_type.
    It works just this way.
    > Secondly,
    >
    > If i have the selction sreen same in both the screen , is it possible to pass the same values as it is with out writing one by one selct-option and parameter?
    No I don't think there is way to do it without writing one by one
    but you may not specify for empty select-options.
    Edited by: Bulent Balci on Aug 21, 2010 11:46 AM

  • Background Job assigment with variant in SM37 , for Textfile uploading

    Dear all,
    Im using the BAPI_PO_CHANGE to update the existing schedule dates in Purchase Orders,
    for this the po's , item, schedules, delivery dates(Need to update) from a Textfile into the internal table
    and passing that data to bapi function module, it works fi9 in foreground and the output is a classical report
    with Corresponding messages through RETURN.
    i need the same to run in background with a variant, but after assigning the background job in SM36,
    i found that the job assigned got CANCELLED in SM37.
    I hope everything is clear, so kindly revert back with solution.
    Regards,
    Niranjan.G

    Hi,
    You should understand that background job will be executed in application server and there will be no gui or access to presentation server available.
    You should upload your file to application server through tcode CG3Z.
    See F1 help for OPEN DATASET / Search SCN for sample codes for OPEN DATASET.
    You should change the code so that it can be run in both modes using the system variable SY-BATCH.
    If it is space use GUI_UPLOAD, if it is X use OPEN DATASET.
    Regards
    Karthik D

  • Background Job Scheduling with variants in IS - Public sector

    Hi,
    We run auto write off using scheduled job activity (SM37 -Program : RFKK_MA_SCHEDULER). There is an variant containing Main Transactions that needs to be included / excluded for write off.
    The variant values are changed / updated with additional main transactions and when we run the batch jobs the new variant values are not getting picked or used. If we run the program independently i.e FP04M and use the variant, the new variant values are being handled.
    I am not sure what is missing in the SM37 background job that is defined though the variant values are runtime parameters and should have automatically be used after it undergoes modification in the next job exeuction.
    Kindly provide your feedback.
    Thanks & Regards
    Bala
    P.S. : I Have posted this query in IS forum too.

    Hi,
    You should understand that background job will be executed in application server and there will be no gui or access to presentation server available.
    You should upload your file to application server through tcode CG3Z.
    See F1 help for OPEN DATASET / Search SCN for sample codes for OPEN DATASET.
    You should change the code so that it can be run in both modes using the system variable SY-BATCH.
    If it is space use GUI_UPLOAD, if it is X use OPEN DATASET.
    Regards
    Karthik D

  • Run program with variant

    i want to run my program always with the same variant how????

    Hi,
    You can set default value using 'default value' in select-options and parameters.
    check the links below
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba75335c111d1829f0000e829fbfe/content.htm
    you can also set default variant for a report. check the link below
    http://www.abapcode.info/2008/09/selecting-variants-for-initial-alv-list.html
    regards,
    mani

  • Call or Execute, ABAP program with variant

    REPORT Z_call_ABAP_program  NO STANDARD PAGE HEADING.
    TABLES : BKPF , INDX.
    PARAMETERS : ZBUKRS LIKE BKPF-BUKRS OBLIGATORY DEFAULT '0001',
                                 ZGJAHR LIKE BKPF-GJAHR OBLIGATORY DEFAULT '1995'.
    SELECT-OPTIONS : ZPERIOD FOR BKPF-MONAT OBLIGATORY.
    DATA : BEGIN OF CHECK_TAB OCCURS 100,
                     CLIENT LIKE BSEG-MANDT ,
                     COMPANY LIKE BKPF-BUKRS ,
                     FINYR LIKE BKPF-GJAHR ,
                     MONAT LIKE BKPF-MONAT ,
                     LDDT LIKE BKPF-CPUDT ,
                 END OF CHECK_TAB.
    DATA : BEGIN OF CHECK_TABO OCCURS 100,
                      CLIENT LIKE BSEG-MANDT ,
                      COMPANY LIKE BKPF-BUKRS ,
                      FINYR LIKE BKPF-GJAHR ,
                      MONAT LIKE BKPF-MONAT ,
                      LDDT LIKE BKPF-CPUDT ,
                  END OF CHECK_TABO.
    DATA : BEGIN OF CT_KEY ,
                      CLIENT LIKE BSEG-MANDT ,
                      COMPANY LIKE BKPF-BUKRS ,
                      FINYR LIKE BKPF-GJAHR ,
                      MONAT LIKE BKPF-MONAT ,
                      LDDT LIKE BKPF-CPUDT ,
                   END OF CT_KEY.
    START-OF-SELECTION.
    IMPORT CHECK_TAB FROM DATABASE INDX(VP) ID 'CDSDATE'.
    LOOP AT CHECK_TAB.
          MOVE-CORRESPONDING CHECK_TAB TO CHECK_TABO. APPEND CHECK_TABO.
    ENDLOOP.
    LOOP AT CHECK_TAB.
         IF CHECK_TAB-FINYR = ZGJAHR AND CHECK_TAB-MONAT IN ZPERIOD AND
              CHECK_TAB-COMPANY = ZBUKRS.
              CLEAR CT_KEY.
               MOVE: CHECK_TAB-CLIENT TO CT_KEY-CLIENT ,
               CHECK_TAB-COMPANY TO CT_KEY-COMPANY,
               CHECK_TAB-FINYR TO CT_KEY-FINYR ,
                CHECK_TAB-MONAT TO CT_KEY-MONAT ,
                CHECK_TAB-LDDT TO CT_KEY-LDDT.
                EXPORT : CHECK_TAB CT_KEY TO MEMORY.
                SUBMIT ZCDSDTUP
                          WITH YCLIENT = SY-MANDT
                          WITH YCOMPANY = ZBUKRS
                          WITH YFINYR = ZGJAHR
                          WITH YMONAT = CHECK_TAB-MONAT
                          WITH YLDDT = CHECK_TAB-LDDT
                          VIA SELECTION-SCREEN AND RETURN.
                   IMPORT CHECK_TAB FROM MEMORY .
            ENDIF.
    ENDLOOP. 
    SKIP 2.
    WRITE :/2 'Position Before Update'. ULINE /2(53).
    WRITE :/4 'Client' , 11 'Comp.' , 18 'Fin.Yr.' , 27 'Period' ,
    35 'Data Downloaded upto'. SKIP 1.
    LOOP AT CHECK_TABO.
         IF CHECK_TABO-FINYR = ZGJAHR AND CHECK_TABO-MONAT IN ZPERIOD AND
             CHECK_TABO-COMPANY = ZBUKRS.
             WRITE :/5 CHECK_TABO-CLIENT,11 CHECK_TABO-COMPANY,19 CHECK_TABO-FINYR,
                          29 CHECK_TABO-MONAT, 38 CHECK_TABO-LDDT.
          ENDIF.
    ENDLOOP.
    SKIP 3.
    WRITE :/2 'Position After Update'. ULINE /2(53).
    WRITE :/4 'Client' , 11 'Comp.' , 18 'Fin.Yr.' , 27 'Period' , 35 'Data Downloaded upto'. SKIP 1.
    LOOP AT CHECK_TAB.
         IF CHECK_TAB-FINYR = ZGJAHR AND CHECK_TAB-MONAT IN ZPERIOD AND
              CHECK_TAB-COMPANY = ZBUKRS.
              WRITE :/5 CHECK_TAB-CLIENT ,11 CHECK_TAB-COMPANY , 19 CHECK_TAB-FINYR,
                           29 CHECK_TAB-MONAT , 38 CHECK_TAB-LDDT.
         ENDIF.
    ENDLOOP.
    SKIP 3. ULINE.
    WRITE :/7 'PLEASE CONFIRM CAREFULLY THE ABOVE DATES ' ,
                   /5 'BEFORE RUNNING THE DATA DOWNLOAD PROGRAM FOR CDS.'.
    EXPORT CHECK_TAB TO DATABASE INDX(VP) ID 'CDSDATE'.

    You will haev to add the varaint also in the object entry in the transport request.
    For this
    goto Se38 - > select progfram - > click on radio button for varaints - > Cick on Display - > Utilities -> transport request - >  and execute.
    This wil include the varaint also with the program name in the transport request and allow you to directly execute the program after transport to be executed with a varaint.
    Regards,
    Mansi.

  • Help! Report Transaction with Variant ??

    Hi there,
    another opportunity to increase your points.
    Problem :
    I have created a variant for the transaction mb51 (report). And now I wanted to create a 'Report Transaction' .. but I am not able to find my variant in the F4 help. Moreover if I personally type in the variant I get a message which says 'No <u>system variant</u> chosen for nonlocal object'...
    I have no clue where my variant is gone and what the System variant means... please help..
    regards,
    ZAM
    Message was edited by: ZAMUser

    Problem Solved .. I saved my variant with cus& prefix and got over ..
    regards,
    ZAM

  • Report program with detail list and GUI status.

    Hi,
    I am working on type 1 program (report) and want to use detail lists.
    I want to use a GUI status and want to use AT LINE-SELECTION. But AT LINE-SELECTION does not work when I use a GUI status.
    How do I achieve this?
    Thanks.

    Hi
    In the secondary windows, it is not possible to have GUI Status.
    If you need like that, you should go for ALV Reports.
    Here, You can have GUI Status only in the selection-screen as below..
    REPORT  zak014  LINE-SIZE 60 LINE-COUNT 20(2).
    TABLES: sscrfields.
    * Appliction Tool Bar Elements
    SELECTION-SCREEN FUNCTION KEY 1.
    SELECTION-SCREEN FUNCTION KEY 2.
    * Selection Screen
    PARAMETERS: matnr TYPE matnr.
    INITIALIZATION.
      sscrfields-functxt_01 = 'TEST1'.
      sscrfields-functxt_02 = 'TEST2'.
    START-OF-SELECTION.
      WRITE:/20 'CLICK HERE TO NAVIGATE'.
    AT LINE-SELECTION.
      WINDOW STARTING AT 5  5
             ENDING   AT 50 18.
      CASE sy-lsind.
        WHEN 1.
          WRITE:/ 'This is First window'.
        WHEN 2.
          WRITE:/ 'This is second'.
      ENDCASE.
    TOP-OF-PAGE.
      WRITE:/5 'LINE SELECTION'.

  • Calling or submiting a report program with value passed from zscreen

    Dear All,
    The requirement is like bellow.
    I have desiogned a zscrees in module pool with three fields as plant ,date and inv.date
    now when i clk a button present in my scren then it should go to standard transaction VF04 with value passed to the filed shipping point==plant enbterd in zscreen (u can see in vf04 in tab selection)
    SUBMIT SDBILLDL  with S_VSTEL-LOW = 0002 VIA SELECTION-SCREEN .
    is not wrking
    wht sholud i do?
    Rajendra

    Hi,
    Try using the below code.
    Define a range table for VSTEL as LR_VSTEL.
    lw_vstel-sign = 'I'.
          lw_vstel-option = 'EQ'.
          lw_vstel-low = your value here.
          APPEND LW_VSTEL TO LR_VSTEL.
          CLEAR : LW_VSTEL.
          SUBMIT rv50sbt1 WITH s_vstel IN lr_vstel.
    Hope this helps you !!!
    Regards,
    Ganga

Maybe you are looking for

  • Attachement linked to purchase order

    I want to know where the attachements linked to purchase order are getting stored in SAP.Since the attachement are linked to purchase order(header level) ,is it possible to link those attachements at item level so when we select a particular item  an

  • Nokia N80 support for MSI Blueplayer

    Hi, I have a Nokia N80, and a pair of i-tech bluetooth stereo headphones. I have been waiting in hope for about 6 months now that MSI would support the N80 in Blueplayer. on the 17th of June a SDK 3.0 version came out which actually runs on the N80,

  • CS6 installer says I have to quit "SafariNotificati" to install. Adobe instructions to "Force Quit' or use "Activity Monitor" don't work. Now What?

    I've been trying to install the CS6 Design & Web Premium on my iMac (running Yosemite), but I keep getting the message that I have to quit "SafariNotificati" to install. I've tried the above methods as instructed on the Adobe site to no avail. Hey, A

  • Media API on Personal Profile

    Hi, I'm trying to write an appliation which uses the Camera on my PDA. I'm using IBM J9 on the PDA with Personal Profile, and my application uses lots of AWT widgets, so it's not possible to move to Midlets. I was trying to add the MIDP library to my

  • My URL is not opening in browser! - Website security certificate

    Hello I am developing an Adobe Interactibve form from webdynpro ABAP. I got an 'http' URL, created by SAP in my webdynpro application, so, when i copied it and pasted on a brand new explorer browser (already i am logged into our company INTRANET netw