Go Back   Wiki NewForum | Latest Entertainment News > Career Forum & Tips > Tech Forum & Tutorial > SAP Forum > SAP HR Forum


Create PA-Infotype 0027 after create Infotype 1018 with Badi HRBAS00INFTY


Reply
Views: 5350  
Thread Tools Rating: Thread Rating: 2 votes, 2.50 average.
Payroll Time OM & PA Portal Payroll Fixes Career Tips SuccessFactors
  #1  
Old 12-12-2009, 12:27 PM
seema seema is offline
Administrator
 
Join Date: Oct 2009
Posts: 5,409
Default Create PA-Infotype 0027 after create Infotype 1018 with Badi HRBAS00INFTY

Problem/Requirement:
  • We would like to automatically create Infotype 0027 subty 02 when creating an infotype 1018 in ppome or wherever.
  • Therefore we are using BADI HRBAS00INFTY method in_update. Parameter new_image holds the new values. Now we want to use the new values as initial value for the dialog creating infotype 0027.
  • First I thought it is possible to read table hrt1018 with new_image-vdata as tabnr, but new_image-vdata holds only the value $00000000000000000001. I have no idea to get the new values (percent).
  • Maybe someone in here has an idea, how to get the new values for percent.


Reply With Quote
Payroll Time OM & PA Portal Payroll Fixes Career Tips SuccessFactors
  #2  
Old 12-12-2009, 12:28 PM
seema seema is offline
Administrator
 
Join Date: Oct 2009
Posts: 5,409
Solution:
  • Might be useful, IT0027 and 1018 deals with Cost distribution, both are same screens but we can maintian the infotype either form OM side thru PP01 1018 or Pa side from PA0027, But here the question comes with the percentage even though if u made the Percentage feild as automatic why do u want to do that wht in case if the critera changes form person to person.
  • We maintain the cost distribution für Positions in PPOME (IT1018). This cost distributions works only for salary. But we need also the cost distribution for travel expenses. Therefore we need to maintain IT0027 subty 0002. That's why we want to propose IT0027 with initial values in dialogue after saving changes for cost distribution in PPOME. I thougt tb_plog_tab-TDATA helps me to find the new percentage values, but I can't find them anywhere in the method IN_UPDATE.
  • That is a bit weird how that data is stored. You can use function 'HR_COSTDISTRIBUTION_SCREEN_PUT' to get the Prozt field.
    Example code:
    call function 'HR_COSTDISTRIBUTION_SCREEN_PUT'
    EXPORTING
    i_mode = 'D'
    i_type = '1'
    i_data = '1999051799991231'
    i_rhcost_om = '01S 600020461'
    TABLES
    i_costdistribution = gt_distribution.
  • Thank you very much for your response. I've tried to use the function module, but I get the following dump: In the function "HR_COSTDISTRIBUTION_SCREEN_PUT", the STRUCTURE parameter "I_RHCOST_OM" is typed in such a way
    that only actual parameters are allowed, which are compatible in Unicode with respect to the fragment view. However, the specified actual parameter "'01S 70003361'" has an incompatible fragment view. The coding looks like this (just for testing): call function 'HR_COSTDISTRIBUTION_SCREEN_PUT' EXPORTING
    i_mode = 'D'
    i_type = '1'
    i_data = '2009090199991231'
    i_rhcost_om = '01S 70003361'
    TABLES
    i_costdistribution = gt_distribution.
Reply With Quote
Reply

Latest News in SAP HR Forum





Powered by vBulletin® Version 3.8.10
Copyright ©2000 - 2024, vBulletin Solutions, Inc.