Agent Determination for Service Entry

Hi Guys,
I created a workflow based on BO BUS2901 to send approval notification to an approver and I am having an issue with the agent determination. I am using the cost centre owner from the PR associated with the PO for the service entry as the approver.
I am using the following code in the FM of the rule I created for determining the agent:
FUNCTION ZME_REL_GET_RESPONSIBLE.
*"*"Local Interface:
*"  TABLES
*"      ACTOR_TAB STRUCTURE  SWHACTOR
*"      AC_CONTAINER STRUCTURE  SWCONT
*"  EXCEPTIONS
*"      NOBODY_FOUND
  INCLUDE <cntain>.
  TABLES: eban, essr_rel, essr, ekpo, ebkn, csks.
  DATA: object TYPE swc_object.
  DATA: BEGIN OF essrkey,
           lblni LIKE essr-lblni,
           ebeln LIKE essr-ebeln,
        END OF essrkey.
  DATA: verak_user TYPE csks-verak_user, kostl TYPE ebkn-kostl.
  REFRESH actor_tab.
  CLEAR actor_tab.
  swc_get_element ac_container 'ServiceEntry' object.
  IF sy-subrc EQ space.
    essrkey-lblni = object-objkey(10).
    essrkey-ebeln = object-objkey+10(10).
      select * from ekpo where ebeln = essrkey-ebeln.
        select single * from ebkn where banfn = ekpo-banfn.
          kostl = ebkn-kostl.
      endselect.
    select * from csks where kostl = kostl.
      verak_user = csks-verak_user.
    endselect.
    actor_tab-otype = 'US'.
    actor_tab-objid = verak_user.
    APPEND actor_tab.
  endif.
ENDFUNCTION.
When I debug, sy-subrc = 8 at swc_get_element ac_container 'ServiceEntry' object.
What could be the problem?
Thanks
Regards

Hi Sarvesh, T
This thread was already answered some time ago.  Please open a new Discussion marked as a question.  If the thread you originally posted to has material related to your question, include a link.  Your content is attached below to make it easy for you to simply paste it into the new Discussion.  It is recommended to read the Rules of Engagement and other documents in the Getting Started link at the top right.   If you have any questions, feel free to respond to this DM (Direct Message) and I will be happy to try to assist.
Rgds,
Jocelyn (SCN moderator)

Similar Messages

  • Agent Determination for Service Entry (BO-BUS2091)

    HI,
    I am new to workflow and facing below issue.
    I have created a workflow for Service entry sheet approval (BO- BUS2901) and I am having an issue with the agent determination. I am using my own Ztable to determine the possible agents.
    I am using the following code in the FM of the rule I created for determining the agent:
    FUNCTION ZME_SRV_REL_GET_RESPONSIBLE.
    *"*"Local Interface:
    *"  TABLES
    *"      ACTOR_TAB STRUCTURE  SWHACTOR
    *"      AC_CONTAINER STRUCTURE  SWCONT
    *"  EXCEPTIONS
    *"      NOBODY_FOUND
    INCLUDE <cntain>.
    TABLES: essr_rel, essr,zmm_service_mail.
    DATA: object TYPE swc_object.
    DATA: BEGIN OF essrkey,
    lblni LIKE essr-lblni,
    END OF essrkey.
    DATA: verak_user TYPE csks-verak_user.
    REFRESH actor_tab.
    CLEAR actor_tab.
    swc_get_element ac_container 'service' object.
    if sy-subrc eq space.
    essrkey-lblni = object-objkey(10).
    select single * from essr where lblni = essrkey-lblni.
    select single * from zmm_service_mail
    where frggr = essr-frggr
    and frgsx = essr-frgsx.
    if essr-frgzu eq ' '.
    verak_user = zmm_service_mail-pernr1.
    elseif essr-frgzu eq 'x'.
    verak_user = zmm_service_mail-pernr2.
    endif.
    actor_tab-otype = 'us'.
    actor_tab-objid = verak_user.
    append actor_tab.
    endif.
    ENDFUNCTION.
    When I debug, sy-subrc = 8 at swc_get_element ac_container 'service' object.
    What could be the problem?
    Note- I have gone thru below thread but still I am unable to find the error.
    http://scn.sap.com/thread/2017416

    Hi,
    You should re-read the thread that you quoted above. The mighty Sue Keohan suggested a solution.
    Instead of trying to pass a service *object*, and then extracting the key, you can just pass the key itself.  It has type EESSR-LBLN1.
    swc_get_element ac_container 'service_key' lv_service_key.
    if sy-subrc eq 0.
      essrkey-lblni = lv_service_key.
    (etc)
    cheers
    Paul

  • Business Area determination for Service Entry

    In purchase order we are using account assignment category M and we are giving our sales order so finally we are getting business area in purchase order also through sales order and our inventory g/l account is also getting update in purchase order .
    My first doubt is that we are using account assignment category M whether it is right or we should go for the account assignment category E and what is the basic difference between E and M.
    Second ok we are getting the business area at purchase order level but when we are doing good receipt or the invoice with ref to this purchase order we are not getting the business area either in the MIGO tcode or in the MIRO tcode.We able to see the business area in the MIGO at account assignment tab but when a Accounting document is generating that time we are not getting the business area in the accounting line items.
    Where is the Problem we are not able to justify.
    Similarly in the Invoice we are not getting the business area in the follow on accounting document but when we display the invoice document after saving that time we able to see the buisness area in the line item details of the invoice but accounting document we are not getting.
    Please help me out to get the business area for the GR/IR account in the MIGO as well as in the MIRO tcode.
    ANy clarification u want then please be in chat procedure for details.
    Advance Thanks a lot for kindly co-ordinating me in solving the issue.

    Hii,
    In E Sale Order is the Cost Object and sale order costing is required
    In M Sale is not a Cost Object material costing is required.
    If you activate the Business Area in OBY6 mandatory field it will ask you at the Application level.
    Regards,
    Kumar

  • Output determination (print out) for service entry sheet

    All SAP Gurus,
    What are the steps involved in determining the output (print out) for service entry sheet?
    Regards,

    Hai,
    Goto NACE select the Application ES, out type NEU and maintain the program SAPFM11, Formroutine ENTRY_NEW, form ML_SERVICE_ENTRY aganist medium printout and maintain the condition records for printout to VN.
    take print in ML83
    Regards,
    eswaramanu...
    Edited by: eswar manu on Oct 21, 2008 8:37 AM

  • Manual for service entry sheet and service master

    hello all,
                if someone is having manual available for service entry sheet and service master....
    regards,
    Rahul Bhardwaj.

    You have to configure service category in SPRO for service master and you can assign the number range in SPRO
    The path is SPRO is:
    Materials Management-External Services ManagementService Master---Define Service Category
    Service Master is created using AC03
    The service master record counts as part of the master data within External Services Management and serves as a source of data for you to draw upon when creating service specifications. This enables you to save time and reduces the frequency of errors, since you need only enter the complete service descriptions in the service master record once.
    A service master record contains the following principal information for the unique description of a service:
    Service number
    Service category
    Descriptive texts (short and long text)
    Base unit of measure
    Material group
    Valuation class by which G/l account is determined
    when you reference it in the PO, all the data gets transfered and you avoids the mistakes

  • Where to configure account for service entry?

    Hi,
    As we know that in material purchasing, we set GR/IR account in WRX of OBYC, then in material goods receipt, system will post to GR/IR account.
    But we need to use another account for service entry of service purchasing. Where should we set the account in OBYC?
    Thanks in advance.
    Wesley

    Hi,
    for account determination system treats Services same as materials, end of the day it is the reciept posted using mvt 101 only,
    If you need to dsitinguish your G/L accounts for materials and service then assign a seperate valuation class to your service master and setup diff G/L accounts for your valuation class
    WRX assignment for service  behaves bit differently ,Check Oss note 165692 and 64204 - it has detail explanation
    Hope this helps
    Reg
    Dheeraj

  • MM - ML81N, Release Procedure for service entry sheet

    Hi Gurus, 
    I would like to active the realease strategy for service.
    in order to customize I  set:
    -Relase Groups
    -Release Codes
    -Release indicator
    -Release startegues 
    Then I run ML81N TRX and I called a sheet to try.  This sheet had to has done to one of the  release strategy set... 
    on the menu (of this trx ML81N)Entry Sheet->Set Status->Release (is still turn off)
    Where is the problem?, anybody could help me?
    Tks in advance,
    Nacho

    Hi,
    please read the FAQ note 672719, question 5:
    Setting up a release procedure is explained in the following short                         
    example: All service entry sheets with material group 007 are supposed                     
    to be subject to a release strategy. This release strategy requires that                   
    the service entry sheets must be released with release code A1. Only the                   
    cost center manager has the authorization for release code A1.                                                                               
    A) Create a characteristic for the material group:                                                                               
    o  Call Transaction CT04. (Path in the SAP menu in R/3 Enterprise:                     
           Cross-Application Components -> Classification System -> Master                     
           Data -> Characteristics)                                                                               
    o  Specify a name for the characteristic, for example CESSR_MATKL,                     
           and choose the 'Create' pushbutton.                                                                               
    o  On the 'Basic data' tab page, enter a description and keep the                      
           'Released' status.                                                                               
    o  On the 'Addnl data' tab page, enter table name CESSR and field                      
           name MATKL (Material group).                                                                               
    o  Enter class type 032 (Release strategy) on the 'Restrictions' tab                   
           page and then save the characteristic.                                                                               
    Note: The release strategy must be based on a field of structure CESSR.                    
    Using Transaction SE11, you can display which other fields are available                   
    in addition to the material group (field MATKL).                                           
    B) Create a class to which you assign the characteristic:                                                                               
    o  Call Transaction CL02. (Path in the SAP menu in R/3 Enterprise:                                 
           Cross-Application Components -> Classification System -> Master                                 
           Data -> Classes)                                                                               
    o  Enter a class name, for example FRG_ESSR, and class type 032 (for                               
           release strategy) and then choose the 'Create' pushbutton.                                                                               
    o  On the 'Basic data' tab page, enter any name. (Keep the                                         
           'Released' status.)                                                                               
    o  Enter characteristic CESSR_MATKL on the 'Char.' tab page and then                               
           save the class.                                                                               
    C) Now carry out the required Customizing settings. Follow IMG path                     
    (Transaction SPRO) 'Materials Management -> External Services Management                                                                               
    Seite 4                                                                               
    -> Define Release Procedures for Service Entry Sheet'                                                                               
    o  At first, you must create a release group (for example 03). For                  
           that, choose 'Release Groups', then choose 'New Entries', enter                  
           'Rel. Group' = 03 and 'Class' = FRG_ESSR. Save the entry. The                    
           system automatically determines value 3 (for entry of services                   
           performed) for the release object.                                                                               
    o  Now create release code A1 for release group 03. Choose 'New                     
           Entries' and specify the following values: Grp = 03, Code = A1,                  
           and description, for example cost center manager.                                                                               
    o  Create two release indicators, for example A and B. Select the                   
           'Released' field for release indicator B and save the entries.                   
           (Note: A release strategy must at least contain two release                      
           indicators. The first indicator (here A) must be defined as                      
           locked, the last indicator as released. Furthermore, the general                 
           changeability of the service entry sheet and the behavior for                    
           value changes are defined via the release indicators.)                                                                               
    o  Finally create the release strategy. Choose 'New Entries' and                    
           specify the following values: Release group = 03, release                        
           strategy, for example RS, release codes = A1. Assign the two                     
           release indicators A and B via 'Release statuses'. Assign                        
           material group 007 via 'Classification'. Save the release                        
           strategy.                                                                               
    D) Assign the authorization for release code A1 and release group 03 to                     
    the cost center manager. In role maintenance (Transaction PFCG), you can                    
    for example use the default values for Transaction ML85 for that.                           
    Regards,
    Edit

  • Error in resolution of rule ... for step - Agent determination for failed

    Dear Experts,
    in SRM 7.0 CS, i have come accross the following workflow error:
    I have extended my existing organizational plan for a new site (new CoCo, Plant, Purch Org and Purch Gr). But when i use my test users with this site, i receive a workflow error, that has the following wording in SWI2_DIAG:
    Error handling for work item 000000055347
    No links corresponding to the specified data could be determined
    Error in resolution of rule 'AC40000138' for step '0000000293'
    Agent determination for step '0000000293' failed
    Error during result processing of work item 000000055357
    Error when processing node '0000000293' (ParForEach index 000000)
    Error when creating a component of type 'Step'
    Error when creating a work item
    Error when processing node '0000000293' (ParForEach index 000000)
    Work item 000000055356: Object FLOWITEM method EXECUTE cannot be executed
    Error handling for work item 000000055355
    Can you maybe help me understand, what this error means and how to resolve it?
    Thank you very much!
    P.S. my test users work fine if i drag them to another location in my organizational plan. And also if i take other test user from locations where everything works fine and drag them to this "problem" location, than the same workflow error occures.

    Remove the user from the PPOMA node and add him again.. Sometimes this will solve the issue..
    Thanks!!
    Bharath

  • Report for Service Entry Sheet in MM

    Hi all,
    Is there standard data source & infoproviders are available for "Service Entry Sheet (ML81N)".
    We need to develop a report for service receipt confirmation along with PO & Vendor payment details.
    Looking forward your answers.
    With regards,
    MK.

    HI,
    Yes, WBS wise PO details showing in T-code ME2J - Purchasing Document Per Project .
    Enter the above T-code and select Database Profile ' 000000000008-PO Display for WBS' then give inputs project code,WBS Element,plant,Scope fo List-'ALV'.and  execute the report.  Now, report showing the selected WBS Purchase documents.
    Hope, it is useful for you.
    Regards,
    K.Rajendran

  • Service entry sheet:No provision for service entry for purchase order

    Hi.I create a Purchase order with one item.The Item category was D(Service).Also lines of Service number was input in the Service tab of the item detail.After save the Purchase order,I goto t-code ML81N to Maintain the Service entry sheet.When I input the Purchase order number and item number and press enter,the SAP raise an error message box with following text:
    No provision for service entry for purchase order 4500000149 00010
    Message no. SE198
    Diagnosis
    The "GR =NO" (no goods receipts) indicator has been set in the PO item. It is thus not possible to enter services against this purchase order.
    I don't know why and how to resolve this problem.So I need the experts to give me some advice.Thank you so much.
    Regards
    Yoda

    pls check in ur PO at item details in delivery tab whether goods receipt checkbox is unticked.if yes then tick it and then process.
    regards,
    indranil

  • Agent determination for step 0000000081 failed error in workflow

    Hello All,
         I am doing employment verification from ESS portal. In the workflow step I have selected RULE to determine the agent. To configure rule, I double click on rule, on next screen selected "Agent determination - responsibilties" to determine the agent. I configured responsibilties with the valid value ranges and everything but the workflow is going into error! I did research and not sure what I am doing wrong. I checked the workflow container in workflow log and all the values that are supposed to pass to rule container are showing up fine.I keep getting the error:
    Agent determination for step 0000000081 failed
    Result og agent resolution does not agree with agents of task.
    Any feedback you could provide would be greatly appreciated.
    Thanks.
    Mithun

    1. In Transaction PFTC, select Task Type = Standard Task and Task = 01000076
    2. display the task details.
    3. Now go to Additional data ->Agents Assignment->Maintain
    4. Select the task here and click Attributes in the application tool bar.
    5. Select the General Task radio button and hit transfer.
    -- You have made your task general.
    To Synchronise the runtime buffer ,simply excute T-Code SWU_OBUF and hit the Start Synchronization button.

  • Post Invoice for Service Entry with many Service line item-MM-LIV

    Dear All,
    I have a problem to post Invoice for Service Entry with many Service line item. The problem is as follow:
    I have created 1 Service Entry which has 5 Service line item in it. Three of the service line item are subject to Value Added Tax (VAT), the others aren't. Then, i wanted to post Invoice for the Service Entry, however, it just display 1 item which amount in total. How can i segregate each service line item in Service Entry thus i can post Invoice for all Service line item with subject to VAT and all service item with not subject to VAT, if just 1 Service Entry created for it ?
    Please help me.
    Thank You

    Hi Ganda,
    If you mark the 'service based invoice verification' checkbox in your PO item, your service items will be in your invoice as seperate invoice lines. Then you can modify the taxcodes on service item level.
    Kind regards, Dick Hendriks.

  • Workflow Required for Service Entry release

    Hi !,
    Can anyone help me out by provide input as i want to have a workflow to be generated based on a Text feild (Sap Login ID) which user will be entering in a Text feild in Service Entry Sheet. What it should do is :
    1. Should Validate with my provided list of Approved Users. (Separate table entry to be maintained with reqd T-code).
    2. Mail to be triggered to his(Approver) SAP and Outlook ID for the release to be made with Document Information.
    3. He Should be able to Approve / Release through Workflow.
    4. Creator should be informed for the Approval Done.
    Please forward your comments.
    MM

    Please check these helpfull links:
    workflow for service entry sheet(ML81N)
    Re: Workflow Template(WS) or Workflow Task(TS) for Service Acceptance (SES)
    Re: Workflow issue on service receipting
    Service Entry Sheet Workflow
    Edited by: Afshad Irani on Jun 3, 2010 2:48 PM

  • Supress Mandatory field for Service Entry Sheet Creation

    Hi,
    I am using BDC for Service Entry Sheet creation as BAPI cannot fulfill the Business needs.
    During Recording when I click on Service Overview and click on Service Selection we provide the Model Service Specification Number there I can see the Services and select it, but when I select the service and adopt, an error message ocuured to enter the quantity.
    Is there any way to supress the standard error message without using acess Key.
    BR
    Aviram

    Hi Aviram,
    Messages type 'E' , 'I' or 'W' are controlled through configurations. Please check with your functional consultant with the message number you want to supress. It can be made as 'I' or 'W' through configuration.
    Similarly if you do not want that particular field as mandatory field ask functional consultant to make it optional.
    Regards
    Sachin
    Edited by: sachin G patil on Mar 9, 2011 3:13 PM
    Edited by: sachin G patil on Mar 9, 2011 3:20 PM

  • Approving Partial Quantity in ML85 for Service Entry Sheet

    Hi,
    Is it possible to approve partial quantity in ML85(or any other screen) for Service Entry Sheet?
    Thanks.

    Hi,
    I dont think it is possible to approve Entry sheet for partial quantity. Release strategy for Entry sheets are at Header level and not item level.

Maybe you are looking for