While updating infotype i was throughen with an error

Hi Experts,
while I am updating the infotype 0170 with the hr_infotype_operation. i was given an error stating 'EPG                  009No data stored for 0170 in the selected period'.  How to resolve this. Please help me.
My code is as follows
ls_0170 like p0170.
    CALL FUNCTION 'HR_READ_INFOTYPE'
         EXPORTING
              pernr           = ls_pernr-pernr
              infty           = '0170'
             begda           = '20070101'
             endda           = '20071130'
         IMPORTING
              subrc           = l_subrc
         TABLES
              infty_tab       = p0170
         EXCEPTIONS
              infty_not_found = 1
              OTHERS          = 2.
    IF l_subrc = 0.
      IF p0170-endda = '20071130' AND p0170-begda = '20070101'.
locking the pernr ********************
        CALL FUNCTION 'BAPI_EMPLOYEET_ENQUEUE'
             EXPORTING
                  number        = p0170-pernr
                  validitybegin = p0170-begda
             IMPORTING
                  return        = l_return.
change the end date to 12/31/2007*************
        IF l_return IS INITIAL.
          p0170-endda = '20071231'.
         MODIFY p0170 INDEX 1  TRANSPORTING endda.
          ls_p0170 = p0170.
          CALL FUNCTION 'HR_INFOTYPE_OPERATION'
               EXPORTING
                    infty     = '0170'
                    number    = p0170-pernr
                    record    = ls_p0170
                    operation = 'MOD'
               IMPORTING
                    return    = l_return.
        ENDIF.
unlocking the pernr ********************
        IF l_return IS INITIAL.
          CALL FUNCTION 'BAPI_EMPLOYEET_DEQUEUE'
               EXPORTING
                    number        = p0170-pernr
                    validitybegin = p0170-begda
               IMPORTING
                    return        = l_return.
        ENDIF.
      ENDIF.
      IF p0170-endda = '99991231' AND p0170-begda = '20071201'.
locking the pernr ********************
        CALL FUNCTION 'BAPI_EMPLOYEET_ENQUEUE'
             EXPORTING
                  number        = p0170-pernr
                  validitybegin = p0170-begda
             IMPORTING
                  return        = l_return.
***modify a record with begin date 1/01/2008 and end date
***12/31/9999
        IF l_return IS INITIAL.
          p0170-begda = '20080101'.
         MODIFY p0170 INDEX 1  TRANSPORTING  begda.
          ls_p0170 = p0170.
          CALL FUNCTION 'HR_INFOTYPE_OPERATION'
               EXPORTING
                    infty     = '0170'
                    number    = p0170-pernr
                    record    = ls_p0170
                    operation = 'MOD'
               IMPORTING
                    return    = l_return.
        ENDIF.
unlocking the pernr ********************
        IF l_return IS INITIAL.
          CALL FUNCTION 'BAPI_EMPLOYEET_DEQUEUE'
               EXPORTING
                    number        = p0170-pernr
                    validitybegin = p0170-begda
               IMPORTING
                    return        = l_return.
        ENDIF.
      ENDIF.
    ENDIF.

Hi,
I think if you use this code, it migth work
***modify a record with begin date 1/01/2008 and end date
***12/31/9999
IF l_return IS INITIAL.
ls_p0170 = p0170.
ls_p0170-begda = '20080101'.
MODIFY p0170 INDEX 1 TRANSPORTING begda.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
infty = '0170'
number = p0170-pernr
VALIDITYEND = p0170-endda
VALIDITYBEGIN = p0170-begda
record = ls_p0170
operation = 'MOD'
IMPORTING
return = l_return.
ENDIF.
I have no idea because if that infotype could have more than one register at time perhaps you must use RECORDNUMBER. But this is not that case
Best regards
Jaime

Similar Messages

  • While updating ipod touch 4 i got an error message now stuck with apple symbol and empty bar. can i restart ipod?

    while updating ipod touch 4 i got an error message now stuck with apple symbol and empty bar. can i restart ipod?

    - What was the error message?
    - Try closing iTunes and then disconnect the iPod from the computer. Then reconnect the iPod.  If the iPod shows in iTunes then you can try again.  However, You should try to resolve the error message first.
    - If iTunes does not see the iPod try reetting the iPod:
    Reset iPod touch:  Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.
    - I recommend that you come back with the what the error message said and the condition of the iPod and if it is visible in iTunes.

  • While updating, my I-phone froze with apple on screen. Hasn't moved, please help

    While updating, my I-phone froze with apple on screen. Hasn't moved, please help

    If it's frozen you may have to do a reset.
    Hold down the home button (circle with a square in it) and the sleep/wave button (button on top) together until the phone restarts.
    It may go into recovery mode, which means I hope you have a backup

  • I was recently prompted to update my Itunes player to the latest version. I'm using Windows Vista. I was left with an error message MSVCR80.dll and consequently no new update. I uninstalled the old version and have tried to reinstall manually. No luck

    I was recently prompted to update my Itunes player to the latest version. I'm using Windows Vista. I was left with an error message MSVCR80.dll and consequently no new update. I uninstalled the old version and have tried to reinstall manually several times. No luck. Consequently I have no player.
    Any ideas for a fix?

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (if this won't uninstall move on to the next item)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
    Please note:
    Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
    HT1925: Removing and Reinstalling iTunes for Windows XP
    HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    tt2

  • System Refresh SAPINST.exe error ExeProcs was executed with status Error

    Hi Everyone,
                         As part of system refresh, our QA ECC is restored with Production Data backup. In this process, sapinst.exe is executed to perform homogeneous system copy steps. This process is being terminated with error at the step *"Create SAP stored procedures"*.
    The error being displayed is as follows:
    An error occurred while processing option SAP Toools for MS SQL Server > Database Copy Completion( Last error reported by the step: Errors when executing sql command: [Microsoft][ODBC SQL Server Driver][SQL Server]The specified @job_name ('SAP CCMS_qpe_QPE_Update_Tabstats') does not exist.
    SOLUTION: If this message is displayed as a warning, you can ignore it. If this is an error, contact SAP support.
    ). You can now:
    Choose Retry to repeat the current step.
    Choose View Log to get more information about the error.
    Stop the option and continue with it later.
    Log files are written to C:\Program Files/sapinst_instdir/MSS/CPY.
    sapinst.log file contains following information:
    INFO 2010-11-06 17:40:30
    Copied file 'C:/Program Files/sapinst_instdir/ERP/LM/COPY/MSS/SYSTEM/DISTRIBUTED/AS-ABAP/DB/inifile.xml' to 'C:/Program Files/sapinst_instdir/ERP/LM/COPY/MSS/SYSTEM/DISTRIBUTED/AS-ABAP/DB/inifile.4.xml'.
    INFO 2010-11-06 17:40:30
    Copied file 'C:/Program Files/sapinst_instdir/ERP/LM/COPY/MSS/SYSTEM/DISTRIBUTED/AS-ABAP/DB/inifile.xml' to 'C:/Program Files/sapinst_instdir/ERP/LM/COPY/MSS/SYSTEM/DISTRIBUTED/AS-ABAP/DB/inifile.5.xml'.
    INFO 2010-11-06 17:40:31
    Execute step
    Component  W2K_ServicePack_Check|ind|ind|ind|ind
    Preprocess  of component |NW_ABAP_DB|ind|ind|ind|ind|0|0|NW_First_Steps|ind|ind|ind|ind|0|0|W2K_ServicePack_Check|ind|ind|ind|ind|2|0.
    INFO 2010-11-06 17:40:41
    Copied file 'C:/Program Files/sapinst_instdir/ERP/LM/COPY/MSS/SYSTEM/DISTRIBUTED/AS-ABAP/DB/keydb.xml' to 'C:/Program Files/sapinst_instdir/ERP/LM/COPY/MSS/SYSTEM/DISTRIBUTED/AS-ABAP/DB/keydb.3.xml'.
    INFO 2010-11-06 17:40:41
    Execute step ExeProcs of component |NW_ABAP_DB|ind|ind|ind|ind|0|0|NW_CreateDBandLoad|ind|ind|ind|ind|8|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_MSS_DB|ind|ind|ind|ind|2|0|MssSysCopy|ind|ind|ind|ind|10|0|MssProcs|ind|ind|ind|ind|4|0.
    ERROR 2010-11-06 17:40:58
    FCO-00011  The step ExeProcs with step key |NW_ABAP_DB|ind|ind|ind|ind|0|0|NW_CreateDBandLoad|ind|ind|ind|ind|8|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_MSS_DB|ind|ind|ind|ind|2|0|MssSysCopy|ind|ind|ind|ind|10|0|MssProcs|ind|ind|ind|ind|4|0|ExeProcs was executed with status ERROR .
    Our Environment details:
    SAP Version : ECC6
    OS                 : Microsoft windows server 2003
    DB                 : Microsoft SQL Server         2005.
    Can some please guide me in debugging this issue. Your help is highly appreciated.
    Thanks a lot in advance.
    Kind Regards,
    Bharani.

    Hi Satya,
                 Thank you for the reply. QA in our landsacpe was in use since 2008. Serveral times system refresh is carried out on our QA with production data but never came accross this issue.
                 Usually if the SAPINST.exe run is successfull, temperory licence will be installed and we will be allowed to login into the sytem with our user names normally and carry out post installation steps.
                 As the SAPISNT.exe is being terminated, temperory license is not being installed and we got to work around by including parameter to allow default sap* userid and password to login and install license and carry on with the post installation steps. To be frank this issue is not really a show stopper, but there seems to be an issue that is to be resolved.
    Thank you,
    Kind Regards,
    Bharani.

  • ImportJavaDump was executed with status ERROR .

    Hi
    I am installing SAP Netweaver 2004s on AIX with MAXDB.
    To generate solution manager key , I started installation of Solution Manager 4.0 on AIX.
    I am getting error log as below:
    ERROR 2007-03-03 13:37:04
    FCO-00011 The step importJavaDump with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_Jload|ind|ind|ind|ind|9|0|importJavaDump was executed with status ERROR .
    Please help.

    Hi
    This is more a JVM problem.
    You should download the appropriate JDK (from Sun site) required for your hardware.. and retry after updating the $PATH variable...
    Check the SAP note
    Note 941595 - Download J2SE 1.4.2 for the x64 platform
    Hope this helps
    Cheers
    Senthil

  • Invalid state in SQL query for a function that was created with no errors.

    SQL> CREATE OR REPLACE FUNCTION overlap(in_start1 IN TIMESTAMP, in_end1 IN TIMESTAMP, in_start2 IN TIMESTAMP, in_end2 IN TIMESTAMP) RETURN NUMBER
    2 IS
    3
    4 BEGIN
    5 IF (in_start1 BETWEEN in_start2 AND in_end2 OR in_end1 BETWEEN in_start2 AND in_end2 OR in_start2 BETWEEN in_start1 AND in_end1) THEN
    6 RETURN 0;
    7 ELSE
    8 RETURN 1;
    9 END IF;
    10 END;
    11 /
    Function created.
    SQL> show errors;
    No errors.
    SQL>
    SQL> SELECT * FROM tbl where overlaps(current_time,current_time+1,current_time-1,current_time+2) = 0;
    SELECT * FROM tbl where overlaps(current_time,current_time+1,current_time-1,current_time+2) = 0
    ERROR at line 1:
    ORA-06575: Package or function OVERLAPS is in an invalid state
    I do not understand why overlaps is returned as in invalid state in the query, when it was created with no errors earlier. Could anyone help me?

    Marius
    Looking at the logic you are trying to create it looks like you are looking for overlapping time periods.
    Consider two date/time ranges:
    Range 1 : T1 - T2
    Range 2 : T3 - T4
    Do they overlap?
    1) No: T1 < T4 (TRUE)  T2 > T3 (FALSE)
    T1 --- T2
               T3 --- T4
    2) Yes: T1 < T4 (TRUE)  T2 > T3 (TRUE)
    T1 ---------- T2
               T3 --- T4
    3) Yes: T1 < T4 (TRUE)  T2 > T3 (TRUE)
    T1 -------------------- T2
               T3 --- T4
    4) Yes: T1 < T4 (TRUE)  T2 > T3 (TRUE)
                   T1 ----- T2
               T3 --- T4
    5) Yes: T1 < T4 (TRUE)  T2 > T3 (TRUE)
               T1 --- T2
           T3 ------------ T4
    5) No: T1 < T4 (FALSE) T2 > T3 (TRUE)
                    T1 --- T2
           T3 --- T4Answer: Yes they overlap if:
    T1 < T4 AND T2 > T3
    So you can code the logic in your SQL as simply:
    SELECT *
    FROM tbl
    WHERE range1_start < range2_end
    AND    range_1_end > range2_startIf you go around implementing PL/SQL functions for simple logic that can be achieved in SQL alone then you cause context switching between the SQL and PL/SQL engines which degrades performance. Wherever possible stick to just SQL and only use PL/SQL if absolutely necessary.

  • HT1414 I have iphone 4; tried to sync it said I need to update software so I clicked ok - it then said I need to restore and did above got to stage 3, clicked restore and update, but it comes up with an error saying iphone cannot be found Please help!!!

    I have iphone 4; tried to sync it said I need to update software so I clicked ok - it then said I need to restore and did above got to stage 3, clicked restore and update, but it comes up with an error saying iphone cannot be found Please help!!!

    Dear Jody..jone5
    Good for you that can't update your iphone because I did it and my iphone dosen't work for example I can't download any app like Wecaht or Twitter..
    Goodluck
    Atousa

  • StartJAVA was executed with status ERROR

    Hi People.
    I am installing SAP Netweaver 7.0 SR3 AS JAVA, in Linux RH5 with Oracle 10 and JAVA 1.4.2 IBM.
    The problem in the installation is when I tried to install the CI. The installation fail when tried to start de JAVA VM.
    The LOG DEV_DISPATCHER is:
    [Thr 1123465536] Wed Nov 11 12:08:32 2009
    [Thr 1123465536] JLaunchISetState: change state from [Starting (2)] to [Stopped (6)]
    </verbosegc>
    [Thr 1111980352] JLaunchIExitJava: exit hook is called (rc = 0)
    [Thr 1111980352] SigISetIgnoreAction : SIG_IGN for signal 17
    [Thr 1111980352] JLaunchCloseProgram: good bye (exitcode = 0)
    DEV_SERVER0:
    JHVM_BuildArgumentList: main method arguments of node [server0]
    [Thr 1081338176] Wed Nov 11 12:08:30 2009
    [Thr 1081338176] JLaunchRequestFunc: receive command:17, argument:0 from pid:30225
    [Thr 1081338176] JLaunchIShutdownInvoke: set shutdown interval (stop:1257952110/end:1257952230/TO:120)
    [Thr 1081338176] JLaunchProcessCommand: Invoke VM Shutdown
    [Thr 1081338176] JHVM_FrameworkShutdownDirect: invoke direct shutdown
    </verbosegc>
    [Thr 1108367680] JLaunchIExitJava: exit hook is called (rc = 999)
    [Thr 1108367680] **********************************************************************
    ERROR => The Java VM terminated with a non-zero exit code.
    Please see SAP Note 943602 , section 'J2EE Engine exit codes'
    for additional information and trouble shooting.
    [Thr 1108367680] SigISetIgnoreAction : SIG_IGN for signal 17
    [Thr 1108367680] JLaunchCloseProgram: good bye (exitcode = 999)
    And the log of Installation is:
    TRACE      2009-11-11 12:08:12.823 [syuxctask.cpp:1382]
               CSyTaskImpl::start(bool)
    A child process has been started. Pid = 4037
    ERROR      2009-11-11 12:08:13.873 [sixxcstepexecute.cpp:951]
    FCO-00011  The step startJava with step key |NW_Java_CI|ind|ind|ind|ind|0|0|NW_CI_Instance|ind|ind|ind|ind|12|0|NW_CI_Instance_StartJava|ind|ind|ind|ind|5|0|startJava was executed with status ERROR .
    Somebody Help me?
    Thanks...

    Hi.
    The sapinst.log is:
    INFO 2009-11-11 17:29:49.025
    State of instance EPP/JC01 changed from Java: (dispatcher: STARTING, server0: STARTING) to Java: (dispatcher: STARTING, server0: STARTING).
    ERROR 2009-11-11 17:29:49.027
    CJS-30153  Java process dispatcher of instance EPP/JC01 reached state UNKNOWN after having state STARTING. Giving up.
    ERROR 2009-11-11 17:29:49.755
    FCO-00011  The step startJava with step key |NW_Java_CI|ind|ind|ind|ind|0|0|NW_CI_Instance|ind|ind|ind|ind|12|0|NW_CI_Instance_StartJava|ind|ind|ind|ind|5|0|startJava was executed with status ERROR ( Last error reported by the step :Java process dispatcher of instance EPP/JC01 reached state UNKNOWN after having state STARTING. Giving up.).
    Tha sapinst_dev.log is:
    TRACE      2009-11-11 17:29:49.027
    Function setMessageIdOfExceptionMessage: nw.progress.startupProcessFailed
    ERROR      2009-11-11 17:29:49.027
               CJSlibModule::writeError_impl()
    CJS-30153  Java process dispatcher of instance EPP/JC01 reached state UNKNOWN after having state STARTING. Giving up.
    TRACE      2009-11-11 17:29:49.28 [iaxxejsbas.hpp:483]
               EJS_Base::dispatchFunctionCall()
    JS Callback has thrown unknown exception. Rethrowing.
    TRACE      2009-11-11 17:29:49.142 [syuxctask.cpp:1382]
               CSyTaskImpl::start(bool)
    A child process has been started. Pid = 25736
    TRACE      2009-11-11 17:29:49.265 [syuxctask.cpp:1382]
               CSyTaskImpl::start(bool)
    A child process has been started. Pid = 25737
    ERROR      2009-11-11 17:29:49.755 [sixxcstepexecute.cpp:951]
    FCO-00011  The step startJava with step key |NW_Java_CI|ind|ind|ind|ind|0|0|NW_CI_Instance|ind|ind|ind|ind|12|0|NW_CI_Instance_StartJava|ind|ind|ind|ind|5|0|startJava was executed with status ERROR ( Last error reported by the step :Java process dispatcher of instance EPP/JC01 reached state UNKNOWN after having state STARTING. Giving up.).
    TRACE      2009-11-11 17:29:49.767 [iaxxgenimp.cpp:752]
                CGuiEngineImp::showMessageBox
    TRACE      2009-11-11 17:29:49.767 [iaxxgenimp.cpp:1255]
               CGuiEngineImp::acceptAnswerForBlockingRequest
    Waiting for an answer from GUI
    The others logs are attached in the first Post.
    The phase of the error is in StartUP Java VM, before of the installation of Java Components.
    Thanks a lot.
    Edited by: Esteban Gutierrez E. on Nov 12, 2009 1:38 PM

  • I bought htc 8x verizon employee edition and when i update it and during installation with my error phone get off and now phone stuck on some wheel running thing and wont get on please tell me if i could download the rom

    i bought htc 8x verizon employee edition and when i update it and during installation with my error phone get off and now phone stuck on some wheel running thing and wont get on please tell me if i could download the rom or anything also

        Hi mnomi! Sorry to learn of the trouble you're running into with your new phone! Have you already switched the device via your My Verizon : http://vz.to/16lkVUY Once you have done this, and verify the sim card is inserted securely, the activation will begin. If the phone is stuck on the wheel and you cannot move forward, you may want to do an alternative reset. Please follow the below instructions:
    1) Ensure the device is powered off.
    2) Press and hold the Volume Down button (located on the right edge) until instructed to release in step 4.
    3) Press and hold the Power button (located on the top-right edge) until the device vibrates (approximately 2 seconds) then release.
    4) When the restore screen appears (exclamation mark), release the Volume Down button.
    5) From the restore screen, press then release the following keys to initiate the reset process:
    1. Volume Up button
    2. Volume Down button
    3. Power button
    4. Volume Down button
    *Allow several minutes for the process to complete (rotating gears appear on the display to indicate that the reset is in progress).
    If you have any further questions or concerns, please let us know. Keep us posted if this resolves your concerns. Thanks!
    -KristieQ_VZW
    Follow us on Twitter @VZW Support

  • While updating ipod to ios5 it shows an error after downloading the update

    while updating ipod to ios5 it shows an error after downloading the update

    Are there any error details like numbers for example?
    Did you follow this article about installing iOS5? iOS 5: Updating your device to iOS 5
    Did you check your security software settings? iTunes for Windows: Troubleshooting security software issues

  • WIB: Eliminate the option to save after a function was ended with an error

    Hi Xperts,
    is there any possibility in the Web Interface Builder to eliminate the option to save after a function was ended with an error-message?
    Appreciate any help.

    The Firefox 4+ versions automatically save your session when you close Firefox. If you want to restore your previous session the next time you open Firefox, use the Restore Previous Session button on the default about:home homepage or in the History menu.

  • I have an iphone4 currently running on iOS 5.1.1 and while updating to ios 7 it shows an error 3004 and I have tried many times forcefully also as per apple discussions but I can't update so help me.......

    I have an iphone4 currently running on iOS 5.1.1 and while updating to ios 7 it shows an error 3004 and I have tried many times forcefully also as per apple discussions but I can't update so help me.......

    http://support.apple.com/kb/TS3694?viewlocale=en_US&locale=en_US

  • Reg : BDC issue while updating infotype 40 inside BADI class method

    Hi Friends,
         Actually in my badi class, there is a method where i need to save the infotype fields including comment fields.. So with BDC recording i recorded screen fields and passing the pernr internal table values to recorded pernr values.. by doing this im getting error and so BDC is not upadting the data.. moreover if i pass directly pernr number within single quotes, BDC is working fine and data is getting updated..
    bdc_field        'RP50G-PERNR'   pernr.  --> Error Message while calling transaction through BDC
    bdc_field        'RP50G-PERNR'   '00001234'  ---> updating successfully..
    1. Tell me whether the issue is with BADI or wat ? means we cant able to use BDC inside badi ?
    2. I also tried changing my internal table value of pernr to type 'C' of length 8.. eventhough its showing error..
    Please tell me what i need to do .... ?

    Hi  Dilek Ersoz Adak ,
      I also tried with that, but getting same error..  Below is my error im getting while updating BDC through call transaction,
    1     PA30     SAPMP50A     1000     E     K     PBAS_SERVICE     001     HRADMIN     EPPRELE 00000121     HRAdministrator          CTU     RP50G-PERNR
              Person is treated already by the HR Administrator

  • Error while updating infotype using HINUINFO_UPDATE

    Hi All,
    While executing the program 'HINUINFO_UPDATE'
    i am getting an error 'No object identification permitted for infotype 0582, subtype LTA'.
    After the approval for LTA claim is done in ESS i have executed the program 'HINUINFO_UPDATE' to update he infotypes 15 and 582. Infotype 15 is getting created but while creating the infotype 582 system gives the above error message.
    In the detailed error log system gives the following message.
    "You attempted to access a data record with the object identification 1. However, according to the Customizing settings, object identifications cannot be used for subtype LTA of infotype 0582".
    Helpful answers will be rewarded .

    Solved by SAP

Maybe you are looking for