Updation of leaves from HR to Cprojects through BADI HRPAD00INFTY

Hi Experts,
I want to update the leaves from HR to Cprojects.
For that i am using BADI HRPAD00INFTY  
mplement the method IN_UPDATE from the BADI - HRPAD00INFTY. I am not able to figure out what the parameters IPSPAR, OLD_IMAGE, NEW_IMAGE, OLD_PREF_IMAGE, NEW_PREF_IMAGE are for and how they can be used in coding (am looking for info in addition to what is in the documentation).
According to the requirement I need to update the ENDDA, BEGDA and AVLUNIT fields in RPM_BUPA_AVL table.
I can see in the table NEW_IMAGE having the  fields ENDDA and  BEGDA. Here Data1 field having encrypted values.Any sample code for implementing this method would be very helpful.
Regards
Subhaskar

Have you checked what's in the Subtype field of table T777D for infotype 0002?
  IF t777d-namst ne space.                                  "QNOK025939
    MOVE <namst> TO <subty>.
  ENDIF.
Usually this sentence won't be executed unless there is something in that field. Usually we don't have subtypes for IT0002.
Also make sure that the infotype that gives the dump is 0002 and not 0105.
Regards.

Similar Messages

  • Error messages through BADI HRPAD00INFTY not reflected in Portal

    Hi
         We are on ESS 6 and using web dynpro based Iviews.
         Various custom validations have been configured in R/3 via
         BADI <b>HRPAD00INFTY</b> for leave request.
         But those validations are not getting reflected when creating a leave through
         leave request Iview in portal.I need all those custome R/3 validations
         messages to appear in portal as well.
    Regards
    Mohamed Mansoor

    > In which method should I write the validations and
    > more over the BADI has already been implemented via
    > class CL_PT_ARQ_REQ.
    write your validations in SIMULATE_VIA_BLOP method. You can find current record in IM_ATTABS_TAB. after ur validations, when u want to raise an error message use follwing code.
    CALL METHOD MESSAGE_HANDLER->ADD_MESSAGE
    EXPORTING
    IM_TYPE = 'E'
    IM_CL = 'HRTIM_ABS_REQ'
    IM_NUMBER = 'XXX'
    IM_PAR1 = 'SIMULATE_VIA_BLOP'
    IM_PAR2 = 'IF_EX_PT_ABS_REQ~SIMULATE_VIA_BLOP'
    IM_PAR3 = 'BLOP'
    IM_CONTEXT = ''
    IM_SUBCONTEXT = ''
    IM_CLASSNAME = 'CL_PT_ARQ_BLOP_ADAPTER'
    IM_METHODNAME = 'MESSAGE'.
    Here, IM_CL = 'HRTIM_ABS_REQ' is important.
    This is message class created using se93. and XXX is the message number.
    this should raise an error message on leave screen.
    Cheers!!
    Ashutosh

  • How to display Error messages through BADI HRPAD00INFTY in ESS ?

    Hi,
    In ESS, I want to perform custom validation on IT1067 ( Health Plan ) and allow only specific combinations of health plans to be selected.   We are on ECC6.0 EhP4 .  This infotype is "NOT PERMITTED" in the new decoupled framework and hence I cannot use NEW BADI's for validation and I am stuck with Classical BADI - HRPAD00INFTY.
    In my classical badi HRPAD00INFTY, after validation, I want to display an error message if "Invalid Combination" is selected by the user.  
    I tried using the following code to display the error message :
              DATA badi_message_handler   TYPE REF TO cl_hrpa_message_list.
              DATA message_handler        TYPE REF TO if_hrpa_message_handler. 
              DATA msg                    TYPE symsg.
              DATA is_ok                  TYPE boole_d.
              CREATE OBJECT badi_message_handler.
              message_handler = badi_message_handler.
              msg-msgid = 'YHBN'.
              msg-msgty = 'E'.
              msg-msgno = '006'.
              msg-msgv1 = c_none_plans. "'Invalid Plan'(z09).
              CALL METHOD message_handler->add_message
                EXPORTING
                  message = msg
                  cause   = message_handler->unknown.
                  is_ok = space.
              badi_message_handler->add_messages( message_handler ).
              RAISE error_with_message.
    The message is displayed in ESS but after that the Java Trace Exception is displayed.   I  want to display the error message in a user friendly way and provide an option to correct the plans.
    Please let me know if anyone has done similar thing or have any suggestions.
    Thanks

    Hi,
    DATA badi_message_handler   TYPE REF TO cl_hrpa_message_list.
              DATA message_handler        TYPE REF TO if_hrpa_message_handler. 
              DATA msg                    TYPE symsg.
              DATA is_ok                  TYPE boole_d.
              CREATE OBJECT badi_message_handler.
              message_handler = badi_message_handler.
              msg-msgid = 'YHBN'.
              msg-msgty = 'E'.
              msg-msgno = '006'.
              msg-msgv1 = c_none_plans. "'Invalid Plan'(z09).
              CALL METHOD message_handler->add_message
                EXPORTING
                  message = msg
                  cause   = message_handler->unknown.
                  is_ok = space.
              badi_message_handler->add_messages( message_handler ).
         *-- Add following--
        Exit.
              RAISE error_with_message.

  • Since the most recent Firefox update I have been unable to click through links from Windows Live to Firefox, but it works for Internet explorer?? Any explanations?

    Firefox is my default browser and since the most recent Firefox update I have been unable to click through links I receive from Windows Live Email to the Firefox browser, but it works if my browser is set to IE9?? I have checked the defaults settings and both are fine, so Any explanations or ideas on how to solve this?

    Take each of the following steps that you haven't already tried, until the problem is resolved.
    Step 1
    Restart the router. Many problems are solved that way.
    Step 2
    Change the name of the wireless network, if applicable, to eliminate any characters other than letters and digits. You do that on your router via its web page, if it's not an Apple device, or via AirPort Utility, if it is an Apple device.
    Step 3
    Run the Network Diagnostics assistant.
    Step 4
    Back up all data.
    Launch the Keychain Access 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 Keychain Access in the icon grid.
    Enter the name of your wireless network in the search box. You should have one or more "AirPort network password" items with that name. Make a note of the name and password, then delete all the items. Quit Keychain Access. Turn Wi-Fi off and then back on. Reconnect to the network.
    Step 5
    You may need to change other settings on the router. See the guidelines linked below:
    Recommended settings for Wi-Fi routers and access points
    Potential sources of interference
    Step 6
    Make a note of all your settings for Wi-Fi in the Network preference pane, then delete the connection from the connection list and recreate it with the same settings. You do this by clicking the plus-sign icon below the connection list, and selecting Wi-Fi as the interface in the sheet that opens. Select Join other network from the Network Name menu, then select your network. Enter the password when prompted and save it in the keychain.
    Step 7
    Reset the System Management Controller (SMC).

  • Error in Action when CRM Order is updated as Error from R/3 update

    Hi,
    Currently we are in CRM 6.0 SP04 and R/3 4.7 SP14
    Process:
    1) B2B user places order through ISA
    2) Order gets replicated R/3 from CRM through middleware (Scenario A setting)
    3) If there are any changes in order on either side, changes gets replicated.
    Requirement:
    We have a requirement from business to trigger workflow in CRM if order is in error. Following are the possible scenarios
    1) Error while saving order in CRM
    2) No errors in CRM. However, Order will get error in R/3 because of inconsistent configuration or master data between CRM and R/3. The BDOC will be green while replicating to R/3 and acknowledgement to CRM.
    3) BDOC status is in error
    Solution approach:
    We created an action to trigger event when order status set to "Contains error". The condition for Action trigger are Order have error free flag NE X(BUS 2000115 )  OR Status = I1030 OR status = I1056.
    Issues:
    1)     Scenario : Order is successfully create in CRM without any error. Order gets replicated to R/3 u2013 BDOC is green. However, the order gets error status in R/3 because of inconsistent configuration or master data. The acknowledgement BDOC updates the error status in CRM. However, Action does not get trigger when the order is updated as Error from R/3.
    Pls advise possible solution and also suggest any other way to achieve the required functionality to generate workflow for CRM order updated as Error from R/3.
    Regards,
    Anil Rithe

    Hi Anil,
    Try this, implement ORDER_SAVE BAdI.  This BAdI is triggered every time an order is saved, you could put in your logic to see if the order has errors, if yes trigger your workflow.
    I haven't tested but this should work for your case when the crm order is set to error status after the replication to R/3(the BDOC scenario).
    This may not be the most efficient method of doing, but this would definitely work.
    Make sure you use proper checks at the beginning  of your order_save BAdI implementation as this badi would get executed on save of every 1-order object.
    ~Kiran

  • 10.6.8 update won't install gets half way through then just freezes spinning beach ball for 4 hours any ideas y. Tried and restarted 3 times already does the same thing each time have to hold down the power button to restart

    10.6.8 update won't install gets half way through then just freezes spinning beach ball for 4 hours any ideas y. Tried and restarted 3 times already does the same thing each time have to hold down the power button to restart. Anyone can help

    Ok will check, as of right now I have 82.57gb free, that's plenty of space will check the disk though using disk utility. Also I am now downloading the update from the apple website instead of going through software update

  • I updated my OS from 10.6.4., to 10.8.2 I want to buy iDVD and I Movie, but bought iPhoto and can't get it to work yet.  Hesistant to buy the others without now having the original applications on my laptop. Do I need to buy the older versions first?

    I updated my OS from 10.6.4., to 10.8.2.  I want to buy iDVD and iMovie, but I bought iPhoto and can't get it to work yet.  I'm hesitant to buy the others without now having the original applications on my laptop. Do I need to buy the older versions first?  They are probably on my Snow Leopard install disc, but I am now running Mt Lion that I bought, and downloaded a few days ago...so I don't want to insert the old OS disc, thinking it might want to reinstall the old OS...  Thanks,
    KathyH-P

    Download iPhoto Library Manager and use its rebuild function. (In Library Manager it's the FIle -> Rebuild command)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  

  • HD video from i-pad mirroring through apple tv.

    I am trying to mirror an HD video from my i-pad through apple tv to a large screen tv. Have two systems set up about 20' apart that run independently. I seem to be getting some network interference? The video stutters or stops playing on the tv altogether but continues to play on the ipad. I have to restart to get the mirroring to work again. Both systems were working at about 90% (very little stuttering or droppage), then we had a second Airport Extreme installed and have been having intermittent problems since then. Could the two airports be interfereing with each other? Video is stored on i-pad so it is only streaming to apple tv.

    Indeed that is the problem but weird enough 4.4 is not loading from software update. Some says need to connect the Apple TV to the computer then it loads. I will try that...

  • Hi, I just updated my mac from version10.6 to 10.9.3 os mavericks. i went to open iPhoto and it says "Your photo library will not be readable by previous versions of iPhoto after the upgrade." does this mean I have lost all photos i had in there?

    Hi, I just updated my mac from version10.6 to 10.9.3 os mavericks. i went to open iPhoto and it says "Your photo library will not be readable by previous versions of iPhoto after the upgrade." does this mean I have lost all photos i had in there? It does not give me a choice, it just says quit or upgrade? p.s. i didn't realise ther was  a way to back up my computer beforehand, which i am guessing this is time machine?

    1. No, you haven't.
    2. Back up the iPhoto library(this can be done through Time Machine or by dragging it to a drive, partition, or disk image formatted as Mac OS Extended) and then click Upgrade.
    3. Aside from Time Machine and drag-copying items from your home folder, programs such as the Disk Utility, Carbon Copy Cloner, and SuperDuper can make backups.
    (108026)

  • HT4623 I'm trying to update my iPhone 5 to IOS 7 through iTunes. I get a pop up saying I need to update my iTunes to  11.0.5 before I can update my iPhone. The problem is my iTunes is current, and no update for iTunes is found. Any one have any suggestion

    I'm trying to update my iPhone 5 to IOS 7 through iTunes. I get a pop up saying I need to update my iTunes to  11.0.5 before I can update my iPhone. The problem is my iTunes is current, and no update for iTunes is found. Any one have any suggestions?

    I had the same problem. My phone wasn't finding it so I tried plugging it into my laptop and it said I needed the latest iTunes which I already had.... I unplugged my phone from my laptop and did a soft reset to my phone (hold down the lock button and home button at the same time until your phone turns off) once it turns back on you should find the update... Click general... Software update. Worked for me!

  • Difference between updating my ipod from ipod or computer

    Difference between updating my ipod from ipod or computer

    As in over the air vs through iTunes?
    When you do it over the air you download a smaller package and it's just the updated parts. When you do it via iTunes you download and install the whole operating system.
    Many update OTA and have no issue, I perfer to always do it through iTUnes.
    The most important thing is to always do a full sync and backup before you update the OS. Then you have something to restore it from just in case something goes wrong.

  • Update Yes/No field in access table through oracle procedure

    Hi,
    How to update Yes/No field in access table through oracle procedure. all other fields like AutoNumber, Text I can update it. Yes/No field how to update? Please, any one can help me?
    Thanks and Regards,
    Sudha.

    Sudha Teki wrote:
    select "fldPost" from tblPHd@ODBCLNKNot quite sure what you mean, but the way you select the column would indicate a case sensitive column name
    Look at this example
    SQL> create table t
      2  ("this" varchar2(10))
      3  /
    Table created.
    SQL> insert into t values ('hello')
      2  /
    1 row created.
    SQL> select *
      2    from t
      3  /
    this
    hello
    SQL> select this
      2    from t
      3  /
    select this
    ERROR at line 1:
    ORA-00904: "THIS": invalid identifier
    SQL> select "this"
      2    from t
      3  /
    this
    helloIs your column name also case sensitive?

  • HT1349 Actually, my iphone was hanged and its screen was not working at all .So, I updated its software from market but for reactivation it require icloud account but i didn't know how exactly it is and i was caught in big trouble . But i have its box and

    Actually, my iphone was hanged and its screen was not working at all .So, I updated its software from market but for reactivation it require icloud account but i didn't know how exactly it is and i was caught in big trouble . But i have its box and all other accessories .So , kindly help me as early as possible .Thankyou    and tell me about its solution
    <Email Edited by Host>

    Basic troubleshooting steps outline in the manual are restart, reset, restore from backup, restore as new.  Try each of these in order until the problem is resolved.  If you've been through all these steps and the trouble persists, you'll need to bring your phone to Apple for evaluation.  Be sure to make an appointment first at the Genius Bar so you won't have a long wait.
    Best
    GDG

  • More than 50 MB sized applications are grayed out with status of "Waiting/Installing", when we update those apps from WiFi Connection?

    Hi,
    Few application updates are available in iOS App store. However, Those applications are grayed out with status of "Waiting/Installing", when we update those apps from WiFi Connection. It's happening only for more than 50 MB sized applications. Unable to install those application through WiFi, However, it's successfully installed through MacBook Pro iTunes application. Please suggest me, why this happening suddenly.
    Thanks in Advance,
    Suresh Balakrishnan.

    - If I make the deployment required, it will install right away regarless of maintenance windows.  However, i don't want to use this option because if the user logs in to other machine (e.g. boardroom computer), it will auto install this software. 
    Re-check your deployment, specially the user experience:
    If you've checked the box next to "Software installation", it will install after the deadline has passed and ignores maintenance windows. Change the deployment to required and uncheck that box and the software should be installed according to your
    maintenance windows.

  • I was Updating my Iphone 4s to iOS 6 through itunes. an error happended now iphone stuck on connect to itunes logo screen .  tried tukrning on and of it connects but itunes does not recognize so i can restore .. any ideas?

    I was Updating my Iphone 4s to iOS 6 through itunes. an error happended now iphone stuck on connect to itunes logo screen .  tried tukrning on and of it connects but itunes does not recognize so i can restore .. any ideas?

    Dont know if accidently fixed it or not i got it to be recogniced by itune im restoring it now.  i held the power/sleep button till turned off.  then while holding the home button under the screen connected it to the usb wire .. also i change the usb port i was using on my computer dont know if it was luck or what but glad i got my phone back.
    itunes recognized it as in recovery mode
    http://support.apple.com/kb/HT1808
    got it working currently restoring from backup good luck guys

Maybe you are looking for

  • Unable to receive some emails in Exchange 2010

    Hi, Spent a few days on this and getting no where fast and out of ideas now. We migrated a customer from SBS2003 running exchange 2003 to Server 2012 running HyperV with Exchange 2010 on a VM. So far the migration had gone through without many issues

  • Copy owners with robocopy using powershell.

    Hi Friends.. I have created script to copy folder from one location to another location in PS. using Robocopy.. but By this script cannot copy the owner of the source location folder to destination..  below is the script.. please help me to add some

  • Expressway-e demo license

    Guys, I am trying to run MRA in my lab and I am wondering how I can get a demo license for expressway-e and c demo licenses for the lab. Any ideas?

  • VB code interface with R/3 using RFC

    hi, I want to find out the numbers of rows in the table by using VB(visual basic), i want know how to call the function module EM_GET_NUMBER_OF_ENTRIES (this module gives us nos. of rows of table)using VB. Is there any samplpe code where in i can und

  • Video Playback Pauses, freezes

    My Video playback (iTunes 6.0.5- G4 Laptop 15" titanium) constantly pauses and freezes at key points during playback. It will make it approx. half way through a show, then start jumping and freezing. Any Suggestions? Thanks for any help