Code for Custom Workflow to auto approve the task

Hi All,
Can any body help me with the java code to complete the Auto Approval Task.in OIM 11.1.1.5.
Thank you

1. Get the requester information from the payload. (In the Oracle sample the request Id is brought from the payload, similarly you can get the requester id and etc).
2. Get the target user information from the payload along with target user's manager.
3. Set the data from the two above into global variables and copy them into your .task variables.
4. In the task use two serial stages and inside the stage use the skip rule condition with the variables from step 3.
-Bikash

Similar Messages

  • Quote Approval Workflow (ASOAPPRV) setup for customized workflow initiation

    Hi,
    We have customized Quote Approval Workflow (ASOAPPRV) XXXASOAPPRV, would like to understand how to setup that custom workflow XXXASOAPPRV will be triggered for Quote Approval process, when we submit the Quote for approval from Quotes screen.
    Appreciate your help on this.
    Regards,
    Ram

    Pl see your duplicate post here - Quote Approval Workflow (ASOAPPRV) setup for customized workflow initiation
    Srini

  • The t-codes for customizing

    Could somebody tell me the rules of t-codes for Customizing Implementation in EHS?
    For example:
    " Specify Value Assignment Types "    ( EHS_MD_120_30_3 )
    Normally it is the last 4 letters. But what is the rule for this?
    Thanks!
    Li

    Hi Jayakumar;
    Maybe I didn't describe it clearly.
    SPRO --> IMG
    In the menu, Additional information -->Additional information --> Display key --> Activity IMG
    Then there is a column of " Additional information " coming out.
    For example:
    SAP NetWeaver --> General Settings --> Maintain Calendar
    The Additional information is " SIMG_CFMENUSAPCOY05 "
    Then you go back to " SAP easy access ",
    Input the t-code " OY05 " (Normally it is the last four letters of the code of Activity IMG).
    My question is: This t-code rule of  " the last 4 letters " doesn't fit EHS customizing.
    I just don't want to each time turn on the long guiding menu of  IMG.
    Do you have an easier way?
    Thank you!
    Li
    Edited by: Li Cheng on Mar 25, 2010 11:42 AM
    Edited by: Li Cheng on Mar 25, 2010 11:42 AM
    Edited by: Li Cheng on Mar 25, 2010 11:43 AM

  • Transaction code for Custom report

    Hi,
    How to create transaction code for Custom report ?
    the custom report is a drilldown report of COPA, which can seen in tcode  FDI3.
    then how to add this new transaction to the menu path Easy assess->FI->AR->Information system->Reports->customers:items.
    Thanks,
    Swetha

    Hi Swetha,
    There is a special way to assign tcodes to such reports. Normally you create the report via report painter/writer. These reports are part of library and report group.
    Create the tcode in SE93. Then at the bottom of the screen you would find option to specify report group, report name, variant to lauch with. Don't have system to specify the exact way of specifying, if you need I can provide on monday. You can take some existing COPA standard report and check from SE93.
    --Ram

  • T code for custom infotype in PA

    Hi
    T code for custom infotype in PA.
    Regards
    Sudha

    Hi Sudha,
    PM01 is the tcode.
    Similar questions were already answered in the following threads
    ABAP HR : Infotype Enhancement
    So please search and then post specific queries.
    rgds
    gayathri

  • Adding one more participant to approve the task in workflows

    Hi All,
    I'm having a requirement of adding the adding one more workflow user for approving the task. How to add one more workflow user in the human and allow him to approve the task which has been already approved by another workflow user, means it is hierarchical approval.
    First the task has been approved by assignee then finally the task has been approved by the approver who has admin rights.
    Regards,
    CH

    Hi,
    I have added the users but i need to approve the same task for twice then it is propagating the data to the other end. Is there any hierarchy that we have to
    define for the user inside human task.
    Everytime I'm approving the request for twice. How to approve the request for only one time.
    Regards,
    CH

  • Auto Approving the Work Items.

    Hi,
    I am working on scenario where if manager is requesting something for user, like Course Approval or Cancellation then WF should auto approve the WI.
    If initiator = manager
    then auto approve WI and send notification.
    How can i achieve it.

    Can you please let us know what is module you are working, because , there is a possibility that you might have specific process function modules to approve the workitem from back ground and at the same time the FM will update teh respective tables infotypes or master tables with new updated status.. so first preference should always be searching for the module or process sepcific standard function modules..
    If at all you dont find any function mdoules then you can make use of the workitem specific fm like SAP_WAPI_EXECUTE_WORKITEM or SAP_WAPI_Decision_Complete and to write the new values into the workitem container then you can make use of the fm SAP_WAPI_WRITE_CONTAINER.....

  • [svn] 4634: First part of glue code for allowing Halo components to use the new Text Layout Framework , in order to get functionality such as bidirectional text.

    Revision: 4634
    Author:   [email protected]
    Date:     2009-01-22 17:38:56 -0800 (Thu, 22 Jan 2009)
    Log Message:
    First part of glue code for allowing Halo components to use the new Text Layout Framework, in order to get functionality such as bidirectional text.
    Background:
    TLF is making this possible by implementing a TLFTextField class. It is a Sprite that uses TLF to implement the same properties and methods as the legacy TextField class in the Player. Thanks to the createInFontContext() bottleneck method in UIComponent, it can be used by a properly-written Halo component (such as those in Flex 3) without any modifications to the component.
    Note: Text should render similarly -- but is unlikely to render identically -- when a component uses TLFTextField vs. TextField. The width and height may be different, affecting layout; text could wrap differently; etc. This is a fact-of-life based on the fact that TLF/FTE and TextField are completely different text engines.
    Whether a Halo component uses TLF or not to render text will be determined in Flex 4 by a new style, textFieldClass. (Gumbo components always use TLF.)
    TLFTextField is currently only partially implemented. It does not yet support scrolling, selection, editing, multiple formats, or htmlText. Therefore it can only be used for simple display text, such as a Button label.
    Details:
    The TextStyles.as bucket 'o text styles now includes a non-inheriting textFieldClass style. It can be set to either mx.core.UITextField or mx.core.UITLFTextField. These are the Flex framework's wrapper classes around the lower-level classes flash.text.TextField (in the Player) and its TLF-based workalike, flashx.textLayout.controls.TLFTextField.
    The global selector in defaults.css currently sets it to mx.core.UITextField using a ClassReference directive. For the time being, all Halo components will continue to use the "real" TextField.
    The new UITLFTextField is a copy of UITextField, except that it extends TLFTextField instead of TextField. This class has been added to FrameworkClasses.as because no classes in framework.swc have a dependency on it. It will get soft-linked into applcations via the textFieldClass style.
    The TLFTextField class currently lives in a fourth TLF SWC, textLayout_textField.swc. This SWC has been added to various build scripts. The external-library-path for building framework.swc now includes all four TLF SWCs, because UITLFTextField can't be compiled and linked without them. However, since they are external they aren't linked into framework.swc.
    Properly-written Halo UIComponents access their text fields only through the IUITextField interface, and they create text fields like this:
    textField = IUITextField(createInFontContext(UITextField));
    (The reason for using createInFontContext() is to support embedded fonts that are embedded in a different SWF.)
    The createInFontContext() method of UIComponent has been modified to use the textFieldClass style to determine whether to create a UITextField or a UITLFTextField.
    With these changes, you can now write code like
    to get two Buttons, the first of which uses UITextField (because this is the value of textFieldClass in the global selector) and the second of which uses UITLFTextField. They look very similar, which is good!
    Currently, both Buttons are being measured by using an offscreen TextField. A subsequent checkin will make components rendering using UITLFTextField measure themselves using an offscreen TLFTextField so that measurement and rendering are consistent.
    QE Notes: None
    Doc Notes: None
    Bugs: None
    Reviewer: Deepa
    Modified Paths:
        flex/sdk/trunk/asdoc/build.xml
        flex/sdk/trunk/build.xml
        flex/sdk/trunk/frameworks/projects/framework/build.xml
        flex/sdk/trunk/frameworks/projects/framework/defaults.css
        flex/sdk/trunk/frameworks/projects/framework/src/FrameworkClasses.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/styles/metadata/TextStyles.as
    Added Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UITLFTextField.as

    Many of your points are totally legitimate.
    This one, however, is not:
    …To put it another way, the design of the site seems to be geared much more towards its regular users than those the site is supposedly trying to "help"…
    The design and management of the forums for more than five years have driven literally dozens of the most valuable contributors and "regulars" away from the forums—permanently.
    The only conclusion a prudent, reasonable person can draw from this state of affairs is that Adobe consciously and deliberately want to kill these forums by attrition—without a the PR hit they would otherwise take if they suddenly just shut them down.

  • Hi basically when i try download a app its saying sign in required ask for sercurity code for bank card and i put the correct details in and still saying its invalid? Can anyone help

    Hi basically when i try download a app its saying sign in required ask for sercurity code for bank card and i put the correct details in and still saying its invalid? Can anyone help

    Refusal of a card is based on information provided matching what is on file from your credit card provider. If it is refused, it generally means something is not matching. That can inclue the name, the address or other information. It has to be exact to match. If you check your credit card bill to make sure you are spelling the name correctly, the address is listed correctly, and yes, ST is different than Street, and it still does not work, contact iTunes support. http://www.apple.com/emea/support/itunes/contact.html

  • Good afternoon! What to do if forgot an access code for write-off of money from the card?

    Hello!!!
    What to do if fogot an access code for write-off of maney from the card?

    If you made in app purchases in a game, and you did not receive the "items" you paid for, contact the developer of the game.  If you are unable to receive support from the developer, you then should contact the iTunes store and inform them that you did not recieve the purchased content. 
    IF iTunes store support refunds the money that you spent, I would suggest you NOT use the refunded money for the same items, as you may not receive a refund for the same thing again.
    Good Luck.

  • Error in the ABAP Code for Customer Exit Variable

    Could you please update me what is the wrong with the below ABAP Code developed for Customer Exit Variable in BW
    i created a Variable (ZVWKNO) of Customer Exit,Single Value ,Mandatory and Variable is ready for input
    In CMOD i had written the below Code:
    When 'ZVWKNO'.
    DATA: WEEK(2) TYPE N,
    WEEKNO(2) TYPE N.
    IF i_step = 1.
    l_st_date = SY-DATUM.
    CALL FUNCTION 'DATE_GET_WEEK'
    EXPORTING
    DATE = l_st_date
    IMPORTING
    WEEK = l_fn_week.
    CHECK sy-subrc = 0.
    WEEK = l_fn_week+4(2).
    If WEEK 0.
    WEEKNO = WEEK - 1.
    l_s_range-low = WEEKNO.
    l_s_range-sign = k_sign_inclusive.
    l_s_range-opt = k_option_equals.
    APPEND l_s_range to e_t_range.
    ENDIF.
    ENDIF.
    But when i execute the query the default value is not populated with Week-1 No in the variable screen
    Please update me what went wrong
    Thanks

    Case ZVWKNO.                "write this with out comments
    When '1'.              "write the value that needs to equal with value in varaible ZVWKNO after when in sungle quotes
    DATA: WEEK(2) TYPE N,
    WEEKNO(2) TYPE N.
    IF i_step = 1.
    l_st_date = SY-DATUM.
    CALL FUNCTION 'DATE_GET_WEEK'
    EXPORTING
    DATE = l_st_date
    IMPORTING
    WEEK = l_fn_week.
    CHECK sy-subrc = 0.
    WEEK = l_fn_week+4(2).
    If WEEK 0.                                    "check this Week Minimum is '01' and Maximum '52'
    WEEKNO = WEEK - 1.
    l_s_range-low = WEEKNO.
    l_s_range-sign = k_sign_inclusive.
    l_s_range-opt = k_option_equals.
    APPEND l_s_range to e_t_range.
    ENDIF.
    ENDIF.
    Prabhudas

  • Can you share the source code for Customer ToughDay stress test tool?

    Hello,
    I would like to try Customer ToughDay tool (http://dev.day.com/docs/en/cq/current/testing/tough-day.html) for load testing of our author instances of CQ5. While I am able to execute the application, the logging with log4j seems to be configured incorrectly.
    Can you share the source code for toughday-5.5.jar?  I think it can be a very good starting point for those of us who are new to CQ5 and need to load test it.
    Thank you!

    Hi,
    I don't believe there are any differences between the two versions. But you can check the source code for the Numeric Limit Test in TestStand\Components\NI\StepTypes\CommonSubsteps. But the main part of the step is the Code Module and this bit the users supplies this.
    What has prompted this question?
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Where do I write the code for customer exit variable?

    Hi Gurus,
    Can anyone tell me where and the procedure that I have to follow to get to the include ZXRSRU01 where I can write customer exit variable code.
    I know its written in ZXRSRU01, but in my system it seems like its not active or does not exist. How do I get to start working in this include for customer exit variables?
    Any help is appreciated. Thank you.
    Regards
    Reddy

    hi Reddy,
    variable exit use enhancement RSR00001 not RSAP0001. EXIT_SAPLRRS0_001.
    try to follow some steps in 'how to' doc related to this, and sample code may useful for you
    https://websmp206.sap-ag.de/~sapdownload/011000358700002762582003E/HowToDeriveVariableValue.pdf
    https://websmp206.sap-ag.de/~sapdownload/011000358700002765042003E/HowToVerifyVariableInput.pdf
      INCLUDE ZXRSRU01                                                   *
      DATA: L_S_RANGE TYPE RSR_S_RANGESID.
      DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
      CASE I_VNAM.
      WHEN 'CUMMONTH'.
        IF I_STEP = 2.                                  "after the popup
          LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
                  WHERE VNAM = 'MONTH'.
            CLEAR L_S_RANGE.
            L_S_RANGE-LOW      = LOC_VAR_RANGE-LOW(4)."low value, e.g.200001
            L_S_RANGE-LOW+4(2) = '01'.
            L_S_RANGE-HIGH     = LOC_VAR_RANGE-LOW.   "high value = input
            L_S_RANGE-SIGN     = 'I'.
            L_S_RANGE-OPT      = 'BT'.
            APPEND L_S_RANGE TO E_T_RANGE.
            EXIT.
          ENDLOOP.
        ENDIF.
      ENDCASE.
    hope this helps.

  • UWL modification for Custom Workflow

    Hello ,
    We are implementing Expense Approval on EP7.0 via UWL....there is a custom workflow in the ECC system which was being used earlier in ITS....we want the same Inbox entries on portal and give managers the option to Approve from there....they are able to Approve .....but the "Approve with Changes" button is not working ....it just says "Successful" at the top but does not actually approve it ....do we need to make changes in the UWL XML file for this...?
    Any help would be highly appreciated.

    Hi Saurabh,
      try to add your custom attribute in your view com.sap.pct.erp.mss.myOpenTasksTimeAp  how <DisplayAttributes>.
    Example:
    <View name=...........
    <DisplayAttributes>
    <DisplayAttribute name="REQ_ID" type="string" width="" sortable="yes" format="default" referenceBundle="decision" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes"/>
    <DisplayAttribute name="VERS_NO" type="string" width="" sortable="yes" format="default" referenceBundle="decision" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes"/>
    </DisplayAttributes>
    Change the type and the other property of displayattribute as you want.
    Regards,
    Rocco
    Edited by: Rocco P. on Oct 20, 2011 10:39 AM

  • Transaction code for custom table

    Hi there,
    I created one custom table. I created Tbale Maintenance Generator for this. I have to create transaction code for this table so that user can directly open this custom table in SM30. Can anybody suggest on this. is there any other way to do this so that user can directly open this custom table in SM30 mode?
    Regards,
    Zakir.

    Hi
    Check this link for creating a transaction code for a TM
    http://www.sap-img.com/abap/create-a-table-maintance-program-for-a-z-table.htm
    Please go throught below link ..... it was given with screen shots of the T.code Creating for the table after the maintaince view had been created ......
    http://www.sapdevelopment.co.uk/tips/tips_tabmaint_tcode.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/how%20to%20implement%20events%20in%20table%20maintenance.doc
    Regards
    Anji

Maybe you are looking for

  • Case-Insensitive Searching on Content Server

    Hello everyone, I have a Content Server 10gr3 using an Oracle 11g DB. All of my searches are case sensitive, but we need case-insensitive searching. I've tried changing the DatabasePreserveCase variable in the config.cfg to 1, 0, true, and false, reb

  • Possible to get Apple TV for older TV

    I'm hoping there is a way (and if so, how) to hook up any generation of Apple TV to this television http://www.cnet.com/products/samsung-hln567w/specs/ If so, PLEASE respond ASAP! Thanks so much in advance for any help, Christian

  • Mobility Anchor , extened anchor

    I have a query. If there are 3 companies all using cisco wlc and 2 of the companies have a mobility anchor between them.(Company A and B), is it possible to for Company C to connect to companie A wireless lan via the mobility anchor on Company B?  Ki

  • Broken old computer wanna sync ipod to new laptop

    i had my ipod synced to my old computer and it broke.. i want to sync my ipod to my new computer. how do i do this with out restarting my ipod or losing data. i am afraid i am going to lose my data if i do something wrong please specific instrustions

  • Apps Fail

    Help! We are a school district that has deployed the CS6 via virtual deployment. We have several models of computers and one of which doesn't allow the Adobe Apps to run. It appears that the app and the app manager start then quit a short time later