12-12-2009, 12:28 PM
|
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.
|