Schedule Module program in Background with Dynamic Input values ?

Hi,
I am trying a schedule a Standard Transaction which has Month,year and other Check boxes (By default they are Empty) .I need to schedule it monthly and Input must change dynamically when I run in background each month..
How do we do this?
Regards
Vara
Message was edited by: Vara K

You can not directly schedule a module pool program in background job.  These are usually reports.   What you can do is create a custom report program with your parameters on a selection screen.  In this program you can do a BDC over the standard transaction filling the parameters from the selection screen of the custom program.  This custom program can also have a selection screen variant which uses selection variables that will change dynamically.  Then you can schedule the custom report program via SM36.
Regards,
Rich HEilman

Similar Messages

  • Scheduling a program in background with after job condition

    Hi experts,
    Is there a way to schedule a background job wherein it will be run every after another job? I've tried defining it on sm36 > start condition> After job> I stated the job name >check start status dependent. But it only run once even if the job which it is dependent on is scheduled everyday.
    Thank you in advance!

    This is (or was)  a well known issue, the option "after job" cannot be set to periodic. Theres lots of threads about this and several alternatives solutions.
    Please search before posting
    Regards
    Juan

  • Write a program that would schedule another program in background multipul

    Hi All,
              I need to write a program that would schedule another program in background multipul times according to input we provided on different application servers.
    For ex:- In  table FKKVKP, i am having 2.1 millons contract accounts. I need to write a program(A) that should take 5000 contract accounts at a time as a input and schedule another program(B) in background with input of 5000 contract accounts. And program A ,again schedule program B on differrent application servers , till 2.1 millions contract accounts get used.
    Thanx in advance.
    Regards,
    Dilip Kushwah

    hi,
    1) Carry out the recording for the required transaction using SHDB.
    2) Use batch input method to create session this is done by three FMs
    bdc: open_group, bdc_insert, close_group.
    3) A session is created , which can be seen in transaction SM 35.
    4) Use the standard program RSBDCSUB to configure the session created in SM35.
    This way you can achieve your requirement.
    Check this links too for more information
    Batch input [http://help.sap.com/saphelp_nw04/helpdata/en/fa/097015543b11d1898e0000e8322d00/frameset.htm]
    [http://help.sap.com/saphelp_nw04/helpdata/en/4c/4c0e8a725311d396a80004ac96334b/frameset.htm]
    [http://help.sap.com/saphelp_nw04/helpdata/en/4c/4c0e8a725311d396a80004ac96334b/content.htm]
    Thanks
    Sharath

  • How to schedule BDC program in background when we use GUI_UPLOAD

    Hi,
    I need to run the BDC program in the back ground. But my flat file is in presentation server and i am using GUI_UPLOAD F.M to upload data into I.T. How to schedule BDC program in background.
    Will anybody help me in this regards.
    Thanks in advance,
    Mythily

    You will either have to put your data file on the application server or make the directory of the presentation server available as part of the file system so that the background job will have access to it via OPEN DATASET... TRANSFER... CLOSE DATASET.

  • Schedule one program in BACKGROUND

    Hi Friends,
    I am Developing one FM.There at end of the program i want to submit one program ie
    RHINTE30 (Create Batch Input Folder for Infotype 0001).
    It should schedule automatically. how can i do this coding.
    Please help me.
    regards,
    Kumar.

    Hi,
    Check the sample code
    Form to open the job with the particular job name
    FORM f_open_job USING v_jobname TYPE any.
      CALL FUNCTION 'JOB_OPEN'
        EXPORTING
          jobname  = v_jobname
        IMPORTING
          jobcount = v_jobcount
        EXCEPTIONS
          OTHERS   = 8.
      IF sy-subrc NE 0.
        WRITE: /3 v_werks,
                11 text-008, v_jobname.
      ENDIF.
    ENDFORM.                                                    " f_open_job
    *&      Form  f_submit_job
    Form to submit the program (ZACC0014_COST_COLLECTORS_BDC) as job
    FORM f_submit_job.
      v_prog = text-016.
      SUBMIT (v_prog) WITH so_matnr IN r_matnr
                      WITH p_werks EQ v_werks
                      WITH p_date   EQ p_date                 "CCT51576
                      WITH ck_trg   EQ c_trg
                      TO SAP-SPOOL
                      SPOOL PARAMETERS v_params
                      WITHOUT SPOOL DYNPRO
                      USER sy-uname VIA JOB v_jobname NUMBER v_jobcount
                      AND RETURN.
      IF sy-subrc > 4.
        WRITE: /3 v_werks,
                11 text-009, v_jobname.
      ENDIF.
    ENDFORM.                    " f_submit_job
    *&      Form  f_job_close
    Form to close the job
    FORM f_job_close.
      CALL FUNCTION 'JOB_CLOSE'
        EXPORTING
          jobcount             = v_jobcount
          jobname              = v_jobname
          strtimmed            = 'X'  "start immediately
        EXCEPTIONS
          cant_start_immediate = 1.
    it will help u.

  • How to schedule a program in background after 5 or 10 sec

    Hi All,
           Can anyone tell me how to schedule a program after 5 or 10 sec in background after the transaction is completed.
    It is not a custom transaction. I want to execute a Z program in background  in a BADI
    Regards
    Yathish
    Message was edited by:
            Yathish Gundlupet

    Programattically?   You can add this code to the end of your transaction(if it is custom, of course).
    report zrich_0004 .
    data:   sdate type sy-datum,
            stime type sy-uzeit,
            l_valid,
            ls_params like pri_params,
            l_jobcount like tbtcjob-jobcount,
            l_jobname  like tbtcjob-jobname.
    start-of-selection.
    * Get Print Parameters
      call function 'GET_PRINT_PARAMETERS'
           exporting
                no_dialog      = 'X'
           importing
                valid          = l_valid
                out_parameters = ls_params.
    * Open Job
      l_jobname = 'THIS_JOB'.
      call function 'JOB_OPEN'
           exporting
                jobname  = l_jobname
           importing
                jobcount = l_jobcount.
    * Submit report to job
      submit <your_program_name
           via job     l_jobname
               number  l_jobcount
           to sap-spool without spool dynpro
               spool parameters ls_params
                  and return.
    * Kick job off 10 seconds from now.
      sdate = sy-datum.
      stime = sy-uzeit + 10.
    * Schedule and close job.
      call function 'JOB_CLOSE'
           exporting
                jobcount  = l_jobcount
                jobname   = l_jobname
                sdlstrtdt = sdate
                sdlstrttm = stime
    Regards,
    RIch Heilman

  • WAD 2 queries with 1 input values taking for only 1 query.

    Hi Gurus,
    Can anyone please tell me. I am working on a report 2 queries in WAD and 1 variable / input screen before running a report & 1 variable screen or filter pane after running a report. So 1.filter pane on top 2. chart (1st query) between 3. Analysis pane (2nd query) at bottom.
    Problem here is when we give input values on variable screen or input screen in WAD it is taking that as an input & applying on 2nd query (analysis pane) where it is not applying on 1st query so 1st query is showing all values & 2nd query is showing values that are given as input & filter pane is showing values that are given as input in variable screen.
    Here affected data providers is checked for both data providers. can anyone please tell me what would be the problem or how can i make input screen effect on both queries.
    Thanks in advance.

    Hi Sudheer,
    Is the same variable being used across both the queries with all settings etc the same? In WAD web template settings, you can uncheck 'Display same Variables for different queries only once [MELT_VARIABLES]' & check if you see the same variable twice. Try entering the same value against both & check if the Chart qry gets affected.
    --Priya
    Edited by: Priya Jacob on Oct 1, 2010 6:22 AM

  • Prompts with dynamic default values

    I have a request from my client to modify several reports so that two date prompts will have default values populated with the first and last day of the previous month.  All of the reports are currently using custom sql so I have to be able get the dynamic default value in the extended @prompt syntax.  However, I am not able to use any of the sql functions since the functions merely appear as plain text as the default value itself. 
    I have found a few work arounds to achieve the functionality of the dynamic prompts, but I cannot get the actual default value displayed to the user to be dynamic.  Is it possible to achieve this by using only the custom sql?

    Hi Sandeep ,
    Below blog may answer your query .
    Dave&amp;#8217;s Adventures in Business Intelligence &amp;raquo; Dynamic Dates Part III: Monthly Date Ranges
    Search for And for Last Month?

  • Search of batches with specified input value of charactristic

    Dear Experts,
    Does anybody know, is there a standard transaction to see the bathces of materials having next inspection date with specified input criteria?
    For e.g. I want to see the batches of materials having next inspection date between 01.01.2011 to 31.12.2011 (One month selection).
    Regards
    Vivek

    You can use the batch cockpit for this if you want.  BMBC
    You can also add the batch characteristic LOBM_QNDAT to your batch classes and use CL30n for finding batches with specific values in them.
    FF

  • Re: Including Applet in JSP with Dynamic input| Help needed

    Hi All,
    We are into a project in Oracle Portal Server where in we want to embed a result of a standalone application in Portal page.
    We can do that once we can embed the result of the standalone application which generates applet based on the input it gets from the current application's database.
    If it was static we could have used jsp:plugin but, it fails in our case!
    We are clueless as to how to embed an applet which will pick up the data dynamically.
    Can anyone of you help me in this regard?
    Thanks & Regards
    Arthi

    Hi Arthi,
    I think this might help you to get an idea why jsp:plugin tag does not allow for dynamically called applets.
    <jsp:plugin type=applet height="100%" width="100%"
    archive="myjarfile.jar,myotherjar.jar"
    codebase="/applets"
    code="com.foo.MyApplet" >
    <jsp:params>
    <jsp:param name="enableDebug" value="true" />
    </jsp:params>
    <jsp:fallback>
    Your browser does not support applets.
    </jsp:fallback>
    </jsp:plugin>
    The plugin example illustrates a <html> uniform way of embedding applets in a web page. Before the advent of the <OBJECT> tag, there was no common way of embedding applets. This tag is poorly designed and hopefully future specs will allow for dynamic attributes (height="${param.height}", code="${chart}", etc) and dynamic parameters. Currently, the jsp:plugin tag does not allow for dynamically called applets. For example, if you have a charting applet that requires the data points to be passed in as parameters, you can't use jsp:params unless the number of data points are constant. You can't, for example, loop through a ResultSet to create the jsp:param tags. You have to hand code each jsp:param tag. Each of those jsp:param tags however can have a dynamic name and a dynamic value.
    I think you can get better information if you look in to the below link
    http://pdf.coreservlets.com/CSAJSP-Chapter12.pdf
    Many Thanks,
    Ramesh.

  • Scheduling a Report with Dynamic Parameter Values

    Post Author: etlag
    CA Forum: Publishing
    I have created a report using a parameter that has dynamic values - meaning the user can choose a date from a specific field. It works fine once published in InfoView, but when I schedule the report, when I try to enter the parameter I get promted for a login for the database, even though I have already entered this in the CMC report properties.
    I have other reports that are using static values and they can be scheduled without entering the database login.
    Any ideas what I am missing?

    Post Author: amr_foci
    CA Forum: Publishing
    dear etlag
    its known issues, you've to set the default database connection to this report from the "CMC" web-bases appliaction , find this object click it go to "process" tab and then click the "database" tab,,, set your default database connection there and finally dont forget to set "Use same database logon as when report is run" at the end of the page
    and cilck ok
    try it ,, good luck
    Amr

  • How to change the schedule line date in SO with reference to value contract

    Hi SD Guru's,
    I need to change the schedule line date in the sales order with reference to the value contract by using some algorithm that i will write. The problem that i can't find the suitable place to add the algorithm. I can't add it to the Copy control because there is no schedule lines in value contract and copy control for schedule lines does no exist.
    I can not add to user exit MV45AFZZ  , because order that was created with reference to the value contract, does not go through this user exit.
    Do you have some ideas where i can add it?
    Thanks and Regards
    Viky
    Edited by: Viky Sloutsky on Oct 20, 2010 12:43 PM

    Hello Viky
    How about using program MV45AFZB- USEREXIT_CHECK_VBEP or USEREXIT_MOVE_FIELD_TO_VBEPKOM
    or program FV45EFZ1- USEREXIT_CHANGE_SALES_ORDER
    Does the program go through these exits when an order is created with ref to a value contract??
    Also I am wondering why you need to change a Schedule line determined by Availability check and/or delivery scheduling?

  • Update with dynamic top value in CTE

    Hi,
    Scenario :
    I have 2 main tables. One is header level and another is detail level. Each header table records have multiple detail entries based on the header table Quantity. Eg: The header have Quantity 50, detail table have 50 receords. Likwise each header table entry
    have Quantity based record count in the detail table.
    My Question:
       User enter multiple header request in one temp table. So that based on the requested quantity the first (FIFO) or top requested number of receords needs to be updated in the detail level. For example, if user enter header 1 and quantity 25.
    Then update the  top 25 records in the detail table on header id is updated.
    HeaderTable Name is ReceiveLot, Detail table is ReceiveSerial and temp table is
    StoresReferenceConsumptions (which is the table users entered the request)
    I wrote the query like below
    ;with cte
    as
    SELECT
    B.ReceiveLotID
    ,CAST(A.Quantity AS INT) Quantity
    FROM StoresReferenceConsumptions A
    INNER JOIN ReceiveLot B
    ON A.ReferenceNumber = B.ReceiveLotID
    WHERE A.ReferenceType=1
    ,cte1
    as (
    SELECT
    B.ReceiveSerialID,
    B.SerialNumber
    FROM cte A
    INNER JOIN ReceiveSerial B
    ON A.ReceiveLotID = B.ReceiveLotID
    WHERE B.[Status] = 'ALLOTTED'
    select * from cte1
    Here i got all the detail table values of he header id which is requested. But i can't use the top with hedaer Quantity in cte1. So how i update only the top number of records.
    If i use general update query i need to use 2 subqueries . please guide me.
    Actualy this is my revised query. My original query is very time consuming because i used cte inside cursor which is creating problems in production. so only i am try like this

    Thanks friend. But the 25 is not static. 25 is the requested quantity from the user which is available in the cte.Quantity.  So for each header entries in the StoresReferenceConsumption  i have entirely different quantity.
    Anyway i basically finished the concept using cursor. Please look into the query from below. Any possiblity like the query in CTE or cursor is better in this case
    DECLARE @ReceiveLotID INT
    DECLARE @LotQuantity NUMERIC(18,4)
    DECLARE updateCursor cursor for
    SELECT
    A.ReceiveLotID
    ,B.Quantity
    FROM ReceiveLot A
    INNER JOIN StoresReferenceConsumptions B
    ON A.ReceiveLotID = B.ReferenceNumber
    WHERE B.ReferenceType=1
    OPEN updateCursor
    FETCH NEXT FROM updateCursor INTO @ReceiveLotID, @LotQuantity
    WHILE @@FETCH_STATUS = 0
    BEGIN
    UPDATE A
    SET [Status] = 'DISPATCHED'
    FROM ReceiveSerial A
    WHERE A.ReceiveSerialID IN
    (SELECT TOP (CAST(@LotQuantity AS INT)) ReceiveSerialID FROM ReceiveSerial
    WHERE ReceiveLotID = @ReceiveLotID AND [Status] = 'ALLOTTED' ORDER BY SerialNumber)
    FETCH NEXT FROM updateCursor INTO @ReceiveLotID, @LotQuantity
    END
    CLOSE updateCursor
    DEALLOCATE updateCursor

  • Weblink with dynamic field value, plus wildcard

    I am trying to use the weblink functionality to access a SharePoint site where images are saved. Contained within the image name is a field value in the CRM, but the name may have other characters in it as well. Plus, there might be more than one image that matches the request.
    Rather than re-naming the hundreds of images on the site to work with standard weblink passing the field value, I'd like to be able to add a wildcard to the weblink so that it can pick all images containing that value. I've tried using the /*%%%FIELDNAME%%%, but that hasn't worked.
    Any ideas?

    This can not be done with a Weblink to your sharepoint server alone because it's conceptually flawed. Weblink points to One_ specific web address or file.
    Here is a test. In your IE, you could go to Files --> Open --> Navigate to the folder, which contain the images --> Put *.jpg (or whatever the format you are using) --> Click Open. Nothing is going to happen. The reason, behind it, is you didn’t specify one and only one address or file.
    Another test. Try to type in the full path of the folder, which holds the image files, in your IE address field. It should take you to the folder. If you attach *.jpg behind the address, you would get an error.
    The only way to do this is to have a search engine in a web page, Google image search as an good example. This is probably more work than renaming the files or updating your records.
    Regards,
    Shilei

  • Howto create a ValidateSet with dynamic (runtime) values?

    Hi Scripting Guys!
    I want to use the auto complete feature in my function for a specific parameter using a "dynamic" validate set (Similar to the Get-Service function and the Name parameter). 
    For example, instead of this:
    function Test-Function
    Param
    [ValidateSet("Folder1", "Folder2", "Folder3")]
    $Param1
    I want to get the validate set populated by a function like all Folders from the C drive :
    function Test-Function
    Param
    [ValidateSet(ls c:\ -Directory | select -ExpandProperty Name)]
    $Param1
    Any suggestions?
    Thanks,
    Martin

    Funny you should ask. Martin Schvartzman has recently posted an example of exactly
    how to use dynamic validate set.
    Sam Boutros, Senior Consultant, Software Logic, KOP, PA http://superwidgets.wordpress.com (Please take a moment to Vote as Helpful and/or Mark as Answer, where applicable)

Maybe you are looking for