Trigger approval process after adding draft through DI API

FROM SDK:
The ApprovalTemplatesService doesn't trigger the approval process for objects that were added through the DI API
I add a Draft document through the DI API, and the approval process doens't trigger.
(no record added in OWDD and WDD1)
How to make it happens ?
Thank you

Hello Nicola,
Exactly what product are you using?
What version of that product?
I believe this question is in the incorrect forum, but I need this information to be able to point you in the right direction.
Also in the future, do not cross post questions to multiple forums as that is against the [Rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement]
Jason

Similar Messages

  • Errors processing after adding Computed Column to Time.

    Errors in the high-level relational engine. The 'Time' table is based on a named query, and contains one or more computed columns. A table based on a named query cannot contain computed columns. If the computed columns are necessary, add them to the query
    expression.
    Help me, pls! Thanks!

    Hi CUONGNV0207,
    According to your description, you get this error when processing cube. Right?
    As the error message mentioned, a table based on a named query cannot contain computed columns. If you create a computed column in this table, it will throw this error. In this scenario, please go to the DSV and check if that table is set up with named query.
    You can replace it with a DimTable in your database.
    Reference:
    cryptic error when processing cube
    Errors processing after adding Computed
    Column to Time
    If you have any question, please feel free to ask.
    Simon Hou
    TechNet Community Support

  • Unexpected error durung process after adding a new measure group

    I add a new measure group with distinct count in my cube
    I process my cube then I have:
    Erreur interne : Une erreur inattendue s'est produite. Erreurs dans le moteur de stockage OLAP : Une erreur s'est produite lors du traitement de la partition 'Requirement' du groupe de mesures 'Formalized 1' pour le cube 'Requirements_view' à partir de la
    base de données SeikoCube. (internal error : unexpected error happens ... An error occured when processing the partition for measure group for the cube)
    If I delete this measure, it works well.
    Whap happens ? How could I resolve it ?
    Thanks in advance

    Hi Fiacre663,
    According to your description, you encounter the error while processing the cube after added the distinct count to cube, right? In your scenario, which process option are you used to process the cube?
    Generally, if you add a measure you are changing the structure of the cube which will invalidate the cube, the easiest way to get the cube "fully operational" again would be to do a ProcessFull. The same thing applies when removing a measure.
    Besides, please ensure that the steps to add distinct count are correct. There are different options for creating a distinct count measure in SSAS. Please refer to the link below to see the details.
    http://www.mssqltips.com/sqlservertip/3043/different-options-for-creating-a-distinct-count-measure-in-ssas/
    Regards,
    Charlie Liao
    TechNet Community Support

  • Approval Workflow - How to stop Approval Process after one Approve?

    I currently have a approval workflow for announcements. There are two approvers assigned to the workflow with the serial setting. How do I end the approval work process after one of the two persons approve? Currently, if one person approves, I have a "In
    Progress" status under the status column.
    Here is the text-based editor view of my workflow:
    f Current Item:Body not equals Current Item:PriorBody
    Start Approval process on Current Item with User1; User2
    Else if Current Item:PriorWorkflow equals Approved
    Set workflow status to Approved
    If Current Item:PriorWorkflow equals Rejected
    Set workflow status to Rejected
    Any tips are welcomed. I have found that Nintex released a workflow that addresses this, but I would like to work around that if possible.

    Hi David,
    Yes, I created the workflow based on SharePoint  2013 Workflow platform. You can have a look at the screenshoot:
    Thanks,
    Eric
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Trigger approval process when deadline had exceeded

    Hi all,
    In the workflow  WS10400002 (One-step approval) , when the deadline had exceeded the approval should happen automatically.
    While checking in the latest end tab, an alert mail can be triggered. but how do we make sure that the approval process happens automatically if the deadline is missed.
    Thanks and regards
    Kishan

    Kishan
    As such there is no system functionality to achieve what is required..
    Please create a program to check for deadline and use a workflow approve FM to explicitly approve your cart.. And run this program as a batch job..
    Hope this helps.. Please let me know if you have more questions (or need the FM to approve)..
    Regards
    Rakesh
    Ps. Please close the thread if your question is answered..

  • How to create Request programmatically to trigger Approval Process

    My scenario is dificult... I need to start Approval Process when the user want to assign AD Resource to other user without Request service. So I want to create Request programmatically from Event Handler to start Approval Process for Provision Resource request type.
    Is this right Way?

    If you talk of request, you will have to use RequestService. You can use code to work with the RequestService to create the request and the approval for you.
    -Bikash

  • Approval process after usage of Firefighter ID

    Hello Experts,
    We are implementing SPM 5.3 and have some doubt and confusion regarding the approval process of Firefighter ID usage.
    Here in SPM we have already configured that controller will get a mail of firefighter id usage with log report as attachment, so now my question is there anyway to configure that controller can approve the usage of firefighter id by himself automatically.
    Thanks,
    With Regards,
    Soman

    Hi Soman,
        Sorry to say but there is no automated or even manual way to approve the usage of FF ID. This questions has been asked by so many people and hopefully SAP will add this to the next release. Basically, every customer will have to figure out a process for controller to review/approve the usage of FF ID.
    Regards,
    Alpesh

  • HT204406 How can I syncing devices after adding memory through iCloud?

    Every time I try to sync my iPod Touches, I am told that I cannot, because there is insufficient memory. I recently added more through paying for more through iCloud. I tried again to sync my devices and was given the same msg.
    I apparently have 42G of memory available out of a total of 50g, so I fail to understand why I am told that there is not enough memory.
    Can anyone help please? I am a teacher and use my two iPod Touches, my iPad2 and my MacBook Pro with my class so it is important to be able to sync my devices and have them up to date.
    Kind regards
    Suzanne Spiers

    Go to your Contacts on your Mac - if more than one pick the most accurate; delete any contacts you don't want. Select all the contacts, and from the File menu choose 'Export...'>'Export vCard'. Save the resultant file safely: it will be your 'master' list.
    Now delete all the contacts from whichever device has the most in it. Sync with iCloud. If necessary repeat with different Macs. The result should be that the deletions sync to iCloud and in the end you finish up with empty Contacts lists everywhere.
    Now you can import your saved file to one of your Macs. Make sure you import it under 'iCloud' not 'On My Mac'. Then it should propagate iCloud and any other devices. Keep the saved file at least until you are satisfied that all is in order.

  • Query for checking overdue payments and trigger approval process

    Hi All
    I need a query to be executed when a user is tries to add a AR Delivery Document for a customer with invoices that have overdue DocDueDates.
    Regards
    Bongani

    You probably want to check overdue dates against closed and canceled items, too:
    (This allows a zero dollar document to go through, for repairs or replacements)
    SELECT DISTINCT 'TRUE' FROM DBO.OINV T0
    WHERE T0.[DocStatus] = N'O' AND T0.[CANCELED] = N'N' AND ($[$22.0.Number]) > 0
    AND T0.CardCode = ($[$4.0.0])  AND T0.[DocDueDate] < GETDATE()

  • Adding payment through DI API referring to Correction Invoice/Down Payment

    Dear All,
    In SBO 2004C (PL 72) I have to add incoming payment referring to correction invoices and down payment invoices.
    In Payments_Invoices Object there is and InvoiceType Property which should be set to the object type of the referred document. Having set this to it_Invoice, it_CredItnote and it_JournalEntry it works fine, but I cannot find a working value for  Correction invoices and Downpayments.
    In BoRcptInvTypes Enumeration there is a it_CorrectionInvoice member, but it does not work. DownPayment member does not exist at all.
    Instead of Enumerations members DI API acepts numeric object type values 13, 14, 30 which works just as the above it_Invoice etc. does, but Correction invoice's object type 165  just does not work
    Has anyone experience with this?
    Is is really not possible to add invoice type payments referring to these documents through DI?
    Any ideas are welcome.
    Thanks a lot.
    Regards.
    Bálint

    Hi
    It is possible in 2005 Clusters But i am not sure in 2004 C.
    In 2005 DI API accepts Enumerations members ,In Which Both it_CorrectionInvoice,DownPayment  Exists and i hope these works fine 2005.

  • How to trigger approval request for resources after assigning role

    Hi,
    We have a use case where we need to assign resources to user via assigning roles.
    In order to achive this use case
    1. we have created a role and assigned the access policy to it which contain the resources to be provisioned once the role is assigned to the user.
    2. Created a SOA composite having manager approval and assigned this composite to a approval policy of type 'Assign Role'.
    3. I am already having the approval policy for the resources which are present in roles. The approval policy of resources is of type "Provision Resource".
    4. Also the SOA composite for resource apporal is deployed in OIM and assigned to the approval policy.
    5. Now when I am raising the request from OIM of type "Assign Role" the approval defined in the SOA composite for Role approval gets triggered. After approving the role request the role is assigned to the user and also the resources defined in the access policy gets provisioned to teh user account.
    Now I want to trigger the resource approval process after the role approval instead of directly provisioning the resources. So that once the role is approved the individual Approval Process of resources part of roles should also gets invoked. Based on the approval or rejection of resources approval, the resource gets assigned to the user.
    Please let me know how to achieve the above use case.
    Thanks in advance

    Access policy is saying whoever gets xyz role, will get this abc resource. Now once a user gets xyz role, you are stopping to get abc resource? both are contradictory. Don't go through access policy. User is anyway going to request for roles. Modify your flow and make user request for resource. Have your composite and approval policy attached. User will get resource once it is approved.
    regards,
    GP

  • When AR C.000156 created and approved through the approval process

    Hi guys,
    When i am creating Appropriation request (C.OOO156) through work flow approval process, after giving all approvals and saving,  it;s generating WBS with some other number (C.000161) instead of C.000156.
    Could you plz guide me how to resolve this.
    Regards,
    Bhanu

    Hi,
    In CJ03 we didn't find the WBS with the project name i.e C.00156, but we observed second level WBS with project number (C.00156.2)is existed below the another WBS number (C.00161) in CJ03. 
    The required WBS is not existed in CJ03, i have checked it.
    Could you plz guide me, what woould be the problem to stop creating the WBS with AR name. 
    Regards,
    Bhanu

  • How to determine N Step Approval process through Process Controlled workflow

    HI
    For SC approval process after 4th level of approval the workflow keep go N step till the approval determine. If no approval find then go for WF Exceptions.
    In PCW we have process level like 100, 200, 300 and so on. What would be the procedure for Nth process level determination in SRM process controlled workflows settings.
    Regards
    Kharabela

    Hi,
      From SRM 7.0 PCW, requestor of SC or creator(buyer) of the PO can't be in the approval list.. this is standard...
    create two custom events like zev_po_schema_eva and zev_po_sl_approval
    create two custom expression.. one with constants as zev_po_schema_def and other one is formula interpreter(0FB001)..
      assign zev_po_schema_eva as schema evaluation for PO.. MAKE SURE YOU LINK THE zev_po_sl_approval
      with as zev_po_schema_def..
       now create schema definition entry and specify as zev_po_schema_def..
       now create process level
       100 approval / approval with completion ( Your chooice ) .. maintain  zev_po_sl_approval as evaluation id in the process level... maintain RR_SPENDING_LIMIT_APPROVER as Resp.Resolver...
    maintain formula interperter value as (OV_SC_PREVAPPROVALIMI < 0V_PO_POTOTALVALUE ) AND (OV_SC_SPNDNGLMTFRQST < 0V_PO_POTOTALVALUE).
    Saravanan

  • Jive Forum Approval Process

    Hi,
    In my application, user can submit their forum, and read after approved, but the approval process is carried over admin console. I am just curious to know how I can use the Forum/Message approval process in my application through java code. What are the APIs, can you please help me out.
    Thank you.
    Regards,
    Pranab

    Hi,
    Is Forums running in a cluster ? If it's the case, did you activated Tangosol (Forums administration console > System > Cache Settings) on each server node ? See the [Installation Guide|https://service.sap.com/~sapidb/012006153200000015452008E/Forums_Install_NW70_SP12upw_v6.pdf], page 11, section If you are running Forums in a clustered environment, ...
    Best regards,
    -Alexandre

  • Add Activity through di api with assigned to employee

    Hello Experts
    I am fresher to sap b1 add on development.I got a problem in Adding Activities through di api
    the problem is i am not able to get handled by employee property .
    by default contacts.handledby is taking assigned to USER but I required Employee.
    thanks in advance.

    Hi,
    In order to set the employee correctly, don't use the Contacts object, but instead use the Activity object.
    In the Activity object there's a property called HandledByEmployee.
    Note that in order to create an Activity object, you should use the ActivitiesService object.
    Look here for an example.
    Beni.

Maybe you are looking for