Step User Decision and Approval of Purchase Order

Hello All,
I have created a workflow with step user decision and also attached the object BUS2012 to display from SAP Inbox. But is there a way i can attached the object that would show the approval screen when the work item is executed, and also send a mail for the user decision.
Urgent help needed.

Hi,
You could use a secondary method in your user decision step which executes an object method and for example displays the PO so users can make the correct choice in the user decision.
Regarding sending an email you could have a sendmail step after the user decision step but wthis will not be executed until the user decision is complete. Why do you want to send an email?
Regards,
Eddie

Similar Messages

  • Create Condtition with Step User Decision

    Hello All,
    I create a workflow for the approval of Purchase Order using the step user decision which works fine. But in my configuration, i have 2 release strategies, one is for approval of Purchase Order with sum lesser than 250,000 while the other strategy is for approval of Purchase Order with sum greater than 250,000. Due to this release strategy, i created a condition step (Using container of net price)  before the user decision step, which has a false and a true branch. But for every time i create a Purchase Order, only the false branch gets triggered.
    How do i create this condition and where should it fall, bearing in mind that my start event is the creation of release step of BUS2012
    Thanks for anticipated help.

    Hi,
    I think along with the condition check on Net price ,you should also do a condition check on the release code triggered from T16FS and place this combined check correctly before the user decision step.I think it should work.
    SELECT SINGLE FRGGR FRGSX FRGZU FROM EKKO INTO WA_EKKO WHERE EBELN EQ PONUMBER.
      IF SY-SUBRC = 0.
    *Get the Release code FRGC1 and FRGC2 as maintained in T16FS
        SELECT SINGLE FRGC1
                      FRGC2
               FROM   T16FS
               INTO   WA_T16FS
               WHERE  FRGGR = WA_EKKO-FRGGR
               AND    FRGSX = WA_EKKO-FRGSX.
        IF SY-SUBRC = 0.
          CASE WA_EKKO-FRGZU.
            WHEN ' '.
              RELCODE = WA_T16FS-FRGC1.
            WHEN 'X'.
              RELCODE = WA_T16FS-FRGC2.
          ENDCASE.
        ENDIF.
      ENDIF.

  • URGENT:Approval of purchase order

    At present approval of purchase order is done based on order value.. but how to approve PO based on ITEM CATEGORY?

    Go in Purchasing Super User responsibility and follow the path Setup: Approvals: Approval Groups. In the Approval Groups form you choose "Item Category Range" as value, put an amount limit and indicate low and high values for purchasing category. You put all this in either an existing or a new approval group and then assign this group to some HR position in Approval Assignments.
    Hope this helps
    Regards
    Riccardo

  • Another User modified Table (ODBC -2039) - purchase order

    I have following scenario:
    In SBO are purchase orders for one vendor where in document line is user field for storing some informations. After setting this user field to all lines (manualy) I want to recreate this purchase orders and create one purchase order for each value in user field and close lines in former orders.
    For example - purchase orders lines:
    docentry itemcode userfield
    1            12           a
    1            12           b
    1            12           a
    1            12           a
    1            12           b
    1            12           c
    2            12           c
    2            12           a
    After recreating I want to have:
    docentry itemcode userfield
    3            12           a
    3            12           a
    3            12           a
    3            12           a
    4            12           b
    4            12           b
    5            12           c
    5            12           c
    Hope is clear this explanation what I want.
    Im doing it so, that I create new purchase order for each value in user field - with no problem. After creating new orders Im going through old orders and Im closing the lines. And here is sometime problem with error Another user... I found out, that this problem is only when in order, where I want close line, exist already closed line and not allways.
    When I try to simulate this problem, everything works. When I create order, manualy close one line in this order and wait few days and try to apply this scenario, it will falls.
    This problems occurs since PL30 and in PL47 it is same.
    The code I have for this is:
    obj = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseOrders)
                                obj.GetByKey(docentry)
                                obj.Comments = " xxx"
                                err_code = obj.Update()
                                If err_code <> 0 Then
                                    oCompany.GetLastError(err_code, err_msg)
                                    SAP.Connection.oSBOApplication.MessageBox(err_msg, 1, "OK")
                                End If
                                obj.Lines.SetCurrentLine(3)
                                obj.Lines.LineStatus = SAPbobsCOM.BoStatus.bost_Close
                                err_code = obj.Update()
                                If err_code <> 0 Then
                                    oCompany.GetLastError(err_code, err_msg)
                                    SAP.Connection.oSBOApplication.MessageBox(err_msg, 1, "OK")
                                End If
    The double update of order is there, because when one line is closed, DI API will not allow make update of lines...
    Any help is highly appreciated. Thanks

    Partly is the problem as in the note, but I dont think that its only this problem.
    When I add PO with DI with 10 lines, I can close 5 lines for example, but when next day Im trying to close the rest of lines, I get the error. When I get the error, I cannot with DI update nothing (not in lines, but I cannot update note, dates, ...).
    It seems to me, when I make more updates with closing lines in short time, for example
    closerow
    update
    closerow
    update
    closerow
    update
    after this I cannot update the order at all (it seems that this order is for DI locked).

  • User id while  creating a purchase order

    Hello all,
    I would like to know whether there is any option to enter the user id or user name while creating a purchase order. If so could anyone post on how to do that.
    Thanks,
    Maxx

    If you are creating PO in foreground, you dont have the option of giving user id.
    But if you create POs in background using a scheduled job, then when you are scheduling the job, you can overwrite the default user id and give the user id you want. In this case all the POs created by the job, will have the user id created by you.
    But if you have to create a PO through background job, you have to give the inputs to PO through some programs may be BDCs or LSMW.
    Reward if this helps. you

  • Unable to approve standard Purchase order

    Hi ,
    We are into 11.5.10.2 , We are getting following error when trying to approve the purchase order by approver . PO Status is in "Pre approved"
    unable To Approve Standard Purchase Order 975761
    Line # 17 At least one or more item attributes failed validation.
    Action: Verify values for the following attributes: purchasing_enabled_flag, stock_enabled_flag, outside_operation_flag and bom_item_type.
    Please, fix the problem and try approving again from this notification or send the document back to the preparer.
    PO is going to top Hierarchy inspite of having enough aprroval limits .
    Item attributes was set to Inactive in Master Level and was active in Organization items . Changed to Active in Master Item and still getting the issue .
    PO is getting forwarded to next approver and finally it is in "pre approved status " with above error
    Thanks in Advance
    Kiran

    Hi Kartik,
    1) In Item Master , status is set to OBSOLETE and purchasable check box is unchecked . Item master organization was set in purchasing options .
    2) Organization item , status is Active . stockable and Purchasable check boxes are checked and outside processing item unchecked . This is receiving org in Purchasing .
    I think Purchasing is considering Master org status as it is validation org for purchasing .
    Thanks
    Kiran

  • User based authorization to create Purchase Orders out of Purchase Req.?

    Hello,
    I have the following requiment for my client:
    User based authorization to create Purchase Orders out of Purchase Req.?
    I am told the same can be achieved using same standard menu path in IMG/Customizing.
    Please advise with the menu path and detials, Usefull answers will be rewarded.
    Thanks

    Using OMET Function Authorization, you can restrict users to create Purchase orders without Purchase Reqn.
    Using OMET trxn code Create one Function Authorixation Called pr and in General Parameters tab Select the Field Selection and in Possible reference Objects Tab Mark the With ref to Prs check box and save.
    Next, you've got to associate via SU01 
    Click Parameters, insert a new parameter id EFB to the authorization code. 
    Type in Parameters value you want e.g. XX 
    You have to assign the control for ALL the SAP buyers via thier SAP users id.
    Logoff and login again. Then try to create a Purchase Order without a reference.
    From Next time whenever you try to create with out referring PR it will not allow you to Save PO.
    Regards,
    Ashok

  • Approval query - purchase order

    Team
    I need the query for additional approval  following conditions.
    PO value grater then one lack.
    Month to date  PO value greater then 50 lacks
    Thanks
    Anantha Desai

    Hi
    Please Try This Query for Approval of Purchase Order.
    SELECT Distinct 'True'
    FROM OPCH T0(NOLOCK)
    WHERE (T0.DocTotal>100000
      OR 5000000>=
      SELECT SUM(T1.DocTotal) FROM OPCH T1(NOLOCK)
      WHERE T1.DocEntry=$[OPOR.DocEntry] AND DATEPART(MM,T1.DocDate)=DATEPART(MM,$[OPOR.DocDate])
      AND DATEPART(YY,T1.DocDate)=DATEPART(YY,$[OPOR.DocDate])
    Thanks

  • How to Including custom text in the step "User Decision"

    Hi All
    Please help me in this regards I got problem
    How to Including custom text in the step "User Decision"
    Regards
    Poonam
    Edited by: Julius Bussche on Feb 2, 2009 1:59 PM
    Please use the corect forum, meaningfull subject titles and use the search before asking questions

    Hi Poonam,
    If I understood your problem correctly...
    When you create a user decision a screen will appear.
    In the decision tab under Title you can give your custom text.
    Even if you want to give some variable (value of which will be determined at runtime) you can give that as well.
    Like you have created a container for BOR objects MAT_DETAIL, in that object there is a field MATERIAL.
    You can define your custom text as below:
    Title: Would you like to create new material or display material &
    Parameter 1:  &MAT_DETAIL.MATERIAL&;
    In Title you can give as max. as 4 &(ampersand). And each & will be replaced by each Parameter at runtime in same sequence.
    In parameters you use to select the container defined by you earlier.
    Hope this will help.

  • Create additional field in sales order item and copy to purchase order item

    Dear SAP Gurus,
    I am hoping that someone could help me by providing me with how to implement the following 2 requirements in the SD order and in the purchase order.
    1. I am wanting to add a custom field to the SD sales order item copying a value from the vendor customer master.
    2. I then want to add a custom field to the purchase order item and copy the value from my custom field in 1. to this new custom field..
    Can you please advise how I would go about implementing the above requirements?  I am assuming that there are exits to allow me to implement these 2 requirements.
    Many thanks
    Henry

    Hi,
    For the first requirement you can use the USEREXIT_MOVE_FIELD_TO_VBAP in report MV45AFZZ.
    For the second, as I think that you will create a RFQ you can try to use the enhancement MEREQ001.
    Regards,
    Eduardo

  • Approve a purchase order from an e-mail

    Greetings experts
    Is there any way to approve a purchase order from an e-mail which was sent to the approver from SAP?
    Please if anyone knows how to do help me.
    In advance thanks a million.

    Extended Notifications.
    Please search the forum before posting.

  • User Exit and BADI for Sales Order

    Dear Experts,
                        please give me available user exits and BADI for sales order .i want to take the data from sales order at the time of sales order posting .

    Hi,
    In debugging you can find some Enhancement Spots where you can implement your code. This lets you ignore the need for access key, but its a time consuming process spotting out the exact enhancement point.
    Regards
    Karthik D

  • Dynamic taxes and charges of Purchase Order

    Hi
    We have the following issues in purchase order:
    The discounts offered by vendors vary from PO to PO. Sometimes the discounts are applicable on basic price and in some cases it is applicable on the price after some charges/taxes. This is not feasible in the current configuration, as we are unable to overrule the pricing conditions and the order of computation of discounts/taxes.
    In some cases, we get an adhoc discount of an absolute value, which is not feasible to enter in the PO.
    The excise modvat received from some traders is in absolute value and not in percentage. There is no provision to record the same as well.
    Please let me know a feasible solution for this, as the charges, taxes and discounts vary from order to order and we would like to have the flexibility to define them physically in the order in which they are applicable (both in terms of percentage and absolute value).
    There are cases where we would like to enter the percentage and the amount on which that rate needs to be applied. SAP's pricing condition automatically computes this. We need a solution for this as well.
    Thanks in advance.
    Shaji Varghese

    Hi Shaji,
    I would advise you to do this step by step. If you want to design the complete priciing procedure for ll cases immediately , you have to be experienced in pricing.
    E.g. in your case : start with the complete manual solution ( and add automation afterwards if possible/desirable )
    In the most basic scenario, you need something like
    -Base price
    -Discounts % Before
    -Discounts Value
    -Discount % After
    -Tax1 base
    -Tax1 %
    -Tax1 value ( calculated )
    -Tax2 base
    -Tax2 %
    -Tax2 value ( calculated )
    -Total tax ( calculated )
    In you create manual price conditons for all ( except tax value ), this should very fairly straightforward.
    If you need a base for the % discount that is not available in the above, you add a condition type ( statistical ) and manually input the base specificially for the discount.
    As I said, if it works, you can start to add more automation where possible ( e.g. determine a default for the tax bases and only update manually when necessary ). To do this create a price condition record that is always found by the system ( e.g. with value 0 ), but mark it as manual input takes priority. Thne use a condition base value formula to default the condition type. If you change it anyway, you changed value will be used
    ( this also has the advantage that the confition type 'appears' immediatly on the screen and the user only needs to fill, instead of adding the condition type itself also manually )
    SAP pricing is VERY flexible and the same requirement can be implemented in many ways. It really depends on the complete picture to choose,
    rgds
    Dirk

  • User Exit IDOC creation - When purchase order gets created

    Hi All,
    The requirement is whenever user creates a Purchase Order in the current SAP system an IDOC needs to get created and be sent to another SAP system where a Sales Order will be created.
    Can anybody suggest the correct User exit/enhancement at the time of Purchase order creation which could be used ?
    Also the function modules for creating the IDOCs within the user-exit.
    Thanks for your help.

    Hi Meghna,
    Your requirement is SAP standard function which means you don't have to use any user exit.
    What you need to do is configure output control, then when a PO saved, a idoc will send to vendor automaticly.
    Here is a step brief
    1. configure output type in NACE
    2. Add condition record in NACE
    3. Setup partner profile in WE20
    if you need detailed doc, give me your email, I can send you.
    Regards,
    Brown

  • How to cancel approved (draft) purchase order prior to adding it

    Please help with this scenario..... We have a purchase order approval in place for service purchase orders. User entered one line of PO correct and then on second line, entered something in description but did not enter GL account code.
    Purchase order followed approval stage and is now approved, however since PO line does not have GL account we receive error regarding missing GL account.
    Problem is now that PO is approved we cannot update it and we also cannot cancel the purchase order draft since it is approved.
    What do we do??

    Hi Keith,
    I'm afraid it is not possible to delete a document which has been going through the approval process.
    What you can do is to add the PO and then cancel it.

Maybe you are looking for

  • How can I change my icloud appleID to match my itunesID?

    I found a good post on this posted by renders4 in March 2014 that explains it well.  However, my other issue is that I was using a previous email when I created the account, and the email I used for icloudID is not available anymore.  Since I don't r

  • No longer mount NFS volumes with 2010.q1 release:

    Has anyone else seen this? I can no longer mount any of my NFS volumes with root squash since upgrading to 2010.q1. I have a ticket open with Sun (72644622), but everyone is apparently off/away. Before they all went off, Sun Eng. suggested setting ma

  • Setting download limits in Mail

    I recently just got a new MacBook Pro and I just set up the mail application with my gmail and a school mail account. Both accounts are IMAP, if thats important. Anyway, I just want to set a download limit and have it so Mail only downloads the past

  • Sort Album by name in PSE11

    Hello, i'm a hobby sports photographer. I shot lots of fast series. After an import into organizer pics with same time stamp are arranged in random order so the series get mangled. It is no fun to bring back the correct sequence by hand for hundereds

  • Prepaid handled differently?

    My Verizon contract ends in six weeks.  I only need 400 to 500 minutes a month and am considering a prepaid plan.  I heard recently that prepaid calls are handled differently and are secondary to monthly plans, meaning inability to get through, signa