Function module to schedule actions

Is there any function module available for scheduling actions programmatically; ( like done in T-CODE CRMC_ACTION_JOB)
Thanks,

Hi,
There are couple of FM.
SMOE_ACTIVATE_SCHEDULED_ACTION Function Module which starts Scheduled Actions
SMOE_CALC_SCHEDULED_ACTION     Function module which calculates the scheduled actions to be performed
SMOE_UNDO_SCHEDULED_ACTION     Function Module which finishes the actions started by SMOE_ACTIVATE_SC
SMOE_UPDATE_SCHEDULED_ACTION   Function module which updates running scheduled actions
But we can also write the code using FM:CRM_ACTION_CONTEXT_CREATE and 'CRM_ACTION_DETERMINE  and method of the class:cl_manager_ppf
Regards,
ruchi

Similar Messages

  • How to schedule a background jobs for a function module

    HI all,
    I have created a function module (zrfc_test). Now I need to schedule it daily around 8am . the 2 tcodes used is sm36 & sm37. But I need a detail description for a function module.
    Points will be rewarded
    thanks in advance

    As there is no direct way of scheduling a function module, you may write a online program (program type 1) and call this function module in side it and schedule the program using SM36. Or you may record a CATT procedure for the function module and schedule it using SCAT transaction.Hope this helps
    Krishna

  • How to use SWC_CREATE_OBJECT in Function Module

    Hi All,
    I need to create a one function module to fill the work flow container field. this work flow builder had only one task, that task is triggering through QM Action box. I need to maintain this function module in AM Action box, FM when saving field.
    Please help me how to create a new function module in QM Acion box. When run the QM02 with usage decesion option is triggered Associated task is triggering, now how i will pass the notification number to work flow container.
    Please help me

    I think you can
    SWC_CREATE_OBJECT 'QMObject' Object Key
    Or you can pass the QM number to the Workflow and use GENERICINSTANTIATE Method of Business Object SYSTEM to instantiate the QM Business Object.
    Thanks
    Arghadip

  • Function module to set user status during QA11 transaction

    Hi ,
    Anyone knows the function module to set the user status during QA11/QA12  transaction?
    I received the user status 'e.g CFA1' from an idoc data and would like to set the user set based on this idoc value during QA11/QA12 transaction.
    Any function module for this action? BDC seems impossible..
    Thanks.
    Regards,
    Clarice.

    oh i realised this function module can be used
    STATUS_CHANGE_EXTERN
    with a commit statement..

  • Function Module to Release Scheduled Jobs

    Dear All,
    I have a requirement to create all the background jobs in SCHEDULED status, this is achieved by using the function modules JOB_OPEN, JOB_SUBMIT and JOB_CLOSE.
    Now at a later point of time, i want to release only a few jobs, which were created using the above mentioned procedure. Insead of doing it manually, is there any way to automate this step ??
    Regards,
    kartik

    Dear Mr. Parupalli,
    That solved my problem. Thank you.
    Regards,
    kartik

  • Function module to get holiday class from work schedule for current day

    I need to determine what the public holiday class value is for the current day in a user exit.  Is there an SAP function module that can return me this data?  This would be the information that is displayed when pressing the work schedule button from infotype 0007

    Function module HOLIDAY_CHECK_AND_GET_INFO is closer to what I need.  This function module returns an X if the day is a holiday.  I will create a Z program and instead of returning an X for a holiday I will return the THOL-KLASS (holiday class) value.

  • Gui_download Function module is not working in Background Scheduling

    Hi Experts,
    Function modules like GUI_DOWNLOAD are not working in background scheduled jobs, It is raising an exception. Though it is working fine in foreground execution.
    Please provide me solution for this challenging task.
    you could be rated well for this question.
    Thanks,
    Rama Krishna.

    Hello,
    work with open dataset and close dataset...
    just loop over itab and transfer itab field for field into a string field separated by ;
    Here is an extract of coding:
    OPEN DATASET p_dath FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
      LOOP AT itab_pos.
        CLEAR satz.
        MOVE itab_pos-vbeln TO satz-vbeln.
        MOVE ';' TO satz-fill1.
        MOVE itab_pos-kunnr TO satz-kunnr.
        MOVE ';' TO satz-fill2.
        MOVE itab_pos-ktgrd TO satz-ktgrd.
        MOVE ';' TO satz-fill3.
        MOVE itab_pos-fkdat TO satz-fkdat.
        MOVE ';' TO satz-fill4.
        MOVE itab_pos-budat TO satz-budat.
        MOVE ';' TO satz-fill5.
        MOVE itab_pos-cpudt TO satz-cpudt.
        MOVE ';' TO satz-fill6.
        MOVE itab_pos-fkimg TO satz-fkimg.
        MOVE ';' TO satz-fill7.
        MOVE itab_pos-netwr TO satz-netwr.
        MOVE ';' TO satz-fill8.
        MOVE itab_pos-vrkme TO satz-vrkme.
        MOVE ';' TO satz-fill9.
        MOVE itab_pos-ktgrm TO satz-ktgrm.
        MOVE ';' TO satz-fill10.
        MOVE itab_pos-matnr TO satz-matnr.
        MOVE ';' TO satz-fill11.
        MOVE itab_pos-mattxt TO satz-mattxt.
        MOVE ';' TO satz-fill12.
        MOVE itab_pos-gewei TO satz-gewei.
        MOVE ';' TO satz-fill13.
        MOVE itab_pos-brgew TO satz-brgew.
        TRANSFER satz TO p_dath.
      ENDLOOP.
      CLOSE DATASET p_dath.
    It is not so comfortable as it is with GUI_DOWNLOAD but it works in background!

  • Scheduled function module in background job

    HI all,
    I have created a function module(RFC) & Now I need to schedule it in background job, i have used fm job_open ,job_close  But through there i can only scheduled Reports  so pls gide me how to scheduled fm .
    regards,
    Anuj

    Hi Anuj,
    Check this one:
    Re: can i scheddule a function module(rfc)  in background
    Regards,
    Chandra Sekhar

  • Scheduling function module execution in background jobs

    Hi,
    I have requirement where in after obtaining all the required inputs from the user we will call an function module to execute it.
    The requirement is that the execution of fm shld happen in background and a log must be created showing the user whther it was successful or if it failed with the list of errors.
    Can you kindly give some input on how to schedule the execution of function module in background job and if scheduled how to create the logs to display the success or error message.
    Warm Regards,
    Naveen M

    Hi,
    Just create a simple program where you have to call this FM.
    Pass the values to FM either by declaring some internal table of selection screen and execute the program in background.
    For Message Log, you can use structurre BDCMSGCOLL
    DATA:   MESSTAB LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
    After Call to FM, read from this internal table as follows
    READ TABLE MESSTAB WITH KEY MSGTYP = <Message Type>
                                            MSGNR  = <Message Number>.
    regds,
    Anil

  • Function module for mass changes in Scheduling agreements in 4.7

    Dear All,
    Can any one tell me the function module for mass changes in Scheduling agreements in 4.7
    Regards
    MSR

    closing question

  • QISRSCENARIO - Action Box - Adding a custom function module

    Hello Experts,
    Under the scenario ID for Performance Award in the transaction QISRSCENARIO I created a custom function module in order to exchange standard. I clicked on the follow-up Functions of the MCSP and then I type my new function module, then when I tried to save the changes I received this error message:
    The function module Z_CUSTOMFUNCTIONMODULE cannot be used.
    Diagnosis
    The function module Z_CUSTOMFUNCTIONMODULE is not suitable to be used as a follow-up function, as the interface does not contain the required parameters.
    Does anyone knows what parameters am I missing?
    Thanks in advance,
    AK

    I would do it this way..
    MCSP is delivered with HRWPC_PCR_SP_TRANSACTION_PA30 as the function module. In SE80, copy the function group HRWPC_PCR_SP_ACTIONS into a custom function group..say  Z_PCR_SP_ACTIONS. When prompted to copy the function modules,select HRWPC_PCR_SP_TRANSACTION_PA30 & name the custom object as , say, Z_PCR_SP_TRANSACTION_PA30. put your custom code inside this function module.Activate the custom function group & function module.Now got to the Action Box & replace the Std function for MCSP with your custom function module.
    ~Suresh

  • Which function module could be used to create ACTIONs in transaction

    HI,
        when we open a transaction use TCODE CRMD_ORDER, there is always a tab named 'Action'. And Which function module could be used to create a new action?
    THS!

    Hi Gang,
    I am not sure about the Function Module but ya if you access through this link i belive you will be able to create ACTION for your Transaction.
    Link:[Action|http://help.sap.com/saphelp_crm70/helpdata/en/54/238e39e1ba3541e10000000a11402f/frameset.htm].
    Let me know in case you need any more help.
    Vijayata

  • Function module find date Range input for scheduling a job

    hi i have created a program for scheduling a back ground job for  purchase order extract in that i have to get the last 7 days records when i schedule it on every sunday can any one tell me the function module which satisfies the requirment
    Date Range input in my program to be calculated for past 7 days from current date (ie from Sunday to Saturday of the week.)

    Hi,
    You can do it simply by
           v_cdate TYPE sy-datum,    " current system date
           v_cdate = sy-datum - 7.         " take date 7 days before current date
    Pass this  v_cdate in your logic
    Hope it will help you.
    Thanks
    Arun Kayal

  • Dynamic Actions with Function Module

    Hai all,
    I got a problem while doing Dynamic Actions. I want to delete a record from 0105 infotype and it is through dynamic actions using function module. All things going correct but in the database table the entry was not deleted. While debugging it was giving as deleted but actually it is not deleting in database table. I hope u help me out.
    Thanks,
    Tara.

    Hai Srimantra,
    Thanks for ur response and here iam sending the code where i used the function module. and i called the subroutine from sm30.
    I should not use any sql statements or commands to delete the records from database tabels. hope u will help me out.
    Thank u,
    Tara.
    TABLES p0105.
    *data: lw_0105 type p0105.
    TABLES: pspar.
    *&      Form  HR_INFOTYPE_OPERATION
          text
    FORM hr_infotype_operation.
      DATA: l_it_pa0105 TYPE STANDARD TABLE OF pa0105.
      DATA: l_it_p0105 TYPE STANDARD TABLE OF p0105.
      DATA: l_p0105 TYPE p0105.
      DATA: wa_pa0105 TYPE pa0105.
      DATA: l_return TYPE bapireturn1.
      break developer.
      SELECT SINGLE * FROM pa0105 INTO CORRESPONDING FIELDS OF l_p0105
      WHERE pernr EQ p0105-pernr AND
            subty EQ p0105-subty AND
            begda EQ p0105-begda AND
            endda EQ p0105-endda AND
            seqnr EQ p0105-seqnr AND
            objps EQ p0105-objps AND
            sprps EQ p0105-sprps.
      CHECK sy-subrc EQ 0.
      CALL FUNCTION 'HR_INFOTYPE_OPERATION'
         EXPORTING
           infty                  = '0105'
           number                 = l_p0105-pernr
           subtype                = l_p0105-subty
           objectid               = l_p0105-objps
           lockindicator          = l_p0105-sprps
           validityend            = l_p0105-endda
           validitybegin          = l_p0105-begda
           recordnumber           = l_p0105-seqnr
           record                 = l_p0105
           operation              = 'DEL'
          TCLAS                  = 'A'
          NOCOMMIT               =
          VIEW_IDENTIFIER        =
          SECONDARY_RECORD       =
        IMPORTING
          return                 = l_return.
          KEY                    =
      MESSAGE l_return-message TYPE 'S'.
    ENDFORM.                    "HR_INFOTYPE_OPERATION

  • ACTION - Function module /1BCDWB/SF00000003 of smartform delivered an error

    Hi
    I entered an order for a customer in eCom webshop. I next received Order Confirmation by e-mail. Then, after closing the order in GUI, I created RMA Request [Return Material Authorization]which was successfully submitted but I never got a Receipt Confirmation for that request. And when I checked in the Actions tab in the RMA Requests transaction in GUI, I can see that Confirmation action is in error status (Incorrectly Processed).
    when I click the processing log, I can see the error logs as mentioned below:
    Function module /1BCDWB/SF00000003 of smart form delivered an error
    Line type IT_SCHED_TXT is unknown.
    Action could not be successfully executed
    I don't know how to proceed further to investigate this issue.
    The smart form here used is Z_CONF_ZRRM
    Processing class: ZCL_DOC_PROCESSING_CRM_ORDER
    Processing method: CRM_ORDER_EXEC_SMART_FORM
    can any one help if you faced such kind of issue or you know the solution?
    Regards
    Pravin

    Hi Pravin,
    This seems like a problem with the custom smart form.
    I think your ABAP developers can help you in this regard.
    They might be running a loop in the smart form for i.table IT_SCHED_TXT, where the form is unable to find that i.table.
    Regards,
    Susanta

Maybe you are looking for

  • Data in r/3

    Hi ,              Let us say ive a field in r/3 its data size is 131 or so , i want to map this field to an obj in bw in my implementation project, but its nt psble in bw coz bw will not allow this 2 be mapped,and its mandatory for me map this and ge

  • Crystal Report Error "The requtest could not be submitted for backgroung p"

    Our Web applciation is using ASP.Net Framework 2.0 and Crysal Report Assembly version is 10.2.3600.0 After fetching one particular report we are getting below error "Error in file c:\windows\temp\FileName{1B044BEA-1C14-44DF-92DC-107455F949FD}.RPT The

  • Documents opened in Acrobat XI are hard to read

    I apologize for this post being in the wrong forum.  Unfortunately, Adobe did not see fit to create a forum for the most basic problems. Here is the problem:  Whenever I open a PDF with text in it, it is virtually unreadable to my eyes.  The pixelati

  • Problem re-downloading applications on nokia E71

    I installed some applications like fring,youtube,facebook.Yesterday i formatted my memory card so these applications gone,but the problem is i cant downoad again these applications from ovi store.can anybody help how to make it possible to re downloa

  • "The project has changed - do you want to save changes?"

    This is more or less a meaningless warning in Adobe Captivate 5. if I OPEN a project and close it immediately I get this warning: the project has changed. But that is not correct, I didn't touch a single slide, I simply open the file and look at it,