Creating new jobs dynamically

Hi Experts,
I have recently created a program to extract activity information with the use of GUID retrieval from CRMD_ORDER_H table and a BAPI call with the guids returned.
I have selection screen criteria for process type and a date range.  I've had problems with the program completing due to the volumen of info that is being pulled.  The program manages to pull data for a week at a time (and also for the process type range i want ) without failing.
My problem is that i have to extract information up til the beginning of the last year and i dont want to have to create multiple variants within sm36 (There would end up being to many)
Is it possibe to create a secondary program that will kick start a job and also supply the correct parameters (i.e date range) from within this program???
Thanks in advance
Confused!!

Hi,
Ya u can use the foll FMs(together) to schedule a job from ur pgm......
Job_open
Job_submit
Job_close
u can pass variants,spool recipients.......anything u can do in SM36.......
Cheers,
jose.

Similar Messages

  • Effect of creating new Jobs & grades in Existing HRMS system

    Dear Experts...
    We are already live with more than 3000 empoyees with modules like payroll, OLM and PMS.
    Now all of sudden our users want to create new job for interns and create new grades for them.
    All these will be added to the existing jobs and grades...
    Will this have effect? what is impact on Payroll.. ??
    I can simply create them using Job KFF ... but something fails.. Oracle will say .. you did not follow standards....
    Any help pls ??

    Hi Rahul,
    This is a perfectly normal request from any HR user and common requirement in any HRMS system.
    You can add as many grades and jobs to your Oracle HRMS/HCM system anytime without jeopardizing your existing data as long as you're entering them from the standard screens or loading through public APIs.
    I'm not from "Oracle" but I can say that in doing so you'll be following "the standards" and Oracle will provide support in case of issues.
    As for impact on Payroll, once you've associated these new grades and jobs to your employees and if there are benefits/deductions linked to them, then yes, your payroll would be impacted. Whether it will correctly reflect on your Payroll depends on your configuration (elements, links, fast-formula, etc...).
    Anyway, you'll have to carefully do dummy runs and check the cases on a 'Test' instance before deploying onto Production Environment.
    HTH.
    Regards,
    Rajen

  • Create Timer Jobs dynamically using code (on the fly)

    What I am trying to accomplish here is different from the usual "Create and deploy a new custom timer job". So please co operate.
    Scenario : I have around 200 lists in my site. Each list gets its data from a third part web service (cutom code / not BCS). The data retrieval happens via Timer Jobs. The Timer Jobs call the web service, gets the fresh data and updates the
    list items. This is currently working fine with multiple lists and 1 timer job to refresh the data.
    Problem : Now the issue I am facing is, each of the lists have its own Refresh Frequency. Say List 1 to 30 needs to be refreshed every 5 mins. List 31 to 60 every 10 mins, etc. I am currently handling this by having a RefreshLastRun timestamp.
    This works fine in most of the scenarios - unless the Web service returns large data, in which case it takes more than 5 to 10 mins for the Update to complete on 4 to 5 lists. At the same time, the other lists - they were supposed to be updated 5 mins ago,
    but are still waiting to get updated because the timer job is busy updating another list, and the refresh is in Que. This is a completely unaccepatable solution to my client because the list with lower frequency duration (5 mins) is of a higher priority than
    the lists getting refreshed every 10 mins.
    My Question is : How do I create a new Timer Job for each list? Whenever I add a new list (through code), I want to create a Timer Job at the same time, which will take care of refreshing the data in this and this list only. This way, I will
    have a independent Timer Job for each list and dont have to depend on 1 timer job to take all the load. With this approach I will have 200 timer jobs running. Which is OK with my client. So I create one class inhereting from SPJobDefinition class, and
    use it repeatedly to create unlimted timer jobs?
    I hope I am able to convey the message. My Timer Jobs are working fine. I dont need suggestions on how to get the timer job working etc. My question is, how do I create a new Job Definition dynamically through code (no deployment).
    Hanif

    I'm afraid this leads to a path where you create a single timer job (or windows service) that uses parallel programming (tpl) to handle all the lists. However, that places a huge burden on you to manage schedules, monitoring etc., something the timer job
    framework handles for you.
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

  • Creating new nodes dynamically in message mapping

    Gurus,
    Source Structure is
    <Phone></Phone>
    <Phone></Phone>
    And I want to create target structure as for this Node1
    <Phones>
    <Phone1>Has value from first Phone Node in source</Phone1>
    <Phone2>Has value from second Phone Node in source</Phone2>
    </Phones>
    The requirement is that I want to create <Phone1><Phone2> .........<PhoneN> nodes dynamically based on the number of <Phone> nodes in Source Structure. The cardinality of  <Phone> node in Source is 0 to Unbound.
    Any suggestion ...?
    Thanking you all in advance.

    Hi Ivan,
    Since you have enter the xslt mapping in Message Interface mapping and both Message Interfaces (target and source) are tied with the message type. And in message type you have fixed schema, do you think it still possible to use xslt mapping to generate some of the target nodes dynamically (the nodes which are not part of MessageType/DataType)....thx?

  • Creating New Job Problem

    Hello all,
    Am trying to do a backup job (OS windows) but am always getting the error
    ORA-20900: Could not find credential set DBHostCreds for target type oracle_database ORA-06512: at "SYSMAN.MGMT_CREDENTIAL", line 688 ORA-06512: at "SYSMAN.MGMT_CREDENTIAL", line 1351 ORA-06512: at "SYSMAN.MGMT_JOBS", line 285 ORA-06512: at "SYSMAN.MGMT_JOBS", line 78 ORA-06512: at line 1
    i checked in secpol.msc i have given the Log on as a batch job to the user
    i checked the preferred credentials and when i clicked the set credentials it shows this message : There are no credential sets configured for this target type.
    ie I cannot set a preferred credentials
    what could be wrong ?
    Thanks in Advance

    I am not sure that this exactly is the case but on Windows, setting the host credentials needs an additional setting. Please follow the following steps,
    1. Go to control panel->administrative tools
    (i) Click on "local security policy"
    (ii)Click on "local policies"
    (iii)Click on "user rights assignments"
    (iv)Click on "log on as a batch job"
    (v)Click on "add" and add the user that was entered in the "normal username" or "privileged username" section of the EM Console.
    2. Go to the Preferences link in the EM
    (i)Click on Preferred Credentials (link on the left menu)
    (ii)Under "Target Type: Host" click on "set credentials"
    (iii)Enter the OS user who has logon as a batch job privilege into the "normal username" and "normal password" fields
    3. Test the connection
    (i)While in the Set Credentials window, click on "Test"
    Hope this would resolve the issue.
    HTH
    Aman....

  • Creating a new job and position prompts customizing request...

    Dear All,
            I created a Job and Position through PP01 transaction. I am facing 2 issues while doing so...
    1. System prompts for Customizing request when i try to save the new entry.
        What table/settings do i need to maintain for turning of the customizing request promptings.
    2. Once i save the entries(after entering some dummy customizing requests), when i check the
        HRP1000 table for the new jobs and positions... The table entry shows 2 records for each Job and     
        position. One entry with Plan version '.:' and another with active Plan version '1'.
        I need to have just one entry in HRP1000 table for each job/position with ACTIVE plan version.
       I checked T77S0 table, it has active plan version maintained against the PLOGI-PLOGI entry.
       Please let me know what table i need to maintain to handle my requirement.
    Regards
    Nanda

    Hi Nanda,
    When you create new job or position in sandbox system it will not ask for the request number,since you generally dont transport the objects from sandbox to test system.
    When you create a new job or position in development system, it will always ask for request number. This is because, in most of the cases, you need to transport the job and position to test system and then to production system.
    Without a customizing request  you wont be able to transport those changes to next system.
    Thanks,
    Supriya.

  • Create a Job for a transaction dynamically through ABAP program.

    Hello Experts,
    Can a job be created for a transaction dynamically, say for example i have a parameter on selection screen which will take the name of the transaction and then i have to create a job to run that transcation.
    Plz provide sample code.
    Regards,
    Mansi.

    hiii
    yes you can call transaction like that..take tcode in that parameter then you can use it in your program with statement like
    call transaction (variable)..in background process.
    regards
    twinkal

  • How to create New columns for the Internal Table Dynamically?

    HI Guys,
                          In my logic i have to create new columns depending on the logic which i am executing.
    My requirement is .I have to display o/p like this
    Material || Year || Period  ||  Mix ratio || Vendor ||Mix Ratio || Vendor || Mix Ratio Vendor || Mix ratio || Vendor || Mix ratio.............................from table's CKMLMV003 and CKMLMV001.Her i have to display the o/p in the above format and i have to display Vendor and Mix Ratio for 5 columns irrespective of data .If i have more than 5 columns for any record then i have to create a New columns dynamically for Vendor and Mix ratio.If anybody want my code i can Submit But plz tell with example how to do?
                    <b>The O/P must be finally shown in ALV Grid</b>
    Thanks,
    Gopi

    You must create the entire internal table dynamically, you can not add columns to a statically define internal table.  Here is an example of creating a dynamic internal table.
    Creation of internal table dynamically based on the Date Range entered
    Regards,
    Rich Heilman

  • Creating new text field dynamically

    Hi,
    can anybody let me know how can we create new text fields dynamically in JSF.
    Basically the GUI will have a button/command link ,when clicked should create a new text field and then when the user enters any value in the new text fileld the formbean should be able to capture the value.
    so the user will have the choice of creating any number of text fields depending on the requirement.
    is javascript the only solution for this or can we do this JSF also?
    Thanks in advance.

    You may find this article useful then: [http://balusc.blogspot.com/2006/06/using-datatables.html]. The 'add new row' example is described here: [http://balusc.blogspot.com/2006/06/using-datatables.html#AddNewRowsToDatatable]. If it concerns only one field, just use only one column. You can for instance even use List<String> instead of a List<RowObject>.

  • Dynamic Action-Delimiting a record and creating new record

    Hi ,
    My requirement is in dynamic Action I need to delimit all records in a Subtype of an Infotype and create New record for these records with BEGDA as ENDDA + 1 of the delimited records.
    Iam able to delimit all records in the Subtype but , Iam not able to create new records.
    My code for delimiting is as given below, in T588Z,
    9901     2          06     801     P     P9901-SUBTY='2'
    9901     2          06     802     P     PSYST-IOPER='MOD'
    9901     2          06     803     P     P9901-STATS='X'
    9901     2          06     804     P     P9901-PREAS='91'
    9901     2          06     805     F     DELIMIT_DTE(ZHSRAS_T588Z_9901)
    9901     2          06     806     W     P9901-ENDDA=RP50D-ZZDATE3
    9901     2          06     807     I     MOD,9901,3
    9901     3          06     808     P     SY-UCOMM='UPD'
    9901     3          06     809     F     DELIMIT_DTE(ZHSRAS_T588Z_9901)
    9901     3          06     810     W     P9901-ENDDA=RP50D-ZZDATE3
    The above code is working fine.
    My code for creating new record is as given below, even though the control is oing to the subroutine, INS statement is not working, and hence new record is not getting created.
    9901     3          06     811     P     SY-UCOMM='UPD'
    9901     3          06     812     P     PSAVE-ENDDA<>P9901-ENDDA
    9901     3          06     813     P     P9901-STATS<>'X'
    9901     3          06     814     I     INS,9901,3
    9901     3          06     815     F     BEGIN_DATE(ZHSRAS_T588Z_9901)
    9901     3          06     816     W     P9901-BEGDA=RP50D-ZZDATE3
    9901     3          06     817     W     P9901-ENDDA='99991231'
    Kindly help me on this.

    Hi shahana,
    1. I have not worked on this dynamic action.
    2. But instead of doing in 2 steps,
       it is usually done in 1 step only, manually.
    3. If we CREATE record from some date,
       then the OLD will AUTOMATICALLY get Delimited.
    (We don't have to do anything specially for delimiting
      the old record)
    regards,
    amit m.

  • Create new jobB,fill jobB with part of  jobA & delete this part from jobA

    Hi guys,
    Here Job A = CATALYST_1 , Job A = CATALYST_MOGI.Could any one tell
    me how to resolve this? Any information will be help full.
    it is necessary create a new job with part of the programs that exist in
    the Job JCATALYST_1 , and alter this job, deleting the part that will contain
    in the new Job CATALYST_MOGI.
    It´s required to create a copy of the Job CATALYST_1 like Job CATALYST_MOGI.
    In the Job CATALYST_1, delete the part that contain the execution of Mogi jobs.
    In the Job CATALYST_MOGI, delete the part that contain the execution
    of others Jobs and just need to stay in this job execution that refers to MOGI Jobs.
    Tthe execution that refer to Mogi Jobs is highlighted with "*in the below lines, that
    must be delete of CATALYST_1
    And must be executed in the new Job CATALYST_MOGI.
    Currently the log of Catalyst_1:
    Data       Hora     Texto mensagem
    Regards,
    Sonam
    Edited by: sonamrata on Apr 20, 2010 11:53 AM
    Edited by: sonamrata on Apr 20, 2010 11:57 AM

    Hi guys,
    Here Job A = CATALYST_1 , Job A = CATALYST_MOGI. We have job CATALYST_1 with log entries as below.
    Now I have to 1)create a new job CATALYST_MODI (I can do this using SM36 tcode.)
                            2)put some ofthe log entries into  job CATALYST_MODI(highlighted  by "* iin below logentries)
                            3)  delete these entries from CATALYST_1..
    In other words I have to include programs ZSYSDI_PARTS_HOLD_RELEASE and ZSYSDI_CALL_SHIP
    in the new job CATALYST_MODI and  delete these programs from Job CATALYST_1.
    Currently the log of Catalyst_1:
    Data       Hora     Texto mensagem
    16.04.2010 10:40:44 Job executado
    16.04.201010:40:44 Etapa 001 executada
    (program.ZSYGLI_CONTROL_INTERFACE, variante ,
    nome usuário MAESTRO)
    16.04.2010 10:40:44 Enqueue em tabela Interface 0
    "*16.04.2010 10:40:44 Buscando Diretórios das Interfaces
    "*16.04.2010 10:40:44 Busca Arq. de ls -tr
    '*/me/proj/BZLSBYSNG/SDI2034/InBound/sap/MOGI
    "*16.04.2010 10:40:45 Start JOB CTR_INTRF-SD.I.2034M
    '*ZSYSDI_PARTS_HOLD_RELEASE
    "*16.04.2010 10:41:44 Aguardando JOB CTR_INTRF-SD.I.2034M 0
    "*16.04.2010 10:41:44 Busca Arq. de ls -tr
    /me/proj/BZLSBYSNG/SDI0404/InBound/sap/MOGI
    16.04.2010 10:41:44 Start JOB CTR_INTRF-SD.I.0404M ZSYSDI_CALL_SHIP
    16.04.2010 10:41:44 Busca Arq. de ls -tr
    /me/proj/BZLSBYSNG/SDI2034/InBound/sap/SOR9
    16.04.2010 10:41:44 Start JOB CTR_INTRF-SD.I.2034S
    Regards,
    Sonam

  • Create new dynamic distribution group as filter office location

    Hi
    I want to create new dynamic distribution group as filter office location. So  I would like to request you please suggest the script through Power shell or graphical interface.
    In case you need more clarification please revert back.
    Regards
    Md Ehteshamuddin khan 

    If you don't use OUs to separate your users and use the 'Office' field in Active Directory you can create Dynamic lists for this property as well.
    The Office field, which stores its information in the physicalDeliveryOfficeName attribute of the object, can be referenced to create a list by using this PowerShell command:
    New-DynamicDistributionGroup -Name <LIST NAME> -RecipientFilter {office -eq '<OFFICE NAME OR LOCATION>'} -RecipientContainer '<LOCATION OF USERS ALLOWED IN THE LIST>' -OrganizationalUnit '<LOCATION OF WHERE LIST WILL BE STORED IN ACTIVE
    DIRECTORY' -Alias 'LIST ALIAS'
    Tested and verified with Exchange 2010

  • How to create a batch-job dynamically?

    Hello,
    I would like to create a batch-job from within my abap code.
    Therefore I want to determine a abap-report to be executed every X-Hours.
    Do you have some sample code for creating a batch job?
    I need to do it in abap because I want to create a TN to trigger the code creating the job.
    So the user interaction will be minimal to start a periodic batch job.
    thanks.

    Hi Daniel,
    select options could be stored by export/import to/from database:
          DESCRIBE TABLE t_vkpos LINES n.
          READ TABLE t_vkpos INDEX n.
          lastmaxvbeln = t_vkpos-vbeln.
          PERFORM get_varimemkey USING p_vari CHANGING vkposmemkey.
          EXPORT lastmaxvbeln TO DATABASE indx(zk) ID vkposmemkey.
          IF NOT sy-subrc IS INITIAL.
          PERFORM get_varimemkey USING p_vari CHANGING vkposmemkey.
          IMPORT lastmaxvbeln FROM DATABASE indx(zk) ID vkposmemkey.
          IF sy-subrc IS INITIAL.
            ls_vbeln-sign   = 'I'.
            ls_vbeln-option = 'GT'.
            ls_vbeln-low    = lastmaxvbeln.
            APPEND ls_vbeln.
          ENDIF
    FORM get_varimemkey USING    vari TYPE raldb_vari
                        CHANGING memkey TYPE char22.
      IF vari IS INITIAL.
        RAISE get_varimemkey_unexepected.
      ENDIF.
      CONCATENATE 'Z_VKPOS_' vari INTO memkey.
    ENDFORM.                    "
    regards
    Walter Habich

  • Creating a new job

    Hello gurus,
    I want to create a job for a dtp, but i can't find a way.
    Could anyone help me?
    Thanks in advance,
    Vitor

    DTP's cannot be scheduled excepting using process chains.
    Did I get your question right ??

  • Error while creating new user in Oracle 11i EBS

    I am getting following error while creating new user. How solve this issue?
    “Unable to load java class % specified profile option SIGNON_PASSWORD_CUSTOM. Please verify that the class exists and that it implements the java interface oracle.apps.fnd.security.PasswordValidation”.

    Following is the text from Note for Custom Password Validation logic:
    Customers who wish to use their own password validation logic may do
      so by writing their own Java classes that implement the
      oracle.apps.fnd.security.PasswordValidation Java interface.  The
      interface requires 3 methods to be implemented:
      1) public boolean validate(String user, String password)
        - This method takes a username and password, and then returns true
      or false, indicating whether the user's password is valid or invalid,
      respectively.
      2) public String getErrorStackMessageName()
        - This method returns the name of the message to display when the
      user's password is deemed invalid (i.e., the validate() method returns
      false).
      3) public String getErrorStackApplicationName()
        - This method returns the application shortname for the
      aforementioned error message.
      After writing the Java class to perform customized password
      validation, the customer must then set the value of the profile option
      SIGNON_PASSWORD_CUSTOM to be the full name of the class.  If, for
      example, the name of the Java class is
      oracle.apps.fnd.security.AppsPasswordValidation, then the value of the
      SIGNON_PASSWORD_CUSTOM profile option must be
      oracle.apps.fnd.security.AppsPasswordValidation.  Note that AOL/J
      will attempt to load this class dynamically.  Hence it is necessary to
      make the class accessible by AOL/J.  This means that in Forms, the
      class must first be loaded into the database using the loadjava
      command.
    You will need to apply the following patches for 11.5.1:
       1344802
       1363919
       1472974
       1351004
       1377615
    You will need to apply the following patches for 11.5.2:
       1377615

Maybe you are looking for