Call MDM Workflow for Item Record

Hello,
We are implementing MDM 7.1 on Portal and want to trigger MDM Workflow through Webdynpro Java when a user edits a record for Item and clicks on 'Save'. I have captured the 'Post Save Event' in Webdynpro Java and received the Record Id of the Item being edited.
Now I want to execute the Workflow based on the RecordID. Can somebody send me the code for the same for connecting to the MDM Repository and starting the workflow for the Item record.
Any help would be highly appreciated.
Thanks

Hi,
Please refer the SAP MDM Portal Content Development Guide - http://help.sap.com/saphelp_mdm550/helpdata/en/45/c87d0243e56f75e10000000a1553f6/frameset.htm
You can check the section - Connecting with the repository using System Object.
If you are using MDM workflow on Portal then refer this guide -
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/902a77c2-9bf7-2c10-7f83-df61e131e770
Thanks,
Shambhu.

Similar Messages

  • Execute workflow for a Record in MDM thorugh Webdynpro Java

    Hello,
    I am creating a Webdynpro Java Application to listen to the Save event on the Item Edit iview through Eventing, the application is called on that event and RecordID is fetched in the code.
    Now I want to trigger the workflow for that Record being edited using the Record ID.
    How can I achieve the same using the MDM Java APIs?
    Any help would be highly appreciated.
    Thanks.

    Hello,
    I am using the following code to execute the Job for the Workflow :
    LaunchWorkflowJobCommand LWJC = new LaunchWorkflowJobCommand(connections);
    LWJC.setSession(session);
    WorkflowJobId WJID = new WorkflowJobId(wfjc.getWorkflowJobId()); // where wfjc is of Type CreateWorkflowJobCommand
    LWJC.setJobId(WJID);
    try
    LWJC.execute();
    catch (CommandException e)
    e.printStackTrace();
    return;
    but at runtime it gives me the following exception :
    com.sap.mdm.internal.protocol.manual.ServerException: Illegal value for parameter
    Please help me on why this exception is occuring .
    Any help would be highly appreciated.
    Thanks.

  • Automatic start workflow for ALL records

    Hi Experts,
    Does anyone know a way to start workflow automatically for ALL records without human interference?
    I want to start workflows every day. For instance to recalculate, re-validate, re-assign or syndicate ALL records of a table.
    Kind regards,
    Job Jansen

    Hello Job Jansen
    I suppose recalculate and validate all recodrs once a day don't make sense when that records is the same
    and records wasn't changing
    However, you can use Autolaunch = Threshold with Max Time = 24 hour(for example)
    workflow will fire when Max Time say greater then time last launched job.
    And few another ways:
    1) you can use task sheduler for launch import manager and turn autolaunch workflow when it do import
    2) turn automatic import process(MDIS) once a day and use workflow for add records
    3) developed Java application which used MDM JAVA API for start workflow
    Regards
    Kanstantsin

  • MDM Workflow for Exceptions

    I have read about the Checkout/Workflow config for imported MDM records, but I cannot find an answer to the following query. 
    Can I create an MDM workflow when MDIS import files fail (go to Exception directory)?  I would like to notify a user that there is an import exception and tell them some details about why it failed.
    Thanks,
    Keith

    Hi Keith
    this is not possible using MDM workflow for the reasons rightly explained above.
    Instead the users can see the import logs and find out which records failed to import. if you are importing manually without MDIS.
    for more details on error handling for records failed to import using MDIS refer to the link below:
    Re: Records goin to exception folder with "Ready to Import" status
    best regards
    Ravi

  • Count for item records reaches 999 the second idoc gets triggered!

    Hi Experts,
         I have an issue. Sender is file and receiver is idoc with a header and item  level records. Only one header and n number of records can be there.
    Now we want to make  this way that as soon as the count for item records reaches 999 the second idoc gets triggered.
      Hints / Solutions Pls.
    Regards,
    Arnab .

    incorporate mapping logic such that for every 999 item records create new IDoc node
    check with this UDF for IDoc node mapping, item records will be input to UDF
    int count = a.length;
    int k=999;
    result.addValue("");
    for(int i=0;i<count;i++)
          if (i>=k){
              result.addValue(""); // if records > 999, add IDoc node
              k=k+999;     
    Do rest of the mapping accordingly

  • PR workflow for item level release (stock and non-stock)

    Hello gurus,
    I am not getting the agents.!!
    I am creating a workflow for pr( item level release)..and using standard wf WS00000038 for this, as the standard wf contains the simple release procedure  only but i have to add some custom steps to it, so i have copied this wf as custom wf .
    In this wf i have to fetch the agents based on the "stock" and "non-stock items".
    so i have maintained strategies and release code like:
    i have maintained two strategies W1(non-stock) and W2(stock)..and release code for W1 are P1 and P2..here P1 i have given for my first level of approval and P2 for second level of approval.
    The release code for W2 are P3 and P2..first level is P3 and second is P2.
    so what i have did in a workflow , started with a condition step where i have given "releasecode = p1".. if yes than than it will go for getting approval from p1 , in this activity i am using  standard rule 157.
    The main thing is  1). i am not getting how to fetch agents using standard rule. 2)and how and where to define next level of approval for both stock and non-stock.
    means by using condition step in the starting i am dividing workflow in two parts stock and non stock but how to proceed next.
    i am really confused. should i use rules or write my own methods. please if anybody has gone through the same scenario than please suggest some points. i will really appreciate the help.
    Kind Regards.
    Himanshu

    Hello HIM Joshi !
                       Include the task TS00007986 and all its branches and  in a loop and loop around it for two times.When the loop goes for the first time, it should pick the first agent and during its second iteration, it should pick the second agent.
                       To accomplish so, In the same loop, but before the above task , include a background task which should populate the agent ids depending on stock and non-stock details and pass it to the the task  TS00007986
                       That's all.
    Regards,
    S.Suresh

  • Calling Stored Procedure for Multiple records

    Hi,
    I have an use case where I have more than 2000 item and for every item I need to fetch around 70 more values as out parameters. Also i need to show all thoes values on UI.
    So calling SP in loop is a problem as I can see the rendering the values and it's very slow.
    Can anyone suggest better way to handle this case?
    -Ajit

    Hi...
    I don't know about the function you have written but...
    Procedure will be created like following
    Take an example: i want to create a procedure to take only first letter from the city of City column.
    For this...
    1). Create a physical table manually under the schema folder.
    2). Give the name and select Table Type as "Stored Proc".
    3). In "Default Initialization String" field, you should write the query saying "select substr(city,1,1) as Col1 from Regions". In query Col1 is the alias name i have given for the new column. (Click OK)
    4). So, now this column should be part of the table newly created. So create a physical column under this newly created table with "Col1" name.
    5). Double-click the column and specify the data type of that particular column. (This should be done otherwise you can't move it to BMM layer)
    6). Now you can add this table to BMM layer by performing necessary joins w/o any errors or warnings. (This would be depending on your business requirement, for this some times you need to add keys also to the procedure to perform the joins and all)
    7). By adding it to the presentation layer, in answers you can watch the results..
    NOTE:
    1). While writing the function names in Stored procedures, DB you are using is important. Because, functions will vary between the DB's.
    2). Column name of newly created should match with the name you specified in the procedure as alias.
    3). If you are retrieving 'n' no. of columns from the procedure then you need to create 'n' no. of columns manually.
    4). For physical columns created manually, you need to specify the data type according to the type of data it's retrieving.
    It may helpful to you in achieving your requirement. If not sorry... but i am sure it's helpful to you...
    mark as helpful if it's helpful else mark as correct if correct ;)
    Thanks & Regards
    Kishore Guggilla

  • Workflow for Maintenance of records

    What is the best practice for MDM workflows for Product Master data maintenance?  This is specifically about manual vs automatic workflow trigger. 
    Automatic Trigger - As and when record change, workflow trigger.  No Need for people to go manually and initiate the workflow.  Easy for user(s) to maintain.  But with this, we will loose the functionality (Compare from original Records) as records change happen before trigger.   We never know what changes made in user friendly manner.
    Manual Trigger - Item needs to be attached manually to maintenance workflow.  User needs to know about this step and have this additional work.  This will not work, if somebody is changing record on portal.  But this way, we will use the functionality for (Compare from original records) as record change happen after workflow trigger. 
    Any suggestion?

    Hi Rt,
    If you compare Automatic Importing to Manual importing.
    Automatic will be the prefered option as any business process will prefer Automation over manual due to serveral reasons some of them being lesser manual error,Less time better efficiency etc.
    If you have a set of say 1 million records and in a delta import process say 10000 records gets changed.If you wish to run a maintainence workflow on these 10000 records mnaully will be a hectic and tedious task.
    On the other hand if you have set the trigger to automatic trigger action for record update.Automatically these updated records will move to the workflow.
    If you really wnat to keep a track of the updated records you can try using one of the below strategies:
    - Enable change tracking wherein you will be able to view the old value and new valueof the changed records.
    Kindly refer the below link:
    http://help.sap.com/saphelp_mdm550/helpdata/en/45/c7b20339ee570ae10000000a114a6b/frameset.htm (change tracker)
    http://help.sap.com/saphelp_mdm550/helpdata/en/45/c87d0243e56f75e10000000a1553f6/frameset.htm (Change Tracker Configuration)
    - Use a time stamp field which will get updated everytime a records gets modified for a particular field.
    Hope It Helped
    Thanks & Regards
    Simona Pinto

  • How to set the conditions for item deletion approval workflow?

    Hi,
    I have created approval workflow for item modifications ie, when user try to modify an item, it will send a mail to Project Manager. For that I set the conditions in Change the behavior of the overall task: 1. When the task process starts 2 . When the task
     process completes .
    Change the behavior of the single task: 1.when a task is Pending.
    [I followed this https://www.nothingbutsharepoint.com/sites/eusp/Pages/5-Steps-to-Enhance-SharePoint-2010-Approval-Workflow.aspx ]
    My Requirement is that I want to set this same workflow for the scenario: when the user deletes an item it will send a mail (intimation mail for item deletion) to Project Manager. here i dont want to send modification mails when user deletes an item.
    When user modifies an item: 1. intimation mail, 2. Approve/Reject mail 3. intimation for approval / rejection mail.
    When user deletes an item: 1. intimation mail.
    How can we set it in one approval workflow?? where i have to set the condition for sending either item modification mails or deletion mail.
    Thanks,
    Praveen ji

    Hi,
    According to your post, my understanding is that you wanted to start approval workflow when item deleted.
    You should first make some changes to trigger the workflow when you delete the item.
    You can use the Event Receiver to achieve it.
    In order to trigger workflow on item delete you need to create event receivers and from event receiver call the workflow already attached with list.
    http://ravendra.wordpress.com/sharepoint-workflow-on-list-item-delete/
    You can also create custom action to start the workflow, you can refer to the following article, then modify the workflow as your need.
    http://blogs.sharepoint911.com/blogs/jennifer/Lists/Posts/Post.aspx?ID=50
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Max number of records in MDM workflow

    Hi All
    Need urgent recommendations.
    We have a scenario where we need to launch a workflow upon import of records. The challenge is source file contains 80k records and its always a FULL load( on daily basis) in MDM. Do we have any limitation in MDM workflow for the max number of records? Will there be significant performance issues if we have a workflow with such huge number of records in MDM?
    Please share your inputs.
    Thanks-Ravi

    Hi Ravi,
    Yes it can cause performance overhead and you will also have to optimise MDIS parametrs for this.
    Regarding WF i think normally it is 100 records per WF.I think you can set a particular threshold for records after which the WF will autolaunch.
    It is difficult to say what optimum number of records should be fed in Max Records per WF so I would suggest having a test run of including 100/1000 records per WF.Import Manager guide say there are several performance implications of importing records in a WF,so it is better to try for different ranges.
    Thanks,
    Ravi

  • How to send records to the MDM workflow using Java APIs

    Hi All,
        Using Java APIs i want to send group/single records to the backend MDM workflows for further processing. Can this be acheived? Please provide me with some code samples if you have any
    Regards
    Suresh

    Hi,
    Just go through this URL
    https://help.sap.com/javadocs/MDM/current/index.html
    In this <b>com.sap.mdm.workflow.commands </b> will Provide u commands for managing workflows.
    I hope this helps you.
    Regards
    Nisha
    Message was edited by:
            Nisha Lalwani

  • Trigger MDM Workflow in Webdynpro

    Hello,
    I want to execute a MDM Workflow from Webdynpro using Java API's. I have the WorkflowId,session Id and the RecordId in the Webdynpro. Can somebody please send the code for the same.?
    Any help would be highly appreciated.
    Thanks.

    Hi,
      Check the pdf at the below link.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/600333e0-9bf7-2c10-1f99-bf5dcf661949?quicklink=index&overridelayout=true
    Try using this code for calling MDM workflow:
    RetrieveWorkflowTasksCommand task_command = new RetrieveWorkflowTasksCommand(connections);
    task_command.setSession(sessionId);
    task_command.setTableId(new TableId(1));
    try {
    task_command.execute();
    } catch (Exception e1) {
    // TODO Auto-generated catch block
    e1.printStackTrace();
    //Retrieving the tasks after execting the command
    WorkflowTask [] task = task_command.getWorkflowTasks();
    for(int i = 0 ; i < task.length ; i++)
    WorkflowJob job = task.getJob();
    job_id= job.getId();
    System.out.println(job_id.getIdValue());//This is will give the Job ID of all the workflows in MDM.
    Thanks
    Pawan

  • Lead to Oppy Method call or Workflow

    Hi All,
    When shall we use the option of method call and workflow for automatic creation of Oppt from lead.
    We can use method call and also workflow for  it. but whats the pros and cons of these two methods.when do we use what.
    Sanjana

    Hi Sanjana
    The correct (and customizable) way to do so is to use the so-called post processing framework (PPF), which exists in CRM only. In transaction sppfcadm you can define an action profile with an action which calls a COPY_DOCUMENT and passes as a parameter the opportunity process type. You then have to define a start condition (e.g. qualification status = hot) and a planning condition (e.g. status = closed) and then it runs automatically.
    Please also have a look at the existing examples for the opportunity sales methodology, in standard customizing there is something similar set up between activities and opportunities.
    Regards, Kai

  • Using MDM workflow modeller MS Visio

    Hi
    Is there any document / blog / help document on using MDM workflow for different usecases.
    I can build simple workflows using MS Visio, but am looking at docs which has some complex use case examples.
    Any idea if any such are around.
    Thanks
    Dilip

    Hi Dilip,
    You can refer the below links they are helpful in understanding the configuration and use of MDM workflows in detail:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/60f28084-b90e-2b10-3eb6-d6565367048a (LOOP in Workflows-Approvals)
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/001d22fb-622d-2b10-22ac-998acecf68a8
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/90efe90c-b03f-2b10-65bf-e572fef651cb  (email notification in workflow)
    E-Mail Notification using MDM Workflow- Sample Scenario
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/60559952-ff62-2910-49a5-b4fb8e94f167
    Hope It Helped
    Thanks & Regards
    Simona Pinto

  • MDM Workflows and UWL in CE 7.11

    Hello,
    I am working with MDM Workflows and UWL in CE 7.11.
    For configuring the UWL, we need to set some property of MDM Result Set iView to
    connect and display MDM workflows for an MDM repository in EP 7.0.
    But in CE 7.11 the concept of Result Set iView is replaced by ResultSet component which we use as a used component in the custom wrapper (DC).
    How to use ResultSet component  to configure UWL in CE 7.11 ?
    Thanks in Advance..
    Regards,
    Yogita.

    Hi Yogita,
    Here is a document for you.l  It shows how to configure MDM & BPM.  From within this there is information in regards to the Universal Worklist:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50d7ad1f-6b27-2d10-448e-9c115ce7f5b3?
    You may also want to raise a post for this in MDM forum.
    Beth Maben
    EP - Senior Support Consultant
    AGS Primary Support, Business Suite & Technology
    Please see the UWL Wiki @
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/bpx/uwl+faq  ***

Maybe you are looking for

  • Is Photoshop CS6 compatible with Windows Vista?

    Is the Adobe Photoshop CS6 Extended Version (Legacy Editions) compatible with Windows Vista?

  • How to remove a package from package structure?

    Hello profs, i have a problem. I add a package 'A' to another package 'B' in the package builder. Now i don't know how to remove package 'A' from the list of package 'B'. I have not found in the docu of package builder how to remove a package from th

  • UI Distortions - CS6 Win7x64

    We have a user seeing frequent distortions of the UI in Ps CS6. Toolbars will get cut off halfway or will be ghosted across the application window. Best way to describe it is with screenshots (attached). Platform info: Win7 SP1 x64 Sw: Ps 6 (no updat

  • Need to enlarge fonts on my 6500a--710n all in one printer

    Love the printer, or I did until it started to print so small. I'm not a computer or printer wiz, SOOO I'm stuck, trying to read fine print      Thanks

  • Very confused with trade in, please help!

    I ordered a iPhone 6 today through my local Verizon store, I have a iPhone 5 to trade.. The whole process was done very fast so I didnt ask to many questions. I am confused though, am I mailing my phone in once the iPhone 6 gets to my verizon store?