Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8497

Re: Associated Master Data Load in Transcactional Cube 0PABN_C01

$
0
0

Hi ,

 

0Employee and 0person master data targets.

if your using 0person and 0employee in Benefits cube (0PABN_C01).

use the navigational attr for specific info objects for reporting purpose.

 

other wise look up from master data.

i checked code is correct there is now no issue.

i changed little bit code .

can you test it now.

-------------------------------------------------

Lookup Code in End Routine:

 

Types : Begin of ZBenefits,

  Employee type /BI0/OIEmployee,

  Emplgroup type /BI0/OIEmplgroup,

  Emplsgroup type /BI0/OIEmplsgroup,

  Emplstatus type /BI0/OIEmplstatus,

  Co_Mst_Ar type /BI0/OICo_Mst_Ar,

  Mast_Cctr type /BI0/OIMast_Cctr,

  Job type /BI0/OIJob,

  Orgunit type /BI0/OIOrgunit,

  Payrl_Area type /BI0/OIPayrl_Area,

  Pers_Area type /BI0/OIPers_Area,

  Comp_Code type /BI0/OIComp_Code,

end of ZBenefits.

 

data: itab_emp type STANDARD table of ZBenefits.

data : wa_emp type ZBenefits.

 

--------------------------------

if result_package is not initial.

 

Select

   Employee

   Emplgroup

   Emplsgroup

   Emplstatus

   CO_Mst_Ar

   Mast_CCtr

   Job

   Orgunit

   Payrl_Area

   Pers_Area

From /BI0/QEMPLOYEE

into table itab_emp

For all entries in RESULT_PACKAGE

where Employee = RESULT_PACKAGE-Employee

and objvers = 'A'.

 

Sort itab_emp by Employee.

 

LOOP AT RESULT_PACKAGE ASSIGNING <RESULT_FIELDS>.

Read table itab_emp into wa_emp with key Employee =

  <RESULT_FIELDS>-Employee.

 

  IF SY-SUBRC = 0.

        <Result_Fields>-Employee = Wa_emp-Employee.

        <Result_Fields>-Emplgroup =  Wa_emp-Emplgroup.

        <Result_Fields>-Emplsgroup = Wa_emp-Emplsgroup.

        <Result_Fields>-Emplstatus = Wa_emp-Emplstatus.

        <Result_Fields>-CO_Mst_AR = Wa_emp-CO_Mst_AR.

        <Result_Fields>-Mast_Cctr = Wa_emp-Mast_Cctr.

        <Result_Fields>-Job = Wa_emp-Job.

        <Result_Fields>-Orgunit = Wa_emp-Orgunit.

        <Result_Fields>-Payrl_Area = Wa_emp-Payrl_Area.

        <Result_Fields>-Pers_Area = Wa_emp-Pers_Area.

  ENDIF.

Clear Wa_emp-Employee.

Clear Wa_Emp-Emplgroup.

Clear Wa_Emp-Emplsgroup.

Clear Wa_emp-Emplstatus.

Clear Wa_emp-CO_Mst_AR.

Clear Wa_emp-Mast_Cctr.

Clear Wa_emp-Job.

Clear Wa_emp-Orgunit.

Clear Wa_emp-Payrl_Area.

Clear Wa_emp-Pers_Area.

ENDLOOP.

 

 

Thanks,

Phani.


Viewing all articles
Browse latest Browse all 8497

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>