HRPAD00INFTY and HR_INFOTYPE_OPERATION

Hi All,
I am using the BADI HRPAD00INFTY and HR_INFOTYPE_OPERATION to change the date field in infotype 41.
But it is going into short dump saying source field is too small.
Can anyone tell what is the problem and suggest what must be done?
Thanks
Siddartha

Hi,
Check the length of the fields that are passed to the FM it would be less than the length of the FM parameters as per the dump
Hope this helps
Regards
Pavan

Similar Messages

  • Check with HR_MAINTAIN_MASTERDATA and HR_INFOTYPE_OPERATION

    Hello,
    I have two questions about these FMs :
    1) Is it possible to use 'CHK' action with the FM HR_MAINTAIN_MASTERDATA ?
    2) When I use the FM HR_INFOTYPE_OPERATION with action CHK no record is created, but after that, with action INS, the infotype record is created twice even if I use the instruction ROLLBACK WORK.
    How to clear the memory after the CHK action?
    Best regards,
    K.

    Hi Karim,
    <li>I believe that ACTION is the parameter which is being passed to HR_MAINTAIN_MASTERDATA and
    HR_INFOTYPE_OPERATION  function modules. IF you go and see referenced field domain values you will see  the following, But I can't see CHK value in the domain.
    COP     Copy
    DEL     Delete
    DIS     Display
    EDQ     Lock/unlock
    INS     Create
    LIS9     Delimit
    MOD     Change
    INSS     Create for Actions is not converted to Change
    Thanks
    Venkat.O

  • FM 'HR_INFOTYPE_OPERATION' & BADI 'HRPAD00INFTY'

    Hello fellow Abapers. I am experiencing problems trying to implement the following.
    We have a custom infotype (9127) that has 8 intervals of dates. We want to created an absence if any of these intervals are filled. So, after some research i have found this BADI 'HRPAD00INFTY' and specially the method 'IN_UPDATE'. This method is triggered after pushing the save button, so it's just what i needed. I have already the information i need (after converting prelp structure to pnnnn) and then i try to create a record in INFTY 2001 with FM 'HR_INFOTYPE_OPERATION'.
    I have made a small report with this FM and it works just fine, i can create a record i PA2001 just fine, but in the implementation of the BADI it isn't working. I guess it might be something to do with 'locks', not really sure, so if anyone has a suggestion i'd appreciatiate it.
    BTW, here is the code i am using :
            CALL FUNCTION 'HR_INFOTYPE_OPERATION'
            EXPORTING
              INFTY                  = '2001'
              NUMBER                 = wa_9127-pernr
              SUBTYPE                = 'L145'
        OBJECTID               =
        LOCKINDICATOR          =
              VALIDITYEND            = <fs2>
              VALIDITYBEGIN          = <fs1>
        RECORDNUMBER           = 0
              RECORD                 = rec2001
              OPERATION              = 'INS'
        TCLAS                  = 'A'
        DIALOG_MODE            = '0'
        NOCOMMIT               =
        VIEW_IDENTIFIER        =
        SECONDARY_RECORD       =
            IMPORTING
              RETURN                 = codret
        KEY                    =
    Thanks in advance, Pedro Guarita.

    In FM 'HR_INFOTYPE_OPERATION', commit work is executed after infortype was updated.  Infortype 9127 and corresponding BAdi belong to the same SAP LUW. So it leads to commit work has no effect in BAdi.
    A common solution is to call u2018HR_INFOTYPE_OPERATION' by a submit program, this will trigger another LUW in a new work process to commit your data. The pain point for this solution is that you have to pass the data to your new program (always use memory).  Also guaranteeing the success is a little bit difficult .
    Another solution is to call FM like this: CALL FUNCTION 'HR_INFOTYPE_OPERATION' DESTINATION 'NONE' in BAdi 'HRPAD00INFTY'. Help this will help u.
    Regards,
    Kevin

  • Upload excel and update infotype 8

    Hi
    I got excel sheet with Emp ID, grade and Level.  Using this excel sheet I needed to update all the employees  grade and level (Info type 8 group and level).
    Please let me know how to upload it.
    Regards,
    Sebastian  John
    Excel sheet format is
    Emp  ID                        Grade         Level
    102                               8                12
    104                               7                15

    Hi Sebastian John
    Use FM  GUI_UPLOAD and  HR_INFOTYPE_OPERATION
    GUI_UPLOAD ==> to upload text or excel file to internal table
    then for each record... Note: You must be having mandatory(Primary Key) fileds in your flat file
    loop at itab.
    calll function 'HR_INFOTYPE_OPERATION'.
    endloop.
    Hope it will solve your problem..
    Thanks & Regards
    ilesh 24x7
    ilesh Nandaniya

  • HRPAD00INFTY IN_UPDATE currency field

    Hi abapers,
    We have a custom infotype (structure P9003) that has an include structure PS9003 consists of 2 components (component types PAD_AMT7S and
    WAERS). We want to make some controls when saving this datas from pa30. We have implemented BADI 'HRPAD00INFTY' and used method 'IN_UPDATE'. But when debugging this method, NEW_IMAGE-DATA1 field contains ##P#USD, although in screen we input 500,00 and USD . How can i solve this problem.
    Thanks.
    Message was edited by:
            Kaan Sezer

    hi kanupriya,
                          i am not a fully technical guy so plz help me ...
    My all the required data in the It0000 screen .Now i created the ZHRPAD00INFTY badi from se 19 in
    HRPAD00INFTY~IN_UPDATE method i have to take all the screen values and save in the PA0002 table  such as in standard badi is doing.
    now how i will check it data regarding the IT0000 or IT0002 .
    kindly guide me ......
    i have my all screen data in this endmethod (parameters)
    now how i have assign to pa0000.
    method IF_EX_HRPAD00INFTY~IN_UPDATE.
               NEW_PREF_IMAGE = NEW_PREF_IMAGE.
               OLD_PREF_IMAGE = OLD_PREF_IMAGE.
               NEW_IMAGE = endmethod..
               OLD_IMAGE = OLD_IMAGE.
               IPSPAR = IPSPAR.
    endmethod.
    thanks
    sandeep

  • HELP IN ABAP HR

    I NEED THE SELECTION-SCREEN ELEMENTS OF LDBS
    1)PNP
    2)PAP
    3)PCH
    AND WHAT ARE THE METHODS IN BADI HRPDAINFTY

    There is no BADI exist as 'HRPDAINFTY' but there is one withthe name 'HRPAD00INFTY' and the methods in this BADI are :
    1)BEFORE_OUTPUT : Infotype Maintenance: Call-Up Time PBO
    2)AFTER_INPUT : Infotype Maintenance: Call-Up Time PAI
    3)IN_UPDATE : Update Program: Call-Up During Update
    and to get screen elements create a program using each LDB and do the followin :
    Use the follwoing Function module.You have to pass the program name and screen no.
    RS_SCRP_GET_SCREEN_INFOS.
    The Table parameter FIELDLIST will return all the screen elements for a particular screen..
    Regards,
    Rock.
    Edited by: Rock on Jul 9, 2008 10:31 AM

  • Function modules for operations on Info Types

    Hi All,
      what is the difference between function modules HR_MAINTIAN_MASTERDATA and HR_INFOTYPE_OPERATION ??

    Hi vijay,
    1. HR_INFOTYPE_OPERATION
       It is just a wrapper function module
       Inside, it finally uses 
       HR_MAINTIAN_MASTERDATA  only.
       (HR_MAINTIAN_MASTERDATA  does the real work)
    2.  HR_INFOTYPE_OPERATION
        This FM Does some small extra things viz.
       a) check for infotype existence
       b) check the particular record
         If not found, then operation = INS (Insert)
         (This kind of facility is not available in
            HR_MAINTIAN_MASTERDATA )
    3. SAP Recommends to use  HR_INFOTYPE_OPERATION .
    I hope it helps.    
    regards,
    amit m.

  • ABAP-HR, Organization managemnt function module

    Hi friends,
    In ABAP-HR, i want all function modules we use regularly or hardly.
    Thanks&Regards,
    Shiva Prasad

    Certain function modules which work with PA infotypes are HR_READ_INFTY and HR_INFOTYPE_OPERATION.
    Function modules which work with PP infotypes you can find by selecting using
    RH_READ_INFTY_*
    Some function groups used in HR are given below.
    RPAI     HR: Analysis from Infotypes
    RPBS     HR Error Processing
    HRGL     Read leave data
    HRTIM00WORK-SCHED-CONVERT     Replacement Modules for Func. Group RPTM
    RPTM     H
    HRPAY99_OC     New off-cycle functions
    HRTIM00ACTUALTIMES     Calculation of Actual Personnel Times
    PA03     HR: Read personnel control record (PA03)
    CAPP     Time Sheet: Approval
    APPL     Business Object Applicant
    VAP1     Concerns Applicant
    HRP3     Module for feature tree maintenance
    HRXSS_CAT_WEBDYNP     Web Dynpro: RFC
    RPAT     Data transfer and interfaces
    RHOV     HR-CA Utilities for Vacancies
    PAPL     HR applicant data workflow
    RPAP_WORDPROCESSOR     Interface Between PA-RC and MS Word
    RPAP_DATA_MINING     Data Collection PA-RC Letters
    HRCM     Compensation Management
    RHBY_2     Integration Switches
    HRTC     HR-CA: Account Assignment Block/Check
    PARA     Annual salary functionality (ANSAL)
    RPCA     Function Modules for CATT Procedures
    PTWS     HR-TIM: Personal Work Schedule
    PDSU     Connection to SAP Structural Graphics
    Regards,
    Aravind

  • ABAP: Modify PA infotype without authorization check

    Hello everyone,
    Short version:
    I know two FM that can modify PA infotype data:  HR_MAINTAIN_MASTERDATA and HR_INFOTYPE_OPERATION. However, neither of those includes a parameter that allows using them without them automatically checking authorizations (like you can do with, say, FM RH_INSERT_INFTY which has parameter AUTHY to disable authorization checks but only works with OM infotypes, but not PA infotypes).
    Does anybody know a solution?
    Long version:
    We want the travel department to be able to maintain infotype 17, and only infotype 17. In fact, there are only two fields there that need to be maintained in our company. That department should not have access to any other infotypes, and we are not going to give them PA30. On the other hand, they shall be able to do so for any employee, no matter from which personnel area, subarea, and organizational unit.
    So I have created a small program with a mask specifically tailored to their needs. But we do not want to give them any PA authorizations. Giving them P_ORGIN to infotype 17 might not be a big deal, but then we would also need to give them structural authorization to all companies (= org units and personnel areas). Unlimited structural authorization is a big deal, and I would rather avoid granting that to someone who is not supposed to be doing anything but this tiny bit in HR. The only authorization that I would like to see in place is transaction authorization for my program. Anyone who has that should be allowed to maintain these IT 17 fields for any employee, but nothing else.
    The problem is that upon writing the data, FM HR_INFOTYPE_OPERATION auto-checks the authorization required for maintaining the infotype, including structural authorization, and so does FM HR_MAINTAIN_MASTERDATA, as far as I understand. Is there an alternative I could go for?

    ECM stands for Employee Compensation management and is one of the SAP HR module.
    But I doubt you can use ECM specific function module to modify/insert infotype 17 values as below are the main infotypes for ECM module.
      Employee Infotype
      Description
    0758
    Compensation Program
    0759
    Compensation Process
    0760
    Compensation Eligibility Override
    0761
    LTI Granting
    0762
    LTI Exercising
    0763
    LTI Participant Data

  • Need help in developing BADI for IT0001

    Hi All,
    I need help in developing BADI for IT0001.
    On IT0001 create or change, there is need to update IT0017 with following data from IT0001
    -Company Code
    -Cost center
    -Business Area
    -Begin and End Date.
    Other fields from IT0017 need to be derived from Position and update in IT0017.
    Please guide me how I can address this. I do not want to go for dynamic action, as it is not getting evoked during background jobs.
    I am new to BADI development and will appreciate step by step instructions.
    Thanks

    Hi,
         follow the below steps to achive
    Steps:
    1.     Execute Business Add-In(BADI) transaction SE18
    2.     Enter BADI name i.e. HRPAD00INFTY and press the display
            button
    3.     Select menu option Implementation->Create
    4.     Give implementation a name such as Z_HRPAD00INFTY
    5.      You can now make any changes you require to the BADI within this
            implementation, for example choose the Interface tab there are 3 methods avialble
    6.     Double click on the method you want to change, you can now enter
            any code you require.
    7.      Please note to find out what import and export parameters a
            method has got return the original BADI definition
            (i.e. HRPAD00INFTY) and double click on the method name
            for example within HRPAD00INFTY contract is a method
    8.      When changes have been made activate the implementation
    <b>Reward points</b>
    Regards

  • User exit on PA40

    Hi...
    I want to put a check on PA40 based on RFPNR.
    can somebody let me know if there is any userexit or BADI on PA40 where I can access RFPNR... in the regular HRPAD00INFTY and PBAS0001 I am not able to access RFPNR.
    BR,
    Ram

    Hi Praveen ...
    Thanks for you quick reply...
    we do not have the concurrent employement activated...
    and while hiring an employee for other country...
    we will fill the existing employee number in the reference personnel number field i.e. Q0000-RFPNR
    and want to see if this employee number belongs to some employee group which can not have multiple assignments
    we want to put a error message.
    but as the RFPNR is not available in P0000 i am not able to access it in HRPAD00INFTY or PBAS0001.
    BR,
    Ram

  • Custom fileds in ESS

    Hi Experts,
    We have enhanced the infotype 0022 to meet the requirements of the client.
    I mean we have added a new field in Infotype 0022 in R/3. Can we see the newly added field on ESS.
    If so please let me what are the settings that are to be made to reflect this custom filed in ESS.
    Regards,
    Smitha

    Hi Smitha,
    Im not sure if infotype 22 is available as a part of standard ESS services. You need to ask your technical resource to create a custom application in  ABAP Webdynpro ( or JAVA WD). You could make use of Fuction Modules like HR_READ_INFOTYPE and HR_INFOTYPE_OPERATION to read and change the data .
    The custom application can be integrated into portal by creating a Webdynpro iview.

  • Java enabled screen for IT0581,IT0584,IT0585 & IT0586 as Payroll services

    Can we have java-web dynpro enabled screen for IT0581,IT0584,IT0585 & IT0586 as a Payroll services for Indian client .
    If not , how can we add the ITS version for the same infotypes in ESS making it in change mode where employee's can update their amount .
    Pls suggest on the same as its Urgent.
    Thanks ....
    Your answers will be rewarded..

    Hi,
    You will have to develop a report which will take (ITS case)
    a) read sy-uname and then the pernr from 105 infotype subtype 0001
    b) Call transaction for pa30 pass the pernr u got from pervious step and the infotype no and skip first screen then you will directly get 585.
    c) and u will also have to give authorization to the employee for the infotype in the change mode.
    d) You will then create a transactional iview for the given report.
    Otherwise for java you can develop an application which will read an update using BAPI. and hr_infotype_operation.
    Regards,
    Divya

  • Deleting an Infotype with Time Constraint 1 - programatically

    Hi there,
    We have a few records (IT0008), that need to be deleted. Unfortunately, when we use PA30 to delete, it won't delete the record(s). (Displays the error msg. "Record has time constraint 1" ) But, when we use the Utilities option in PA30 and go thru', it appears to successfully delete the same.
    Now, could somebody pl. let us know how to go abt. doing the same programatically in ABAP ? I've tried looking at the FM's HR_MAINTAIN_MASTERDATA and HR_INFOTYPE_OPERATION (without much luck though....Although, SAP claims to have a documentation of these FM's, there is actually no proper docmn. at the Field level of these FMs)
    Moreover, the FM HR_MAINTAIN_MASTERDATA returns exactly the same error "Record has time constraint 1".
    Am a bit baffled as it is...
    Any help would be gratefully acknowledged and appreciated.
    Many thanks in anticipation,
    Kind Regards,
    RVS

    there is no function module to do forbidden actions.
    you only can do it with DELETE statement.
    select single dbtab from t777d into gv_dbtab where infty = p_infty.
    delete from (gv_dbtab) where pernr in p_pernr.
    But you will have to be very carefully. There are "blind" infotypes behind some "normal" infotypes you will have to care about (i.e. 0000 -> 0302).

  • Decoupled Framework for Infotypes in SAP HCM

    Hi Experts,
    I am new to Decoupled Framework concept. Could you Please help me in gaining some knowledge on this concept and suggest me on below queries.
    1) my BADI implementations are in HRPAD00INFTY, some of the implementation which use class CL_IM_HRPADPL_LIMITS_GEN
    is giving ABAP dump.
    2) we have raised the issue to SAP they are saying that HRPAD00INFTY is invoked, and suggested some code lines in the class as temporary solution.
    and also for permanant solution suggested to use BADI HRPAD00INFTYDB (Decoupled frame work BADI)  instead of HRPAD00INFTY.
    so my question here is, there are so many differences in both the BADIs and we have around 50+ implementations to HRPAD00INFTY. Do we need to understand each implementation of HRPAD00INFTY and implement the same to HRPAD00INFTYDB or there is any automatic process?
    If we need to implement each and every thing, it is tedious job (understanding each and every implemention and add the same functionality to new BADI, Testing the functionality etc..  it will impact the busness also if any thing goes wrong).
    Thanks in Advance,
    Rahul

    As a starting point, read this blog. I would make sure all the enhancements you have in place can be implemented using the decoupled framework. As far as I remember, not all infotypes are covered by the decoupled framework.

Maybe you are looking for

  • Amount of songs

    Is there a limited amount of songs in a map which i can add to the library?

  • IPod shuffle doesn't open in iTunes??

    Hi I have been trying to connect my iPod shuffle to iTunes but it will not recognise it on my computer??????getting frustrated any ideas please!!!!!

  • Vista and iTunes shared library - Admin vs. Standard User

    Here's a good one.....I am the administrator of the family's Vista desktop computer, my kids are Standard Users. When I log in to the computer and bring up iTunes, I am able to see and access our shared library of music on our Synology DS207+ NAS. Wh

  • Setting Authentication and SSL Settings by folder/file in ColdFusion 10

    Am attempting to upgrade to ColdFusion 10 (patched to current level) on our development network.  We are running Windows Server 2008 R2.  On both of the below instances it worked fine with ColdFusion 8 and 9. On the first instance the entire site is

  • Restoring issue in nokia X3 Back up after software...

    Hi, I got a serious problem, a have an update software from nokia so before i make a backup from my phone : contact and all the other things. Then I started the update and now when I want to restore my backup,then all my images,songs backuped but my