Help needed in Rules in workflow

Hi all,
         I am beginner in workflow. I was trying to apply custom rules in my workflow design. I did the following steps :
1.  have created a custom rule through the transaction PFAC_INS.
2. There I have used a function module for the determination of agent. The custom function module will give me the superior name for an employee.I have used ztables to store the name of the employee and their superiors.
3. The Rule has been successfully created and has been tested. It is working as required. I have tested it in PFAC itself by using Simulation button.
The problem I am facing is
When I am trying to use this Rule in the workflow at the User decision Step it is not working. I have given the Rule number in the Agent section of  the User decision step.
According to my Workflow design the email should go to the Superior of the employee but instead it is coming to my Inbox.
Please suggent me what to do.
Thanks in advance.
Points will be rewarded for good suggestions.
Thanks & Regards.
Reshmi Das.

Hi Raj,
          I have created a custom rule and its working fine. Please check the following steps:
The rule I have created gives the superior name of an user/agent.
Steps:
1. I have created a ztable( ztest_users)which will contain the name of users and their superiors.
2. Create a custom function module(ztest_find_superior) which will return back the table containing all the superior information for a particular user/agent.
Note: This custom function module created should have the same interface as that of the SAP standard function module RH_GET_ACTORS.
The following table’s parameters have to exist in the custom function module.
                   ACTOR_TAB STRUCTURE SWHACTOR
                   AC_CONTAINER STRUCTURE SWCONT
Example:
FUNCTION ZTEST_FIND_SUPERIOR.
""Local Interface:
*"  TABLES
*"      ACTOR_TAB STRUCTURE  SWHACTOR
*"      AC_CONTAINER STRUCTURE  SWCONT
*"  EXCEPTIONS
*"      NOBODY_FOUND
  INCLUDE <cntn01>.
  TYPES : BEGIN OF ty_users.
          INCLUDE STRUCTURE ztest_users.
  TYPES : END OF ty_users.
  DATA: org_agent LIKE wfsyst-agent,
              lt_holders TYPE STANDARD TABLE OF swhactor,
              lwa_holders TYPE swhactor,
              lt_users TYPE STANDARD TABLE OF ty_users,
              lwa_users TYPE ty_users,
              v_len TYPE i,
              v_bname LIKE ztest_users-bname,
              num_lines TYPE i.
*Read values assigned to the rule criteria
  swc_get_element ac_container 'org_agent' org_agent.
*Get the superior
  SELECT SINGLE * FROM ztest_users INTO CORRESPONDING FIELDS OF lwa_users
  WHERE bname = org_agent.
IF NOT lwa_users IS INITIAL.
    REFRESH lt_holders[].
    lwa_holders-otype = 'US'.
    lwa_holders-objid = lwa_users-zsuperior.
    APPEND lwa_holders TO lt_holders.
    APPEND LINES OF lt_holders TO actor_tab.
  ENDIF.
  DESCRIBE TABLE actor_tab LINES num_lines.
  IF num_lines IS INITIAL.
    RAISE nobody_found.
  ENDIF.
ENDFUNCTION.
3. Now assign the function module on the rule.
Goto PFAC_INS  to create the Custom Rule.
In the rule definition category select Agent Determination: Function to be executed.
In the Function module field give the name of the function module created (ZTEST_FIND_SUPERIOR).
Check the Terminate if Rule resolution without result check box.
4. Create a container element ( org_agent)for the agent or user which will be passed to the function module.
Type:
WFSYST-AGENT.
properties: import.
5. Test the Rule by the Simulation button on the application toolbar.
Enter the user name in the Container Element value section and press enter.
It displays the name of the superior for the agent/user and the Agent Found is displayed in Green color.
Now you can use this rule in your Workflow definition.
Thanks,
Reshmi

Similar Messages

  • HELP NEEDED: ESS Sick Leave Workflow

    Hi ESS/MSS Gurus,
    Good day!
    I am a newbie workflow consultant currently working on enabling ESS-MSS for a client. In summary, here are their requirements:
    1. Leave Requests and Clock In/Out Corrections - Upon initiation of employee request, the work item is sent to the manager for approval. Regardless of the decision (either approve or reject), the employee will be notified via an email notification
    2. Sick Leave Requests - upon initiation of employee request, the work item is sent to the company doctor for approval. Regardless of the decision (either approve or reject), both the employee and his/her immediate manager will be notified via an email notification
    Here are some details regarding how I went about it:
    1. Leave Requests and Clock In/Out Corrections - Created a copy of workflow WS12300111 and included send mail steps after TS12300097 (Approval Process) to notify the work item initiators.
    2. Sick Leave Request - Created a copy of workflow WS12300111 and included send mail steps after TS12300097 (Approval Process). The approval process is pointed to the Position Company Doctor. After which a step was inserted after the approval process which uses a customized method (using FM SWX_GET_MANAGER) to determine the employee's manager. Then send mail steps are executed for the employee and the manager
    3. Clock Corrections and Sick Leave/Leave Requests belong to the same Rule Group
    During testing in our sandbox client I was able to successfully test all of the workflows. However, when I migrated the changes into our pseudo-QA system, I cannot launch the Sick Leave workflow from ESS. I encountered the following errors in PTARQ (standard leave request and clock in/out correction are ok):
    1. Scenario 1: applied leave coincides with the working time of the employee
       "Document created with information: P2 848: Absence encompasses planned work time
    2. Scenario 2: when only the total nmber of hours is entered for the applied sick leave date
       "No document created: HRTIM_ABS_REQ 094 Indentical clock times were adjusted, Check the entries"
    3. Scenario 3: applied leavedoues not coincide with the working time
       "Document created with warning" HRTIM00BLPRETRO 001 Time entry triggers retroactive accounting in payroll"
    For all cases, no work item was created in the back end.
    I would like to tap unto your wealth of knowledge and experience on how to address such errors. I need to determine if this is a misstep in the workflow, HCM, or ESS/MSS configuration to better isolate the errors.
    Your immediate response is highly appreciated.
    Regards,

    you dont need a custom WF first of all, You can directly use standard one cause we have a standard mail program
    called rptarqemail
    ie
    The mails will be directly triggered to the mail address once you run rptarqemail.
    Please check if you are running the report using the option since last
    run. The procedure is usually this :
    1. Create a Leave Request
    2. Execute the report RPTARQEMAIL.
    3. Approve the Leave Request.
    4. Execute the report RPTARQPOST.
    5. Execute the report RPTARQEMAIL.
    Now to determine different approvers for different types of leave you can use the option of badi PT_GEN_REQ
    IF_EX_PT_GEN_REQ~FIND_RESP_AND_DEFAULT_NEXT_PRC.
    Method FIND_RESP_AND_DEFAULT_NEXT_PRC of badi
    PT_GET_REQ  might be utilised here.
    Please have a look at the  method
    CL_PT_REQ_SEARCH_NEXT_P~SEARCH_NEXT_PROCESSOR.
    If you are implementing the badi then make sure you copy all the methods
    and implement the one, as mentioned.
    also note that
    Standard Leave request application offers the following options to
    determine the Next agent. This specifies whether and how the next agent
    of a leave request is to be determined.
    Last Agent: The system reads from the database the last agent to have
    had requests from this employee.
    Line Manager: The system uses the organizational model to determine the
    agent.
    Last Agent, Then Line Manager: If no agent is entered in the database,
    the system then uses the organizational model to determine the agent.
    No Calculation/Manual Entry: The system does not determine a next agent.
    Employees can enter an agent manually.
    However if the customer has a different requirement, the BADI PT_GET_REQ
    method FIND_RESP_AND_DEFAULT_NEXT_PRC is provided for this purpose.
    the message you get is correct and its a information message which will not stop leave request, they depend upon customisation which can be hidden too
    check here
    http://wiki.sdn.sap.com/wiki/display/ERPHCM/LeaveRequestCustom+Messages

  • Urgent Help needed in loggin to Workflow designer

    Hi there,
    I have a written a program from which a workflow get triggered automatically. The programs runs file in my machine. When i deploy it in my server machine it doesn't work. The server machine has a sandbox installed. But my machine doesn't have a sandbox. I have installed all tools separately in my machine.
    When i run my application in the server machine the following error comes:
    java.lang.reflect.UndeclaredThrowableException
    at $Proxy1.login(Unknown Source)
    at com.adobe.workflow.client.QLCSessionImpl.login(QLCSessionImpl.java:11
    6)
    at TriggerWorkflow.main(TriggerWorkflow.java:50)
    Caused by: java.io.InvalidObjectException: inauthentic principal assertion
    at com.adobe.idp.Context.getValidatedAuthResultFromAssertion(Unknown Sou
    rce)
    at com.adobe.idp.Context.readResolve(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:92
    5)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
    655)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
    at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
    at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvo
    kerProxy.java:136)
    at org.jboss.invocation.MarshallingInvokerInterceptor.invoke(Marshalling
    InvokerInterceptor.java:67)
    at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.
    java:46)
    at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:5
    3)
    at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessi
    onInterceptor.java:100)
    at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)
    ... 3 more
    com.adobe.workflow.client.QLCException: Login failed, or you do not have permiss
    ions to login to this application
    at com.adobe.workflow.client.QLCSessionImpl.login(QLCSessionImpl.java:12
    6)
    at TriggerWorkflow.main(TriggerWorkflow.java:50)
    I am seriously bugged by this error. I am giving the correct user name and password but still the error comes. I dont know how to solve this. This might be some small settings change. But i am not sure. Also when i try to connect the workflow designer through Eclispe in that server machine, even there the login failure message still comes.
    Can anyone please advise on this as it is very urgent.
    Suraj

    Hi Suraj
    Since you're getting this with Workflow Designer as well as your code, it doesn't look like it's anything with your code.
    It looks very much to me like you're specifying an invalid username and/or password.
    - Can you log into fm or adminui using the same username and password?
    - Can you log in to either Workflow Designer or your custom application using a different username and password?
    - Does your username or password contain non-USAscii characters?
    One thing I have seen is where there is a user in LDAP whose login name is "administrator". This can conflict with the LiveCycle local "administrator" account, and prevent you from logging in.
    I hope this is of some help...
    Howard
    http://www.avoka.com

  • Rules In Workflow

    Hi Experts,
    I am Facing a problem in creating rules on Basic of business Partner Address.
    I log a complaint of the business partner and the complaint shud go to that department's mail box who is handling the complaint of that area.
    Regards,
    Khurram Siddique

    Hi Khuramm,
    Then you need to  throught the Workflow document links.
    Check these links.
    http://www.sapgenie.com/workflow/index.htm
    <a class="jive_macro jive_macro_blogpost" href="" __jive_macro_name="blogpost" modifiedtitle="true" __default_attr="41080"></a>
    http://help.sap.com/saphelp_nw04/helpdata/en/92/bc26a6ec2b11d2b4b5006094b9ea0d/content.htm
    http://help.sap.com/saphelp_bw33/helpdata/en/92/bc26a6ec2b11d2b4b5006094b9ea0d/content.htm
    http://help.sap.com/saphelp_bw31/helpdata/en/8d/25f94b454311d189430000e829fbbd/content.htm
    http://www.sap-press.com/product.cfm?account=&product=H950
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
    http://www.workflowing.com/id18.htm
    http://www.e-workflow.org/
    http://www.sap-img.com/workflow/sap-workflow.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
    http://www.sap-img.com/workflow/sap-workflow.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
    Thanks,
    Chidanand

  • What is rule in workflow

    Hi all
       What is rule in workflow . How to create one.
        Kindly explain a scenario where rule is used.

    Hi,
    Rule is widely used for determining the workitem responsible agents using any custom logic. You can create it using transaction PFAC. Once you create it you can use the rule in your activiy for assigning it to the agents.
    You need to pass the required parameters to the rule container so that your custom logic reads it from there and determines the agents.
    I am sure SAP documentation provides you a much detailed explanation on how to create and use rule. For reference you can check the rule 00000168.
    1. Go to PFAC --->   00000168 ---> display.
    Check this for more Info.
    http://help.sap.com/saphelp_nw04s/helpdata/en/04/926f8546f311d189470000e829fbbd/frameset.htm
    Thanks,
    Reward If Helpful.

  • Help needed for writing query

    help needed for writing query
    i have the following tables(with data) as mentioned below
    FK*-foregin key (SUBJECTS)
    FK**-foregin key (COMBINATION)
    1)SUBJECTS(table name)     
    SUB_ID(NUMBER) SUB_CODE(VARCHAR2) SUB_NAME (VARCHAR2)
    2           02           Computer Science
    3           03           Physics
    4           04           Chemistry
    5           05           Mathematics
    7           07           Commerce
    8           08           Computer Applications
    9           09           Biology
    2)COMBINATION
    COMB_ID(NUMBER) COMB_NAME(VARCHAR2) SUB_ID1(NUMBER(FK*)) SUB_ID2(NUMBER(FK*)) SUB_ID3(NUMBER(FK*)) SUBJ_ID4(NUMBER(FK*))
    383           S1      9           4           2           3
    384           S2      4           2           5           3
    ---------I actually designed the ABOVE table also like this
    3) a)COMBINATION
    COMB_ID(NUMBER) COMB_NAME(VARCHAR2)
    383           S1
    384           S2
    b)COMBINATION_DET
    COMBDET_ID(NUMBER) COMB_ID(FK**) SUB_ID(FK*)
    1               383          9
    2               383          4
    3               383          2
    4               383          3
    5               384          4
    6               384          2          
    7               384          5
    8               384          3
    Business rule: a combination consists of a maximum of 4 subjects (must contain)
    and the user is less relevant to a COMB_NAME(name of combinations) but user need
    the subjects contained in combinations
    i need the following output
    COMB_ID COMB_NAME SUBJECT1 SUBJECT2      SUBJECT3      SUBJECT4
    383     S1     Biology Chemistry      Computer Science Physics
    384     S2     Chemistry Computer Science Mathematics Physics
    or even this is enough(what i actually needed)
    COMB_ID     subjects
    383           Biology,Chemistry,Computer Science,Physics
    384           Chemistry,Computer Science,Mathematics,Physics
    you can use any of the COMBINATION table(either (2) or (3))
    and i want to know
    1)which design is good in this case
    (i think SUB_ID1,SUB_ID2,SUB_ID3,SUB_ID4 is not a
    good method to link with same table but if 4 subjects only(and must) comes
    detail table is not neccessary )
    now i am achieving the result by program-coding in C# after getting the rows from oracle
    i am using oracle 9i (also ODP.NET)
    i want to know how can i get the result in the stored procedure itsef.
    2)how it could be designed in any other way.
    any help/suggestion is welcome
    thanks for your time --Pradeesh

    Well I forgot the table-alias, here now with:
    SELECT C.COMB_ID
    , C.COMB_NAME
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID1) AS SUBJECT_NAME1
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID2) AS SUBJECT_NAME2
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID3) AS SUBJECT_NAME3
    , (SELECT SUB_NAME
    FROM SUBJECTS
    WHERE SUB_ID = C.SUB_ID4) AS SUBJECT_NAME4
    FROM COMBINATION C;
    As you need exactly 4 subjects, the columns-solution is just fine I would say.

  • How to do binding of rule with workflow

    hi all
    i have a problem regarding the binding of rule ,which i have maintained ,with the workflow on which i am working.
    can any one please guide me how to do the binding of rule with workflow,the way am doing is like:
    i have vreated a container element in workflow compatible with container element used in rule where agents are kept.
    problem is arising when am trying to import that container in rule to my workflow ,at this step please suggest what should i bind in the binding of the workflow container.
    the exact parameters detail will really appreciated.
    am not new to the rule or workflow but somehow thing am doing is not working exactly the way i want it to be so.
    full marks will be rewarded
    best regards
    ashish

    Hi Ashish,
    Please refer the following link. It may be helpful.
    http://help.sap.com/saphelp_crm60/helpdata/en/c5/e4b0ae453d11d189430000e829fbbd/content.htm
    Regards,
    Johnny.

  • Color management help needed for adobe CS5 and Epson printer 1400-Prints coming out too dark with re

    Color management help needed for adobe CS5 and Epson printer 1400-Prints coming out too dark with reddish cast and loss of detail
    System: Windows 7
    Adobe CS5
    Printer: Epson Stylus Photo 1400
    Paper: Inkjet matte presentation paper with slight luster
    Installed latest patch for Adobe CS5
    Epson driver up to date
    After reading solutions online and trying them for my settings for 2 days I am still unable to print what I am seeing on my screen in Adobe CS5. I calibrated my monitor, but am not sure once calibration is saved if I somehow use this setting in Photoshop’s color management.
    The files I am printing are photographs of dogs with lots of detail  I digitally painted with my Wacom tablet in Photoshop CS5 and then printed with Epson Stylus 1400 on inkjet paper 20lb with slight luster.
    My Printed images lose a lot of the detail & come out way to dark with a reddish cast and loss of detail when I used these settings in the printing window:
    Color Handling: Photoshop manages color, Color management -ICM, OFF no color adjustment.
    When I change to these settings in printer window: Color Handling:  Printer manages color.  Color management- Color Controls, 1.8 Gamma and choose Epson Standard it prints lighter, but with reddish cast and very little detail and this is the best setting I have used so far.
    Based on what I have read on line, I think the issue is mainly to do with what controls are set in the Photoshop Color Settings window and the Epson Printer preferences. I have screen images attached of these windows and would appreciate knowing what you recommend I enter for each choice.
    Also I am confused as to what ICM color management system to use with this printer and CS5:
    What is the best ICM to use with PS CS5 & the Epson 1400 printer? Should I use the same ICM for both?
    Do I embed the ICM I choose into the new files I create? 
    Do I view all files in the CS5 workspace in this default ICM?
    Do I set my monitor setting to the same ICM?
    If new file opens in CS5 workspace and it has a different embedded profile than my workspace, do I convert it?
    Do I set my printer, Monitor and PS CS5 color settings to the same ICM?
    Is using the same ICM for all devices what is called a consistent workflow?
    I appreciate any and all advice that can be sent my way on this complicated issue. Thank you in advance for your time and kind help.

    It may be possible to figure out by watching a Dr.Brown video on the subject of color printing. Adobe tv
    I hope this may help...............

  • Rule in Workflow

    What is a rule in workflows, when is it used

    Hi,
    Rule is widely used for determining the workitem responsible agents using any custom logic. You can create it using transaction PFAC. Once you  create it you can use the rule in your activiy for assigning it to the agents.
    You need to pass the required parameters to the rule container so that your custom logic reads it from there and determines the agents.
    I am sure SAP documentation provides you a much detailed explanation on how to create and use rule. For reference you can check the rule 00000168.
    Thanks,
    Prasath N

  • Oracle Tutor Help Needed

    Hi
    We need help creating desktop manuals and workflows with Oracle Tutor.
    Does anyone know any consultants who might also be technical writers who can help out in our New York office?
    Much Appreciated,
    Lynn Redgrad
    PFI Pharamaceuticals

    Our company recently switched over to Tutor to handle our courseware and manual output. We successfully integrated Tutor output to application help. Overall I was quite satisfied with the work our consultant provided and I would recommend them - we reduced support costs by 30% with their help. I believe they are also in NYC. I don't have their full info on my laptop here but I have their lead's personal email - [email protected] .
    Let me know how things work out.
    Jed Bronton
    EVP Sumpac Financial

  • BOIS 4.2 - Disabling Rule Approval Workflow

    Greetings,
    How can we disable the rule approvals workflow in Information Steward ? from the application itself or from CMC ?
    Regards,

    Rule Approval is a part of rule management and governance process around validation rules. It's not possible to disable the rule approval.
    Can you explain your scenario and need for disabling the rule approval?

  • BADI for MDGF rule based workflow

    Hi Experts,
    I am really struggling to get a badi that can route on field assigned in my single and agent decision tables. I have used the standard BADI that was provided in RDS documentation for BP and Materials and just tried to change the entity name and field names without success.
    Can anyone please provide me with an example where someone has used this to route on field in finance.
    I am trying to route on Segment for Profit center
    Your help will be highly appreciated
    Thanks and best regards
    Riaan

    Hi Abdullah,
    I am using an existing attribute in the data model OG in the entity PCTR. The field name is PCTRSEG and element is fb_segment. In my rule based workflow in the Single decision table I have added fb_segment and I have populated the values against step 00. I have also updated my agent decision table with the fb_segment value.
    I am attaching the BADI that I am struggeling with.
    The service name for the change request is in the BADI filter. Thus when the requestor submit the Badi will be called and it will route to the person assigned in my agent decision table against the relevant segment..
    My problem is the following:
    The issue is that I don't know where I should maintain PCTRSEG and where I should maintain fb_segment in the BADI. Thus, where do I use the attribute name from the data model and where do I use the data element from the model.
    When the requestor submit the request it does not go to the next approver and I get the error" Agent could not be determined"
    I found ,when I change any of the values for the segment in the single and agent decision tables to not equal, example <> 1001 that the workflow works but all change requests will go to the same person.
    Thus my assumption is that something might be wrong with the BADI
    Your help will be highly appreciated
    Thanks
    Riaan
    Please find Badi below
    method IF_USMD_SSW_RULE_CNTX_PREPARE~PREPARE_RULE_CONTEXT.
        DATA:
          lo_crequest      TYPE
    REF TO if_usmd_crequest_api,
          lt_entities      TYPEusmd_t_crequest_entity,
          ls_entity        TYPE usmd_s_crequest_entity,
          lr_table         TYPE REF TO data,
          lt_sel           TYPE usmd_ts_sel,
          ls_sel           TYPE usmd_s_sel,
          lv_brf_expr_id   TYPEif_fdt_types=>id,
          ls_context       TYPEusmd_s_fdt_context_value,
          lv_exit          TYPE c.
      FIELD-SYMBOLS: <lt_fin_int>
    TYPE ANY TABLE,
                     <ld_fin_int>  TYPE
    any,
                     <pctrseg>      TYPEfb_segment,
                     <value>      TYPE
    any.
    * Prepare export parameters
      CLEAR et_message.
      CLEAR et_rule_context_value.
    * Get the CR API for the current
    CR
      CALL METHOD cl_usmd_crequest_api=>get_instance
        EXPORTING
          iv_crequest          = iv_cr_number
        IMPORTING
          re_inst_crequest_api = lo_crequest.
    * Create data instance of the
    entity PCTR for read access
      CALL METHOD lo_crequest->create_data_reference
        EXPORTING
          iv_entity    ='PCTR'
          i_struct     =if_usmd_model=>gc_struct_key_attr
        IMPORTING
          er_table     =lr_table
          et_message   =et_message.
      CHECK et_message IS
    INITIAL.
      ASSIGN lr_table->*
    TO <lt_fin_int>.
    * Get the instance keys for entity
    type PCTR
      CALL METHOD lo_crequest->read_objectlist
        EXPORTING
          iv_entity_type = 'PCTR'
        IMPORTING
          et_entity      = lt_entities
          et_message     =et_message.
      CHECK et_message IS INITIAL.
    * Read the PCTR entity of the one
    and only PCTR of the CR
      READ TABLE lt_entities INTOls_entity INDEX 1.
      CHECK sy-subrc = 0.
      ls_sel-fieldname ='PCTRSEG'.
      ls_sel-sign = 'I'.
      ls_sel-option = 'EQ'.
      ls_sel-low    = ls_entity-usmd_value.
      APPEND ls_sel TO lt_sel.
      CALL METHOD lo_crequest->read_value
        EXPORTING
          i_fieldname      = 'PCTRSEG'
          it_sel           = lt_sel
          if_edition_logic = abap_false
        IMPORTING
          et_data          = <lt_fin_int>
          et_message       = et_message.
    * Get the one and only FB_SEGMENT
    of the one PCTR in the CR
      LOOP AT <lt_fin_int> ASSIGNING <ld_fin_int>.
        ASSIGN COMPONENT 'PCTRSEG'OF STRUCTURE <ld_fin_int>
    TO <pctrseg>.
        EXIT.
      ENDLOOP.
      CHECK sy-subrc = 0.
    * fill out the return table
      get_element_id(
        EXPORTING
          iv_cr_type = lo_crequest->ds_crequest-usmd_creq_type
          iv_name    ='PCTR'
        IMPORTING
          ev_brf_expr_id = lv_brf_expr_id ).
      ls_context-id = lv_brf_expr_id.
      CREATE DATA ls_context-value TYPE fb_segment.
      ASSIGN  ls_context-value->* TO <value>.
      <value> = <pctrseg>.
      APPEND ls_context TO et_rule_context_value.
      endmethod.

  • Help on a rule - Rule to pick up employeeu00B4s boss salary to pay bonus

    Dear all,
    We have a little problem to customize a rule for a company which has a particular way to pay employee´s bonuses.
    We need a rule that intead of taking the employee´s IT08, it will take his boss´ salary to propose the initial amount. Does anyone know how to do this?
    We´re using 6.0, international payroll...
    Thank you very much,
    Jennifer

    Hi Jennifer,
    You can take the help of an ABAPER and write a program as provided below:
    1.  Program to check the Table HRP1001 (Relationship Infotype) and find out the Supervisor for the particular employee fro whom you want to implement the rule.
    2. Then Check the PA0008 of Supervisor and based on the how you want to further write the logic.
    Hope this helps.
    Regards
    Venu

  • Need to create a workflow that sends an email every friday, not every 7 days using sharepoint 2010

    Hi Everyone,
    So I need to have a workflow in sharepoint designer 2010 that sends an email out every friday, so far all the ones I have seen send it out 7 days from when the item was created, but not every (certain day of the week)
    Any help at all would be great.
    Thanks
    Best regards, Mike

    Hi,
    Greetings,
    Use Information Retention policy settings as below.
    pls check below
    http://social.technet.microsoft.com/Forums/office/en-US/7be77b5d-c686-4b33-b30c-204f7ffcd569/how-to-send-reminder-email-for-every-2-days-after-due-date-occurs-in-sharepoint-2010-workflow?forum=sharepointadminprevious
    I recommend to use Information Management Policy and workflow to achieve this goal.
    https://www.earley.com/blog/sharepoint-2010-using-retention-stages-manage-lifecycle-information
    http://www.danielroot.info/2012/08/information-management-policy.html
    You can also create custom timer job to start the workflow at a schedule time:
    http://bhandariasb.wordpress.com/2013/06/03/start-workflow-from-custom-timer-job/
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Troubleshoting help needed:  My iMac keeps crashing and restarting with a report detail: "spinlock application timed out"  What can I do to fix this?timed out"

    Troubleshooting help needed:  My iMac keeps crashing and restarting with a notice: "Spinlock application timed out"  What can I do?

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the page that opens.
    Select the most recent panic log under System Diagnostic Reports. Post the contents — the text, please, not a screenshot. In the interest of privacy, I suggest you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header and body of the report, if it’s present (it may not be.) Please don't post shutdownStall, spin, or hang reports.

Maybe you are looking for

  • Download error; cannot redownload OSX Mountain Lion

    I recently bought a MacBook Air, and I am trying to download and install my free copy of Mountain Lion. I started downloading it, and at one point the download stopped, and it says an error has occured in the app store. In my purchases, the button to

  • Help with downloading and installing Flash Player into new Mac OS

    After spending hours installing and uninstalling flash player into my new (I have had it for 5 days) macbook pro, I need your help. I have MAC OS Snow Leopard 10.6.4  64 bit My web browser is Safari 5.0.2 ( i couldn't find whether it is 32bit or 64 b

  • Expense for the price difference by reversing entry of goods

    Hi Experts, There is an Expense for the price difference by reversing entry of goods.   Conceptually is this correct? Thanks in advance. José Luis

  • Urgent: Field for doc currency?

    Hi experts, we have a generic extrator that brings in netwr(net value in document currency) also. The infoobject 0net_value has document currency as its reference currency. There is no field to map 0DOC_CURRCY in this extractor. Is it necessary to ch

  • Seprating value from string

    i have a string such as 12/6/1988 {monday}.now i have the get value of date to create date object .how it can be possible to extract date.