Adding read infotype records to payroll

Dear ,
i 've used the code mentioned in this link to read the infotype records .
Use SAP defined methods instead of Logical Database(LDB)
now i want to add this record to the tree in the payroll . could u plz tell me how to add it to a node in the additional payment tree node.
Edited by: Kathy_Adam on May 22, 2010 3:40 PM

Hi,
1. Create new payroll function code in payroll driver exist. Starts with FU<custom name>.
2. Create new function via PE04 with custome name.
3. Add custom function to payroll schema.
Custom name should start with special character, e.g. %, &, :, etc.
User exit is special for every country driver, check payroll driver program and figure out its name.
Cheers

Similar Messages

  • Read infotype records using the classes

    Hi All,
    In my system i can see many classes with cl_hrpa*
    Here i want to read a infotype record using these classes. I want finally the data in PA0008 or a record in P0008 format.
    i tried using the various classes like
    cl_hrpa_masterdata_factory
    if_hrpa_infty_bl
    hrpad_infty_container_tab
    I tried using the sevaral calsses passing one class type to other. finally i get is the class cl_hrpa_infotype_0008_in.
    can any one suggest how i should be reading the data for any infotype.
    Pls do not suggest the function module HR_READ_INFOTYPE. I want to use these classes to read the data.
    Pls suggest
    Regards,
    Umesh Chaudhari.

    Hi,
    Did you get any replies to this or have you found an answer on your own?
    Regards,
    LC

  • PD Read Infotype Record - BEGDA/ENDDA format issue

    Hi experts,
    I'm calling IF_HRBAS_PLAIN_INFOTYPE~READ method in my business object class in an attempt to read a custom infotype on a postion:
    When debugging or consuming this method from my main model class, the format of the dates in the returned table (lt_hrp9500) are as follows:
    The dates are correctly formatted in the standard code until:
    If I were to manually select the records from the tables it would appear normally.
    Is there some form of conversion needed, a bug or user error?
    Can anyone suggest a better interface to utilse for PD infotype actions?
    Cheers,
    Sam

    Looks like you have wrongly defined <pnnnn> or <ls_hrtnnnn>.  When you assign, the date field is spread across several columns.
    Also, try  if_hrbas_read_infotype instead.

  • Creating / Updating Custom Infotype Records

    Hello everbody,
    We implement alot of custom HR infotypes in our system, both PA &  HRP.
    For the past several we have been using BDC (Batch-Input) recorded functions in order to update / create the records in our infotypes.
    We're currently facing an upcoming ECC upgrade , and I would like to lead a change that will eventually lead to us using generic SAP supplied functions.
    I've researched a few functions that might do the trick:
    RH_INSERT_INFTY:
    This one is giving me an SY-SUBRC 2 error code - Insert error, I tried to select a current record and insert it as different objid but this doesnt work.
    HR_INFOTYPE_OPERATION:
    I've read of several people that recommended using this function, but it is not released by SAP and I couldnt get it to work as well.
    BAPI_HRMASTER_SAVE_REPL_MULT:
    This one seems to work for sap infotypes but I dont think it suits custom infotypes.
    What is the "official" way of doing such operations?
    thanks in advance,
    Eli.

    Hello Dilak,
    Im currently trying to insert a new infotype record of infotype HRP9226.
    First I call function RH_GET_NEXT_NUMBER to get an objid.
    then I fill an HRP9226 line.
    after this i call the function:
    call function 'RH_INSERT_INFTY'
    exporting
    FCODE = 'INSE'
    vtask = 'S'
    ORDER_FLG = 'X'
    COMMIT_FLG = 'X'
    AUTHY = ' '
    PPPAR_IMP =
    OLD_TABNR = ' '
    REPID = ' '
    FORM = ' '
    KEEP_LUPD =
    WORKF_ACTV = 'X'
    tables
    innnn = hrp9226_line
    ILFCODE =
    EXCEPTIONS
    NO_AUTHORIZATION = 1
    ERROR_DURING_INSERT = 2
    REPID_FORM_INITIAL = 3
    CORR_EXIT = 4
    BEGDA_GREATER_ENDDA = 5
    OTHERS = 6
    I'm getting an "Error_During_Insert" and Im out of options regarding what I can possibly do.

  • HR_INFOTYPE_OPERATION - Need help w/Deleting infotype records

    Hello all,
    We have an issue where infotype records got created where the ENDDA is less than the BEGDA (ENDDA = 06/30/2006 and BEGDA = 07/01/2006).  We are trying to delete these using HR_INFOTYPE_OPERATION but we are getting message PG-009 (No data stored for 9001 in the selected period) returned in our tests. 
    BTW, 9001 is one of our customer infotypes. 
    I know I can remove these records using a direct SQL statement, but I would prefer to remove them more gracefully if possible.  Is there a way around this error?  I actually think function module HR_READ_INFOTYPE is raising the error.
    Any suggestions would be greatly appreciated.
    Thanks,
    Al

    You can check report RHRHDC00, I think it can help you with custom infotype too.
    Otherwise you might need to delete the records forcefully using DELETE statement, which is not suggested since all the  standard FM consider BEGDA and ENDDA and in your case they will always return blank.
    You can also check FM -
    HR_ECM_DELETE_INFOTYPE
    Regards,
    Amit
    Reward all helpful replies.

  • RP-READ-INFOTYPE

    Hi ,
      i need to delete all the records  with subty X1 for infotype  p0019 . I should n't use the logical database instead i am using  macro RP-READ-INFOTYPE to retrieve the valid data  but  here in case of P0019 the begda and endda of a record will be same and i need to delete the records even if they are in past . But the macro RP-READ-INFOTYPE  is not going to work in this case as it checks against dates and the records are in past so it will not retrieve any data . So any thoughts on how to get the data for P0019  with subty X1 without using the logical database PNP. 
    Thanks,
    Latha.

    Use HR_READ_INFOTYPE FM to retreive the desired result.........
    Pass begda 01/01/1800 endda = '12/31/9999' and subtype you want.......
    Not your infotype table will fill with all the data now you manipulate as you desired
    Let me know if you need any further help!!!
    Sas

  • Modifying SPRPS field in an infotype record

    Hi experts,
    I have a requirement in which i need to modify the lock indicator value of an existing 2001 infotype record. That is, initially when a record is created, i need to update the lock inidicator field as 'X'. Then after few approvals, i need to read the same recoed from infotype 2001 and need to modify the lock indicator with blank. Can the same requirement be achieved using HR_INFOTYPE_OPERATION ?
    Is it possible to modify the SPRPS field with the value blank ' ' using HR_INFOTYPE_OPERATION'?
    Regards,
    Shanthi

    Yes it is. All you need is to provide correct key fields of the record vis this FM exporting parameters and for record parameter pass structure for the record with all the target data (new data for the record).
    So basically the structure will hold all the information as it is right now + field SPRPS with changed value. To ensure you provide correct data, you can first read appropriate record entry with HR_READ_INFTY -> get required entry from result list -> then change only field SPRPS and pass it back to HR_INFOTYPE_OPERATION on input.
    Please refer http://www.sapdev.co.uk/fmodules/fms_HR_INFOTYPE_OPERATION.htm.
    Regards
    Marcin

  • Why we can't use provide to retrieve Time Infotypes records?

    Hi experts,
    I read some meterials that in HR report we can not use provide statement in LDB to fetch time infotypes records,
    use Loop instead,can anybody explain why and give a example.
    Thanks.

    Hi
    For time infotype records use RP_READ_ALL_TIME_ITY
    (RP_READ_ALL_TIME_ITY beg end)
       DATA: BEGDA LIKE P2001-BEGDA, ENDDA LIKE P2001-ENDDA.
       INFOTYPES:  0000, 0001, 0002, ...
                         2001 MODE N, 2002 MODE N, ...
         GET PERNR.
       BEGDA = '19900101'. ENDDA = '19900131'.
       RP_READ_ALL_TIME_ITY BEGDA ENDDA.
       IF PNP-SW-AUTH-SKIPPED-RECORD NE '0'.
          WRITE: / 'Authorization for time data missing'.
          WRITE: / 'for personnel number', PERNR-PERNR. REJECT.
       ENDIF.

  • Locking and Unlocking HR Infotype records

    Hi ,
         Is there is any Function Module / Report to lock and unlock  infotype record ?
    Please suggest me if any wayout is available..
    Regards,
    Vijay

    Hi
    Try "ENQUEUEPREM", "ENQUEUEPREL", and "HRENQUEUE*".
    Sorry for being generic, I am not connected to a SAP system.
    Hope this much helps...
    *-Serdar
    [email protected]

  • Infotype record create, edit

    Hi All,
    Can anybody tell me the steps involved in creating, editing employee;'s own infotype records through WD ABAP view.
    I have infotype (IT0057) record which need to be displayed, create, edit. We are also supposed to attach a custom workflow template with this application so that whenever employee updates, creates his own record - a workflow item will be triggered and sent to concern person for approval.
    We have designed the customer workflow template for the same. Please tell me the steps to display, create, update infotype record through WD View.
    Regards,
    Anil Kumar

    Hi,
    If you want to perform some additional logic on these buttons then the standard buttons on the ALV cannot be used.
    You need to have your own buttons and provide coding or you can also use the Normal TABLE UI element.
    At first i'm explaining the process for TABLE UI element.
    First,
    Design the context node in the component controller for that table of contents with the apt columns.
    Map this node to the view1.
    Now, In the view1,
    Create the TABLE UI element and using CREATE BINDING option bind it to this node, while doing this
    select the apt type of UI element for each column( I mean if there are any columns for Inputfield/drodpdown etc).
    and also you can design the buttons ADD, EDIT,DELETE and implement the actions.
    After designing this, try to display the data by reading that infottype and fill the context node by using
    the BIND_TABLE of if_wd_context_node.
    By default for the table, one row is selected(lead selection). If you want mutltiple ones then use the option
    Leadselection(Multi).
    The BAPI you specified is for the save/update the infotype.
    Now you can start of with this information...Once this is done I can help you out..for further process.
    Regards,
    Lekha.

  • Maintaining / Displaying Text for Infotype record

    Hi,
    How do we maintain infotype text for the record. Or how to display the text maintained for infotype record (I used PA20/PA30 for IT0001 record but could not locate infotype text).
    Regards,
    Avinash Josalkar.

    Hi,
    If you want to know the text of a infotype then goto the table
    V_T582A.
    eg:0000  actions
    0001 organisation assignment.
    But if you want to change the standard text of a infotype then you need to have access key to change.
    But if you are asking the text table for the fields in 0001.
    then goto se11
    enter Pa0001--dislay
    click the tab entry help/check then you can see the table names in the column check table for each field.

  • FM to know opeartion performed on infotype record...

    Hi Friends,
    In my requirement i have to display the infotype change logs for each pernr. i.e the infotype records that are changed or deleted or inserted. can you please suggest me the function module or table which gives these details. i.e operation performed on infotype record ( insert or delete or change).
    Thanks in advance,
    Phani Shankar.K

    Try  the  FMs     <b>HR_INFOTYPE_LOG_GET_LIST</b> , <b>HR_INFOTYPE_LOG_GET_DETAIL</b>    ,they might be Helpful . Also try the Report<b> RPUAUD00</b>

  • Locking of a Infotype record in BDC

    Hi,
    I need to lock the infotype record (PA30) before saving the same during the BDC process. I tried to supply the OK code as 'EDQ'. But BDC is skipping the same and updating the record without locking the record. Could you let me know how to make this work?

    Proivde the DYNPRO screen number again before updating the data:
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    'EDQ'.
      PERFORM bdc_dynpro      USING 'MP001400'
                                    '2000'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    'UPD'.

  • Detect change in Infotype records

    Hi All,
    Is there any FM or std program through which we can detect any change(modification/deletion/delimit) in Infotype records. If not then please suggest how it can be achieved.
    Any pointers in this regard would be helpful.
    Thanks,
    Saher

    Hi Saher,
           Use FM : HR_INFOTYPE_LOG_GET_DETAIL
    Regards,
    Srini.

  • No infotype record 0007(Planned working time) on 03/07/2011

    Hi,
    In our scenario, Time sheet is integrated with work order and while submiting we are getting an error :
        "No infotype record 0007(Planned working time) on 03/07/2011".
    Where as I checked infotype 0007 but it is maitained with proper data.
    Please suggest what could have gone wrong and why this error is coming?

    I am assuming 03/07/2011 in your problem refers to March 07, 2011.
    Please check: Has the work schedule in IT 0007 been generated? Check transaction PT03 in your production system and see if you can display the work schedule for the month.
    If it has not been generated, you will need to generate it for the month.
    If it has been generated, please check the details for the day in question (03/07/2011). Please make sure that the DWS and PWS are all consistent with the configured values. Run teams, too often, try and create different schedules by changing the DWS value in a PT01 run.

Maybe you are looking for

  • Error while scheduling data collector: Error adding routine 'SAPTOOLS.DBH_FWK_CLEANUP' to task scheduler

    Error Detail Exception CX_DBA_ADBC in program RAGS_SISE_ACTIVITY_JOB line 0 Kernel Error ID: WP ID: 23 WP PID: 28977 SYSID: CR5 SY-SUBRC: 0 SQL statement: Database: CR5 caused by Exception CX_SQL_EXCEPTION in class CL_SQL_STATEMENT Kernel Error ID: D

  • How to read a property in XSL?

    Hi I am trying to access a property in xsl and then invoke a service if the property value is set to true. Here is what I have done until now: 1. Create a Normalized message nm 2. Set the property: nm.setProperty("ABC", "TRUE")3. nm.setConten(message

  • Group texting on my ipohone..so confused..?

    Okay, so before I used to be able to send like 15 people the same message and they would all reply in their own one on one message, that's how i want it! But now when I send group messages either a) it dosn't work, b) people are texting me back askin

  • How to create a DVD with 2 separate movies?

    I'm a coach - and as I break down game film for my team, I'd like to distribute a single DVD with an Offensive film and a Defensive film, on a single DVD.  Once I edit the original clips, I usually have about 20 minutes of offense, and 25 minutes of

  • ITunes match subscription error

    I am trying to subscribe to iTunes match from my Hungarian appleID but the "iTunes store is temporary available". is iTunes match actually available from the Hungarian iTunes store??