Check before an infotype operation (PA) / HR_INFOTYPE_OPERATION

Hi,
In my latest project there is a requirement to simulate the HR_INFOTYPE_OPERATION (or other possibilities to update the PA* infotypes). The main meaning of the project is in robust customer customization, which translates to dynamic abap webdynpro views with data from the infotypes. Person fills those forms and sends the "personal document" for processing (creating entries in customer Z* namespace). Just after that a different user can pick the "personal document" and can process it - that is the part where it comes to the infotypes filling (HR_INFOTYPE_OPERATION, batch-inputs, direct updates etc.).
Now requirement is to implement checks also in the creating of the "personal document" itself, before saving it into customer (Z*) tables. How could that be achieved? One way would be using HR_INFOTYPE_OPERATION with nocommit = 'X' and after all operations call of ROLLBACK WORK, initializing buffers etc. However whole concept of using HR_INFOTYPE_OPERATION is in locking the personal number before the call. User which only creates the "personal document" should not lock the personal number - as this part should be independent on other processes, taken in SAP standard HR tables / transactions themselfs.
I did not find any kind of checking mechanism ignoring the person-locking concept, but with full logic that the corresponding infotype expects. There should be are all kind of operations supported (insert, copy, delimit...).
I underline that the customer is at a low support package (< EH5) and the decoupling infotypes concept is useless here.
Thanks for any advice.

Hi Surya,
Enhancement project PBAS0001which contains those includes is obsolete in terms of detached infotype framework.
The following enhancements will work for a decoupled infotype:
BAdIs:
HRPAD00INFTYBL Enhancement of Business Logic of Standard Infotypes (this is the direct replacement for the enhancement project PBAS0001)
HRPAD00INFTYDB Performing actions after updating (this is the direct replacement for the BAdI HRPAD00INFTY)
HRPAD00INFTYUI BAdI: UI Logic Enhancement
More information you may find here:
IMG Personnel Management->Personnel Administration->Customizing Procedures->Infotypes->Infotypes in Detached Infotype Framework
Under the following IMG nodes:
Enhancements to Business Logic and Updating
Enhancements to UI Logic
Regarding to your questions:
1. If the infotype is decoupled, even the HR_INFOTYPE_OPERATION will call these business checks and time constraint checks. Right ? So, what is the major advantage of moving to HR_ECM_INSERT_INFOTYPE ?
I suppose it has been done to follow the same logic as SAP does in PA-EC component
For example to adjust a salary in ECM SAP uses FM HR_ECM_ACTIVATE_SAL_ADJUSTMENT meanwhile it uses FM HR_ECM_INSERT_INFOTYPE to update IT0008
2. Is there some trick to enable HR_ECM_INSERT_INFOTYPE call the user exits of the Infotype ?
I think there is no standard way to do so...
It is a good idea to follow the standard enhancement concept for decoupled infotypes, at least I see no problems in moving the old enhancement to a new one.
Kind regards,
Sergey

Similar Messages

  • Order type Z031 plant AT01. No checking rule mantained for operation

    Hello PS Gurus,
    I am trying to create a new element PEP, and when i tried to release the element PEP i get.
    Order type Z031 plant AT01. No checking rule mantained for operation
    Can someone tell me what is missing in our customization?
                 Best Regards
                     João Fernandes

    I assume you are trying to attach materials to network activity which is assigned to WBS.
    Your error is because of missing configuration in below mentioned node:
    In SPRO maintain the 'Define Checking Control' under Project Systems->Material->Availability Check (T code OPJK)
    For plant AT01 and Order Type Z031 maintain parameters which are suitable to you. Before this you need to check the node OPJJ.
    Regards
    Sreenivas
    Pls close this post if satisfied.

  • Updating infotype 0041 using HR_INFOTYPE_OPERATION?

    Hi All:
    How do we update the dates in infotype 0041 using HR_INFOTYPE_OPERATION? lets say we have 6 dates populated in 41  and we another employee has 9 dates populated. We are reading these records and need to update the dates for all the employee records.
    Thanks
    Venkata

    Hi Venkata,
    What you can do is use the HR_INFOTYPE_OPERATION in Change or MOD(Modify) mode i.e.
    pass 'MOD' in operation parameter.
    Your recordnumber parameter should have the sequence number from infotype record you are updating (field SEQNR). All other parameters should be as it is had been for INS or insert operation.
    Regards.

  • How to Insert Infotype by FM HR_INFOTYPE_OPERATION

    Hi,
    I am using  HR_INFOTYPE_OPERATION FM to insert and update the infotype.
    I am able to update the data but unable to insert.
    When I use MOD operation the data is updated successfully but for INS operation it is again rather than inserting record it is updated again.
    Please see the following sample code .
    REPORT  ZHR_UPDATE_INFOTYP.
    DATA: G_RETURN LIKE BAPIRETURN1,
          IT_P0003 LIKE P0003,
          G_SUBRC TYPE SY-SUBRC.
    data: l_infty type prelp-infty value '0003',
          l_infty_tab type table of pa0003 with  header line,
          wa_infty type pa0003.
    PARAMETER: P_PERNR LIKE PA0003-PERNR,
              P_MODE TYPE CHAR1.
    start-of-selection.
    IT_P0003-INFTY = '0003'.
    CALL FUNCTION 'HR_READ_INFOTYPE'
      EXPORTING
      TCLAS                 = 'A'
        pernr                 = p_pernr
        infty                 = l_infty
      BEGDA                 = '20110905'
       ENDDA                 = '99991231'
      BYPASS_BUFFER         = ' '
      LEGACY_MODE           = ' '
    IMPORTING
      SUBRC                 = SUBRC
      TABLES
        infty_tab             = l_infty_tab
    EXCEPTIONS
      INFTY_NOT_FOUND       = 1
    read table l_infty_tab index 1 into wa_infty.
    CLEAR:IT_P0003.
    IT_P0003 = wa_infty.
    IT_P0003-ABWD1 = sy-datum - 1.
    PERFORM HR_INFOTYPE_OPERATION USING IT_P0003 P_MODE
                                  CHANGING G_RETURN
                                           G_SUBRC.
    WRITE:/ 'G_SUBRC',G_SUBRC.
    *&      Form  HR_INFOTYPE_OPERATION
          text
    FORM HR_INFOTYPE_OPERATION  USING   P_P0003 STRUCTURE P0003
                                        P_P_MODE
                                CHANGING P_P_RETURN
                                         P_P_SUBRC.
      DATA: L_OPERATION TYPE PSPAR-ACTIO,
            L_KEY LIKE BAPIPAKEY.
      CASE P_P_MODE.
        WHEN '1'.
          L_OPERATION = 'INS'.
        WHEN '2'.
          L_OPERATION = 'DEL'.
        WHEN '3'.
          L_OPERATION = 'MOD'.
        WHEN OTHERS.
      ENDCASE.
    *--Performing Infotype Operations Using FM
      CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
        EXPORTING
          NUMBER = P_P0003-PERNR.
       IMPORTING
         RETURN = P_P_RETURN.
      CALL FUNCTION 'HR_INFOTYPE_OPERATION'
        EXPORTING
          INFTY                  = P_P0003-INFTY
          NUMBER                 = P_P0003-PERNR
          SUBTYPE                = P_P0003-SUBTY
      OBJECTID               = OBJECTID
      LOCKINDICATOR          = LOCKINDICATOR
       VALIDITYEND            = P_P0003-ENDDA
       VALIDITYBEGIN          = P_P0003-BEGDA
      RECORDNUMBER           = RECORDNUMBER
          RECORD                 = P_P0003
          OPERATION              = 'INS'
       TCLAS                  = 'A'
        DIALOG_MODE            = '1'
      NOCOMMIT               = NOCOMMIT
      VIEW_IDENTIFIER        = VIEW_IDENTIFIER
      SECONDARY_RECORD       = SECONDARY_RECORD
       IMPORTING
         RETURN                 = P_P_RETURN
         KEY                    = L_KEY  .
      P_P_SUBRC = SY-SUBRC.
      CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
        EXPORTING
          NUMBER = P_P0003-PERNR.
       IMPORTING
         RETURN = RETURN.
    ENDFORM.                    " HR_INFOTYPE_OPERATION
    Any help will be greatly appreciate

    not solved ,closed sadly

  • Infotype Operation

    Hi,
    Can someone explain me following Infotype operation's, with an example please and also, how we should decide which operation for an Infotype will suit the best to the client.
    Create INS
    Copy   COP
    Change MOD
    Delimit LIS9
    Create operation for actions  INSS
    Please do not copy paste R/3 defined definitions here,I have already gone through it and I'm looking for further explanation.
    Thanks,
    Tk

    Hi Tina,
    This FM is generally used to perform data base record change for an Infotype
    INS- Create
    Creates a new record in the system
    COP- Copy
    Copy the existing record from the system
    MOD- Modification
    Change the existing record in the system
    LIS9
    Delimit the Existing record in the system
    And so Onn..
    Look into the code below for your reference
      CALL FUNCTION 'HR_INFOTYPE_OPERATION'
        EXPORTING
          infty         = c_i0014                               "'0014'
          number        = wa_zltcbill-pernr
          validityend   = ld_validityend
          validitybegin = wa_zltcbill-zdate
          record        = wa_0014
          operation     = ld_operation
          tclas         = p_tclas
          dialog_mode   = p_mode
        IMPORTING
          return        = p_wa_return.
    Regards
    Pavan

  • Which Java API could check the type of Operating System the JVM is running?

    Does anyone know which Java API could check the type of Operating System the JVM is running?
    thanks a lot!

    check out System class.
    regards
    shyamAnd specifically, the getProperty() method.
    - K

  • HT2623 I have upgraded my Iphone operating system using IO6. Before doing this operation I have backed up the phone and I cannot restore my phone from the backup since it simply does not accept my password.

    I have upgraded my iPhone using IO6. Before doing this operation the advises to me is to back up the phone, which I did using iCloud.
    When I tried to restore the back it does not access my password which I have given to restore my password.

    if you cant remember the password of your back-up encryption, you can't back it up
    You will have to restore as a new phone

  • HT1222 I am trying like **** to download itunes 10.6.3 (64 bit - Windows 7) and I keep getting "the installer was interrupted before the requested operations for iTunes could be completed.  Your systems has not been modified."  I NEED HELP, PLEASE!

    I am trying like **** to download itunes 10.6.3 (64 bit - Windows 7) and I keep getting "the installer was interrupted before the requested operations for iTunes could be completed.  Your systems has not been modified."  I NEED HELP, PLEASE!

    I got it figured out myself... yaaaaay for me!

  • Error has occured during install before the requested operation for i tunes could not be completed your system has not been modified

    error has occured during install before the requested operation for I tunes could be completed  Your system has not been modified to complete the install run the installer again and I have it still won't work

    See:
    Trouble installing iTunes or QuickTime for Windows

  • I have a problem with mail.  the spelling and grammer check box before sending the messege is no longer there.  I did everything but cannot get it back.  is ther anyone who knows how to get the box with spelling and grammer checks before sending

    i have a problem with mail.  the spelling and grammer check box before sending the messege is no longer there.  I did everything but cannot get it back.  is ther anyone who knows how to get the box with spelling and grammer checks before sending the mail.
    Also the mail is acting very funny by not getting the rules work in a proper method.  Is ther a software to repair mail.

    i did both of them, but still the while sending the mail the diolog box is not showing up and also the spelling and grammer does not do the spelling check. 
    This problem just started for about 3 to 4 days now.  earlier it was working normally.

  • Checking before saving PR

    I would like to make a specific field in PR, let say vendor material, to be mandatory for a specific PR document type. It seems that it cannot be done by "Define screen layout at document level".
    So I would like to perform a checking before save.
    Which user exit should I use? Thanks.

    Try this example. Its an adaptation of a code of my own but I haven't checked ABAP syntax so maybe there is a period or somethig missing there.
    The idea of the code is to give an error message at item level based on a condition depending on document type and another field in the item (item category). Hope it helps. SL
    method if_ex_me_process_req_cust~process_item.
    data:l_mereq_item type mereq_item.
    l_mereq_item = im_item->get_data( ).
    data: error(150) type c.
           if l_mereq_item-bsart eq 'ZSPM' AND l_mereq_item-pstyp ne '9'.
          error = 'Document type can only be used for purchasing of external services'.
           message error type 'E'.
           endif.
    endmethod.

  • Anyone know if it is possible to cancel a payment by electronic check before it goes thru?

    Anyone know if it is possible to cancel a payment by electronic check before it goes thru?

    Call your bank. Many times they can stop the payment.
    Good Luck

  • Virus Check before documents upload in cFolders

    Hi All,
    Is it possible to perform the auto virus check before putting the documents into the cFolders.
    thanks,
    rajesh.

    Hi,
    in cFolders there is no virus scan in the standard, but you can use the virus scan that is integrated into the web application server. It is however only an interface so that you can use existing virus scan software - SAP does not supply the actual scanner software. Please see more in note 797108.                                                                               
    Following information sources might be also helpful:                                                                               
    - http://service.sap.com/securityguide                                                                               
    - http://service.sap.com/securitypartners                                                                               
    - notes 786179, 639486 and 817623                                                                               
    - cFolders security guide under http://service.sap.com/plm-inst ('using cProject Suite XX', in the main window you'll see the download link for the 'Security Guide')                                                                               
    If you store your documents in the Knowledge Provider, note 210802 is relevant.
    Regards,
    Silvia

  • [svn:fx-trunk] 12432: Added Capabilities. hasAccessibility check before calling Accessibility.updateProperties() in setter methods.

    Revision: 12432
    Revision: 12432
    Author:   [email protected]
    Date:     2009-12-03 06:59:10 -0800 (Thu, 03 Dec 2009)
    Log Message:
    Added Capabilities.hasAccessibility check before calling Accessibility.updateProperties() in setter methods.  This prevents an error on systems that do not support accessibility.
    QE notes: none
    Doc notes: none
    Bugs: (24454
    Reviewer: Gordon
    Tests run: checkintests
    Is noteworthy for integration: no
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/core/UIComponent.as

  • Check before update in table

    Hi Guru's,
    I am a new developper in abap. I have a question concerning the check before the update in a table.
    I uploaded a csv file by the function module GUI_DOWNLOAD but now before to do the update I have to check if the correct value for the controlling area and profit centre are used .
    I don't know where do my test.
    Anyone can help me?
    Regards,
    Mohamed.
    UPDATE
    -          fill table --> check all values of the file and if one error stop processing and do not update anything in the table
    -          check if controlling area is correct
    -          check if profit center is correct
      LOOP AT it_datatab INTO wa_datatab.
        split wa_datatab at ';'  into
                          wa_cepc_segm-KOKRS
                          wa_cepc_segm-PRCTR
                          wa_cepc_segm-DATBI
                          wa_cepc_segm-DATAB
                          wa_cepc_segm-SEGMENT.
        APPEND i_cepc.
        CLEAR i_cepc.
      ENDLOOP.
      END-OF-SELECTION.

    Hi,
    Updating a database table
    Single-line updates
    SELECT * FROM TABLE
    COLUMN-UPDATE STATEMENT
    UPDATE TABLE
    ENDSELECT
    Column updates
    UPDATE TABLE SET COLUMN-UPDATE STATEMENT
    Regards

Maybe you are looking for

  • How can I remove the service reply from my 2700?

    Hi, Can anyone help me to remove the service reply which makes an irritating sound everytime I send an email? Thanks, Vicky

  • My Eye Dropper STILL does not work in CS5 while using Lion with one monitor. How can i fix this?!?

    Hello everyone! This is my first post because i have grown very disgruntled at the fact that my eye dropper does not work my Premiere CS5. I would use the Ultra Key a lot but now I obviously can not really use it too well because of no eye dropper. I

  • Can't see me iPod in iTunes

    I've installed my new Ipod Nano 2GB on my computer. Also i have installed iTunes. iTunes is running but i can't see my iPod in it and so it isn't possible to export any songs from iTunes to my ipod. Please help me   Windows XP  

  • Portal left side navigation proble

    Dear All, I am facing one strange problem in portal left side navigation. I am having 18 pages in left side navigation panel those pages are appearing when i typed portal url with host name. If i typed portal url with IP address 18 pages are not visi

  • Memo Records and Payment Advice - TR-CM

    Hi all of you, Could any one explains me what is the meaning of Memo records and Payment advice, how they reflects the cash / Liquidity forecast? Where we will create those items in SAP? Thanks & Regards Ramki Edited by: Ramki on Jun 3, 2009 2:19 PM