Upadating infotype 0416 directly

hi all,
Ito get the personnel no. of the logged in user and get the previlege leave details from infotype 2006.
after this need to put some validations and update the infotype
0416 directly by using BDC( i suppose ).
need help.
Edited by: Adesh  Tiwari on Aug 11, 2008 10:16 AM

hi all,
Ito get the personnel no. of the logged in user and get the previlege leave details from infotype 2006.
after this need to put some validations and update the infotype
0416 directly by using BDC( i suppose ).
need help.
Edited by: Adesh  Tiwari on Aug 11, 2008 10:16 AM

Similar Messages

  • Prevent infotype 0416 from being created under certain conditions

    Hi,
    Based on an advanced leave formula I can determine at runtime whether or not the infotype 416 record should be created or not. The formula is working.
    What is not working is that I need to find a way to prevent the 416 record from being created when the formula returns certain values. I have looked at ZXPADU02 and various other user exits and badi's but to no avail. The ZXPADU02 does not have the field which needs to be checked i.e. PA04160-NUMBR.
    Regards,
    Warren.

    Hi,
    The data is in INNNN structure.
    Write this code in include ZXPADU02 & set a break-point & check the value.
    case innnn-infty.
      when '0416' .
    perform validate_it0416
            using innnn
                  ipsyst.
    FORM validate_it0416 USING    p_innnn
                                   p_ipsyst.
       DATA: i_psyst LIKE psyst.
       DATA: i_nnnn  LIKE prelp.
       DATA: ps0416 LIKE ps0416.
       i_psyst = p_ipsyst.
       i_nnnn  = p_innnn.
       ps0416  = i_nnnn-data1
    if ps0416-numbr = ' '  "<b> check ur ondition here</b> endif.
    Hope this helps & solve your problem.
    Thanks,
    Sarika.

  • Infotype 0416 User exit

    Hi,
    I am using PA30 with infotype 416. While displaying, I am getting two radio buttons namely  - Automatic and manual compensation. But while creating, i do not see this two radio buttons.
    Is there any user exit which can be used to remove / make invisible the radio buttons while displaying?
    Regards,
    Naba.
    Edited by: Naba Kumar Saha on Jul 14, 2009 2:30 PM

    Hi
    I am following code
    WHEN '0416'.
    CALL METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
          EXPORTING
            prelp = innnn
          IMPORTING
            pnnnn = i0416.
         i0416-wgtyp = '5004'.
    I moved the value wgtyp field, but the screen field not updated.
    regards

  • HR Abap - Reading table control for infotype 0416

    Hi,
    Infotype 416 'Create Time Quota Compensation' has a table control for 'Absence Quotas'.
    I have to read this table control in user exit ZXPADU02.
    Please assist in how to go about doing this.
    Regards,
    Warren.

    Hi All,
    I am using ZXPADU02.
    The FM's suggested don't work because the user enters a compensation value at runtime and when user clicks 'save' I need to pick this value up. The FM's pick up existing absence records but I need the ones being created at runtime.

  • Cost Assignment button in Infotype 0416

    Hi,
    I want to add a button similar to the 'Maintain Cost Assignment' found on the IT0014 screen in the application toolbar of IT0416. Also the button should perform similar functions. Can anyone know how to do it. Please do let me know.
    Thanks,
    Ashok

    Hi,
    I don't think there is any customising involved in this. You may need to go for Z development. However I would suggest you to wait for others to give their opinion on this.
    If still you are not able to find any solution then raise this issue with SAP thourgh OSS. Why I am asking this is because there may be similar requirement at some other client and it would be better if we get this as standard solution. Simultaneously you may think of some other alternative.
    VK

  • How to display infotype as iview in portal?

    Hi All,
      I have a requirement where i have to display a infotype in portals.
    For this i created transactional iview( tcode:pa20) but i must not display the selection screen for the employees.
    When the Employees login and click the link, they should be able their salary structure(infotype:9004) directly.
    How to go abt this.
    Regards,
    Mahesh.M.R

    Mahesh,
    first of all you'll need the Netweaver Developer Studio (NWDS). then you can decide either to develop with PDK an iView or you can create a webdynpro application.
    In both cases you'll need additionally an remote-enabled function module (RFM) or bapi that reads your infotype.
    another possibility (if you have already ECC6.0), you can write a webdynpro for abap application.
    kr, achim

  • Query on UNAME default in Infotypes

    All,
    We have a requirement where the uname in the infotype record should always have "WF-BATCH" but not the logged in userid.
    We tried passing the value i.e. P0014-UNAME = 'WF-BATCH' before passing this to HR_INFOTYPE_OPERATION FM. But still the record has the sy-uname but not WF-BATCH.
    Let me know if there is anyway we can default this?
    Regards
    RK

    Hi,
    Running this program in background could also solve your issue of course..
    If it has to run in foreground mode then volker got a point with
    update the infotype record directly in PAxxxx table. here you can set UNAME and AEDTM as you like.
    Simply code an update statement after the FM has committed the changes to the Paxxxx table...
    not really a nice option, but a working one
    Kr,
    Manu.

  • How to Display infotype in Portals?

    Hi All,
      I have a requirement where i have to display infotype.
    For this i created transactional iview( tcode:pa20) but i must not display the selection screen for the employees.
    When the Employees login and click the link, they should be able their salary structure(infotype:9004) directly.
    How to go abt this.
    Regards,
    Mahesh.M.R

    Mahesh,
    check your other post: How to display infotype as iview in portal?
    kr, achim

  • Activate Block Organization Plan in Infotype 0001 when it copied

    Hi All,
    I want to activate block organization plan in infotype 0001 when I copy or  create that infotype.
    I have tried to search any available resources in sap notes but couldn't find it.
    How to activate this?
    Thank you in advance,
    MAL

    Dear semvladigo ,
    it's not about integration between PA and OM.
    What I want to do is I want to copy infotype 0001 directly from PA30, and then change the percentage of the position directly without using Action (PA40).
    I tried to copy it using PA30 but I cannot change the percentage because it is in grey out. How to make it possible to change the percentage directly.
    Thank You,
    MAL.

  • UPDATING 0416 USING BDC

    HI ALL,
    CAN ANYONE TELL ME HOW TO UPDATE INFOTYPE 0416 USING BDC.
    THANKS IN ADVANCE.

    I HAVE UPDATED MY CONTACT PLZ SEND ME THE DETAILS.
    I AM NEW IN THIS FIELD SO I AM NOT ABLE TO WORKOUT.

  • Leave Balance Carry forward problem

    Hello experts,
    Actually i found many threads which alredy posted but could not able to found solution for my scenario.
    we are having PCRs and doing Time evaluation in negative time mangement for carry forwarding quota balance, and Balances are forwarding to next year properly.
    But problem is, last year balance should be set by that remain amount and balance is transfered to next year.
    e.g.  if i have Entitilement as 53 and used 17 for the year 2010. now am doing time evaluation to transfer the remain balance that is 36 to next year, and its carry forwarding to 2011 is ok. Now i want that Entitlement 53 for 2010 will set to 17 also. So, the system will carry forward the balance as well as that balance is deducted from previous enttilement also, in short how much is transfered that much deducted from previous entitlement.
    So, i need to change that PCR.
    Note:This requirement is suggested because, there was a problem when we do leave encashment using infotype 0416, it will deduct the quota compansation amount from proper year with available quota.
    Please help me..
    -Jagdish
    Edited by: Jagdish Rakholiya on Dec 28, 2011 11:55 AM

    Jagadish,
    in short how much is transfered that much deducted from previous entitlement.
    it means you want to transfer the used leaves number to next year. is it?
    its so confusing please elaborate simply.
    regards,
    mohammed

  • Need logic in abap-hr

    Hi
    I have a requirement that employee can display,edit,view and confirm his personel data i.e first name,last name.dob etc.
    Requirement is:
    need 4 tabs :1 for display data,1 for edit, 1 for review and 1 for confirm.
    here using bapis for getting data and to change data.
    Need help that what's the infotypes,tables involved here and what's the exact logic.
    Points are assured for correct answers.
    Regards,
    Sree

    Hi Sreeram,
    Employee personal data is held in infotype number 0002.
    The database table @ the back end is PA0002.
    However in HR you do not update infotypes via direct DB update, rather we have function modules for the same:
    Display Data (extracting personal data from infotype 0002) use function module HR_READ_INFOTYPE
    Update Data into infotype 0002 for a employee use function module HR_INFOTYPE_OPERATION.
    Cheers,
    Aditya

  • Immediately required the solution

    Hi experts,
    I have been assigned to work in HR-ABAP.I have gud exp in normal ABAP but i am totally new for hr-abap.Could please help to me as u guys are helping to others.
    Please solve my HR-ABAP related programming is issue on given below:
    "A008 RELATIONSHIP ON POSITION HAS THE SAME BEGIN & END DATE."
    Thanks & Regards,
    Subbu

    hi subbu reddy,
    The basic thing in HR is validity period of records, maintained in the master records.
    we have difference between normal table and infotypes,
    normal table do not contain the validity period for records but infotypes in HR have validity period for each record (we call it as time constraints).
    for example:
    employee working in an organization for ten years with different position,
            the infotypes contains records for the employee for ten years,
      personnel no : 1000         
      positions: supervisor,            begin date: 12.3.1997 to endate 12.3.1999
                     senior supervisor   begin date: 13.3.1999 to endate  06.5.2000
                      manager              begin date: 07.5.2000 to endate  08.9.2005
                      senior manager    begin date: 09.9.2005 to endate till date
    is stored in the infotype for the employee.
    these tables we call it as infotypes HR,
    these infotypes r nothing but,
         1. its a screen to get the entry from the user,
         2. it contains structures
         3. its a module pool program
         4. its contains the user interface.
    u go to transaction PA30
    enter personnel no
    infotypes r listed in the box
    select personnel data (0002) infotype for ex (or) enter the infotype no directly
    press button create now it will naviogate to a screen,
    there u can find screen entry
    give the begin date and end date validity of records,
    when it crosses the validity periods it automatically delimits the validity
    what ever values u enter in this screen will be stored in the appropriate infotype, here it is pa0002.(personnel data)
    enter possible values and press save.
    now goto se11
    enter the infotypes no.pa0002...............where u created the entry in PA30
    now u can able to view the records by entering the personnel no in the selection screen, now u can able to view the record saved in the PA30 trans.
    Infotype
    The data fields of HR master data, time management and recruitment are grouped logically into information types or infotypes for short.
    Examples of infotypes are "Family/Related Person", "Organizational Assignment, "Basic Pay".
    The following naming conventions apply to infotypes:
    Infotypes 0000 to 0999 are used for HR master data
    and sometimes for applicant data
    Infotypes 1000 - 1999 for organizational management
    Infotypes 2000 - 2999 for time data
    Infotypes 4000 - 4999 for applicant data
    Infotypes 9000 - 9999 for customers
         Time Constraint
    A time constraint indicates whether more than one infotype record may be available at one time. The following time constraint indicators are permissible:
    1: An infotype record must be available at all times. This record may have no time gaps. You may not delete the record last stored on the database because all records of this infotype would otherwise be deleted.
    2: Only one record may be available at one time, but time gaps are permitted.
    3: Any number of records may be valid at one time, and time gaps are permitted.
    Other possible time constraint indicators are as follows:
    A: Only one record may ever exist for this infotype. It is valid from 01/01/1800 to 12/31/9999. Splitting is not permissible.
    View V_T582B Infotypes Which are Created Automically controls whether the system automatically creates the infotype record for an employee hiring or an applicant data entry action.
    Infotypes with time constraintA may not be deleted.
    B: Only one record may ever exist for this infotype. It is valid from 01/01/1800 to 12/31/9999. Splitting is not permissible.
    Infotypes with time constraint B may be deleted.
    T: The time constraint varies depending on the subtype.
    Z: Refers to time management infotypes. The time constraint for these infotypes depends on the time constraint class defined in view V_T554S_I Absence: General Control. Collision checks are defined in view V_T554Y Time Constraint Reaction.
    i have given the possible things for to u understand the infotypes begin date and end date.
    i hope it will be usefull for u and give points

  • How to UPDATE MASTER DATA RECORD PA0377 using FM HR_INFOTYPE_OPERATION

    How to UPDATE MASTER DATA RECORD IN INFOTYPE 0377 DIRECTLY using function module HR_INFOTYPE_OPERATION ? When i use operation = 'MOD'  im getting an ERROR as NO DATA STORED FOR 0377 IN SELECTION PERIOD.
           Can anyone please help me how to use HR_INFOTYPE_OPERATION to UPDATE MASTER DATA RECORD.
    Thanks,
    Karthi.

    Hi,
    please check this code
    it is very useful
    infotypes: 0105.
    parameters: p_pernr type p0105-pernr,
                p_subty type p0105-subty,
                p_begda type p0105-begda,
                p_endda type p0105-endda,
                p_opera type pspar-actio,
                p_usrid type p0105-usrid,
                p_commt as checkbox.    "Useful only when NO_COMMIT is 'X'
    data: w_return type bapireturn1,    "Error handling data
          w_key type bapipakey,         "If record has been created or changed the created/ changed
                                        "record's key (PSKEY) will be populated
          v_message type string.        "For printing returned messages
    call function 'BAPI_EMPLOYEE_ENQUEUE'
      exporting
        number = p_pernr
      importing
        return = w_return.
    if w_return is initial. "Employee is not locked
      p0105-pernr = p_pernr.
      p0105-subty =
      p0105-usrty = p_subty.
      p0105-begda = p_begda.
      p0105-endda = p_endda.
      p0105-usrid = p_usrid.
    *Calls Internally HR_MAINTAIN_MASTERDATA
      call function 'HR_INFOTYPE_OPERATION'
        exporting
          infty         = '0105'
          number        = p_pernr
          subtype       = p_subty
          validityend   = p_endda
          validitybegin = p_begda
          record        = p0105
          operation     = p_opera
          dialog_mode   = '0'
          nocommit      = 'X'
        importing
          return        = w_return
          key           = w_key.
    endif.
    if w_return is not initial.
      message id w_return-id type w_return-type number w_return-number
              with w_return-message_v1 w_return-message_v2 w_return-message_v3
              w_return-message_v4 into v_message.
      case w_return-type.
        when 'A' or 'E'.
          format color col_negative. write:/ v_message.
        when others.
          format color col_heading. write:/ v_message.
      endcase.
      call function 'BAPI_EMPLOYEE_DEQUEUE'
        exporting
          number = p_pernr.
    else.
      format color col_positive. write:/ 'Record Updated Successfully.'.
      if w_key is not initial.
        write:/ 'Key contains',
              / 'Personnel Number:', w_key-employeeno,
              / 'Subtype (absence type):', w_key-subtype,
              / 'Start date of Absence:', w_key-validbegin,
              / 'End date of Absence:', w_key-validend.
      endif.
      commit work.
    endif.
    Thanks and regards
    durga.K

  • Posting of Employee Loans.

    Dear Experts,
    In HR module I want to post employee loans (infotype 45) directly to personal account of employees (and not to fixed customer code like "Loans to Employees").
    SPRO says maintain table <b>T030</b>, But that Table 'Transport Automatic Posting' , seems to be non - modifiable.
    Can anybody help me on this?????????????
    Saurabh

    Hi Asahn,
    AFAIK there's no simple way, like just assigning foreign accounts.
    If you have activated "Posting to Company Code Clearing Accounts" in SPRO, you can however, assign items employee-specific, by using either Infotype 0027 Cost Distribution, or by using cost assignment as in Infotype 0014, 0015 ...
    Thus, you specify which costs are to be cleared by the other company.
    As an alternative, leave the problem to the accounting guys. Just assign one or two accounts for clearing with 2000 and state, that whatever amount is posted to these, has to be cleared by company 2000.
    Regards Jörg

Maybe you are looking for