Custom Workflow for custom HCM form - reg

Hi,
We have a custom form designed and having a workflow for that. We have developed the workflow like any other workflow for appraisals for example or in SD. But here while test run of process we are getting error saying 'Work Item not found' though the work item is present in SWI1.
We have below steps.
Header
Importing form container
User Desicion (Approve/Reject)
If approved update database.
Can any one correct me if am wrong.
Raj

Hi,
For workflows involving HCM forms, there some standard tasks which should be made use of:
Task Group TG17900001: Components for HCM Processes & Forms
Task Group TG17900002: Interactive Components
Standard Task TS17900100: Edit Form
Standard Task TS17900101: Approve Form
Standard Task TS17900102: Form Is Edited Again by Author
Standard Task TS04000018: Process PD Form
Standard Task TS04000019: Approve PD Form
Standard Task TS04000020: PD Form Is Edited Again by Author
Workflow Template WS17900260: Save Form with Error Handling
Workflow Template WS17900404: Draft for Process Start
Workflow Template WS17900418: Forward: Process Start with Errors
Task Group TG17900003: Background Components
Standard Task TS17900106: Check Existence of PA Infotype
Standard Task TS17900107: Check Form Data
Standard Task TS17900108: Save Form Data
Standard Task TS17900110: Import Field Value to WF Cont. Element
You can use TS17900110, TS17900101/TS04000019 and TS17900107. Please make sure you read some documentation before you use these tasks.
Let me know, whether this is helpful.
Thanks,
Sukumar.

Similar Messages

  • How can I create a custom button for opening a form?

    I have a parent form having child forms. In my main form I want to create custom buttons for opening child forms. I want to use master-detail form but there are more than one child forms, and in master-detail form I can only create one detail form. So I will create a form based on a table and in that form I will call the child forms by custom buttons. Can I do that?
    Thanx,
    Gulsah.

    This can be easily done. First open up two instances of your Portal. In one window, you will need to go into your component you wish to link FROM. In the other window you will need to go into your component you wish to link TO. In the component you wish to link TO there will be a moduleid. Note this somewhere. Then, you will see an area that says: "Call Interface: Show". Click on this. (In the window you are linking to.). In this window, you will see a bunch of stuff. At the bottom you will see a URL call. This is the call you need to use. At the top, it explains each piece of the URL call. Just subsitute YOUR appropriate information into the URL call. In the form you wish to link FROM, create a button. Once you create this button, it will appear at the bottom, click on it and you will see an area to insert a Javascript. Click the onClick and insert:
    //this is the variable you want to pass from one form to the other
    get_field_name = getField(this.form,'COLUMN_NAME_IN_DATABASE');
    //this is so you can open the "child" form
    window.open('/pls/cc_prod/DAD_NAME.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=MOD_ID_HERE&p_arg_names=_sessionid&p_arg_values=&p_arg_names=COLUMN_NAME_IN_DATABASE&p_arg values='+GETFIELD_NAME+'&p_arg_names=_COLUMN_NAME_IN_DATABASE_cond&p_arg_values=%3D');
    In the fourth tab, where it says, "....before displaying form" insert the following: (This will tell the form how to handle the getField function.)
    htp.p('<script language="JavaScript1.3">
    < !--
    function getField(form,fieldName)
    var objName = "";
    var tmp = "";
    var dAction = "";
    var sel_idx = 0;
    var cnt = 0;
    var instance = 0;
    var slicedName;
    var fillData = new Array();
    for (var i = 0; i < form.length; i++)
    slicedName = form.elements.name.split(".");
    tmp = slicedName[2];
    instance = parseInt(slicedName[3],10);
    if (!tmp)
    continue;
    objName = tmp;
    if (objName == fieldName)
    return form.elements[i].value;
    //-->
    </script>');
    I hope this helps.
    null

  • Debug background task in custom workflow for PO change

    Hi,
    We are on ECC 6.0 EHP7.
    I have a custom workflow for PO object type(delegated to std object type BUS2012).
    There is a background task which has some custom code written and I need to debug this code.
    Can someone please let me know how to debug a background task?
    Thanks.

    As suggested by ronen we can debug through swo1 but we have to pass values manually for importing parameters, by using sm50 also we can do debug and there is one more way  to debug
    if its custom task change background  task to fore ground and change business object method also change it to fore ground and activate the work flow.
    now change any  po  then it will stop at that step now take that work item id in swi1 and go to swia and execute after putting break point in that method of business object.
    But best way to debug  through infinite loop i.e sm50.
    suri

  • Custom workflow for manual merch projects

    Hi,
    Having issues in configuring custom workflow.
    In ATG10.0.3 created a custom workflow(editCommerceAssets.wdl) & configured with catalog import job (importing thru spreadsheet & creating a Merch project).This works successfully.
    I am trying to configure this custom workflow for manually created projects in BCC.
    In the following files I tried replacing commonWorkflow.wdl to editCommerceAssets.wdl.
    <localconfig>\atg\commerce\web\assetmanager\taskConfiguration.xml
    <localconfig>\atg\commerce\web\workflowActivities.xml
    But getting this error in pub console:
    10:13:23,195 WARN [ActivityManager] The workflow activity with ID /Common/commonWorkflow.wdl has been registered multiple times for the same workflow. Please verify your workflow
    configuration as this is not allowed.
    10:14:40,453 ERROR [ApplicationManager] There is no application configured with ID '/Common/commonWorkflow.wdl'.
    Any recommendations?
    Thanks!
    Mani
    Edited by: user11263665 on Oct 17, 2012 9:38 AM

    It is possible that the workflow has already been registered in db before you modified workflowActivities.xml.Did you try cleaning up workflow tables and restart the server??
    epub_workflow_info, epub_coll_workflow, epub_ind_wf,epub_wf_server_id tables
    Make sure there is only one entry for each workflow in epub_workflow_info. If there are multiple entries, then it may be coming from 2 different places and you need to disable one of them. Whenever you create custom work flow, copy the existing workflow and modify it and give it a different name. If you are importing programmatically, you really dont need to configure it in taskConfiguraiton.xml ( as it corresponds to settings related to which item-descriptors, tabs, security in BCC gui).
    -karthik

  • Starting a workflow for a PCR form

    Hello,
    We installed the MSS business package. I would like to know how to start a workflow for a PCR form (example: Request for Promotion). The workflow just needs to be simple one step approval from manager.
    What configs are needed in SPRO or elsewhere?
    Thanks,
    Rob.

    HI,
    You can use transaction QISRSCENARIO for that and the IMG path is below -->
    Cross Application Components>Internet/Intranet Services>Internal serive request--> Define Scenarios.
    Now Select the scenario and then click the display button.If you are using JSP in frontend then click the additonal data for scenario. Here you will find the WF.
    Or you can call the WF in your custom program also.
    Thanks & Regards,
    Sandip Biswas

  • Custom iterator for custom list.

    I'm trying to write a custom iterator for custom linked list. What I don't understand is, whether the iterator should be in the link(node) inner-class or in the linked-list outer-class.
    I seem to be getting errors in the outer-class, but in the inner-class it compiles fine. Whether or not it works is another story.
    The code below is without errors in eclipse, however it doesn't make much sense to me to have the next() and hasNext() methods in the Node when the Iterator needs to iterate the list.
    import java.util.*;
    public class OctoList<T> extends AbstractCollection<T> implements Iterable<T>
        // Inner Class
        private class Octo<E>
            // Octo will be a Node with 8 elements not including size, and links.
            public Octo<T> next()
              if (!hasNext())
                throw new NoSuchElementException();
              current = current.next();
              return current;
            public boolean hasNext()
              return (current.next() != null);
        // outer class
        private Octo<T> head;
        private Octo<T> tail;
        private Octo<T> current = head;
        private final int ARRAY_SIZE = 8;
        @Override
        public Iterator<T> iterator()
            return null;
        @Override
        public int size()
            return 0;
        @Override
        public boolean isEmpty()
            return size() == 0;
    }

    Gcampton wrote:
    I'm trying to write a custom iterator for custom linked list. What I don't understand is, whether the iterator should be in the link(node) inner-class or in the linked-list outer-class.In the list class. After all, you're iterating a list, not a node.
    I seem to be getting errors in the outer-class, but in the inner-class it compiles fine. Whether or not it works is another story.Then you'll have to fix those errors so it both compiles and works as intended.
    You can create the iterator as an inner class in the list.

  • Custom Workflow for sending Remainder mail in MS CRM 2013/2015 online

    Hi All,
    We have a requirement to send a remainder email before 5 days,3 days and on the same day of the M/TC date in lead form. To achieve this we tried using Custom Workflow. Below is the logic tried but in the highlighted line
    not able to retrieve the "M/TC date" value, this results in no output.
    Kindly suggest where we are going wrong or a best approach to do this.
    Parameters:
            [RequiredArgument]
            [Input("InputEntity")]
            [ReferenceTarget("lead")]
    public
    InArgument<EntityReference>inputlead
    { get;
    set; }
            [Output("TaskCreated")]
            [ReferenceTarget("task")]
    public
    OutArgument<EntityReference>
    taskCreated { get;
    set; }
    code:
                try 
                Entity lead
    = (Entity)service.Retrieve("lead",
    context.PrimaryEntityId, new ColumnSet(newString[]
    { "new_mtcdate" })); //  (unable to
    retrieve the mtcdate)            
                      Guid leadId
    = this.inputlead.Get(executionContext).Id;
                    if(lead.Contains("new_mtcdate"))
                      {  DateTime date
    = DateTime.Now;
                          DateTime mtcdate
    = (DateTime)lead["new_mtcdate"];
                          TimeSpan elapsed
    = date.Subtract(mtcdate);
                          double days
    = elapsed.TotalDays;
                          Entity task
    = new Entity();
                          task.LogicalName = "task";
                          if (days
    == 5)
                          {task["subject"]
    = "Five days more for the Meeting";
                              task["regardingobjectid"]=new EntityReference("lead",leadId);
                               Guid taskId
    = service.Create(task);
                            this.taskCreated.Set(executionContext,new EntityReference("task",
    taskId));}
                          if (days
    == 3)
                          {task["subject"]
    = "Three days more for the Meeting";
                              task["regardingobjectid"]=new EntityReference("lead",leadId);
                               Guid taskId
    = service.Create(task);
                            this.taskCreated.Set(executionContext,new EntityReference("task",
    taskId));}
                          if (days
    == 0)
                          {task["subject"]
    = "Today you have Meeting";
                              task["regardingobjectid"]=new EntityReference("lead",leadId);
                               Guid taskId
    = service.Create(task);
                            this.taskCreated.Set(executionContext,new EntityReference("task",
    taskId));
    Regards, Rekha.J

    Hi,
    Try with replacing
    Entity lead = service.Retrieve("lead", context.PrimaryEntityId, new ColumnSet(new string[] { "new_mtcdate" }));
    also make it confirm, you are getting EntityId.
    Also check  Link

  • Custom workflow for Fiori Approve Timesheets

    Hello All,
    I am investigating complexity of adding custom workflow to Approve Timesheets.
    There is BADI SRA010_BADI_TIMESHEET_APV.
    Any experiences/advices  ?

    Hi Lukasz,
    How do you change approver using data from Ztable in the current system?
    If you are talking about workflow approver determination logic, it is a job for Workflow Engine and not for Fiori.
    Regards, Masa
    SAP Customer Experience Group - CEG

  • Custom Workflow for User Requirment

    hi ,
    i am creating a workflow for which is custom .
    i have 1 module pool program where i have 7 fields.
    User can create the data and save it .
    once he save the Data the workflow should trigger.
    i have created a Z business object wherein i have created 4 key fields and 3 attributes according to data in the custom table
    the BO has no supertype. and created 1 event save
    now my question is where should i write the code for triggering the workflow on the save of the entries in the module pool program. and i am also i am responsible for showing the approver in the table after the decision is taken in workflow activtiy
    please suggest
    Thanks on advance
    Chitis

    Hi,
    Even i haven't worked on such requirement.
    I know how to trigger a workflow or start a workflow through customization.
    But i like to know in case of module pool programming where I am supposed to write the code?
    Whether in PAI or PBO or anywere else?
    Let us know.
    Thanks,
    Raj

  • Custom Workflow for Shipping Execution

    Hi All,
    We have a requirement to cater approval on issuance i.e. at the time of shipping execution. For this purpose we have used Oracle Workflow Builder to cater the requirement. The workflow is working fine for approval but not for rejection. If we approve the shipping execution, the transaction is working fine but if we rejects it, the shipping transaction got stuck with exception and if we resolve the exception manually, we are unable to re send it for approval or even shipping.
    I will be grateful if anyone can help me out and advise me on how to setup of workflow for rejection.
    Thanks in advance.
    Regards,
    Zulfiqar Ali Mughal

    It is possible that the workflow has already been registered in db before you modified workflowActivities.xml.Did you try cleaning up workflow tables and restart the server??
    epub_workflow_info, epub_coll_workflow, epub_ind_wf,epub_wf_server_id tables
    Make sure there is only one entry for each workflow in epub_workflow_info. If there are multiple entries, then it may be coming from 2 different places and you need to disable one of them. Whenever you create custom work flow, copy the existing workflow and modify it and give it a different name. If you are importing programmatically, you really dont need to configure it in taskConfiguraiton.xml ( as it corresponds to settings related to which item-descriptors, tabs, security in BCC gui).
    -karthik

  • Approval process workflow for Customer XBO

    Hi experts,
    We have a client requirement which asks for multilevel approval process for Accounts (when a new Account is created/ existing Account is changed). As per my knowledge, there is no standard approval process defined for Customer XBO as of now by SAP.
    Also, if the Account creation/modification is 'Rejected' by any manager, then how will the Account be reverted back to its original version? (kind of a rollback)
    I had raised an incident for this asking the SAP team whether they will be adding any approval processes for Customer BO in the near future C4C releases. But they do not have any plans of implementing it sooner.
    They suggested a workaround as follows:
    Add 1 extension field "approval status code" in Account with code values:
    1 - To be approved by L1 manager
    2 - Approved by L1
    3 - Approved by L2......etc for more levels of approval
    Reverting 'Rejected' Account to previous state is not possible via PDI. In principle you would have to read the changehistory data and revert to the state before the change was done. But the changehistory BO is/will not be PSM released.
    Any workaround or suggestions on how can I go about implementing this requirement? I need to put validations like L2 can approve only after L1 approval.
    Please guide and help.
    Thanks,
    Ambuja Prabhudessai
    Persistent Systems Ltd.

    Hi,
    why don't you create a screen from which user will create or modify the accounts. after submitting the custom screen , you should start the approval process, once all the approval is done, create or modify the account in SAP.
    Regards.
    Sanchari

  • Finding custom prices for customer based on district (abap-query).

    Hello.
    I can find in table A601-BZIRK the District-number, which i also can find on the customer in BP in CRM (we have both CRM and ERP).
    I want to make a query in SQ02, where i enter the customer-number, and gets the list of materials they have custom prices for, based on the district number.
    Sorry bad english. Tell me if there is something more you need to know
    Points will be awarded.
    Thanks.

    Hi,
    The answer to your query is 'Yes'. You need to design a 'UPDATE' metadata type custom integrator. The custom integrator shall use a parameter based view to first download data and then use a PL/SQL wrapper/API to re-upload it back. The brief steps are listed below:
    1. Create a 'UPDATE' metadata type custom integrator. Give a parameter list name, std/custom view for data download and a PL/SQL wrapper.
    2. Create a form function and associate the form function with the custom integrator created.
    3. Add the form function to the std WebADI menu for access.
    4. Define a layout for the custom integrator defined.
    4. To create a parameter use the standard integrator 'HR Standalone Query'. As a part of this integrator you can define the SQL WHERE clause (parameter based) that you will like to use with the custom/std view defined in the custom integrator definition.
    Note: You can use a max of 5 parameters only. For each parameter, one needs to define the datatype and also the HR standalone query has a size limitation of 2000 chars in 11i10. You increase this length you may apply patch - 3494588 to get 4000 chars.
    Hope this information helps.
    Thanks,
    Nitin jain

  • Custom command for custom XMP metadata

    Hi
    I'm trying to create a custom command for setting and getting custom XMP metadata using InDesign CS3 SDK with Xcode.
    I think I got the step 1) to 3) ok. But not so sure about step 4).
    Please take a look and tell me if I have got anything wrong.
    1) Create 2 classes and 1 interface
    MyCustomMetadata
    MyCustomMetadataSetCmd
    IMyCustomMetadata
    2) Define class definitions in the resource file
    /** Boss class for kMyCustomMetadataBoss */
    Class
    kMyCustomMetadataBoss,
    kInvalidClass,
    IID_IMYCUSTOMMETADATA, kMyCustomMetadataImpl,
    /** Boss class for kMyCustomMetadataSetCmdBoss */
    Class
    kMyCustomMetadataSetCmdBoss,
    kInvalidClass,
    IID_ICOMMAND, kIQAdTicketMetaDataSetCmdImpl,
    IID_IMYCUSTOMMETADATA, kMyCustomMetadataImpl,
    3) Define functions for setting and getting values in MyCustomMetadata
    GetMyTitle()
    SetMyTitle()
    Within these functions, use IMetadataAccess interface to set/get values.
    4) Create Do() function in MyCustomMetadataSetCmd
    ??? I'm not sure what I'm supposed to do here ???
    Any help would be really appreciated.
    Thanks,
    JP

    m41miller42 wrote:
    I am attempting to create a custom RSS file (.mrss) that references XMP metadata from Premiere.
    I was basing the move on this statement. This was posted in the Adobe Connect forums.

  • SORT butttons on custom screen for custom fields

    Hi all,
    I have a dedveloped a custom screen in which there are 5-6 fields.Nowi need to put Sort buttons below these fields so that I can sort these fields.
    How do i do this???Is there std FM i can use to achieve the sort functionality?

    Hi Rob,
    I dont have a table control in which I have the custom fields.The custom fields are placed in a subscreen within acustom tab in standard screen in tcode VL31N. as shown below:
    Plant:
    Carrier:
    Bill of lading:
    Packaging list:
    Damage
    Now below these 5 fields ,I need to display the 2 SORT buttons/icons to change the display in ASCENDING OR DESCENDING  order.
    How do i do this???Is there any std FM ?

  • OAS Custom Help For Web-Enabled Forms

    Anyone had experience implementing a customized help system into Web-Enabled Forms running on OAS. Regular Oracle Forms can display a help system using a specialized Oracle Form D2KHMain.fmx or using WinHelp with the library D2KWhelp.pll. Will either of these work when running the Forms on the Oracle Application Server? Java Help has been suggested? Any documentation would be helpful? Thanks.

    do the following:
    1. write a java program that read from the registry. you will use the program as a javabean later on.
    2. compile the source and create a class/jar
    3. sign it (goto sun site for details on signing class/jars). you must sign the java program or it will not be able to have access to the registry. make sure you do all the steps by following sun's instructions.
    4. put it on your web server and modify the html file you use to start your developer application to include your class/jar.
    5. oracle has some demos on attaching javabeans to forms. use them to help you.
    6. use the program you wrote in step 1 as a javabean in your forms.
    Yossi

Maybe you are looking for

  • Can my iPhone or iPad be keylogged without ever being connected to a computer?

    Can my iPhone or iPad be keylogged without ever being connected to a computer? I have tried using my iTunes on both and everytime i go and i try to log-in with my apple id it will not allow me to.  Says my password is incorrect when i know it is corr

  • Problem replicating catalogs in CRM Internet Sales/E-Commerce 5.0

    Good afternoon !         We have CRM 5.0 SP 8, and we are using the CRM E-Commerce 5.0(also called Internet Sales) to b2b, and, we are experiencing problems during the replication of the Catalogs from the webcatalog url.         When we try to do a f

  • HT204154 MBP to Samsung HDTV no picture

    Hi, I have a MBP8.3 OSX 10.9.5. I try to connect to a Samsung series 5203 LED TV as an external second display using a Minidisplayport/thunderbolt to HMDI adapter/cable. The MBP recognizes a Samsung device, but no picture. The Samsung recognizes a wi

  • How do you know if your SIM card is an NFC capable card?

    I recently had to get a new SIM card, but I didn't pay attention to know if it was an NFC type card. Is there any way to find out via MyVerizon account or with the SIM card number itself?

  • RRI and performance

    I've a problem with RRI. The time that a WAD template report loads takes too long. I've checked it and it's not a problem of query runtime. the problem is that the source query sends too much information to the destination query. I want to control th