on 03-27-2015 11:34 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
PUSH !!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.