Regarding backgroung procesing with variants

i have a program in which i am using PNP ldb
now what i want is to schedule the program in such a manner where the dates in the period are entered automatically somehow say  the begin date should be 45 days before the syatem date and the end date is 45 days ahead of the system date,both these fileds should be filled automatically and the the program should execute in the night on its own with these values according to the system date
or is there any other method by which i can schedule the program with the help of variants where the variants can automatically take the values.
its a bit wierd thing that i am asking.
but just wanted to schedule my program like this and this thought came into my mind.
waiting for response.:)

Hi,
1) Goto the report and give the values. Click on save.
2) Save it as a Variant. Give a name and desc. and save it
3)Goto SM36 and create the job.
4) In the Job details give the prog name and the variant.
5)Give the start condition and save it.
When the job starts it will pick the variant and execute.
Reward points if useful...
Cheers,
Simha.

Similar Messages

  • While Creating Trasnsaction not taking variant in 'Start With Variant'

    I am trying to create a transaction for report  with variant created through se38 (while creating report). but when I give variant name  in 'Start with Variant '.
    and try to save it, it gives message 'No System Variant chosen for nonlocal objects'.
    How can I create transaction with variant

    HI
    I have created a Tcode in SE93 as u sain using the varints.
    in clint 300
    1.in se93 main screen ihanve enter ZXX_TEST name then pressed create button.
    2. then next screen i have selected the 2nd radiobutton(program and selection screen).
    3.In Program filed I hve given program name.
    4. in START with variant  I have given variant name AA.. this is existed in Clint 320, but not existed in Clint 300).
    5. if i run this in clint 300 it gives me error because variant AA is not existed in the Clien 300.
    6. If i run this in Client 320.. then it is runnig with variant AA.
    The variant u r using is not existed...
    Check the Vairint is existed or not.. where u r running this.
    Please Close this thread.. when u r problem is solved
    Reward if Helpful
    Regards
    Naresh Reddy K

  • Regarding email generation with attachment

    Hi Experts,
    1)   Iam sending an email with excel attachment by using the FM "SO_NEW_DOCUMENT_ATT_SEND_API1".
       My problem is for example if i have 5 lines in the email table then these 5 lines are showing in single in the excel.
    How can i rectify this?
    2)  i need to submit the report in the back ground with variant and with out selection screen.How to do this?  
    Rgds,
    Krishna.

    Hi,
      Append each line of ur text seperately in an internal table for eg.  
       objtxt = text-007.
      APPEND objtxt.
      CLEAR objtxt.
      APPEND objtxt.
      objtxt = text-008.
      APPEND objtxt.
      CLEAR objtxt.
      APPEND objtxt.
    *Function module to send email with an attachment
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = docdata
          put_in_outbox              = 'X'
          commit_work                = 'X'
        TABLES
          packing_list               = objpack
          object_header              = objhead
          contents_bin               = objbin
          contents_txt               = objtxt
          receivers                  = reclist
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ELSE.
        MESSAGE s899(m3) WITH 'Mail sent successfully!'.
      ENDIF.
    Then u  ll get the mail the way u designed.
    The answer of ur 2nd question is........
    Specify the selection screen in ur program
    and use FMs 'JOB_OPEN' ,  'JOB_CLOSE' & 'JOB_SUBMT' to schedule the job in the background..
    regards,
    ajit.

  • Create a production order with variant configurator data

    Hello,
    Can anyone tell me the way to create a production order with variant configurator data. Is there a BAPI ? an IDOC ?
    Is there several steps ?
    I have to create an interface which creates automatically PP orders. The data input is a file.
    Thanks for your help

    Hi,
    There are fews BAPI's available for creation of Production Order. They are:
    BAPI_PRODORD_CREATE
    This bapi will suit to your requirement, as input will be provided from file.
    Others are
    BAPI_PRODORD_CREATE_FROM_PLORD " this converts planned order to production order
    BAPI_PRODORD_CREATE_FROM_REF      " this creats production order considering other production order as reference.
    Hope your query is answered.
    Regards,
    Brajvir

  • Process order with variant configuration material

    Hi,
    I create a process order for a material XX.
    This material has a BOM with a material that has variant configuration "class type 300" for price configuration.
    When I save the process order I get a message saying "There are still characteristics for components to evaluate". I dont want to evaluate this material in my process order.
    What can I do to not have this message?
    Regards.

    Hi all,
    Yes, I work with variant configuration. But sales orders are not involved.
    What I do is:
    1) I create a purchase order for material X (this material belongs to a BOM), this material has variant configuration. I give a value to the characteristics in the PO.
    2) I create a process for a material XXX that has a BOM (material X is in the BOM and cannot be removed).
    3) When I save the process order the system asks me to evaluate again the characteristics. This is what I dont want it to do.
    Any ideas?
    Regards.
    Eduardo

  • How to give the Submit along with Variant

    Dear Freinds,
               Iam using the Submit program with variant  in my custom program . When iam exucting my custom program it is directly opening the program with the variant . ie. just like we execute a program and select varaint.
    it is not happening what i want ,it has to schedule the program with the varaint (i.e. what ever fields have been slected in that varaint) and when i go and see in SM37 . The job should get schedule, this was
    happening when iam sending one are two parameters in retrun of the submit without me using VAriant.
    please help me where iam going wrong.
    Not working Scenario (when iam using Variant)
    SUBMIT rptqta00
       WITH pnpbegda =  sy-datum                                 "'20081201'
       WITH pnpendda =   lv_date                                 "'20091130'
       VIA SELECTION-SCREEN USING SELECTION-SET 'NEW'
       VIA JOB lv_job_name NUMBER lv_job_nr
         AND RETURN.
      IF sy-subrc = 0.
        CALL FUNCTION 'JOB_CLOSE'
          EXPORTING
            jobcount             = lv_job_nr
            jobname              = lv_job_name
            strtimmed            = 'X'
          IMPORTING
            job_was_released     = lv_job_released
          EXCEPTIONS
            cant_start_immediate = 1
            invalid_startdate    = 2
            jobname_missing      = 3
            job_close_failed     = 4
            job_nosteps          = 5
            job_notex            = 6
            lock_failed          = 7
            OTHERS               = 8.
        IF syst-subrc NE 0.
          MESSAGE i162(00) WITH
          'An error occured while closing the background job.'.
          STOP.
        ENDIF.
    working perfectly  with the below scenario
      SUBMIT rptqta00
    WITH pnpbegda =  sy-datum                               "'20081201'
    WITH pnpendda =   lv_date                                 "'20091130'
    with pnppernr = '99002235'
    WITH pnpbukrs  EQ 'C091'
    WITH dis_new = 'X'
       VIA JOB lv_job_name NUMBER lv_job_nr AND RETURN.
      IF sy-subrc = 0.
        CALL FUNCTION 'JOB_CLOSE'
          EXPORTING
            jobcount             = lv_job_nr
            jobname              = lv_job_name
            strtimmed            = 'X'
          IMPORTING
            job_was_released     = lv_job_released
          EXCEPTIONS
            cant_start_immediate = 1
            invalid_startdate    = 2
            jobname_missing      = 3
            job_close_failed     = 4
            job_nosteps          = 5
            job_notex            = 6
            lock_failed          = 7
            OTHERS               = 8.
        IF syst-subrc NE 0.
          MESSAGE i162(00) WITH
          'An error occured while closing the background job.'.
          STOP.
        ENDIF.
    now my question is what i have to do in the case of VAriant so that it acts exactly as the below parameters.
    My problem why iam going to varaint is in the standard program  rptqta00  i have a button Like TESTRUn ,Batchinput,Direct etc.............. this iam not able to pass the OK code along WITH  in the     Submit syntax.... i dont know how to pass in the case of Button's  along with Submit ,,,,,,,,,however iam able to do for radio buttons .
    could any one tell me why the variant when iam using is taking me directly to the program instead it is not returning
    secondly if iam passing each parameters in the submit program how can i pass the BUTTON value ( which is having tick option for either TESTRUN ,Batchinput,Direct )
    Please could any one help.
    regards
    divya

    Dear Freinds,
                  I found the solution , i have used the ok code of the button while passing into submit program it is working . Thanks once agian
    regards
    divay.

  • Table with varying number of columns

    Hello experts,
    my issue:
    I need to print a table with varying number of columns. Depending on if all cells of a certain column are initial the
    whole column should disappear. Hiding is not enough.
    If this columns is in the middle of the table the following columns should move left to fill the gap.
    my approach: (maybe there is an easier one)
    There are 4 different possible situations. My approach was to create 4 different tables with different amount of
    columns. In the interface I fill the table that is really needed from the source table data and fill a flag that characteristics
    the situation, possible values (1,2,3,4).
    In the form I'd like to print the appropriate table depending on the situations.
    my problem:
    How to place all 4 possible tables lying upon each other in the form and print only the needed one depending on the flag value?
    my question:
    Is my approach ok? Or is there an easier one?
    If it is ok. How can I solve the problem regarding printing the right table.
    Thanks in advance!
    Heinz

    Hi Heinz,
    You can handle it with FormCalc Script at initialization.
    Suppose you have a table with name TABLE having a header HEADER and data row DATA:
    TABLE-->HEADER(Cell1...Cell2...Cell3...Cell4)
              --->DATA(Cell1...Cell2...Cell3...Cell4)
    Suppose you want to hide Cell3 for null values, then write below code at initialization of DATA:
    if(DATA[*].Cell3.rawValue eq null)
    then
    DATA[*].Cell3.presence = "hidden"
    HEADER.Cell3.presence = "hidden"
    else
    DATA[*].Cell3.presence = "visible"
    HEADER.Cell3.presence = "visible"
    endif
    Hope it would help.
    Regards,
    Vaibhav

  • Can we create JTable with multiple rows with varying number of columns ?

    Hi All,
    I came across a very typical problem related to JTable. My requirement is that cells should be added dynamically to the JTable. I create a JTable with initial size of 1,7 (row, columns) size. Once the 7 columns are filled with data, a new row should be created. But the requirement is, the new row i.e. second row should have only one cell in it initially. The number of cells should increase dynamically as the data is entered. The table is automatically taking the size of its previous row when new row is added. I tried by using setColumnCount() to change the number of columns to '1' for the second row but the same is getting applied to the first row also.
    So can you please help me out in this regard ? Is it possible to create a JTable of uneven size i.e. multiple rows with varying number of columns in each row ?
    Thanks in Advance.

    Well a JTable is always going to paint the same number of columns for each row. Anything is possible if you want to rewrite the JTable UI to do this, but I wouldn't recommend it. (I certainly don't know how to do it).
    A simpler solution might be to override the isCellEditable(...) method of JTable and prevent editing of column 2 until data in column 1 has been entered etc., etc. You may also want to provide a custom renderer that renderers the empty column differently, maybe with a grey color instead of a white color.

  • BAPI/FM in ECC to create a sales order with variant configurable material

    Hi all,
    I need to create a function module that creates a sales order in ECC with a variant configurable material.
    can some one tell me if there is a in built function module or BAPI that i can make use of to create a sales order with variant configurable material in ECC.
    Regards,
    Jessica Sam

    Thanks MxG,
    I dont know how to use this BAPI. .Can you suggest me a sample code.
    My reqmnt is, i have
    Sold to party, ship to party, bill to party , VC config material and all char values that should be populated while creating a sales order.
    please help me with what values should i populate in i/p paramters and and how to use this BAPI with some sample code if posible.
    Regards,
    Jessica.

  • BAPI/ FM in CRM to create a sales order with variant configurble material

    Hi All,
    I need to create a sales order using variant configurable material in CRM not manually through GUI. I need to develop a function module that will create sales order using variant configurable material in CRM .
    Can some one tell me if there is an in-built BAPI/Function Module availabe in CRM to create sales order using variant configurable material in CRM .
    When i researched i found that there is a BAPI 
    BAPI_BUSPROCESSND_CREATEMULTI which can create a sales order in CRM.
    I dont know if this can create a sales order with varinat configurable material in CRM
    can some one guide be how i can build a function module in CRM which generates a sales order with variant configurable material.
    Regards,
    Jessica Sam

    Jessica
    I am not a CRM expert and am still learning. But you can try the BAPI CRMXIF_ORDER_SAVE and see if that helps.
    Good Luck
    Ram

  • Configuration management (LO-CM) used with Variant configuration (LO-VC)

    Hi
    I am new to SAP, working with Variant configuration (LO-VC).
    I wish to enforce configuration management during development of a new Variant configurator.
    Would Configuration management (LO-CM) work together with Variant configuration (LO-VC)?
    My expectation is that SAP Configuration management (LO-CM) will work similar to solutions like e.g. MsVisualSourceSafe, SubVersion, CVS, IBM/Rational ClearCase etc. in the software development domain.
    best regards Henrik

    Hi Amber
    Thanks a lot for answer, and please apologize my late response.
    I am not confused by the term 'configuration', being used in two different meanings.
    (1) Variant configuration (VC) is the dicipline of creating product variants by making a set of choises from the characteristics describing the product. A complete and consistent set of choises is a 'configuration'.
    (2) Configuration Management in the 'traditional' software development meaning: Software Configuration Management (SCM). E.g. Microsoft VisualSourceSafe, IMB/Rational ClearCase, Subversion etc. are examples of tools used for the kind of SCM I wish to apply to VC models.
    My confusion is whether the SAP CM that I can read about in the SAP online help, is similar to traditional SCM, and whether it can be applied to VC models.
    I wish to apply SCM to a VC model. All the objects that together make up the VC model may then each exist in various versions (version control). A complete set of the objects (in a given version) make up a configuration of the VC model.
    What is achieved is : you can control the development of VC model in just the same way that all serious software is under the control of SCM. This will allow an evolution of the VC model, like e.g. version 1.0 is released in January, then version 1.1 is released in June. A major upgrade of the model may become version 2.0 in December etc. The 'source code' (the objects) of each of the versions can be retrieved at any time from the SCM system. Also with SCM several developers may work on the same VC model at the same time, and merge their individual work into the same model.
    This is very different from todays VC model development. In todays VC model development, only one version exists, that is 'todays version'. Any change to the model is released immediately, and you can undo model changes only if you remember what it was like a little while ago.
    We do develop and test VC models in one SAP system, and then move them to the production system. This is however still very far from the benefits of SCM.
    best regards
    Henrik Saugbjerg

  • WAD: Execute query with variant

    Hi,
    I would like to create a web report so that for a web item to select a query with variant. Is it possible using WAD?
    Or is there any parameter that could be used in the URL so that I can create directly the URL for this web report, without using WAD anymore?
    Could you please give me some sugestions regarding this problem?
    Thank you,
    Iuliana

    HI Iuliana,
    Take a look at this post:
    Re: Variant for a Web Report
    Hope this helps...

  • Running job along with variant programatically

    Hai,
    I have to run a report (which have selection screen) through job from the module pool program.
    that is the user will click on a button which triggers the execution of the report in back ground.
    this report have a selection screen.I am creating the variant programatically & I have to use the same varinat in the job.But when I checked the job_open fm , it is not taking any input parametrs for variant.
    please note creating the variant & job before the execution of the module pool program is not possible because I have to ceate the variant with the values from the module pool screen & I need to use the job
    because the foreground process takes huge amount of time hence going for back ground.
    can any one please tell how to cretae a job with varinat programatically?
    creating a job with out variant is possible through job_open but I want to create a job with variant so that I can run the repor from module pool.
    please give your ideas.
    Regards,
    Bhaskar.

    Hello,
    after the function JOB_OPEN you could use the submit_statment.
    submit <Reportname> user <user> via job <jobname> number <jobnumber> using selection-set <variant>.
    the jobname and jobnumber you would get from the JOB_OPEN-Function.
    At last there would be a call function JOB_CLOSE or JOB_SUBMIT.
    Regards Wolfgang

  • Group condition with varying keys

    Hi every one,
    How to declear group condition with varying keys.
    gajanan

    Hi Rudrag,
    What Karan has mentioned is absolutely correct.
    To simpify it,
    Suppose you have two materials M1 and M2 for which you want to give customer/material specific discount.
    Create one material pricing group (e.g, 01) in customising, assign the Material Pricing group 01 to both the material in their respective material master in Sales org 2 view.
    In V/06, open the condition type K005, activate the "Group condition" check box and assign "Routine 3" in the "Gorup condition routine" check box by selecting the value from the drop down.
    Now create condition record for Condition type K005 in t.code VK11 for the two materials for one specific customer.
    For example, for cudtomer C1 and Material M1, discount is Rs.10 per Piece(PC).
    Go to scale and specify in the scale that if 10 Pieces then discount is Rs.15 per piece.
    Similarly, for Custome C2 and Material M2 maintain a condition record for discount is Rs.20 per piece.
    Go to scale and maintain and specify that, if 10 pieces order then discount will be Rs.25 per piece.
    Now create a Sales order for the Customer C1 with the two material M1 and M2 with quantity 4 pieces and 6 pieces respectively.
    System will add up the quantities of both the material as 4+6=10 pieces.
    Even though, there respective order quantities are 4 pieces and 6 pieces , but still both the item will avail the discount for 10pieces level beacuse of the group condition settings.
    But, the rate of the discount will taken from there individual condition record.
    That means, M1 will get discount of Rs.15 per piece. So for  4 pieces discount will be Rs.60.
    Similarly, M2 will get discount of Rs.25 per piece. So for 6 pieces  discount will be Rs.150.
    If there is no setting for group condition then, M1 would have got discount of Rs.40 and M2 would have got discount of Rs.90.
    I hope this is clear.
    Regards
    Pradyumna

  • ALV with variant

    HI,
    Pls can anybody send me a sample ALV program with variant .
    Thx in Advance.

    Hi
    Simple ALV report
    http://www.sapgenie.com/abap/controls/alvgrid.htm
    http://wiki.ittoolbox.com/index.php/Code:Ultimate_ALV_table_toolbox
    ALV
    1. Please give me general info on ALV.
    http://www.sapfans.com/forums/viewtopic.php?t=58286
    http://www.sapfans.com/forums/viewtopic.php?t=76490
    http://www.sapfans.com/forums/viewtopic.php?t=20591
    http://www.sapfans.com/forums/viewtopic.php?t=66305 - this one discusses which way should you use - ABAP Objects calls or simple function modules.
    2. How do I program double click in ALV?
    http://www.sapfans.com/forums/viewtopic.php?t=11601
    http://www.sapfans.com/forums/viewtopic.php?t=23010
    3. How do I add subtotals (I have problem to add them)...
    http://www.sapfans.com/forums/viewtopic.php?t=20386
    http://www.sapfans.com/forums/viewtopic.php?t=85191
    http://www.sapfans.com/forums/viewtopic.php?t=88401
    http://www.sapfans.com/forums/viewtopic.php?t=17335
    4. How to add list heading like top-of-page in ABAP lists?
    http://www.sapfans.com/forums/viewtopic.php?t=58775
    http://www.sapfans.com/forums/viewtopic.php?t=60550
    http://www.sapfans.com/forums/viewtopic.php?t=16629
    5. How to print page number / total number of pages X/XX in ALV?
    http://www.sapfans.com/forums/viewtopic.php?t=29597 (no direct solution)
    6. ALV printing problems. The favourite is: The first page shows the number of records selected but I don't need this.
    http://www.sapfans.com/forums/viewtopic.php?t=64320
    http://www.sapfans.com/forums/viewtopic.php?t=44477
    7. How can I set the cell color in ALV?
    http://www.sapfans.com/forums/viewtopic.php?t=52107
    8. How do I print a logo/graphics in ALV?
    http://www.sapfans.com/forums/viewtopic.php?t=81149
    http://www.sapfans.com/forums/viewtopic.php?t=35498
    http://www.sapfans.com/forums/viewtopic.php?t=5013
    9. How do I create and use input-enabled fields in ALV?
    http://www.sapfans.com/forums/viewtopic.php?t=84933
    http://www.sapfans.com/forums/viewtopic.php?t=69878
    10. How can I use ALV for reports that are going to be run in background?
    http://www.sapfans.com/forums/viewtopic.php?t=83243
    http://www.sapfans.com/forums/viewtopic.php?t=19224
    11. How can I display an icon in ALV? (Common requirement is traffic light icon).
    http://www.sapfans.com/forums/viewtopic.php?t=79424
    http://www.sapfans.com/forums/viewtopic.php?t=24512
    12. How can I display a checkbox in ALV?
    http://www.sapfans.com/forums/viewtopic.php?t=88376
    http://www.sapfans.com/forums/viewtopic.php?t=40968
    http://www.sapfans.com/forums/viewtopic.php?t=6919
    13. Top-of-page in ALV
    selection-screen and top-of-page in ALV
    14.  ALV Group Heading
    http://www.sap-img.com/fu037.htm
    How to add list heading like top-of-page in ABAP lists?
    http://www.sapfans.com/forums/viewtopic.php?t=58775
    http://www.sapfans.com/forums/viewtopic.php?t=60550
    http://www.sapfans.com/forums/viewtopic.php?t=16629
    Go thru these programs they may help u to try on some hands on
    ALV Demo program
    BCALV_DEMO_HTML
    BCALV_FULLSCREEN_DEMO ALV Demo: Fullscreen Mode
    BCALV_FULLSCREEN_DEMO_CLASSIC ALV demo: Fullscreen mode
    BCALV_GRID_DEMO Simple ALV Control Call Demo Program
    BCALV_TREE_DEMO Demo for ALV tree control
    BCALV_TREE_SIMPLE_DEMO
    BC_ALV_DEMO_HTML_D0100
    Reward points for useful Answers
    Regards
    Anji

Maybe you are looking for