Submit for Approval throws error

Hi Experts,
we are facing a strange error with the approval workflow. Once the user select "submit for approval" from Details the following error is displayed.
Could not execute command 'com.sapportals.wcm.rendering.uicommand.cm.UIStatemanagementCommand'
Somebody knows how this problem occurs and can be fixed?
Thanks and Regards,
Ingo Taraske

Hi Ingo
Also do check the monotoring section for KM Components and in the "System Configuration" for KM, if you see any warning or error message while navigating in Global Services or User Interfaces or some other section, sometimes it could have also lead to error if it related to "Submit for appoval" action.
As Rafael said, hot deployment of KM components is mostly the reason for this. System restart is the best options if above suggestions already hold good.
Thanks
Deepak

Similar Messages

  • Error at submit for approval in partner program

    Hi All,
    I am created the partner program in r12 and when i click the submit for approval i receive this error
    Start :Item Type : AMSGAPP Item key : CONCEPTPRGT140282
    Invalid Workflow Role for Approver
    send me the solution for it as soon as possible
    Thanks
    Edited by: user12235518 on Mar 8, 2012 4:36 AM

    user12235518 wrote:
    Hi All,
    I am created the partner program in r12 and when i click the submit for approval i receive this error
    Start :Item Type : AMSGAPP Item key : CONCEPTPRGT140282
    Invalid Workflow Role for Approver
    send me the solution for it as soon as possiblePlease see if these docs help.
    Budget Allocation or Offer Approval Error: "Invalid Workflow Role for Approver" [ID 414053.1]
    Invalid Workflow Role For Approver Error When Trying To Approve A Deliverable In Marketing [ID 181484.1]
    Unable To Approve Quota With Error : AMSGAPP Invalid Workflow Role for Approver [ID 422910.1]
    Error when Generating Invite List of Oneoff Event [ID 266349.1]
    Errors Occuring During Claim Approval [ID 1361361.1]
    Thanks,
    Hussein

  • Cannot Submit for approval

    Hi,
    I have written an WDP Application which creates a resource in KM and subsequently <b>"Submits it for approval".</b>
    Now the problem is, all the users can create the content, but only user having a <b>Content Management</b> role can perform the submit for approval action. I have given the content admin the application role. We can see the resource getting created in the KM folder for all the users. But only Content admin can submit.
    I have given all the reqd. users the full control over the folders.
    Now what could be the problem???!!!!!
    Helpful answers will be rewarded
    Thanks in advance
    BP

    Hi,
       We had to write this code. It's a button that allow you to submit a document and change acl permission.
    Patricio.
    public IRenderingEvent execute(IResource res, Event event) throws WcmException {
              if (event instanceof ConfirmEvent) {
                   String pepe = "";
                   ConfirmEvent cce = (ConfirmEvent) event;
                   pepe += " a1 ";
                   if (ConfirmEvent.CHOICE_YES.equals(cce.getChoice())) {
                        IRepositoryServiceFactory repositoryServiceFactory = ResourceFactory.getInstance().getServiceFactory();
                        IStatemanagementManager statemanagementManager =
                             (IStatemanagementManager) repositoryServiceFactory.getRepositoryService(res, IWcmConst.STATEMANAGEMENT_SERVICE);
                        IStatemanagementResource sResource = statemanagementManager.getStatemangementResource(res);
                        IResourceTransition resourceTransition = sResource.getTransition("lbl.submit");
                        if (resourceTransition != null) {
                             resourceTransition.execute();
                        try {
                             ISecurityManager sm = res.getRepositoryManager().getSecurityManager(res);
                             pepe += " a7 ";
                             if (sm != null && sm instanceof IAclSecurityManager) {
                                  IAclSecurityManager asm = (IAclSecurityManager) sm;
                                  IResourceAclManager ram = asm.getAclManager();
                                  IResourceAcl ra = ram.getAcl(res);
                                  if (ra == null) {
                                       IUMPrincipal administradores = WPUMFactory.getGroupFactory().getGroup("Loyal ISO Administrador");
                                       IUMPrincipal publicadores = WPUMFactory.getGroupFactory().getGroup("Loyal ISO Publicador");
                                       ra = ram.createAcl(res);
                                       ra.addOwner(administradores);
                                       ra.addOwner(publicadores);
                                  IUMPrincipal everyone = WPUMFactory.getGroupFactory().getGroup("Everyone");
                                  IResourceAclEntryList rel = ra.getEntries();
                                  IResourceAclEntryListIterator it = rel.iterator();
                                  while (it.hasNext()) {
                                       IResourceAclEntry entry = it.next();
                                       if (entry.getPrincipal().equals(everyone)) {
                                            ra.removeEntry(entry);
                        } catch (AclPersistenceException e) {
                             return new InfoEvent(Status.ERROR, "Error en el cambio de permisos");
                        } catch (ResourceException e) {
                             System.out.println("I raised a ResourceException " + e.getMessage());
                             return new InfoEvent(Status.ERROR, "Error en el recurso");
                        } catch (UserManagementException e) {
                             System.out.println("I raised a UserManagementException" + e.getMessage());
                             return new InfoEvent(Status.ERROR, "Error en el manejo de usuarios");
                        return new InfoEvent(Status.OK, "Done !");
                   } else if (ConfirmEvent.CHOICE_NO.equals(cce.getChoice())) {
                        return ConfirmComponent.onNo(event, res.getContext().getLocale());
                   } else if (ConfirmEvent.CHOICE_CANCEL.equals(cce.getChoice())) {
                        return ConfirmComponent.onCancel(event, res.getContext().getLocale());
              return new InfoEvent(Status.ABORT, "Aborted.");

  • Repository Service for Auto Submit for Approval

    Hi all,
    Can anyone help me with the creation of a Repository Service to auto 'submit for approval' any document created.
    My main problem is in two methods:
    1) removeRepositoryAssignment(IRepositoryManager mgr)
      In some samples, I saw always this code line:
      mgr.getEventBroker().unregister(this, ResourceEvent.CREATE_CHILD);
      But in my project the unregister method doesn't have that parameters
    2) received(IEvent event)
      I need some help to know what code should I put
    The remaining steps, I think I can handle by myself.
    Many Thanks,
    Luis

    Hi,
    1) make sure you use com.sapportals.wcm.repository.manager.IRepositoryManager, use the JAR (bc.rf.framework_api.jar from the \usr\sap\XXX\JCXX\j2ee\cluster\serverX\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\portalapps\com.sap.netweaver.bc.rf\lib folder) from the portal you are willing to develop to make sure you have the actual libraries.
    2) in this method you have to catch the events that creates the resource (ResourceEvent.CREATE_CHILD) - later you will see, that you have to handle also the CHANGE events and so on. When you have the event, get the resource - for CREATE_CHILD it is
    event.getResource()
    Now you can handle the submit for approval by yourself.
    Romano

  • Submit for approval in KM - automatically?

    Hi guys!
    When I create document in folder, where Approval process is enabled , I have to click on "Submit for approval", when I want to send document for approval.
    Is it possible to send it for approval automatically? SO I create document and it is automatically sent to approvers inbox..
    Thanx for answer!
    Peter

    Peter,
    I think without coding no way.
    You can create a repository service which will listen to events like <b>ResourceEvent.CREATE_CHILD</b>. When the event is caught the repository service will submit the resource for approval. For more info about repository services just search the SDN (or let me know).
    Romano
    PS: does my reply to this <a href="https://www.sdn.sap.com/irj/sdn/thread?threadID=261413">Thread: mailto link wanted in XML form app</a> helped? If so, please close it - it will help others in searching for answers to their questions...

  • Skipping ' submit for Approval '

    Hi ,
    I am setting up a document workflow process in KM . I have a requirement as follows ..
    Once a document is uploaded into the folder ( which is assigned with set of approval steps and
    users ) , I need to send all the documents in that folder  for approval process with out Approver admin manually clicking ' submit for Approval ' button . Is this possible by configuration or we need to write some extra code .
    Any help is appreaciated .
    Thanks
    Aneez

    Hi Aneez,
    yes you will need to write some extra code. The concept would be like that:
    1. you will have to implement an eventlistener which will be called, if a document is created or uploaded.
    2. this event listener has to call the API of the statemanagement service in order to submit the document.
    3. For each repository of interst, you can register your event listener using the getEventBroker method.
    There you have to specify the events, you are intersted in.
    Details:
    1. class MyEventListerner implements IEventReceiver{
    private static IResourceEvent CREATE_CHILD_EVENT = new ResourceEvent(ResourceEvent.CREATE_CHILD, null);
      public void received(IEvent event) {
        event.isLike(CREATE_CHILD_EVENT)) {
          IResource resource = (IResource)event.getParameter();
       this.submitResource(resource);
       private void submitResource(IResource resource){
         // get the statemanagement service from the resource
          IRepositoryServiceFactory factory = ResourceFactory.getInstance().getServiceFactory();
    IStatemanagementManager statemanagement =
          (IStatemanagementManager)factory.getRepositoryService(resource, IWcmConst.STATEMANAGEMENT_SERVICE);
    IStatemanagementResource sResource =
    statemanagement.getStatemangementResource(resource)
    IResourceTransition transition = sResource.getTransition("lbl.submit")
    // if everything is correct than transition is not null
    if (transition != null) transition.execute();   
    Please keep in mind, that this is only a scatch how it may work. You have to ensure, that the statemanagement is enabled for the parent folder of the resource. Otherwise, the transition may be null or not executable.
    I hope this helps.
    regards
    Andreas

  • [svn:fx-trunk] 10891: Fix for ASDoc throws error when using getter methods for pseudo-inheritance of static constants

    Revision: 10891
    Author:   [email protected]
    Date:     2009-10-06 09:46:47 -0700 (Tue, 06 Oct 2009)
    Log Message:
    Fix for ASDoc throws error when using getter methods for pseudo-inheritance of static constants
    QE notes: None.
    Doc notes: None
    Bugs: SDK-22676
    Tests run: checkintests
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22676
    Modified Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsDocUtil.java

    Have you tried using com.adobe.air.crypto.EncryptionKeyGenerator instead?

  • Submit for Approval in XML Forms

    Hi Experts,
        I have created a News Application using XML Form Builder.  Once I create any news based on this form builder, I need to submit this news item for approval.  I have configured the approval process for that particular KM Folder.
        I need submit for approval option in News Explorer/News Admin iView.  How can I achieve this?  Do, I need to change the layout set properties or in XML Form Builder application itself.
       Help me in this regard.
    Thanks & Regards,
    Art

    Hi Art,
    > Do I need to change the layout set properties or in XML Form Builder application itself.
    You should extend the command set used on the resource renderer (the resource renderer is defined in the layout set), using the approval command group, I don't know the exact name, but it will be something with "approval" or "statemanagement" in it...
    Hope it helps
    Detlev

  • Non PO invoices sent for Approval - getting error message - Tax Jurisdictio

    Hi Experts,
    Our clients have just upgraded from SAP 4.6C to ECC 6.0 and when the Non -PO invoices are sent for approval the user is getting the below error message.
    'Specify a tax jurisdiction key' - Message no. F5566
    Could any one suggest what the reson could be.
    Answers would be suitably rewarded.
    Thanks in advance,
    Manish Singhi
    E- [email protected]

    Hi,
    Can anyone suggest on this.
    Thanks,
    Manish

  • Submit button not throwing error

    I have a Search Region and a table to show the data based on Search criteria...After search I am modifying the some fields with invalid data in Result table
    and I am clicking the Submit button, it is throwing error(I written Exception in EO level) , the same time if i click the submit button second time , it is not validating and throwing the error and record is saving to database with invalid data.
    Could you please help me and let me know what I am missing here?

    I written the following code in EntityExpert, the EntityExpert code in EO
    public boolean isItemNameValid(String ItemName)
    System.out.println("Entity Expert");
    System.out.println(ItemName);
    boolean isActive = false;
    ItemNameVVOImpl ItemNameVO = (ItemNameVVOImpl)findValidationViewObject("ItemNameVVO1");
    ItemNameVO.initQuery(ItemName);
    if (ItemNameVO.hasNext())
    isActive = true;
    System.out.println("Return ");
    System.out.println(isActive);
    return isActive;
    and I am calling the above method in EOImpl
    public void setItemName(String value)
    if ((value != null) || (!("".equals(value.trim()))))
    ItemNameEntityExpert expert = getItemNameEntityExpert(getOADBTransaction());
    if (!(expert.isItemNameValid(value)))
    throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT,
    getEntityDef().getFullName(), // EO name
    getPrimaryKey(), // EO PK
    "Item Name", // Attribute Name
    value, // Attribute value
    "MSC", // Message product short name
    "UPDATE_SUPPLY_ITEMNAME"); // Message name
    setAttributeInternal(ITEMNAME, value);
    Please check.
    Thanks,
    K.Murugesan

  • Api call for 'submit for approval'

    would like to be able to use the content management event system to watch for incoming files. when a new file comes in i want to set some attributes based on the payload before it is submitted for approval. i am having problems finding the proper procedure to automatically submit the file for approval once i set the attribute values (which must be done while the file is in draft mode)
    is that possible?

    If the target node for your operation is a sibling, I believe you're going to have to pass the parent node of the sibling into the AddNode() API call when this operation occurs within a version. Note that copyNodesAcrossVersions is a new method that has a copyAsSibling parameter, but AddNode() does not.
    Edited by: Naren Truelove on Nov 12, 2012 3:12 PM
    ...grammatical correction...

  • Api for 'submit for approval'

    I would like to be able to use the content management event system to watch for incoming files. when a new file comes in i want to set some attributes based on the payload before it is submitted for approval. i am having problems finding the proper procedure to automatically submit the file for approval once i set the attribute values (which must be done while the file is in draft mode)
    is that possible?

    sorry. i posted this in the wrong forum.

  • Error  in Km when submit for approval.

    Hi
    In Km once in a while we are having error when we submit a document to be approval. If I restart the application, the error will disappear. This is the error log I receive when I submit. Anybody have an idea.
    Thank you
    Could not create command with alias com.sapportals.wcm.rendering.uicommand.cm.UIStatemanagementCommand and classname com.sapportals.wcm.rendering.uicommand.cm.UIStatemanagementCommand:java.lang.NullPointerException
         at com.sapportals.wcm.rendering.uicommand.UICommandFactory.getTextAttributesForCommand(UICommandFactory.java:1272)
         at com.sapportals.wcm.rendering.uicommand.UICommandFactory.setPropertiesForCommand(UICommandFactory.java:372)
         at com.sapportals.wcm.rendering.uicommand.UICommandFactory.createExecCommand(UICommandFactory.java:421)
         at com.sapportals.wcm.rendering.uicommand.UICommandFactory.decodeTargetCommand(UICommandFactory.java:620)
         at com.sapportals.wcm.rendering.control.cm.MenuBarControl.onExecute(MenuBarControl.java:319)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.sapportals.wdf.stack.Control.dispatchHtmlbEvent(Control.java:386)
         at com.sapportals.wdf.WdfEventDispatcher.dispatch(WdfEventDispatcher.java:176)
         at com.sapportals.wdf.WdfCompositeController.onWdfEvent(WdfCompositeController.java:539)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.sapportals.htmlb.page.DynPage.doProcessCompositeEvent(DynPage.java:204)
         at com.sapportals.htmlb.page.DynPage.doProcessCurrentEvent(DynPage.java:142)
         at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:115)
         at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
         at com.sapportals.wcm.portal.component.base.ControllerComponent.doContent(ControllerComponent.java:77)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
         at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:160)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)

    Hi Luc,
    I'm having this same problem in our company.
    Our version is also NW2004s SPS11.
    Do you still remember what patch you applied to make it work?
    It'd be very useful!
    Kind regards,
    Simone
    Message was edited by:
            Simone Teshirogui

  • Crystal Reports for Eclipse throwing error - wizard could not be open

    Hi,
    Today i downloaded Crystal Reports for Eclipse version 3.4.1. i copied the same to the program files folder & while i double click on eclipse.exe. I am able to get in to the eclipse, but while i am trying to create a blank report by right click project -> New -> Other ->Crystal Report -> Blank Report i am getting error " Problem Opening the wizard" & additional details on error as " the selectd wizard could not be started Plug-incom.businessobjects.designer.blankreportwizard was undable to load class com.businessobjects.crystalreports.designer.blankreportwizard.blankreportwizard.com/businessobjects/crystalreprots/designer/blankreportwizard/blankreportwizard(unsupported major.minor version 49.0)"
    In my machine i have J2SE Development Kit 5.0 Update 11 & J2SE Runtime Environment 5.0 Update 11 . Can anyone help me to resolve the issue.
    Thanks,
    Siby

    Hi,
    Please make sure you have Tomcat 5.5 installed on your machine.
    Also JAVA_HOME and Tomcat's CATALINA path are set accordingly in Environment Variables.
    After setting these restart machine and Eclipse.
    The latest version for crystal report for eclipse isCrystal Report For Eclipse v2.0 SP1
    Thanks,
    Neeraj
    Edited by: Neeraj SP on May 19, 2009 6:08 PM

  • History for approval process

    Hi out there,
    Is it possible to see the approval history of a document?
    For example:
    File test.txt
    - 05/10/08 file created by Mr.X
    - 05/11/08 submit for approval by Mr.X
    - 05/12/08 rejected by Mr.Y in step1
    - 05/13/08 submit for approval by Mr.X
    - 05/14/08 approved by Mr.Y in step 1
    - 05/15/08 approved by Mr.Y in step 2
    Best regards,
    Manuel

    Hi,
    There is no standard tool to check this information.
    I would suggest that you write your own portal component to achieve this.
    Look into KM API's to do this:
    http://help.sap.com/javadocs/NW04S/current/km/index.html
    Here you see how to access IStatemanagementUtilsResource object of each KM File (method createFolderStmgUtilsResource).
    https://forums.sdn.sap.com/thread.jspa?threadID=839022
    The IStatemanagementUtilsResource class has some helper methods to get infos on the state of the document.
    The information "05/10/08 file created by Mr.X " is just a property on the document, so just read the property from km document (KM Property is createdby):
    https://forums.sdn.sap.com/thread.jspa?threadID=293704
    Regards,
    Praveen Gudapati

Maybe you are looking for

  • My tv show and movies are getting stuck in the processing file stage

    I purchased some TV show episodes and movies on itunes. They are stuck in the processing file stage, and wont let me pause them and restart. When I close itunes it wont open again. I have to restart my computer. Please help, they have been stuck for

  • Non admin user can't browse in Firefox

    I have installed firefox as admin user, it works fine. Non admin user can open firefox, however can not browse any site although they can browse in IE. There are no error message or pop up. Please advise...

  • Sql with groups, aggregates and fields of that aggregates

    lets say I have a table Students and want to group the students by major, and then for each group display the maximum age, and them for that maximum age display the name of that student I know how to do the grouping and max aggregate, I know how to d

  • GRPO ERROR

    Hi, Item Code : R104790 Item Name : Raw material1 Set G/L Accounts By Warehouse Stock in  WH-4 (Excisable) :                       -776,583,577 Whenever we try to make GRPO into this WH 04, the following error comes... Inventory account is not define

  • A Fix For the "gets stuck at preparing" issue

    I was having terrible problems trying to get my TC to back up. Like many others, it would get stuck on the "preparing" stage for hours at a time. I found a simple fix on another forum that I haven't seen mentioned here. In the energy saver preference