Problem in updation of infotype 1 & 8

Hi all,
I m using funtion module 'HR_MAINTAIN_MASTERDATA' for updation of data in infotype 1 and 8, But basic pay does not updated through that. all other fields are getting updated. I also used HR_INFOTYPE_OPERATION FM, but problem remains same.
<< Moderator message - Everyone's problem is important. Please do not ask for help quickly. >>
Edited by: Rob Burbank on Dec 3, 2010 4:03 PM

hi volker,
Manually am able to update that field UNPSI.
I have checked the table pa0584 manually updated value is found in the table.
But the value which i have inserted using the FM created an empty record with the field UNSPI having 0 value.
I have given all the fields into the record as same as when it is update dmanually.
I dnt knw why the value is not updating.
  p0584_2-pernr = wd_comp_controller->gv_pernr.
  p0584_2-infty = '0584'.
  p0584_2-subty = '0002'.
  p0584_2-begda = '20100401'.
  p0584_2-endda = '20110331'.
   p0584_2-OBJPS = '01'.
   p0584_2-SPRPS = 'X'.
  p0584_2-seqnr = '01'.
  p0584_2-UNSPI = ls_actual_details-other_income.
  p0584_2-INTYP = '0002'.
  p0584_2-WAEHI = 'INR'.
  p0584_2-AEDTM = sy-datum.
  p0584_2-UNAME = sy-uname.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
  EXPORTING
    infty                  = '0584'
    number                 = wd_comp_controller->gv_pernr
   SUBTYPE                = '0002'
  OBJECTID               =  p0584_2-OBJPS
  LOCKINDICATOR          =  p0584_2-SPRPS
   VALIDITYEND            = p0584_2-endda
   VALIDITYBEGIN          = p0584_2-begda
   RECORDNUMBER           = '01'
    record                 = p0584_2
    operation              = 'INS' "lv_op_type
   TCLAS                  = 'A'
   DIALOG_MODE            = '0'
  NOCOMMIT               =
  VIEW_IDENTIFIER        =
  SECONDARY_RECORD       =
IMPORTING
   RETURN                 = return_584_2
   KEY                    = key.
Pls give some solutions
Thanks
Nalla B

Similar Messages

  • Problem updating the infotype 1208 subtype ALUM

    Hi,
    My requirement is to update the infotype 1208 subtype ALUM with the Value "YES" when I terminate a employee in PA40. ( immediately).
    I am using the FM - HR_INFOTYPE_OPERATION which doesn't seem to work.
    I tried running a BDC for PA30 , but it is not allowing me to edit the employee and says that i am processing him.
    I feel this is an issue with locks. But not sure about how to go with.
    Are there any standard classes available or any other method to use to update this infotype while terminating.
    Regards,
    Karan.

    Hi,
    try using this method, this will convert the OLD_IMAGE, NEW_IMAGE, parameters into pnnnn table.
    this code is the following class.
    CL_IM_BR_SALARY_INCREASE,
    you need to create your own method, copy the parameters as well.
    method READ_IMAGE .
      FIELD-SYMBOLS: <f> type any.
      DATA: help_prelp TYPE prelp,
            inf_tabname(10).
      data: wa_p0008      type p0008,
            wa_p0734      type p0734.
      concatenate 'WA_P' p_infty into inf_tabname.
      ASSIGN (inf_tabname) TO <f>.
      loop at p_image into  help_prelp
                      where infty eq p_infty and
                            opera eq p_opera and
                            subty eq '0'.
        CLEAR <f>.
        CALL METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
          EXPORTING
            prelp = help_prelp
          IMPORTING
            pnnnn = <f>.
          append <f> to pnnnn.
      endloop.
    endmethod.
    Message was edited by:
            javier  santana

  • 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

  • 'HR_INFOTYPE_OPERATION' MOD is not updating my infotype

    Hi all,
    I have a custom field called ZXXXX in both 2010 and 0015, I'm trying to clear it up if it's populated and update certain infotype record for the particular employee.
    but I was able to clear ZXXXX in infotype 0015 but not 2010,  I'm using the same code but not understand why it works for infotype 0015 but not 2010. any thought?
    Below is the code, thanks all!
    DATA l_return1 TYPE bapiret1.
    DATA l_return2 TYPE bapiret1.
    START-OF-SELECTION.
    GET PERNR.
      RP-PROVIDE-FROM-LAST P0015 SPACE  PNPBEGDA PNPENDDA.
      RP-PROVIDE-FROM-LAST P2010 SPACE  PNPBEGDA PNPENDDA.
          CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
            EXPORTING
              NUMBER = PERNR-PERNR.
                LOOP AT P2010 WHERE ZXXXX IS NOT INITIAL AND pernr = pernr-pernr.
            CLEAR P2010-ZXXXX.
            CALL FUNCTION 'HR_INFOTYPE_OPERATION'
              EXPORTING
                INFTY                  = '2010'
                NUMBER                 = P2010-PERNR
                SUBTYPE                = P2010-SUBTY
                OBJECTID               = P2010-OBJPS
                RECORDNUMBER           = P2010-SEQNR
                LOCKINDICATOR          = P2010-SPRPS
                VALIDITYEND            = P2010-ENDDA
                VALIDITYBEGIN          = P2010-BEGDA
    *           RECORDNUMBER           =
                RECORD                 = P2010
                OPERATION              = 'MOD'
    *            TCLAS                  = 'A'
    *            DIALOG_MODE            = '0'
    *           NOCOMMIT               =
    *           VIEW_IDENTIFIER        =
    *           SECONDARY_RECORD       =
              IMPORTING
                RETURN                 = L_RETURN1
    *           KEY                    =
          ENDLOOP.
          LOOP AT P0015 WHERE ZXXXX IS NOT INITIAL AND pernr = pernr-pernr.
            CLEAR P0015-ZXXXX.
            CALL FUNCTION 'HR_INFOTYPE_OPERATION'
              EXPORTING
                INFTY                  = '0015'
                NUMBER                 = P0015-PERNR
                SUBTYPE                = P0015-SUBTY
                OBJECTID               = P0015-OBJPS
                RECORDNUMBER           = P0015-SEQNR
                LOCKINDICATOR          = P0015-SPRPS
                VALIDITYEND            = P0015-ENDDA
                VALIDITYBEGIN          = P0015-BEGDA
    *           RECORDNUMBER           =
                RECORD                 = P0015
                OPERATION              = 'MOD'
    *            TCLAS                  = 'A'
    *            DIALOG_MODE            = '0'
    *           NOCOMMIT               =
    *           VIEW_IDENTIFIER        =
    *           SECONDARY_RECORD       =
              IMPORTING
                RETURN                 = L_RETURN2
    *           KEY                    =
          ENDLOOP.
            CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
              EXPORTING
                NUMBER = PERNR-PERNR.
            END-OF-SELECTION.

    Hi Ben,
    Let's forget about using FM 'HR_INFOTYPE_OPERATION' for the moment for IT2010 and try to implement this another way - please use the code below for the IT2010 change only.
      DATA:
        lif_msg_handler  TYPE REF TO if_hrpa_message_handler,
        lo_msg_handler   TYPE REF TO cl_hrpa_message_list,
        lv_ok            TYPE boole_d,
        ls_old_2010      TYPE pskey,
        ls_new_2010      TYPE P2010.
    * instantiate the message handler object
      CREATE OBJECT lo_msg_handler.
    * assign a reference to a rereference variable using the CAST operation
      lif_msg_handler ?= lo_msg_handler.
      CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
              EXPORTING
                NUMBER = PERNR-PERNR.
      LOOP AT P2010 WHERE ZXXXX IS NOT INITIAL.   
               "AND pernr = pernr-pernr.  "<=== you don't need this AND condition as you are using LDB already
         ls_old_2010 = p2010-pskey.
         ls_new_2010 = P2010.
         ls_new_2010-aedtm = sy-datum.      "<===== so that record history is correctly maintained
         ls_new_2010-uname = sy-uname.      "<===== so that record history is correctly maintained
         CLEAR ls_new_2010-ZXXXX.
    * transfer the infotype record to the infotype buffer first
        CALL FUNCTION 'HR_ECM_MODIFY_INFOTYPE'
          EXPORTING
            PNNNN           = ls_new_2010               "<======= New/Modfied record
    *        text_tab        =
    *        modify_text  =
             OLD_PSKEY = ls_old_2010                    "<======== Old/Existing record
    *        no_auth_check   =
            message_handler = lif_msg_handler
          IMPORTING
            is_ok           = lv_ok.
    * process forward only if the transfer to buffer was successful
    *  - if unsuccessful...
        IF lv_ok IS INITIAL.
    *     "<==== Handle your exceptions here.....and CONTINUE processing the next row in the current loop
        ELSE.
    *  - if successful...
    * now flush to transfer from infotype buffer to SAP database
          CALL FUNCTION 'HR_ECM_FLUSH_INFOTYPE'
            EXPORTING
    *        NOCOMMIT              = 'X'      
              message_handler       = lif_msg_handler
           IMPORTING
             is_ok                 = lv_ok.
       ENDIF.
    ENDLOOP.
    * unlock the employee - processing now complete
    CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
              EXPORTING
                NUMBER = PERNR-PERNR.
    I'm confident that this will solve your problem - please let me know if it did not.
    Cheers,
    Sougata.

  • Facing problem while updating IInfotype 0009-bank details through workflow

    Dear SAP Gurus,
    I am facing a problem while updating Infotype 0009 through workflow which is integrdated with portal.
    Scenario:
    Employee logins to portal and changes his/her bank details like payee name, bank key, account number, postal code and city of bank, bank name etc.
    Once he submits the request, my workflow is triggered through SAP_WAPI_START_WORKFLOW which is called from portal and goes through various approval steps and finally reaches the step where the container elements are finally to be updated in IT0009.
    Field bank account number (BANKN), which is part of table PA0009 are easily updates using the FM HR_INFOTYPE_OPERATION by first enqueuing the employee number and after the update dequeuing it.
    However fields like payee name (EMFTX) bank key (BANKL) , bank name(BANKA -structure BNKA_BF-this is automatically fetched based on bank key) and postal code(BKPLZ) and city of bank (BKORT) are from structure Q0009 (on the infotype 9 screen level) and from table BNKA (at table level). The problem is that these are not getting updated by HR_INFOTYPE_OPERATION as they are not the part of infotype 9.
    Can anyone help me to understand how can these fields be updated ?
    Quick help will be highly appreciated.

    Hi Spantaleoni,
    Thanks for your quick response.
    Well actually the table BNKA is a master table for the bank information and we must not create entries in it or update the table programatically,  rather we should  use the available data in it.
    Now say employee currently has bank as A and he wants to change it as B which is available in BNKA then he will just select the bank B from search help provided in portal which again comes from table BNKA only. Employee then submits the info and it must get updated in the infotype PA0009.
    As far as think, this should be done on screen level of infotype PA0009 as I have already mentioned that certain fields are coming from structure Q0009 and they cannot be updated on PA0009 table level.
    I am just looking for way through which I can update the screen of infotype PA0009 of employee through workflow.
    Regards

  • Updating hr infotype pa0305 with 'HR_INFOTYPE_OPERATION'

    Hi everyone i'm trying to update hr infotype pa0305 using fm HR_INFOTYPE_OPERATION but it doesn't work  maybe using in worng way.
    Maybe someone knows how can i use the second structure q0305 passing trough the parameter called "secondary records".
    Thanks in advance,

    Sorry for the late, the problem was that the part structure of  p305 is empty; the part of wage type and amount exactly.
    CLEAR lv_return .
        CALL FUNCTION 'HR_INFOTYPE_OPERATION'
          EXPORTING
            infty                  = '0305'
            number                 = wa_alvgrid2_error-pernr
            subtype                = ''
            OBJECTID               =
            LOCKINDICATOR          =
           validityend            = wa_alvgrid2_error-endda
           validitybegin          = wa_alvgrid2_error-begda
            RECORDNUMBER           =
            record                 = st_0305
            operation              = 'INS'
            tclas                  = 'A'
            dialog_mode            = '2'
             nocommit               = ' '
            view_identifier        = '15'
            secondary_record       = st_q0305
         IMPORTING
           return                 = lv_return
            KEY                    =.
    maybe I am in wrong when I pass the secondary record.

  • Reg: Updating two infotypes thro HCM forms

    Hello experts
    in my scenario i have update two infotypes . can anyone tel me how i have to make the field assignment.
    shoould i mention the screen fields for both the infotyes???
    should i include any coding in BADI???
    Thanks
    Priya
    Edited by: priyaraj on Jul 30, 2009 12:44 AM

    I have not had any problems (aside from the HCM P&F bugs) with any infotypes for PA. A few things to check:
    (1) your config is set for operations on those infotypes (not just reads)
    (2) all needed fields are bound to the infotype screen structure and that "operation exclusion" is not checked
    (3) make sure you are not "hiding"/ignoring errors
    (4) you have the parameters (usually in workflow binding....or straight away if "no workflow" setting is used) to actually do the "save"
    (5) I didn't read that you had any errors, but maybe check security just to be sure it's not an authorization problem.
    That's off the top of my head. Maybe one of them will be your answer!

  • How can I Update an infotype

    Hallo all,
    i have just upload a Kapro document from SAP Content repository and hang it up in a record, and i want update that record (infotype) , can anybody show me how to update an infotype,
    kind regards
    Jimy
    Edited by: jimkim on Nov 16, 2009 11:49 AM

    Hi,
    thanx for your replay,
    yes its a dicnamic infotype, but after uploading tha data, i have used some methods to hang the document in a personnal file.
    thanx a lot

  • CS4 Master Collection - Problem Applying Updates

    Hi
    I'm running the CS4 Master Collection on Windows Vista Ultimate 32-bit, SP2.
    Normally I have no problem applying updates to the various Adobe components when they become available, however for a while now I've been unable to instal an update that's reported as being available for Adobe Media Encoder 4.1.0.
    If I run the "check for updates" manually I can download the update (reported as being 63.7MB) and when I attempt to instal it the installation process appears to run. It finishes after a while and the Adobe Updater reports "The Udating Process is Finished" in a single dialog box with a single button entitled "Quit" - which seems odd as "Quit" implies "finish earlier than planned", I'd have expected something more in line with "All done", something like "OK".
    Anyway, when I run the check for updates again I'm told about the same update implying that it wasn't applied successfully.
    I get this behaviour whether I run the update as an Administrator or not (all other updates for other products are applied without problem). I also get it regardless of whether or not I reboot the machine after trying to apply the update.
    Does anyone have any suggestions on what could be causing the problem ? I couldn't find anything obvious or obviously relevant in any of the Windows event logs on the PC.
    Thanks for any ideas
    Steve

    I am having the same problem. I found a forum that suggested this. Apparently it worked for some people, but not for me. Let me know if it does:
    1. Start -> All Programs -> Accessories
    2. Right-click on Command Prompt and select "Run as..."
    3. Run as Administrator (even if you are logged in as Admin. You need to run in the Black Command Prompt, not the White one)
    4. Run: regsvr32 JScript.DLL
    5. Then run: regsvr32 vbscript.DLL
    (dont forget the spaces, or it won't work)
    6. Then try running the set up again
    As i said, it worked for some on the forum, but not others (like me). Try it and see if works for you

  • SAP HCM P&F - Update an infotype field which is NOT passed from Form

    Dear Experts,
    I have a requirement to update the Infotype with the entries in the HCM form (input by Employee in ESS) upon Manager's approval in MSS.
    We are achieving this functionality using HCM P&F (FPM) with an Workflow associated.  In this Workflow Standard Task (TS17900108) is used to Save the form data into the Database.
    But there is one field (APPROVED_DATE) in the Infotype whose value is not from the FORM but should be updated in the Infotype.
    Please help me with your inputs.
    Regards,
    Shankar

    Dear Christopher,
    I am extremely thankful to you for all the replies.  But, unfortunately, we are messed up with this requirement and we couldn't achieve it.
    In this regard, could you please give us the step-by-step procedure to achieve this functionality?
    Requirement in brief again:
    We have designed Overtime HCM form (FPM) using which employee requests for the Overtime.  This form is sent for the Manager for approval.  We have achieved this functionality.  With the Manager Approval, the database is also updated perfectly.
    Then we have added one more field in the infotype to track the Approved Date.  This field is to be updated along with the other fields (sent from FORM) upon the approval of the manager.
    And now though the other fields are updated correctly into the infotype, the approved date is not updated.
    Thanks a ton in advance for your guidance as this is very critical and urgent requirement for us.
    Regards,
    Shankar.

  • Problem with updating the PC Updater software

    Good evening (from Germany). I have a problem with updating my Nokia Software Updater. I can download the setup and I can execute this. But when the installation starts (0%) a error message appears. It's a problem with Windows Installer but I don't know how to solve the problem. Here is a picture with the exactly error message:
    http://img-up.net/?up=Nokia_probES8HJXXg.jpg
    I hope somebody knows the anser with this software...
    Greetings
    OS: Windows XP SP2
    Phone: Nokia 3110 classic Firmware: V 5.50
    Message Edited by dernamenlose on 24-Apr-2008 08:56 PM

    Good morning (from Denmark).
    I hve the same problem.
    OS: WinXP SP2
    Phone: N73.
    Greetings.

  • Problem while updating a database table

    Hi experts,
                         I've used the FM 'HR_INFOTYPE_OPERATION' to update the database table. In that i used the MOD operation to update the Infotype PA0315.  But it return an error message like "Infotype does not exist". What could be the reason for this error?.
    regards,
    Shanthi.

    Hi,
          Here is my code for updation.
    CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
    EXPORTING
    NUMBER = P0315-pernr
    IMPORTING
    RETURN = wf_returne.
    Update Mode
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
    EXPORTING
    INFTY = '0315'
    NUMBER = P0315-PERNR
    SUBTYPE = P0315-SUBTY
    OBJECTID = P0315-OBJPS
    LOCKINDICATOR = P0315-SPRPS
    VALIDITYEND = P0315-ENDDA
    VALIDITYBEGIN = P0315-BEGDA
    RECORDNUMBER = P0315-SEQNR
    RECORD = P0315
    OPERATION = 'MOD'
    TCLAS = 'A'
    DIALOG_MODE = '0'
    IMPORTING
    RETURN = wf_return.
    Dequeue
    CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
    EXPORTING
    NUMBER = P0315-PERNR.

  • Problem while updating the Support Package 17 on my SAP WAS SP9

    Hi,
    I'm facing problem while updating the Support Package 17 on my SAP WAS SP9
    ERROR 2006-10-13 10:23:22
    FSL-06002  Error 2 (The system cannot find the file specified.
    ) in execution of a 'CreateProcess' function, line (284), with parameter (java.exe ...).
    Please help me in this regard.....
    Thanks in advance...
    Satya

    Hello gentlemen, I am also having problem with the following running on 64 bit Windows and SQL2005/64 bit. I am erroring in Step 8 'Updating JDBC' driver. I am attempting to update from SP9 to SP18. The WEBAS Jave installed went flawless but I seem to be stuck here. Any help is appreciated...
    ERROR 2006-11-22 10:13:57
    FSL-06002  Error 2 (The system cannot find the file specified.
    ) in execution of a 'CreateProcess' function, line (284), with parameter (java.exe ...).

  • In updating iPhoto 7.1.5 to 9.4.3. I have four different Libraries.  Is there a problem in updating all four Libraries from 7.1.5?

    In updating iPhoto 7.1.5 to 9.4.3 I have four different Libraries.  Is there a problem in updating all four Libraries from 7.1.5?

    No.  Once you have upgraded iPhoto to 9.4.3 launch it with the Option key held down and select each library in order.  iPhoto will convert the  library to the new version.
    As always, be sure you have a backup copy of each library before proceeding.
    OT

  • Hello, I have this problem on updating applications on my iPhone 4s 5.1.1 i dont know if you can help me with. when ever i want to update an application on apple store i get a different user name then mine(slamdance@cracked.by) this user name is not mine

    Hello,
    I have this problem on updating applications on my iPhone 4s 5.1.1 (jail broken) i dont know if you can help me with.
    when ever i want to update an application on apple store i get a different user name then mine([email protected]) this user name is not mine but its always there only on updating my app's.
    thanking you in advance for your kind help.

    Under the Terms of Use of this forum it is prohibited to discuss jail breaking. By jail breaking your iPhone you void any warranty you may have and forfeit any support from this forum.

Maybe you are looking for

  • Export CLOBs with text into their own file?

    I have a CLOB column in a table. I know it's text (XML Text to be more specific). I want to create a text file for the CLOB contents from each row in the result set of a query and I'd like to name each file based on the value in a different column in

  • Can no longer access a website - why?

    As of yesterday, I can no longer access the local school district's website.  Says it cannot connect with the website. I've called around and everyone else seems able to connect, so the site is not down. We've got FIOS - have had it for a long, long

  • Free busy information not available from DR site

    We have 4 Exchange 2010 servers in primary site having all roles (CAS,Mailbox,HUB) .We have 3 servers in DR site having all three roles.Primary site is internet facing. Users in primary site can see free busy information for users in DR site .However

  • PS - Project Version Reporting

    Hi Dear, For project verson wise reporting  i need to get Amount (Plan and actual cost , revenue) and Quantity (Plan work and actual work --durations). I have done the development by pulling amont from RPSCO and Quantity from RPSQT  by giving the OBJ

  • Unable to load sequence!!

    I have a sequence which was previously loading properly but now it refuses to load due to an apparant "Incorrect File Format" error (see attached image). It's very important I get this sequence to load other I will have lost a lot of work. Does anyon