Skip to Content
author's profile photo Former Member
Former Member

HR Master Data enhancement in BI 7.0


1. Is using BADI the recommended approach for Master data enhancements in BI.(instead of using user exit and function module)?

2. Can somebody direct me to the "How to" doc for Datasource enhancement (eg:0 EMPLOYEE_ATTR enhancement to add few more fields) or outline the steps with some examples.



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jun 07, 2007 at 06:11 PM

    hi Raj,

    1. badi is recommended than user exit, function module is used for more complex extraction. check BADI RSU5_SAPI_BADI

    2. you mean 'How to ... Extend Master Data to incl. Social Security Number ' ?


    hope this helps.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      hi Raj,

      yes, and basically the coding is quite same with user exit,

      check following sample code from 'campus management' doc,

      METHOD if_ex_rsu5_sapi_badi~data_transform.

      DATA: ls_data TYPE piqbw_mbk.

      DATA: lt_p1724 TYPE TABLE OF hrp1724.

      DATA: ls_p1724 TYPE hrp1724.

      DATA: lt_studies TYPE piqstudies_t.

      DATA: ls_studies TYPE piqstudies.

      CASE i_datasource.

      WHEN cl_hrpiq00bwconst=>c_datasource_mbk.

      • In this example we assume that there is more than one program

      • usage per module booking. The default implementation of the

      • extractor needs to be enhanced.

      LOOP AT c_t_data INTO ls_data.

      CLEAR: lt_p1724[], ls_p1724, lt_studies[], ls_studies.

      SELECT * FROM hrp1724 INTO TABLE lt_p1724

      WHERE plvar = cl_hrpiq00const=>c_plvar_active AND

      modreg_id = ls_data-modreg_id.

      IF sy-subrc = 0.

      READ TABLE lt_p1724 INTO ls_p1724 INDEX 1.

      IF sy-subrc = 0.

      ls_studies-plvar = ls_p1724-plvar.

      ls_studies-cs_otype = cl_hrpiq00const=>c_otype_cs.

      ls_studies-cs_objid = ls_p1724-objid.

      APPEND ls_studies TO lt_studies.



      iv_read_sc = 'X'

      iv_read_st = space


      ct_studies = lt_studies


      invalid_parameters = 0

      technical_error = 0

      OTHERS = 0.

      IF lt_studies IS NOT INITIAL.

      READ TABLE lt_studies INDEX 1 INTO ls_studies.

      IF sy-subrc = 0.

      ls_data-program_objectid = ls_studies-sc_objid.


      READ TABLE lt_studies INDEX 2 INTO ls_studies.

      IF sy-subrc = 0.

      ls_data-zzprogr_objid2 = ls_studies-sc_objid.





      MODIFY TABLE c_t_data FROM ls_data.





      hope this helps.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.