Fiori Approve Reqs - Custom Sales Order Approval Issue

Hi All,
Urgent Help required .
We are developing Sales Order Approval apps using Approve Requests as baseline.   We have requirement to  display the sales Order details in Apps Like the PO apps.  Please help me find out how to add business data to Approve request apps . I have checked below Doc .
.http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0ab2463-4e16-3110-b08e-d93918e513a1?QuickLink=index&overridelayout=true&58789512365087
Step 8 Extensibility section .
8.2 we have implemented . all the steps mentioned in Doc were implemented in the backend system as we have to retrieve data from ECC/ERP
Created Model Provider Class.
Created the data provider Class.
Created Service and maintained the customization table /IWPGW/C_TGW_CTX with Service.
But i am not able to see the fields i have added to Entity when testing in the metadata fields in TASKPROCESSING. However, it does show there is Contextserviceurl with the context service what we have created
Please let me know the Next step or if i am missing some steps .
Please suggest me best approach to develop the Approval apps if not delivered by SAP ???
Thank you very much for your help.
Thanks,
Deepanker
Tags edited by: Michael Appleby

You need to REDEFINE   method ENTITYSET_TASK and couple of other methods like GET_ENTITY etc. I am showing one for reference:
Please look at std SAP method for GET_ENTITY in the std class. Here is a sample example:
first get a handle to the Instance ID
CASE iv_entity_name.
    WHEN 'InvoiceItem'.
* get work item's instance ID   
      READ TABLE it_key_tab INTO ls_key WITH KEY name = 'InstanceID'.
      READ TABLE it_key_tab INTO ls_key_item WITH KEY name = 'InvoiceLineItem'.
      lv_wiid = ls_key-value.
*     retrieve Invoice details
                  CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
                  EXPORTING
                    input  = lv_wiid
                  IMPORTING
                    output = num.
                 CALL FUNCTION 'SAP_WAPI_READ_CONTAINER' destination lv_destination
                   EXPORTING
                     WORKITEM_ID              = num
                     BUFFERED_ACCESS          = 'X'
                   IMPORTING
                     RETURN_CODE                = lv_returncode
                   TABLES
                     SIMPLE_CONTAINER         = lt_simple_container
                     SUBCONTAINER_BOR_OBJECTS = lt_subcontainer_bor_objects
                     SUBCONTAINER_ALL_OBJECTS = lt_subcontainer_all_objects.
               if lv_returncode = 0.
               "TEST
                      READ TABLE lt_subcontainer_bor_objects with table key element = lc_element
                      into wa_subcontainer_bor_objects.
                                  " call rfc for data
                                     CALL FUNCTION 'ZRFC' destination lv_destination
                                      EXPORTING
                                            AUSBK = wa_subcontainer_bor_objects-value+20(4)
                                            BELNR = wa_subcontainer_bor_objects-value+24(10)
                                            GJAHR = wa_subcontainer_bor_objects-value+34(4)
                                      IMPORTING
                                            BLDAT = wa_BLDAT
                                            XBLNR = wa_XBLNR
                                            VENDOR = wa_vendor
                                            WRBTR = wa_wrbtr
                                      TABLES
                                              LT_ITEM        =  lt_inv_item.
                ENDIF.
*     map details
      READ TABLE lt_inv_item INTO  wa_inv_item WITH KEY BZKEY = ls_key_item-value.
                ls_item-instance_id = lv_wiid.
                ls_item-invline_item =  wa_inv_item-BZKEY.
                ls_item-COST_CENTER =   wa_inv_item-KOSTL.
                ls_item-COMPANY_CODE =    wa_inv_item-AUSBK.
                ls_item-FISCAL_YEAR =  wa_inv_item-GJAHR.
                ls_item-GLACC_TEXT =   wa_inv_item-TXT20.
                ls_item-FISCAL_YEAR =  wa_inv_item-GJAHR.
                ls_item-GL_ACC_NO =  wa_inv_item-SAKNR.
                ls_item-INV_DOC_NO =  wa_inv_item-BELNR.
                ls_item-INVOICE_AMT =  wa_inv_item-WRBTR.
      CALL METHOD copy_data_to_ref
        EXPORTING
          is_data = ls_item
        CHANGING
          cr_data = er_entity.
You might have to handle exceptions in this code and this is just an example.
thanks
Ashish

Similar Messages

  • How to implement Approval hierarchy for Sales Order in Order Management.

    Hi,
    We need approval process for sale orders in Order Management module. Currently we are using credit HOLD option for orders at shipping level. The issue we are facing now is we can not cancel those orders who contains Service Line item in it while on HOLD. The restriction raised at the time of cancelling the order that the Line Item is "fulfilled". Service line item's get fulfilled.
    Is that any other possibility to have Approval hierarchy for Sales Orders in Order Management Module? If it is possible can anybody share the related document or implementation guide?
    Thanks with anticipation in advance.
    Many Regards
    Kaleem Bhatti

    I copied the standard order header workflow and the "Book Order, Manual" workflow to custom workflows.  I then modified the "Book Order, Manual" workflow to put another completely custom workflow (call this "Approvals") in between the "Book Eligible" and "Book" steps.
    The "Approvals" step assessed the sales order, changed the order header to the pending approval flow_status_code, and sent out the appropriate notifications.  The "Approvals" step returned a Complete/Incomplete where complete would proceed to "Book" and incomplete would go back to "Book Eligible."  The new workflow was then assigned to the order type needed.  I don't still have access to that environment (job change) or I would give more definite instructions.

  • Sales order approval workflow

    Hi,
    I am new to workflow. I have to implement sales order approval process in sap.
    Below are my queries:
    1) Can anyone tell me that is there any standard method for "approval" available in BOR.
    2) Organization level should be derived from the custom table in sap depending on the input coming to workflow.
    So how i can implement this process?
    3) Is there any possibility to approve the sales order through e-mail. If yes then how to do that.
    Can anyone suggest any example for this.
    Thanks in Advance.
    Sumit

    Hi Sumit,
    There are standard Objects available in BOR for sales order  you can extend that object type and use a
    new method for Approval process check object BUS2032.
    You can forward your workitem through email maintain settings in SCOT and SOST.
    Thanks & Regards
    Hari Sankar M

  • SAP SD Sales Order approval process

    Hi Gurus,
    Could anyone explain how to map the following scenario in SAP SD sales Order Management?
    Ques-1:
    Sales order will be reviewed by supervisor.  If the supervisor approves, then the sales order will be available for the Sales manager for review. If the supervisor disapproves, then the sales order will be stopped from getting processed.
    Ques-2:
    Sales order will be reviewed by sales manager.  If the sales manager approves, then the sales order will be available for the Sales director for review, if the order is above a pre-set value limit. If the sales manager disapproves, then the sales order will be stopped from getting processed.
    Ques-3:
    Pending sales orders will be automatically promoted to the next level.
    Have a Nice Day.
    Regards,
    Ravikumar.S

    Hi  Ravikumar
    For all your questions ,
    Configure credit management and in FD32 maintain credit limit for the customer. and in OVA8 , maintain Error indicator . So if the error exits then the sales order will be sent to the supervisor to get the approval.and then do delivery. After approving by the supervisor then it the sales order will be forwarded to 
    Sales manager. to finalize again
    So while doing configuration in credit mgmt , dont maintain credit limit for the supervisor and maintain credit limit to Sales manager. But make sure that the 1st level is supervisor and the 2nd level is sales manger. So that once the Error comes in the sales order then it will be forrwarded to Supervisor and then supervisor will forward to Sales manager
    Regards
    Srinath

  • Sales Order Approval flow

    I wish to know if there is any standard procedure for the below in SD.
    "Sales Order Approval. There is a need from business to align on confirmation control.
    User requests to change the sales order flow to include SO confirmation step."
    rgds,
    Pri

    hi
    <u><b>U will follow this steps:</b></u>
    1.First create the status profile.
    2.In this status profile,u have create the Approval and Non-Approval and Double click to the Processing Process.
    3.Then assign to the Sales document header or Item Level.
    <b>IMG - Sales and Distribution - Sales - Sales Documents -Define And Assign Status Profile</b>

  • 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

  • Need Sales Order Approval Workflow upto two level

    Hi All,
       I am new user of sdn and also in workflow.I want to create a workflow to approve a sales order upto two level of approval.
    Is there any standard workflow available for this?or any standard task to approve sales order.Please help.

    Hi Abhijit,
       Thanks for your assistance.
    Actually what I need is to build a workflow which will be triggered whenever a Sales Order is created by some user.First the workflow will check if the sales order value is greater than Rs.10,000 or not.If yes it will go for the first level of approval to authority1 if not it simply complete the workflow.If authority1 approve the workflow it will go to authority2 for second level of approval.If authority1 reject that it will go back to the sales order creater to change it or he simply complete the workflow.If he choose change then it will again go for the first level of approval to authority1.If authority1 approve the sales order then it will go to the authority2 for second level of approval.If authority 2 approves it the sales order will be finally approved else it will return back to the creater to change or withdraw.
    I think you have understood what I want.Waiting for your reply.

  • How to copy Customer Sales Order number to Purchase Order for 3rd party sal

    Hi experts,
    We are doing third party sales. So once we create Customer Sales Orders manually via VA01, users also manually create Purchase Req for it.
    We do not automatically create PR from Sales Order, as this is not my clients requirement. So we don't use item category group BANS in the material master.
    In the item level in the PR under the Contact Person tab, the creation indicator shows "V Sales & distribution document". Once PR is created this updates the PR number under the item level Schedule lines in the Sales Order.
    After PR creation, we run a job to create PO's.
    But the new requirement from the client is to automate this PO creation thru EDI.
    Our SAP is 4.6C & the Idoc type we use is ORDERS05 & Message Type is ORDERS. We are using EDIFACT std.
    Once I get the idoc xml file for this PO, I find that my Customer PO number (from the Sales Order) & also the Customer Sales Order number is not copying to the xml output.
    Please advise what needs to be done inorder to have it.
    This will be great help & I will reward for the answers !
    Rgds,
    Pri

    Tables are related.
    MATNR
    WERKS
    MBDAT
    LGORT
    CHARG
    etc fields are common in both VBBS and VBBE.
    May be you can generate a condition a fetch data using this.
    I hope it helps.
    thanks

  • Customer Sales Order number & Customer PO number

    Hi experts,
    We are doing third party sales. So once we create Customer Sales Orders manually via VA01, users also manually create Purchase Req for it.
    We do not automatically create PR from Sales Order, as this is not my clients requirement. So we don't use item category group BANS in the material master.
    In the item level in the PR under the Contact Person tab, the creation indicator shows "V Sales & distribution document".  Once PR is created this updates the PR number under the item level Schedule lines in the Sales Order.
    After PR creation, we run a job to create PO's.
    But the new requirement from the client is to automate this PO creation thru EDI.
    Our SAP is 4.6C & the Idoc type we use is ORDERS05 & Message Type is ORDERS. We are using EDIFACT std.
    Once I get the idoc xml file for this PO, I find that my Customer PO number (from the Sales Order) & also the Customer Sales Order number is not copying to the xml output.
    Please advise what needs to be done inorder to have it.
    This will be great help & I will reward for the answers !
    Rgds,
    Pri

    Hi,
    In VOV8 you can only Check whether the purchase order number already exists or not.
    If you want to do any other check like you said based on customer & PO number combination then follow steps below:
    Ask your ABAPER to
    1: Create a Z-table where you can store the required Customer No & PO No combinations.
    2: Write a code to check the PO no & Customer No entered in Sales order with the entries in the Z-table & throw an error if there is no match.
    This code needs to be written in the User exit Save_document_prepare by your ABAPER.
    3: This will work at time of Save & not a point of entry. The result will be same "error msg will be thrown"
    regards
    Edited by: Innovation is key on Feb 28, 2011 6:08 PM

  • Populating the Partners from Sales document (Customer/Sales order/delivery)

    Hi All,
    Is there any way to Populate the Partners which are mantained in Sales document (Customer/Sales order/delivery) into Customer Quality notification (Q1)
    Presently only Sales to party and ship to party is getting populated when we create Q1 notification.
    Thanks in advance
    jay

    Explore :
    Quality notification>Notifcation creation->partner->Define partner fuction procedure->Assign Partner Functions to Notification Type--->
    Check here whether you can get here the partner function.

  • Changing Payment terms for customer Sales Order

    Hi,
    I have a requirement like scenario below :
    1. Customer sales orders are billed with X payment terms (Not installment).
    2. Subsequently, Customers agree for installment terms.
    3. A need arises to change ONLY the payment terms on the  existing billing document (without cancelling existing billing document)
    4. Is this achievable ? Via VF02 or FB02 ? Or any other means ?
    Thanks in advance.
    Bala

    You cannot change the terms through the VF02; however, you can change under FB02.  Go into the accounting document you would like to change, double click on the customer account posting and you should see the payment terms highlighted for you to change.
    If you do not see it changeable, it is due to security.
    Hope that helped.

  • Customer/Sales order stock

    Hi,
    The requirement is,
    1.The Scenario is to create a Sales order and block the Stock with batches to the particular Customer/Sales order.
    How to process this, can 412 E thru MB1B tcode can be used or any other way?
    any diff if we block with reference to the customer or sales order stock ?
    2.Before creating delivery and PGI the stock ownership will be transfered to the customer? any solution for this.
    thanks
    sr

    Hi
    In availabity check controls in OVZ9 if you tick include sales requirements then stocks will get reserved for your sales order
    This is quiet sufficient to meet your requirement
    But in MMBE it will not show as reservation agaist that order number
    For this you have to do MB1B movement type 412 E or 413
    you can also create delivery and dont do PGI that will also take care of reservation
    Before creating delivery and PGI the stock ownership will be transfered to the customer?
    any solution for this.
    I am not able to understand this
    In standard SAP only after Billing the ownership is transferred to customer
    even after PGI it will be Cost Of Goods Sold COGS  only
    Check this thread whether this is useful to you
    Forum post in ERP - Sales and Distribution (SD) General: reservation
    reservation
    Regards
    Raja

  • Customer Sales Order number to display in Purchase Order idoc

    Hi experts,
    I have the Customer Sales Order number in the PO item level under "account assignment" tab.
    But it does not show in the idoc xml ouput of the PO.
    Could you let me know if it is not standard field to display in the ORDERS05 idoc type of the PO?
    If not what print program or form that can be used to show the sales order number.
    Also I want to show the Customer PO number into the Purchase Order idoc VBKD-BSTKD and the PO date will be in VBKD-BSTDK.
    This is very urgent !  Will reward.
    Rgds,
    Pri

    Hi experts,
    I have the Customer Sales Order number in the PO item level under "account assignment" tab.
    But it does not show in the idoc xml ouput of the PO.
    Could you let me know if it is not standard field to display in the ORDERS05 idoc type of the PO?
    If not what print program or form that can be used to show the sales order number.
    Also I want to show the Customer PO number into the Purchase Order idoc VBKD-BSTKD and the PO date will be in VBKD-BSTDK.
    This is very urgent !  Will reward.
    Rgds,
    Pri

  • Find customer sales order

    Hi
    please help me on this.
    how will I find customer sales order ?
    means actually I want to distinguish between customer sales order and stock transport order.
    what table i will use??????

    Hi,
    check AUTLF in table VBAK.
    AUTLF is for Complete delivery defined for each sales order.
    in ur select query give
    WHERE AULTF NE ' '.
    if the goods r deliverd then the value of AULTF will b 'X'
    hope it'll help u.
    Edited by: sneha kumari on Jul 30, 2009 1:48 AM

  • Can u tell me any bapi to create the purchase req with sales order as refer

    can u tell me any bapi to create the purchase req with sales order as reference?

    Hi Mukesh,
    You can use 'BAPI_REQUISITION_CREATE' for the purchase requisition creation if through transaction, you use transaction ME51N for creating the purchase requisition.
    Cheers,
    Sujay

Maybe you are looking for

  • Logging into Adobe CC with a script?

    So, I have a unique problem. I'm an art student, and my university has given me a free copy of Adobe Creative Cloud for a year for use on my personal PC. However, the computers in the lab on campus, automatically log into what I am assuming is a gene

  • No admin in project

    Hi, I have some sensitive data that needs to be run through EDQ, but I don't want make it available to Administrators. However, in the Security tab of the Project Properties, it doesn't seem possible to exclude Administrators from a Project. Is there

  • Smartform with text containing html tags

    I am reading from a table that contains html tags like <br> <menu> <LI type="disc">This is a line which contains html tags that goes over to 2nd line <LI type="disc"> This is also another line which contains html tags. and each line is stored in a di

  • HT1846 My iMac 24" is mid 2008 and I have just instaled Win7 Pro 64 bits. All went well execpt...

    Hello everybody, My iMac 24" is mid 2008 and I have just instaled Win7 Pro 64 bits. The windows installation went very well, except wen I starte to use the Boot Camp CD for the drivers and then I have this error "Boot Camp x64 is unsupporteded..." So

  • Dirt behind LCD screen - common problem ?

    Hi, I recently bought a toshiba EQUIUM A60-181 and I'm experiencing a problem concerning the LCD screen. There appears to be a defect or dirt behind the glass because it's blocking light from a pixel. Any attempts at apply moderate pressure to move t