cancel
Showing results for 
Search instead for 
Did you mean: 

0mast_cctr Text Data

0 Kudos

Hi,

I am using 0MAST_CCTR in HR Report. This info object is the reference Info object of 0COSTCENTER.

I have loaded the master data to 0costcenter but the problem is since it is a time dependent master data, text table is having 2 lines of records as below:


Because of this type of data my report is showing blank text for 0mast_cctr.

Can anybody give inputs on this?

Regards,

Niranjan

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member194898
Active Contributor
0 Kudos

Hi,

I used this (and it worked for me long time),

PROGRAM UPDATE_ROUTINE.
*$*$ begin of global - insert your declaration only below this line  *-*
  TABLES: /BI0/MCOORDER.
  DATA:   I_MCOORDER LIKE /BI0/MCOORDER OCCURS 0 WITH HEADER LINE.
*$*$ end of global - insert your declaration only before this line   *-*


FORM compute_key_field
  TABLES   MONITOR STRUCTURE RSMONITOR "user defined monitoring
  USING    COMM_STRUCTURE LIKE /BIC/CS0CO_OM_OPA_6
           RECORD_NO LIKE SY-TABIX
           RECORD_ALL LIKE SY-TABIX
           SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
  CHANGING RESULT LIKE /BI0/V0COOM_C02T-COSTCENTER
           RETURNCODE LIKE SY-SUBRC
           ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update
*
*$*$ begin of routine - insert your code only below this line        *-*
  READ TABLE I_MCOORDER WITH KEY COORDER = COMM_STRUCTURE-COORDER.
  IF SY-SUBRC IS INITIAL.
    RESULT = I_MCOORDER-RESP_CCTR.
    RETURNCODE = 0.
  ELSE.
    SELECT SINGLE * FROM /BI0/MCOORDER INTO I_MCOORDER
                                WHERE COORDER = COMM_STRUCTURE-COORDER
                                AND OBJVERS = 'A'.
    IF SY-SUBRC IS INITIAL.
      APPEND I_MCOORDER.
      RESULT = I_MCOORDER-RESP_CCTR.
    ELSE.
      CLEAR RESULT.
    ENDIF.
    RETURNCODE = SY-SUBRC.
  ENDIF.
*$*$ end of routine - insert your code only before this line         *-*
*
ENDFORM.

Recently I changed to loading master data in transformation.

Regards, Leszek

0 Kudos

PUSH !!!

0 Kudos

Hello,

Nobody knows or don't want to guide?

Former Member
0 Kudos

i dont understand your problem.

Costcenter is filled correctly i think and will display texts based on the keydate from your query.

What kind of keydate do you use?