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.

Similar Messages

  • Creating / updating Custom infotype with different screen

    Hi All,
    I have created custom infotype having different screen for different subtype(1,2).
    From Subtype 1, indotype is automatically updated as it is a standard program. But for subtype 2 i am using HR_INFOTYPE_OPERATION for updating the record which is ending with error, as employee which i am trying to update is already locked by me only through PA30. So this function module ends with Complex error. Please suggest how to update the infotype with subtype 2.
    Thanking you..
    Best regards
    Akshay

    Hi All,
    I have created custom infotype having different screen for different subtype(1,2).
    From Subtype 1, indotype is automatically updated as it is a standard program. But for subtype 2 i am using HR_INFOTYPE_OPERATION for updating the record which is ending with error, as employee which i am trying to update is already locked by me only through PA30. So this function module ends with Complex error. Please suggest how to update the infotype with subtype 2.
    Thanking you..
    Best regards
    Akshay

  • How to create the custom infotypes in Campus Management

    Hi,
    Please help me how to create the custom infotypes in campus management.
    Thanks,
    Lakshmi.

    Hi,
    Steps to create a HR Infotype:
    1) Go to Transaction PM01.
    2) Enter the custom Infotype number which you want to create (Should be a 4 digit number, start with 9).
    3) Select the 'Employee Infotype' radio button.
    4) Select the 'PS Structure Infotype'.
    5) Click on Create... A separate table maintenance window appears...
    6) Create a PS structure with all the fields you want on the Infotype
    7) Save and Activate the PS structure
    8) Go back to the initial screen of PM01.
    9) Click on 'All' push button. It takes a few moments.
    10) Click on 'Technical Characteristics'. Infotype list screen appears
    11) Click on 'Change'(pencil) button
    12) Select your Infotype and click on 'Detail' (magnifying glass) button
    13) Give 'T591A' as subtype table
    14) Give 'T591S' as subtype txt tab
    15) Give your subtype field as subtype field
    16) Save and come back to PM01 initial screen
    17) Click on 'Infotype Characteristics' ... Infotype list screen appears
    18) Click on 'Change' (pencil) button
    19) Click on 'New Entries'
    20) Enter your Infotype number and short text
    21) Here we have to set different Infotype Characteristics as per the requirement. (Better open another session with some standard Infotype's infotype characteristics screen and use as the reference to fill yours)
    22) Save your entries.
    23) Now the Infotype is created and ready to use.
    24) If you want to change the layout of the Infotype as per your requirement...
    25) In the PM01 initial screen...Select 'Screen' radio button and give 2000 as the screen name, then click on edit.
    26) In the next screen.. Select 'Layout Editor' and click 'Change'.
    27) Screen default layout appears...here you can design/modify the screen..change the attributes of the fields..etc.
    28) Save and activate. (Don't forget to 'Activate at every level)
    Subtype Creation :
    Transaction PM01 Goto Subtype Characteristics. Click on Append and then subtype. Enter the name and description of subtype on screen.
    Then goto technical Characteristics and maintain the details of subtype there. I.e name of subtype i.e. component name defined in PSnnnn. Subtype table is T591A.
    Subty.text tab is T591S and time const tab is T591A.
    See:
    http://help.sap.com/saphelp_46c/helpdata/en/4f/d5268a575e11d189270000e8322f96/content.htm
    HR related site:
    http://www.sapdevelopment.co.uk/hr/hrhome.htm
    Enhancement of Infotype
    Check the following
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAXX/PYINT_INFOTYP.pdf
    Infotype Enhancement overview screen
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/60a7586d-edd9-2910-68a8-8204303835a1
    Cheers,
    vasavi.
    kindly reward if helpful.

  • Is there a BAPI or Function module can create a Customer Master record?

    Hi experts,
    In SE37, Is there a BAPI or Function module can create a Customer Master record?
    Regards

    BAPI_CUSTOMER_CREATEFROMDATA1
    also see this thread.
    Re: Create customer record  in SAP via BAPI
    кu03B1ятu03B9к

  • Not to Update custom infotype

    Hi Expert,
    I have one custom FM which is used to update the custom infotype but my requirement is when it get fail it should not update
    the infotype but it is updating.Befor this FM we are performing operation i. e MASSN  07,08, .
    This requirement is based on contract renewal when contract is not renewed it should not update custom infotype bue it is
    updating when contract is not renewed through the above FM.
    please give me some idea so that custom infotype should not get updated when contract is not renewed.But it is
    updating the infotype what should i put to not update the infotype when contract is not renewal.
    Below is my listed code.
        IF lv_action =  '09' OR lv_action = '07' OR lv_action = '08' AND lv_cr_renewal = ''.
        CALL FUNCTION 'ZF_HCM_ALM_ABSENCE_DATA'
            EXPORTING
              i_pernr                 = lv_pernr
              i_effective_date        = lv_date
              i_updation              = 'X'
    TABLES
      T_ABSENCE_DATA          =
          t_return                = lt_return_absence
    Regards,
    Md
    Edited by: MdAddu on Jun 26, 2011 9:33 AM
    Edited by: MdAddu on Jun 26, 2011 9:52 AM

    Hi,
    Write the code as :
    IF ( lv_action = '09'  OR lv_action = '07' OR lv_action = '08' )
      AND lv_cr_renewal = ''.     "-- contract renewed ...
    CALL FUNCTION 'ZF_HCM_ALM_ABSENCE_DATA'
    EXPORTING
    i_pernr = lv_pernr
    i_effective_date = lv_date
    i_updation = 'X'
    TABLES
    T_ABSENCE_DATA =
    t_return = lt_return_absence
    Regards,
    Srini.

  • Performance issue while updating the  custom  infotype records

    Hi All
    i have the info type with 80,000 records my requirement is to change the infotype wage type value to the  certain hard coded values .
    after populating the final internal table , in loop i am passing the records and updating the info type by using the hr_infotype_operation function module
    i have done the coding like bellow .
    loop at lt_infotype assigning     < x>
    at new pernr.
    bapi_employee_enquee
    endat.
    hr_infotype_operation
    at end of pernr .
    bapi_employee_dequee.
    endat.
    end loop.
    but it is taking nearly 15 hours to update all the records .please suggest me better solution for reducing the execution time .
    Thanks & Regards ,
    pramodh.m

    The delay problem can be solved with HR_INFOTYPE_OPERATION by using it with another FM i.e. HR_PSBUFFER_INITIALIZE the delay happens because of buffer problem. Use HR_PSBUFFER_INITIALIZE inside the loop just before you call HR_INFOTYPE_OPERATION and you wont see that much delay.

  • T582A Update Custom infotype information

    Hi experts,
       I created custom infotype but the table T582A does not have my custom infotype IT9009  data.
    please let me know T582A is update manually Using maintenance view or it updates while creating infotype .
    Please send your Suggestions.
    Thanks in advance.
    Regards,
    Sivakumar.A

    hi
         Table T582A  - is used for customer settings in Administration infotypes.
    the info type that u created is  for admistration  .
    Hope this will give u lead to solve ur problem
    Cheers
    Snehi

  • Updating custom infotype with FM 'HR_INFOTYPE_OPERATION' dumps

    Hi All,
    While updating a custom infotype 9008 with FM 'HR_INFOTYPE_OPERATION', its giving adump.
    Except.  CX_HRPA_INVALID_PARAMETER.
    I am using DIALOG_MODE as '1'. when I enter a valid field value to that particular field ( mandatory field) on that infotype, it gives dump.
    Can you suggest something which will solve this?
    Thanks.
    Dipti.

    Hi,
    Here is the dump.
    Runtime Errors         UNCAUGHT_EXCEPTION
    Except.                CX_HRPA_INVALID_PARAMETER
    Date and Time          12.11.2008 07:23:32
    Short text
    An exception occurred that was not caught.
    What happened?
    The exception 'CX_HRPA_INVALID_PARAMETER' was raised, but it was not caught
    anywhere along
    the call hierarchy.
    Since exceptions represent error situations and this error was not
    adequately responded to, the running ABAP program
    'CL_HRPA_RESOLVE_EXCEPTION=====CP' has to be
    terminated.
    Error analysis
    An exception occurred that is explained in detail below.
    The exception, which is assigned to class 'CX_HRPA_INVALID_PARAMETER', was not
    caught in
    procedure "RESOLVE_EXCEPTION" "(FORM)", nor was it propagated by a RAISING
    clause.
    Since the caller of the procedure could not have anticipated that the
    exception would occur, the current program is terminated.
    The reason for the exception is:
    Invalid parameter EXCEPTION, value
    The occurrence of the exception is closely related to the occurrence of
    a previous exception "CX_HRPA_VIOLATED_PRECONDITION", which was raised in the
    program "CL_HRPA_MASTERDATA_FACTORY====CP",
    specifically in line 6 of the (include) program
    "CL_HRPA_MASTERDATA_FACTORY====CM004".
    The cause of the exception was:
    Precondition Violated
    Missing RAISING Clause in Interface
    Program                                 SAPFP50P
    Include                                 FP50PE10
    Row                                     2,152
    Module type                             (FORM)
    Module Name                             RESOLVE_EXCEPTION
    Trigger Location of Exception
    Program                                 CL_HRPA_RESOLVE_EXCEPTION=====CP
    Include                                 CL_HRPA_RESOLVE_EXCEPTION=====CM001
    Row                                     80
    Module type                             (METHOD)
    Module Name                             RESOLVE
    Source Code Extract
    Line
    SourceCde
    50
    message_handler = message_handler.
    51
    return.
    52
    53
    catch cx_sy_move_cast_error.
    54
    endtry.
    55
    END-OF-DEFINITION.
    56
    57
    58
    try_to resolve_missing_infty_data    cx_hrpa_missing_infty_data.
    59
    try_to resolve_missing_authorization cx_hrpa_missing_authorization.
    60
    try_to resolve_invalid_feature       cx_hrpa_invalid_feature.
    61
    try_to resolve_unexpected_message    cx_hrpa_unexpected_message.
    62
    try_to resolve_missing_personid      cx_hrpa_missing_personid.
    63
    try_to resolve_invalid_infotype_db   cx_hrpa_invalid_infotype_db.
    64
    try_to resolve_invalid_customization cx_hrpa_invalid_customization.
    65
    try_to resolve_inconsistent_database cx_hrpa_inconsistent_database.
    66
    67
    68
    Just to ensure the macro can be used nowhere else.
    69
    DEFINE try_to.
    70
    END-OF-DEFINITION.
    71
    72
    If we can not remap we would like to just re-raise the
    73
    exception like below like "RAISE EXCEPTION exception.".
    74
    Unfortunately the kernel will then forget about the
    75
    original source position.
    76
    77
    So this is the fallback strategy. Calling this method
    78
    is only allowed if the exception can be resolved. Since
    79
    this is not the case we indicate a parameter violation.
    >>>>>
    RAISE EXCEPTION TYPE cx_hrpa_invalid_parameter
    81
    EXPORTING
    82
    previous  = exception
    83
    parameter = 'EXCEPTION'.
    84
    85
    ENDMETHOD.
    Regards,
    Dipti.

  • Creating Update and deleting Records Forms

    Hi Guys
    Hopefully some one can help me with this, I am using php and
    mysql, I already have a page that shows all the records of
    customers details, which I can navigate through the pages of
    records.
    I have created a update page, using the update wizard, which
    works but only shows the first record. I have added a repeat region
    and page navigation which allows me to choose individual records
    but wont update those records.
    I also took a look at a tutorial video that had you adding an
    extra column and add the word update to add a hyperlink that took
    you to the update form with that particular record for updating,
    the video was using cold fusion the link was update page address
    then this ?ID=#ID#, I tried different versions of this with no
    success.
    I also tried to alter the record set and added a filter using
    Member_ID and = paramater URL, this made my cusomter detail page
    stop working.
    can some one help please
    Cheers
    Mark

    burkeslaw wrote:
    > Is it that I have to create the update form manually and
    then select it and
    > add the update form behaviour? Is there an Go to
    Detailed Page server behaviour
    > for php, or is this just for ASP technology.
    I'm not familiar with the ASP server behaviors, but there is
    a Master
    Detail Page Set for PHP (it's on the Insert > Data Objects
    menu).
    Creating an update page is very easy.
    1. Create a page that lists all records in the database.
    2. Alongside each record, create a link to the update page.
    3. When creating the link, click the Parameters button inside
    the Select
    File dialog box.
    4. In the Name field of the Parameters dialog box, type the
    name of the
    primary key (ID).
    5. Click the lightning bolt icon to the right of the Value
    field, and
    select the primary key from the recordset.
    6. Click OK twice to close both dialog boxes.
    7. Save the page and test it in a browser. When you mouse
    over each
    link, it should display a URL that looks something like this:
    update.php?id=3. The name/value pair after the question mark
    pass the
    details of the record as a URL parameter to the update page.
    8. In the update page, create a recordset that uses the URL
    parameter as
    a filter to select a single record depending on the value
    sent from the
    previous page.
    9. In the update page, create a hidden field to store the ID
    from the
    recordset (click the lightning bolt icon alongside the Value
    field to
    insert the dynamic data).
    10. Apply an Update Record server behavior. Make sure the
    primary key
    gets its value from the hidden field in the form.
    Alternatively, if you don't want to build your own update
    form, replace
    steps 9 and 10 by using the Record Update Form Wizard (Insert
    > Data
    Objects > Update Record > Record Update Form Wizard).
    David Powers
    Adobe Community Expert, Dreamweaver
    http://foundationphp.com

  • Update multiple infotype records

    Hi experts,
    Is there any FM which can be used to update/insert/delete multiple records at a time in PD infotypes? IF so, could you please provide me the name of the FM.
    Thanks,
    Rahul.

    try to use: RH_PNNNN_MAINTAIN

  • Not able to create a customer master record with US as the country code

    Hey All,
    I am not able to create customer master data in the Transaction Code XD01/FD01 with the country code as US.
    The error message for the same is *NO JURISDICTION CODE* COULD BE DETERMINED. I have checked the tax code settings but could not locate the problem.
    I have checked the field in the account group(OBD2) but tax code is in  optional status
    and also checked the country settings for US in the transaction code OY17 still the same error message,
    but when I tried checking the settings for a different company code's customer data base (us in county code)
    I can see that there is a number mentioned in the address tab under tax jurisdiction field (beside time zone) which is not populating for this company code.
    So, do anyone know where exactly we mention this number so that it populates in that field of address.
    Hope am clear.
    hope to receive a solution
    thanks & regards
    vinila

    Hi,
    You need to maintain the JURISDICTION CODE for country US. This  JURISDICTION CODE code mainatanance purely FI/CO part.. it depends on the country's tax procedures.. Better take the help from your FI/CO consultant..
    Menu path for Defining tax jurisdiction code
    IMG -- Financial accounting -- Financial accounting global settings -- tax on sales and purchases -- basic settings -- define tax jurisdiction
    reward if helps
    Muthu
    Edited by: Muthupandiyan on Mar 14, 2008 11:09 AM

  • Create Custom Infotype and handle Modification/Updation

    Hi All,
    I need to create a custom infotype and handle few checks while creating/updating the existing one.
    I have gone through the existing threads and have figured out the creation part.
    Could anyone tell me where i need to code the checks while creating/updating.
    I tried editing the PBO/PAI of the Module pool program, but as its standard, is asking for access key. Do we need to code this in any userexit or implement BADI.
    For example,
    a) i need to check that only one instance of the infotype should be valid for an  
        employee at a time
    b) This infotype should be created for only Employees and not contingent workers.
    c) Few fields on the body section needs to be updated/modified.
    Thanks and Regards
    Manish.

    You can use the IN_UPDATE or AFTER_INPUT Methods of the BAdI HRPAD00INFTY to perform your validations.
    Arya

  • Error while editing an automaticlly populated record of  a custom infotype

    hi,
    a query in HR ABAP.
    i have created a custom Infotype to store the CTC details of an employee. this custom IT needs to get the records auto populated, when they are created in Infotype 0008.
    i have used the exit. EXIT_SAPFP50M_002  inside which  an include program is written  :ZXPADU02
    using this, the records made to get create automatically in the custom IT.
    but when we try to modify or delete those records thru the tcode PA30,
    it does not allow to do so and throws a standard error message. as  below.
    Specified subtype is invalid
    Message no. PG088
    please help me out to fix this issue.

    the exact point of the std error is,
    i do the folowing steps.
    1)_ for auto creating a record in custom IT Pa**** , i goto transaction, PA30, create record in IT 0008 with a basic Pay., click on save.
    on saving , the EXIT_SAPFP50M_002 is called where i ve written a Z inlcude Program, which inserts the record in custom IT PA****.  this is successful.
    2) when i try to change or delete the same record which i ve created as above, through the Tcode PA30 for custom IT, PA
    ****, i get the error.
    hope the problem is clearly mentioned

  • Updation problem in custom infotypes.

    HI ALL,
    I have created two custom infotypes, and the process is that one infotype updates the other infotype.
    When i open the first infotype by pa30 and then open the second and changes some value which update the first infotype table. now when i go to first info type it shows the old value. untill i exit pa30 and start again then it shows the updated values. what is the solution for this.
    Thanks.

    Hi abap sap,
      It is becasue of PAI and PBO module itterations.
    Go to the custom related program created with that infotype and insert your logic to clear the field contents.
    Reward if useful!

  • Creating custom infotype

    Hi,
    I want to create a custom infotype with the following fields.
    Molga (country grouping)
    Personnel Number
    Subtype
    Language Key
    Comment Line 1
    Comment Line 2
    Comment Line 3
    in this first 4 fields are keys. The user should be able to edit only the rest of the fields.
    Subtypes similar to the infotypes values 0168,0169,0014,0015,0009,0006,0002 should be created.
    While updating and saving the infotypes 0168,0169,0014,0015,0009,0006,0002 the system should prompt this infotype through dynamic action to enable the user to enter comments.
    can anyone give me a step by step approach for creating this infotype?
    Thanks in advance...
    Vijay

    Hi
    Steps to create a HR Infotype:
    1) Go to Transaction PM01.
    2) Enter the custom Infotype number which you want to create (Should be a 4 digit number, start with 9).
    3) Select the 'Employee Infotype' radio button.
    4) Select the 'PS Structure Infotype'.
    5) Click on Create... A separate table maintenance window appears...
    6) Create a PS structure with all the fields you want on the Infotype
    7) Save and Activate the PS structure
    8) Go back to the initial screen of PM01.
    9) Click on 'All' push button. It takes a few moments.
    10) Click on 'Technical Characteristics'. Infotype list screen appears
    11) Click on 'Change'(pencil) button
    12) Select your Infotype and click on 'Detail' (magnifying glass) button
    13) Give 'T591A' as subtype table
    14) Give 'T591S' as subtype txt tab
    15) Give your subtype field as subtype field
    16) Save and come back to PM01 initial screen
    17) Click on 'Infotype Characteristics' ... Infotype list screen appears
    18) Click on 'Change' (pencil) button
    19) Click on 'New Entries'
    20) Enter your Infotype number and short text
    21) Here we have to set different Infotype Characteristics as per the requirement. (Better open another session with some standard Infotype's infotype characteristics screen and use as the reference to fill yours)
    22) Save your entries.
    23) Now the Infotype is created and ready to use.
    24) If you want to change the layout of the Infotype as per your requirement...
    25) In the PM01 initial screen...Select 'Screen' radio button and give 2000 as the screen name, then click on edit.
    26) In the next screen.. Select 'Layout Editor' and click 'Change'.
    27) Screen default layout appears...here you can design/modify the screen..change the attributes of the fields..etc.
    28) Save and activate. (Don't forget to 'Activate at every level)
    Subtype Creation :
    Transaction PM01 Goto Subtype Characteristics. Click on Append and then subtype. Enter the name and description of subtype on screen.
    Then goto technical Characteristics and maintain the details of subtype there. I.e name of subtype i.e. component name defined in PSnnnn. Subtype table is T591A.
    Subty.text tab is T591S and time const tab is T591A.
    See:
    http://help.sap.com/saphelp_46c/helpdata/en/4f/d5268a575e11d189270000e8322f96/content.htm
    HR related site:
    http://www.sapdevelopment.co.uk/hr/hrhome.htm
    Enhancement of Infotype
    Check the following
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAXX/PYINT_INFOTYP.pdf
    Infotype Enhancement overview screen
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/60a7586d-edd9-2910-68a8-8204303835a1
    Regards
    Anji

Maybe you are looking for

  • Problem with oracle text indexes during import

    We have a 9.2.0.6 database using oracle text features on a server with windows 2000 5.00.2195 SP4. We need to export its data ( user ARIANE only ) and then import the result into another 9.2.0.6 database. The import never comes to an end. The only wa

  • Problems with AM and WebLogic 8.1 sp3

    Hello, The following are my environment. (both on Solaris 10) - Sun AM - WebLogic 8.1 sp3 I want to try an easy integration between AM and WebLogic. After I installed policy agent for WebLogic and properly configured. It seem to work at some basic le

  • Deleted "all my files" from CoreServices... how to restore?

    This feature wasn't working and was displaying ghost files of things I deleted. This clogged the screen up so I couldnt get to the files I was looking for. So I went into the Finder's core service folder and deleted it. Now I can't figure out how to

  • Satellite Pro L300 - How to transfert Windows on new HDD?

    Hello, I recently got an hard drive from a broken laptop bigger than mine. I would like to put it in my computer, but I don't know what would be the way to transfer the installation partition (or even better also the windows already installed partiti

  • Qty Sold Via Month Via Stock Item

    Hi All, I am trying to write a formula that will show in a cross tablular format the Qty Sales via Month.  (please note i can not use a cross tab report due to formatting issues). My report so far looks like this. Group Header 1   = Stock Category Gr