How to start approval procedure for a Document/Draft using DI API

Hi!
My code imports purchase orders from one non-B1 system to SAP B1 using DI API. The problem is that in B1 system there is an approval process configured and I need the newly created purchase order to enter this approval process.
Currently this is not done because approval procedure isn't triggered when creating documents using DI API.
I had an idea to create a draft of PO instead of the PO and then push this draft into approval process somehow. But I can't find a way how to tell DI API to start approval procedure for my draft/document.
Thank you for your replies!
Jan

Unfortunately there is no way to trigger the approval process for any object added through the DI API.
Your workaround of adding the documents as drafts is as close as you can really come but maybe you could extend it slightly - it will involve a UI API addon:
Make the addon mandatory, and add a UDF to the user table, for example "U_Approver" and a UDF to PO document, like "U_Approval"
- Set this U_Approval to yes when adding through DI and add as draft
- When user opens draft document in the application, check are they an approver (U_Approver = "Y")
- If they are not, and try to view/add a draft which is flagged as needing approval, block them from adding.
You could further expand your DI project to send a mail to the approver whenever a draft PO is added.

Similar Messages

  • How to start approval procedure

    how to start approval procedure on item master data????
    Edited by: VINAYAK CHA on Feb 21, 2012 8:56 AM

    when person goin to add item master data ,so before adding, it shoud be approval by senior person.
    I have a scenario where 2 level of approval stages to be configured. For Example : A is originator, B is first level authoriser and C is 2nd Level authoriser. Now, A originates document as it goes for approval to both B & C simultaneously. what I want is that A originates the document as it goes to B for approval. After B approves then only go to C for apporval otherwise not. Is it possible to map in system ?? Please guide...
    Edited by: VINAYAK CHA on Feb 21, 2012 11:45 AM

  • How to create Approval procedures for various departments

    Hi Experts,
    I want to create a approval procedures for sales , purchase, production and finance screens.
    I am going to the Approval stages , there i am giving name, description and selecting authorizer and finally when i want to select the sales module under department , there i can see only general .
    i cldnt see all the departments here. what is the reason?  solution for this. PLease.
    Thanks & Regards,
    Dwarak

    Hi Dwarak,
    Please specify the department in Administration --> Setup --> General --> Users and find the user code and then map the departments.
    In the Approval templates  Originator is where the users can be setup and in the select the required documents and map the create th Approval stage ( The user who authorises the document created by the originators)
    Regards,
    Rakesh N

  • How to create approval procedure when saved as draft?

    How can I create an approval procedure where the document is saved as draft?
    Specifically, returns saved as draft where document total is greater than $3,000 need approval.
    Thanks

    Hi,
         Approval Procedures cant be used in draft mode. Approval Procedure itself acts as document in draft. It wont do inventory postings & financial postings as well. Just create approval procedure with your requirement & try.
    I am looking forward your reply,
    Regards,
    Maheswaran.

  • How to setup approval procedure for extended transport management system?

    Hi,
    We got dev and QA system in our ECC system landscape.
    We got extened transport control activated between dev and qa system.
    In cosolidation taget group i got 2 clients from dev and one qa golden client listed in this target group.
    Havoing said that, i would like to set up approval process in such a way that before the transports released from dev golden client,they should pass the approval steps.
    How would i configute  that?.I was trying to search for notes or help links to help me with this task.
    But i could not find anything.
    Any help would be appreciated .
    Ram

    Hi Ram,
    You can achive this by configuring the transport workflow.
    Here is link from sap help.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/5a/34bd66c03d11d2851c0000e8a57770/frameset.htm
    -Pinkle

  • Approval procedure for Outgoing payment

    Dear all expert,
    I want to know how to make approval procedures for outgoing payment. So, everytime user create outgoing payment, it can't be printed until it's approved by Chief Acct. Where do i set this approval, because i see in the approval module, there is no  outgoing payment document.
    Thanks

    I have checked that, at least until 2007A version PL49 Outgoing payment has not yet added to Approval Template.  You may use SP Transaction Notification to block some users for posting.
    Thanks,
    Gordon

  • How to configure release procedure for rate contracts release

    Dear all,
    How to configure release procedure for rate  contract following are the requirements
    they are two release codes c1 & c2 <=100000,>=100000
                    if  c1 is not there c2 has to be approved
         Change in the value of the rate contract contract
         Change in the validity of the rate contract
         Addition of deletion of line items
    While using a non u2013 released rate contract in the PO an error message should shoot out.
    Also the logic should be changed while using the rate contract in the PO.
    The usage of the rate contract should be till the validity of the rate contract. i.e. the measurement should be end date of the rate contract and the PO creation date and not the delivery date of the PO. &
    It should be possible to refer existing valid rate contracts in purchase orders.
    Regards,
    bhaskar

    Hi,
    In SAP rate contract is known as value contract denoted with wk. The release procedure for rate contract is same as that of other contracts and scheduling agreements. The tables  for contracts will vary with SA (Scheduling agreement) .You may try and maintain condition records based on the customer combination and maintian the validity date of condition records as per your requirement.For contract and PO will have the same header/item table as EKKO/EKPO, and the release
    class in standard is the same FRG_EKKO, you can use the same for contract.
    To distinguish if it's a contract or PO, EKKO-BSART can be used.
    For contract EKKO-BSART will be MK or WK, while PO will have NB/UB etc..
    You can restrict the document type to set up the release strategy for only contract.
    Of cause, you can also create your own release class Z* for contract copying standard
    one FRG_EKKO via CL01/Class type 032, and then assign the class Z* to customizing:
    OLME:
    -> contract
    ->Release Procedure for Contracts
    ->Define Release Procedure for Contracts
    ->Release Groups
    If you have already created the PO release class.
    Assign a new chracteristic of Document Category -BSTYP
    Please check below link for detailed release procedure. I hope this wil help you out .Thanking you.
    http://wiki.sdn.sap.com/wiki/display/ERPSCM/RELEASE+PROCEDURE#RELEASEPROCEDURE-TABLESUSEDFORRELEASEPROCEDURES

  • How to define Approval Hirearchy for Fixed Assets?

    Hello All,
    Couls someone please tell me How to define Approval Hirearchy for Fixed Assets which should be different as compared to normal item purchase.Reply me ASAP
    Regards
    Aditya

    Hi,
    The AP invoice approval used AME rules for finding the approver. You can base you AME rules on virutally anything.
    In this particular case, you can base your AME rules on one of the followings:
    1. If any of the Distribution Accounts contain Fixed Assets natural account
    2. You can define a separate document category which should be used with invoices for FA Purchase and use the category in AME rules to find approver
    3. You can have a DFF at the Invoice Header level to indicate that this is a fixed asset purchase invoice and have this DFF to be used in AME rules.
    Gajendra

  • Approval procedure for item and for business partner

    Hi
    Anyone has done somekind of approval procedure for an item or for a business partner?
    Is there anyway to make this? Or just for documents?
    Regards,
    Vasco

    You can only use SAP approvals for documents. You can construct a less controlled approval method for master items by first creating a BP mandatory "Approved" UDF", and using an auto refresh FMS to set it to blank unless "on hold" is checked when the BP record is created. This will prevent it from being used in documents. Then another UDF for an authorised user to initial the BP record as authorised and uncheck the hold flag. There is nothing to stop this method from being abused but you do have the History log so that you know who did what. I have not tested the exact procedure described but have done similar for documents (to force a save as draft) when the SAP Approval has been too restrictive. Otherwise it's SDK.

  • Returns pricing procedure for sales document RE !!

    Hi, friends !
    I have doubt in the logic that while doing sales flow from order to billing it picks one pricing procedure. And for returns i want another pricing procedure should be picked.
    As we are giving reference fo Invoice for Returns document it normally picks the old pricing procedure but not the new pricing procedure.
    Please let me know how to configure to pick the new pricing procedure for RE document type.
    Thanks & Regards,
    Sreedhar.
    Email ID: [email protected]

    Hiii Sredhar How are you !!!! where are u !!!
    Go through this steps
    --> First you define the New pricing procedure in the transaction V/08.
    >You define the new document pricing procedure in the IMG path>SPRO>Sales and distribution>Basic functions>Pricing>Price control>Define and assign pricing procedures>Define Document pricing procedure.
    -->Now you assign this Document pricing procedure to the Return order type in the detail screen.
    -->Now you determine the pricing procedure through OVKK transaction with new defined document pricing procedure and pricing procedue.
    -->Maintain the condition records for that condition types.
    -->Now you create the Return order it will pick the new pricing
    Still if it not picks check the Copy control settings In the VTAF transaction
    Go to item details there you eneter "B" carry out new pricing in the Pricing type field
    I hope it will help you
    Regards,
    Your Murali.T

  • Approval Procedure for User Form

    Dear All,
                   I am developing a Requisition add-on. It contains 2 stages. First user creates a requisition & then the authorized person approves this requisition.  My problem is that when user creates a requisition, an automatic alert should be on  the authorized person side. I can use Alert for this process. But my client wants the same functionality as the Approval Procedure in Admin Module. Can I use the approval procedure for the add-on forms also. ? If yes, then how can I do that because  Approval Procedure does not show the user form.  Help me regarding this. Any reply would be appreciated.

    Hi,
    Approval Procedure is not available to User Form. You may try to create the similar process by SDK but that needs too much coding.
    Thanks,
    Gordon

  • Approval Procedure for Sale Orders

    Hi Experts:
    Anyone can help me?...I´m needing an Approval Procedure for Sale Orders to be activated whenever the user is trying to give diferent discount percentage from the one assigned in the price list throughout Period Discounts. We have Sap Business One 2007A SP01 PL05
    Thanks very much in advance
    CLAUDIA

    Hi CLAUDIA,
    This has to be done through user query approval.  However, since I don't have similar environment to try, you may start to create your own query first.
    Thanks,
    Gordon

  • Approval Procedure for Out Going Payments

    Hi All,
    I need to set up an approval procedure for Outgoing payments.
    Terms & Conditions:
    Documents Should go for approval only when a Outgoing Payment is raised by choosing the cash account in Cash tab.
    Is there any default Procedure to setup this Approval Procedure.
    Please do the needfull.
    Regards,
    Aarbz

    For outgoing payments you can set approval procedure only for version 8.8. Then you can apply a query based approval with a query like this:
    If  $[OVPM.CashAcct]='38110000'
    Select 'true'

  • Approval Procedure For Issue For Production form

    Hi All,
    How to Defind the Approval procedure For the Issue For Production tell me is it possible or not
    vikas

    Hi Vikas,
    As workaround you can set the approval to the stock transfer for the production warehouse and allow only issue for production from that production warehouse.
    Cheers

  • Approval-process for publishing documents in Collaboration-Room

    Hi @ all,
    is it possible to use a approval-process for publishing documents form the private document store of a collaboration room to the public one? I it is, how I have to do it, I have no idea?!?
    Or is there a way to give specific users the right to publish a document.
    Thanks for your response!
    Best regards
    Kai

    Kai -
    I'm not sure about publishing from private to public.  However, you can set-up folders in the Collaboration rooms to enable State Management.  To do this, you'll need to use a system principal to alter the permissions on the specific Collaboration room document folder.
    Regards,
    Kyle

Maybe you are looking for

  • Having problem with wifi after upgrading to iOS 6

    After I upgrade my iPhone to ios6 I am having many problems connecting to wifi. Places that I had wifi connection at home now are not available and it takes long time for the iPhone to connect to the wifi. What to do??????

  • Do I 'need' an audio interface on modern Macs?

    Hi there Don't think I've posted on here in nearly 10 years but I'd be really glad of some help. I currently record on a 2003 eMac running 10.3.9 using Garageband 06. I record directly into the audio in via a tube preamp. I am considering finally upg

  • Gophone on iphone 6. Does it work and if yes, where can i buy it.

    gophone on iphone 6. Does it work and if yes, where can i buy it.

  • Product Search in IC WebClient

    Hi, I am new to WebClient and now my client has an enhancement for Product Search in WebClient. Any help in this is greatly appreciated. Backend system: SAP ECC CRM System: SAP CRM 4.0 Sales Order Creation: in SAP CRM Web Client 1). Client products c

  • Why is the update so enormous?

    Why is the update to 2.2.0.245 100MB? Can't you just update the components that need updating? It's a waste of (expensive) data.