Problem in creating 0027 infotype record in background

Hi Experts,
I am facing the problem in creating 27(Costs distribution) infotype record in back ground.
Whenever there is a change in position of the employee or when we hire a new employee (Through PA40)
i have to ctreate 0027 infotype record in background.For that i am using IN_UPDATE method of BADI
HRPAD00INFTY.
Here i am getting 2 problems.
1. I am unable to get the latest positions that is assigned to the employee.
   Through NEW_IM AGE structure we can get the latest position but if a person is assigned to multiple   positions for the same period then i am getting only one position from NEW_IM AGE but not all.can any body help me?
2. I am calling HR_INFOTYPE_OPERATION FM to create the IT0027 record in background in the above method (IN_UPDATE). but it is not updating the PA0027 table. any idea?
Full points will be rewarded.
Regards,
Sai.

I am sending a sample program , which is on infotype 0105 (communication). I hope that this program will help u out............
REPORT ZSAPHR_SAMP.
tables: pa0105.
infotypes: 0105.
DATA : I_RETURN TYPE BAPIRETURN1,
I_KEY TYPE BAPIPAKEY,
PERNR TYPE P0001-PERNR,
I_P0105 TYPE TABLE OF P0105 WITH HEADER LINE,
ENDDA TYPE P0105-ENDDA,
BEGDA TYPE P0105-BEGDA.
MOVE '00000010' TO PERNR.
BEGDA = SY-DATUM + 1.
ENDDA = SY-DATUM + 1.
i_p0105-pernr = PERNR.
i_p0105-infty = '0105'.
i_p0105-subty = '0002'.
i_p0105-endda = ENDDA.
i_p0105-begda = BEGDA.
I_P0105-USRTY = '0002'.
I_P0105-USRID = '[email protected]'.
APPEND i_p0105.
CALL FUNCTION 'DEQUEUE_ALL' .
CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
EXPORTING
NUMBER = PERNR.
IF SY-SUBRC = 0.
WRITE 'Employee Locked Successfully'.
ENDIF.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
INFTY = '0105'
NUMBER = PERNR
SUBTYPE = '0002'
VALIDITYEND = BEGDA
VALIDITYBEGIN = ENDDA
RECORD = i_p0105
OPERATION = 'INS'
TCLAS = 'A'
DIALOG_MODE = '0'
NOCOMMIT = 'X'
IMPORTING
RETURN = I_RETURN
KEY = I_KEY.
IF SY-SUBRC = 0.
WRITE : 'FM returns sy-subrc 0'.
ENDIF.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
EXPORTING

Similar Messages

  • Inbound IDoc(HRMD_A07) problem in delimiting the infotype records

    Hi All,
    I am using Inbound IDoc (HRMD_A07) approach to update infotypes. I found that I am able to create a record in an infotype, but there is a problem in delimiting the infotype.
    Please help me out in case I am missing something.
    Thanks,
    ABAP_DEV

    Hi,
    Did you get this resolved. Even i'm facing this issue. Is it a config or do we have to do something in the IDOC.
    Thanks,
    Jilly

  • CREATE/UPDATE Infotype Records

    Hi,
    Am using the following code to insert records into InfoType PA0001 ,its not creating a new record and giving this Dump ....Any suggestion or Examples on this Please ...
    Dump :
    The source field is too short.                                                             
    In the running program "SAPLHRMM" a field should have been assigned to a field             
    symbol, which is shorter than the type of the field symbol.                                
    This is not possible.                                                                      
    It is a statement of the form ASSIGN f TO <fs> CASTING...                                  
    or ASSIGN f TO <fs> with a field symbol that was created with the                          
    STRUCTURE addition.                                                                        
    *******************my code *************************
    ""Local Interface:
    *"  IMPORTING
    *"     REFERENCE(EMPNO) TYPE  PERSNO
      DATA: RETURN LIKE BAPIRETURN1.
      DATA: P0001 TYPE P0001.
      CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
        EXPORTING
          NUMBER = EMPNO
        IMPORTING
          RETURN = RETURN.
      IF NOT RETURN IS INITIAL.
        WRITE: / EMPNO, 'Enqueue failed'.
        EXIT.
      ENDIF.
      DATA: WA_PA0001 TYPE PA0001.
      SELECT SINGLE * FROM PA0001 INTO WA_PA0001
            WHERE PERNR = EMPNO
            AND   ENDDA = '99991231'.
    WA_PA0001-ENDDA = '20090422'.
    *CHANGE THE EXISTING RECORD FROM PA0001.
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
      EXPORTING
        INFTY                  = '0001'
        NUMBER                 = EMPNO
       SUBTYPE                = WA_PA0001-SUBTY
      OBJECTID               =
      LOCKINDICATOR          =
        VALIDITYEND            = WA_PA0001-ENDDA
        VALIDITYBEGIN          = WA_PA0001-BEGDA
        RECORDNUMBER           = '01'
        RECORD                 = WA_PA0001
        OPERATION              = 'INS'
      TCLAS                  = 'A'
        DIALOG_MODE            = '0'
        NOCOMMIT               = '1'
      VIEW_IDENTIFIER        =
      SECONDARY_RECORD       =
    IMPORTING
       RETURN                 = RETURN
      KEY                    =
    IF return-id NE space.
        WRITE: /   EMPNO,
                20 'Create was unsuccessful',
                    return-id,
                    return-message+0(40).
      ELSE.
        WRITE: /   EMPNO,
                20 'Create was successful',
                    return-id,
                    return-message+0(40).
      ENDIF.
    CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
      EXPORTING
        NUMBER        =  EMPNO
    IMPORTING
       RETURN         = RETURN
    Thanks,
    Kumar

    Hi,
    Correct this
    Operation should be 'MOD'
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
    EXPORTING
    INFTY = '0001'
    NUMBER = EMPNO
    SUBTYPE = WA_PA0001-SUBTY
    OBJECTID =
    LOCKINDICATOR =
    VALIDITYEND = WA_PA0001-ENDDA
    VALIDITYBEGIN = WA_PA0001-BEGDA
    RECORDNUMBER = '01'
    RECORD = WA_PA0001
    OPERATION = 'MOD'              "Correct this
    TCLAS = 'A'
    DIALOG_MODE = '0'
    NOCOMMIT = '1'
    VIEW_IDENTIFIER =
    SECONDARY_RECORD =
    IMPORTING
    RETURN = RETURN
    KEY =
    Regards
    Krishna
    Edited by: Krishna Gowrneni on Apr 22, 2009 6:21 PM
    Edited by: Krishna Gowrneni on Apr 22, 2009 6:22 PM

  • Problem in creating HR Infotype

    Dear All,
    I am creating a infotype for HR module this is for CTC. My requirement is that what the changes made in infotype 0008 are also reflect in my infotype. e.g. in if there are 5 chages is made for employee in 0008 infotype also reflect in my infotype. how i made this in my infotype. the change date end date is also taken from the 0008 infotype.
    So my requirement is all the data coming from 0008 than some addition field adding in MY infotype in case of  CTC . so give me some logic how i made this.
    Regards,
    Pankaj Vashista

    Dear Bala,
    I am not now how the dynamic action create. Is this fulfill my requirement .
    Is By writting dynamic action my infotype is also updated ???????
    Please any one solve my promlem.
    Thanks in advance
    Regards,
    Pankaj

  • Problem Regarding Creating OM Infotype

    Hi Experts
    Very good morning ,,,,, n happy new year....
    i would like to create one OM infotype .i have found some
    threats in forum unable to get result. initially i have created
    HRI9*** structure in Se11 then in PPCJ tried to create new
    infotype but there is log for not creation of infotype and
    that process stops right there only.kindly give me the
    systematic step for the same.
    Thanks
    Nishita

    Hi experts....
    There is no authorisation issue as such...i have just created HRI**** structure in SE11 and
    then finally went to the PPCJ for creating it showing following errors.
    Table HRP9012 does not exist
    HRP9012 not created in the database
    Database index XXXX not created
    Module pool MP901200 does not exist
    Include MP901220 does not exist
    Include MP9012BI does not exist
    Screen 1000 does not exist
    Screen 2000 does not exist
    Screen 3000 does not exist
    User interface for MP901200 does not exist
    T778T: no table entries exist
    T777T: no table entries exist
    T777D: no table entries exist
    T77ID: no table entries exist
    T777I: no table entries exist
    T777Z: no table entries exist
    T77OA: no table entries exist
    T777M: no table entries exist
    T778U: no table entries exist
    T777U: no table entries exist
    T77NI: no table entries exist
    OBJECT PDST: no table entries exist
    OBJECT PDWS: no table entries exist
    Dialog module RH_INFOTYP_9012 does not exist
    R3TR TABL HRP9012 does not exist
    R3TR PROG MP9012BI does not exist
    R3TR DIAL RH_INFOTYP_9012 does not exist
    kindly know me the systematic procesure to create OM Infotype.

  • Creating an Infotype Record 0019 using HR_INFOTYPE_OPERATION

    All,
    I have written a little test application for this, my code is below, and there is something funny happening. For some reason when I run the program for the first time it creates the 0019 infotype but it doesn't add on the additional text. However if I run the program again, without doing anything else, the text does get updated.
    It appears that I am missing a commit statement or something along those lines but I am not sure.
    I would appreciate any help on getting this working
    Many Thanks,
    Colm
    DATA t0019 TYPE TABLE OF p0019.
    DATA w0019 TYPE p0019.
    DATA in_pernr TYPE prelp-pernr.
    in_pernr = '02000305'.
    BREAK-POINT.
    CALL FUNCTION 'HR_READ_INFOTYPE'
      EXPORTING
    *   TCLAS                 = 'A'
        pernr                 = in_pernr
        infty                 = '0019'
       begda                 = '18000101'
       endda                 = '99991231'
    *   BYPASS_BUFFER         = ' '
    *   LEGACY_MODE           = ' '
    * IMPORTING
    *   SUBRC                 =
      TABLES
        infty_tab             = t0019
    EXCEPTIONS
       infty_not_found       = 1
       OTHERS                = 2.
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    BREAK-POINT.
    DATA in_infty TYPE prelp-infty VALUE 0019.
    DATA in_subty TYPE p0001-subty VALUE 02.
    DATA wa_return1 TYPE bapireturn1.
    DATA wa_pakey TYPE bapipakey.
    DATA wa_pskey TYPE pskey.
    DATA l_pgmid TYPE old_prog.
    DATA it_text TYPE hrpad_text_tab.
    DATA wa_text TYPE hrpad_text.
    wa_text = 'Line 1'.
    APPEND wa_text TO it_text.
    CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
      EXPORTING
        number = in_pernr
      IMPORTING
        return = wa_return1.
    IF NOT wa_return1 IS INITIAL.
    *ERROR MESSAGE
    ENDIF.
    w0019-pernr = in_pernr.
    w0019-subty = '02'.
    w0019-infty = '0019'.
    w0019-endda = '20081204'.
    w0019-begda = '20081204'.
    w0019-seqnr = '000'.
    w0019-aedtm = sy-datum."CREATED DATE
    w0019-uname = sy-uname.
    w0019-itxex = 'X'.
    w0019-tmart = '02'. "TASK TYPE
    w0019-termn = '20081204'. "DATE OF TASK
    w0019-mndat = '20081203'. "REMINDER DATE
    w0019-tmjhr = '2008'. "DATE OF TASK YEAR
    w0019-tmmon = '12'. "DATE OF TASK MONTH
    w0019-tmtag = '04'. "DATE OF TASK DAY
    w0019-mnjhr = '2008'. "REMINDER DATE YEAR
    w0019-mnmon = '12'. "REMINDER DATE MONTH
    w0019-mntag = '03'. "REMINDER DATE DAY
    BREAK-POINT.
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
      EXPORTING
        infty         = '0019'
        number        = in_pernr
        subtype       = '02'
        validityend   = sy-datum
        validitybegin = sy-datum
        record        = w0019
        operation     = 'INS'
      IMPORTING
        return        = wa_return1
        key           = wa_pakey
      EXCEPTIONS
        OTHERS        = 0.
    IF NOT wa_return1 IS INITIAL.
    *ERROR HANDLING
    ELSE.
    *SUCCESS
      wa_pskey-pernr = wa_pakey-employeeno.
      wa_pskey-infty = '0019'.
      wa_pskey-subty = wa_pakey-subtype.
      wa_pskey-objps = wa_pakey-objectid.
      wa_pskey-sprps = wa_pakey-lockindic.
      wa_pskey-endda = wa_pakey-validend.
      wa_pskey-begda = wa_pakey-validbegin.
      wa_pskey-seqnr = wa_pakey-recordnr.
      l_pgmid = 'SAPFP50P'.
      BREAK-POINT.
      TRY.
        CALL METHOD cl_hrpa_text_cluster=>update
          EXPORTING
            tclas         = 'A'
            pskey         = wa_pskey
            histo         = 'X'
            uname         = sy-uname
            aedtm         = sy-datum
            pgmid         = l_pgmid
            text_tab      = it_text
            no_auth_check = 'X'.
      ENDTRY.
      IF sy-subrc EQ 0.
    *SUCCESS
      ENDIF.
    ENDIF.
    CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
      EXPORTING
        number = in_pernr
      IMPORTING
        return = wa_return1.
    BREAK-POINT.

    [url]HR_INFOTYPE_OPERATION is not working in user exit ZXPADU02[url]
    If you do this and then update the text using the update task it should work perfectly.

  • Problem in creating entity service record

    Hello!!!
    I am creating new record in service
        AEs_Employee emp;
        emp = es_EmployeeServiceProxy.create();
        emp.setPernr("12345123");
        emp.getAspect().sendChanges();
    Some mistakes occur during application launch:
    The initial exception that caused the request to fail, was:
       java.lang.NoClassDefFoundError: com/sap/tc/col/client/generic/api/IAspectRow
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to create delegate for view com.sap.ogk2.caf.training.V_GeneralRequestTraining. (Hint: Is the corresponding DC deployed correctly? Does the DC contain the component?)
         at com.sap.tc.webdynpro.progmodel.generation.ControllerHelper.createDelegate(ControllerHelper.java:110)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.<init>(DelegatingView.java:41)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.createUninitializedView(ViewManager.java:657)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:694)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:579)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:155)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.doOpen(WebDynproWindow.java:295)
         at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.show(ApplicationWindow.java:183)
         at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.open(ApplicationWindow.java:178)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:364)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:756)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:291)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    Caused by: java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
         at com.sap.tc.webdynpro.progmodel.generation.ControllerHelper.createDelegate(ControllerHelper.java:74)
         ... 33 more
    Caused by: java.lang.NoClassDefFoundError: com/sap/tc/col/client/generic/api/IAspectRow
         at com.sap.ogk2.caf.training.wdp.InternalV_GeneralRequestTraining.<init>(InternalV_GeneralRequestTraining.java:267)
         ... 38 more
    Edited by: Vadim Sotnikov on Jul 31, 2008 7:30 AM

    Hi,
    Generally, "No class Definition found" Exception comes in these cases.
    1. If we dont add the corrosponding jar file in the "lib" folder.
    2. If the class is not accessible(private or protected).
    3. Place where you are accessing the class and where the class is defined are in two different packages...
    Check for the above,
    Regards,
    Srinivas.

  • 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.

  • ESS Leave Request - Error while creating a leave record

    Hi Friends,
      Some of the ESS leave request(not workflow) has gone into error when the system tryies to create a leave record in background. I can view these error request using the report RPTARQDBVIEW. This happens when the background program(PTARQPOST) tries to create a leave record. In some cases  the status of the leave request is set to error(the status attribute of the container element(Req) has the value Error),but we are not able to find what is actual error.Is there any log where we can check what is the problem? Please advice.

    May be
    Internally the pernr might not be locked or some one may be maintaing the pernr for whom you are trying to post.

  • How  to  create an infotype in sap ecc6.0 ?

    Hi all,
    I know i how to create an infotype   in   sap 4.7, but i am facing the problem while
    creating an infotype in sap ecc6.0 version. could u plz provide me  the info with screen shots how to create an infotype and how to enhace that infotype ?
    Waiting for u r response.
    Regards,
    Ravi

    Hi ,
    To create OM infotype:
    1. Go to SE11 and create a structure HRI9XXX (9XXX --> name of the infotype). Add the required fields to this structure and save and activate. then come out of it.
    2. Go to PPCI and enter Infotype number (9XXX) and description.
    3. Click create.
    4. In the infotype category select details for the infotype.
    5. Click create button. It should create the infotype.
    6. Click on Check. A window with menu will open.
    7. In that window navigate to Table Entries.
    8. Under table Entries, select T777I and click on change.
    9. It opens SM30. Click on Maintain.
    10. Select the infotype and add information for "Time Constraint" and "Infotype Per Object Type".
    11. Save.
    12. Go back to check menu, see if all entries exist. Do not worry last 5 table entries. And you are done

  • Create PD Infotype link to Object USER

    Dear Experts,
    I have created a custom PD Infotype P9032, under Object "User'. But when i go to Expert Mode to create the infotype record, it screen brings me to "Su01" screen ie. create SAP user instead.
    If i change the Object to "Organizational Unit" and create the infotype record, it shows me the correct custom infotype screen.
    How do i link my custom PD infotype to Object User? ... i have done the necessary updating of table T777I.
    Thanks so much,
    Zul

    Hi Dusan,
    perhaps the following steps will help you.
    1. calls se11
    2. mark radiobutton in front of Data type
    3. fill data type with HRI9003
    4. goto menu [Utilities] and select [Environment Analysis]
    This will display all objects i hope also the 3 missed. From there
    you could mark it and delete it.
    Hope this helps.
    Regards
    Bernd

  • Infotype records of infotype 0027 can not be edited.

    Dear experts,
    I have the following problem:
    I can not edit infotype records of infotype 0027. If I delete a row, the message "no change found" is displayed. I press the "save" button but when I display the record again, the row has not been deleted.
    Thank you in advance,
    Vana Sounta

    Hi Vana,
    I assume you are using wrong dynpro (2100) instead of 2500 for MP002700. So please check first in T582A for IT0027, if
    you have maintained 2500 as single screen then make sure that in table T588M you are using module pool MP002700 with screen 2500.  Hope it helps,
    Kind Regards
    Christine

  • 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.

  • Problem creating PD infotype

    Initially I tried creating PD infotype by creating the structure HRI9005 and then going to PPCI to create custom infotype. Due to some reason , I had to delete all objects from the requests . When I tried to create it the next time , it is throwing me error messages as Structure p9005 does not exist, table hrp9005 does not exist . Is it something to do with my previous deletions . Any suggesions to overcome this problem would be highly appreciated

    use this link:
    http://help.sap.com/saphelp_erp2005/helpdata/de/b7/0feb34bf03c210e10000009b38f83b/frameset.htm

  • Problem with  Creating Info Record

    Hello Gurus,
    I've problem with Creating Info Record
    i tried to create info record for Plant Specific/Purchase Org
    The first Screen General Data is OK
    i entered all the data in the next screen ie
    Purchase Organization Data screen but i'm getting error
    <b>Make an entry in all required fields</b>
    but there is Mandatory Textbox ie "VALID TO" which im unable to select Bcos its Disabled
    pls help me regarding this
    thanks in advance

    Hi
    Have u given the net price. <b>VALID TO</b> is the date until which the price shown in the info record is valid.
    If there is no price that is valid on the current date, the last-valid price is displayed and the date field contains the day before the start of the next validity period (this may be 12.31.9999 if there is no further validity date). If all validit periods lie beyond the current date, the price of the next period is displayed. The date field then contains the end date of this period.
    These validity periods we will maintain Purchse data CONDITIONS while creating info record. Check the validity period for the conditions.
    Hope this will helps u
    Ravi
    Ravikumar Bolla

Maybe you are looking for