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

Similar Messages

  • Approval workflow for external requirement

    Hi,
    My company already implements Project System and Plant Maintenance, in which we generate PR from those modules, and the PR will be subject to release strategy.
    At the moment we want to implement SRM 7.0 and we're planning to use Plan Driven Procurement scenario for the requirement generated automatically from PS or PM. As we can have a release strategy for PR generated from module PM and PS, can we have approval workflow for external requirement in SRM?
    Josh

    Yes you can but not by standard (Since itu2019s not out of box functionality), on the other hand itu2019s real simple to do an RFC call to your external system and get the agentu2019s information...
    All SRM need is only agent ID (User ID) to which the work item need to be assigned...
    We too have same scenario i.e. business want to use R/3 release group determination which they have already... we implemented it and working real good...
    Let me know if you have any questions...
    Thanks!!
    Bharath

  • 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

  • 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 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.

  • 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

  • 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

  • Workflow for User Creation

    Hi
    I would like to implement the Work Flow for User Creation, i.e.whenever the admin creates the user id, it should go to manager for approval and after that it pwd should be delivered to the respective user.
    Can any one guide me on how to implement the same. Also I would like to know the use of customisation under Set Approval Indicator in IMG settings.
    Suitable points will be awarded.
    Regards,
    PKM

    Hi,
      Pls refer the foll link:
    http://help.sap.com/saphelp_srm40/helpdata/en/5a/af5f0b85d011d2b42d006094b92d37/content.htm
    BR,
    Disha.
    Pls reward points for useful answers.

  • How to create custom workflow for document library?

    Hi All,
    I have a document library with a custom  people picker column "assign to". Need to create approval workflow using designer, approval must send to person who is selected in "assign to" column. I tried with designer workflow,But finally
    facing "The e-mail message cannot be sent. Make sure the e-mail has a valid recipient". How to fix and achieve my scenario? Thanks in advance!

    I would suggest you to firstly print the assign to value using "Log to history" action. Moslty it could be of three reasons,
    1. Assign to value is not getting populated correctly in your SPD workflow
    2. Email server is not configured properly, If alerts and other emails are workfing in your server then this would not be a reason for issue
    3. The user your trying to send an email does not have valid email
    do let us know if can get the user email in your workflow.
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if the reply helps you

  • Create an Approval Workflow for User Creation in AD

    Hi
    Anyone, tell me how to create an approval workflow to create users into AD. For example, before provisioning user into AD resouce the request should go to the Manager of the user for approval.
    P.S: I am using OIM 9.1
    Thanks
    Sireesha

    Hi Sireesha
    You want to create a new Process definition, selecting "Approval" as the process type.
    Then associate it with the AD User Resource Object. Add a "Manager Approval" process task and use a Task Assignment Adapter to to assign the task to the manager of the request target.
    In order for the Approval Process to fire, you need to ensure that you provision the AD User Resource Object via a Request, rather than directly.
    HTH
    Cheers
    Rob

  • Custom workflow for course registration

    Hi,
    I have an assingment to create list where items are courses and when new item is created you can give max participant value. List and columns are ok. (max participants(integer), current participants(integer), open/closed(choice), all participants(text)
    So this is what I want to do with workflow:
    When someone wants to join the course, person will click "Join course" button
    workflow starts and it will add +1 to 'current participants'
    workflow adds display name of person to column 'all participants'
    if 'current participants' is same as 'max participants' then course will change 'closed'
    I can use SP designer with workflow 2010 so is this impossible?
    I have possibility to use visual studio 2010 but i'm not very familiar with C# workflows.
    My biggest worries are that
    how to store all participants to one column (multiline text) with workflow
    how to display participants column only to admin users.
    Thanks for any help/suggestions.
    Antti Astikainen

    Hi Antti,
    I have done similar project in past and used only SharePoint Designer. Yes it is very much possible using SPD.
    how to store all participants to one column (multiline text) with workflow
    >> Maintain a multiline text column as you assumed and then just do
    attendee = CurrentItem:Attendee +";"+attendee
    how to display participants column only to admin users.
    >>   you can hide this column from default view or maintain a different list where course name(lookup)
    and this attendee (multi line) will be saved. You can add this multi line in master course list as well (depending on your design)
    Using SPD workflow you can update same list item / different list item / and it has many other action.
    For 'State Machine workflow' you may need VS.
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • Using customer workflow for delete action on active sync

    The following from is called by a partent form when the feedOp is delete.
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE Configuration PUBLIC 'waveset.dtd' 'waveset.dtd'>
    <Configuration name='VDSActiveSyncDeleteForm' wstype='UserForm'>
         <Extension>
              <Form>
                   <Field name='viewOptions.Process'>
                        <Expansion>
                             <s>Custom User Delete</s>
                        </Expansion>
                   </Field>
                   <Field name='deleteFields'>
                   <Field name='resourceAccounts.currentResourceAccounts[Lighthouse].selected'>
                   <Expansion>
                   <s>true</s>
                   </Expansion>
                   </Field>
                   </Field>      
              </Form>
         </Extension>
         <MemberObjectGroups>
              <ObjectRef type='ObjectGroup' id='#ID#Top' name='Top' />
         </MemberObjectGroups>
    </Configuration>
    The default delete user workflow keeps running. I am verify this by setting the filetrace in the system configuration.
    What am I doing wrong?

    Looks like 'viewOptions.Process' does not work on a delete feedop....but this looks to work
    <Field name="processInputs.task.process">
    <Expansion>
         <s>NIPR Delete User</s>
    </Expansion>
    </Field>

  • Custom workflow for Over Time

    Hi All,
              I have a requirement for Over time workflow. There is no standard workflow is there for this. FC asked me to develop a screen for over time in which Reporting manager will enter the employees overtime details, when he clicks on submit button it should go for approval to DGMs inbox. If DGM approves the OT then it go for Time office where they may change the OT data or they may approve the OT.
    My issue is I have created the entire flow through modulepool. I have developed the screenand program etc.,. when RM submits I am triggering an event and then WF starts. Now when the DGM receives the workitem how can I display the second screen which are having the approval Rejection and Change buttons appears, how can I write the logic inside the BO Method to call the 2nd screen?.
    Can anybody please guide me how to complte this WF.
    Regards.
    Srija.

    Hi,
    We also had the same requirement, we handled the same using Module Pool Programming and Workflow.
    My Understanding: Imagine you need to call the Module Pool program to get approval for the OT.
    Steps:
    1. Place one work item in DGM's Inbox, when DGM double clicks the work item, write a method to call the same module pool in display or Change mode as per your requirement.
    2. Now, in Step 1 use Import / Export Memory ID's.
    In BOR Object Method, before doing CALL TRANSACTION <ZXYZ>. You need to Export one Memory ID say M1 with value "X"
    In PAI of the appropriate module pool screen you need to IMPORT data from Memory ID into one variable say WS_M1.
    3. Create two buttons on the screen keep them in invisible mode, (just check the property of the button element).
    Now, write the code like IF WS_M1 equal to 'X', loop at screen, and make the two buttons visible, if control coming from workflow task, if there are more elements to control it is easy to use groups for screen elements.
    4. Now, in PBO of the same screen, capture the ok_code of the Approve or Reject button, raise appropriate events, update data base.
    5. Make sure your BOR method is asynchronous, other wise if the manager clicks cancel or F3 then task will disappear.
    Pls let me know if you need more info.
    Regards,
    Mohan Vamsi

  • Customizing form for user submitted content {tag_edit}

    Hi,,
    I have a Webapp with a few custom fields which can be filled by logged-in customers. These customers see all their submitted items on a certain webpage with two links: Edit and Delete. The tags {tag_delete} and {tag_edit} are connected to the links. The delete tag just deletes the item, but the edit tag leads to another page, where the customer can edit the webapp by editing form fields.
    Problem: at this certain page, the form just shows the item name and item description, but no other fields to edit. How can I customize this form to show all fields, so the customer can edit them?
    Dennis

    OMG, just found the button "edit template" right beside "list template" and "detail template" which lets me edit exactly the form I was looking for. Sorry for wasting time...

Maybe you are looking for

  • How to create a file in memory and then store it in database

    Hi Guys, I'm wondering how could i create a file such a plain text or css styleshhet in runtime and then store this file in the database. I need to save them in the database cause the application doe not have write permission to filesystem. Is that p

  • Disable JTable Column dragging?

    How do you disallow the user from moving the order of your columns in a JTable? They are able to select data within the column, but I don't want them to change the order of the columns (drag and drop the columns). Thanks for any help/suggestions in a

  • Problem with Popup window in BDC

    Hi Gurus, I have an SHDB record for transaction VA01 that is called by an ABAP code via "CALL TRANSACTION 'VA01' USING bdc_tab mode 'N' update 'S'". It does work when I use the 'A' mode, but when I use 'N' mode it shows an error that can't find a win

  • Deserializing error in EJB

    When connection from DataSource ("jdbc/OracleCoreDS" or "jdbc/OracleDS") is used in EJB, the following messages are output on the oc4j console (One error message per one jdbc access). Is there any not-serializable object in com.evermind.sql.OrionCMTC

  • Re downloading Indesign

    Hi I upgraded from a mac mini to an imac. I migrated all my software over but now Indesign asked for a re-install. Have uninstal;led the old creative cloud version, but when I try to download  Adobe site tells me I am up to date. What should be my ne