HR
HR
HR
public
final
create public .
public section.
interfaces IF_AMDP_MARKER_HDB .
interfaces IF_RSPLFA_SRVTYPE_IMP_EXEC .
interfaces IF_RSPLFA_SRVTYPE_TREX_EXEC .
types:
* Type for aggregation level ZFIPLAL07
BEGIN OF y_s_zfiplal07,
fiscper TYPE /bi0/oifiscper,
fiscper3 TYPE /bi0/oifiscper3,
fiscvarnt TYPE /bi0/oifiscvarnt,
fiscyear TYPE /bi0/oifiscyear,
chrt_accts TYPE /bi0/oichrt_accts,
comp_code TYPE /bi0/oicomp_code,
costcenter TYPE /bi0/oicostcenter,
co_area TYPE /bi0/oico_area,
division TYPE /bi0/oidivision,
func_area TYPE /bi0/oifunc_area,
gl_account TYPE /bi0/oigl_account,
infoprov TYPE rsinfoprov,
profit_ctr TYPE /bi0/oiprofit_ctr,
sold_to TYPE /bi0/oisold_to,
version TYPE /bi0/oiversion,
vtype TYPE /bi0/oivtype,
zaggrlvl TYPE /bic/oizaggrlvl,
zamnflag TYPE /bic/oizamnflag,
zarea1 TYPE /bic/oizarea1,
zcatclass TYPE /bic/oizcatclass,
zcostctr TYPE /bic/oizcostctr,
zdatasrc TYPE /bic/oizdatasrc,
zinfoprov TYPE /bic/oizinfoprov,
zplantyp TYPE /bic/oizplantyp,
zplanyear TYPE /bic/oizplanyear,
zrate_typ TYPE /bic/oizrate_typ,
zres_flag TYPE /bic/oizres_flag,
zryear TYPE /bic/oizryear,
zsftver TYPE /bic/oizsftver,
currency TYPE /bi0/oicurrency,
zcurrency TYPE /bic/oizcurrency,
amount TYPE /bi0/oiamount,
zramount TYPE /bic/oizramount,
END OF y_s_zfiplal07 .
types:
y_t_zfiplal07 TYPE STANDARD TABLE OF y_s_zfiplal07 .
ENDCLASS.
METHOD IF_RSPLFA_SRVTYPE_IMP_EXEC~EXECUTE.
ENDMETHOD.
METHOD IF_RSPLFA_SRVTYPE_IMP_EXEC~FINISH_EXECUTION.
ENDMETHOD.
METHOD IF_RSPLFA_SRVTYPE_IMP_EXEC~INIT_EXECUTION.
IF ls_data_charsel-iobjnm EQ 'ZRATE_TYP'.
gv_rate_type = ls_data_charsel-low.
ENDIF.
IF ls_data_charsel-iobjnm EQ 'ZRYEAR'.
gv_rate_year = ls_data_charsel-low.
ENDIF.
IF ls_data_charsel-iobjnm EQ 'ZPLANTYP'.
ls_data_charsel-low = 'ACT'.
ENDIF.
IF ls_data_charsel-iobjnm EQ '0VERSION'.
ls_data_charsel-low = '100'.
ENDIF.
IF ls_data_charsel-iobjnm EQ '0INFOPROV' AND ls_data_charsel-low <>
'ZPLAD04'.
gv_zinfoprov = ls_data_charsel-low.
ENDIF.
ENDLOOP.
ENDMETHOD.
METHOD IF_RSPLFA_SRVTYPE_TREX_EXEC~INIT_AND_CHECK.
e_trex_supported = rs_c_true.
ENDMETHOD.
METHOD IF_RSPLFA_SRVTYPE_TREX_EXEC~TREX_EXECUTE.
l_r_sql_script =
cl_rspls_session_store_manager=>get_sql_script_instance( i_r_store = i_r_store ).
r_s_view-view = l_r_sql_script->execute_sql_script(
i_view = i_view
i_t_iobj_param = l_t_iobj_param
i_proc_name = l_procedure_name
* i_sql_script_returns_ai = abap_true
i_r_msg = i_r_msg ).
ENDMETHOD.
( select FISCPER,
FISCPER3,
FISCVARNT,
FISCYEAR,
CHRT_ACCTS,
COMP_CODE,
COSTCENTER,
CO_AREA,
DIVISION,
FUNC_AREA,
GL_ACCOUNT,
INFOPROV,
PROFIT_CTR,
SOLD_TO,
VERSION,
VTYPE,
ZAGGRLVL,
ZAMNFLAG,
ZAREA1,
ZCATCLASS,
ZCOSTCTR,
ZDATASRC,
ZINFOPROV,
ZPLANTYP,
ZPLANYEAR,
ZRATE_TYP,
ZRES_FLAG,
ZRYEAR,
ZSFTVER,
CURRENCY,
ZCURRENCy,
amount,
zramount
from :calc1
where zramount is not NULL
UNION ALL
select FISCPER,
FISCPER3,
FISCVARNT,
FISCYEAR,
CHRT_ACCTS,
COMP_CODE,
COSTCENTER,
CO_AREA,
DIVISION,
FUNC_AREA,
GL_ACCOUNT,
INFOPROV,
PROFIT_CTR,
SOLD_TO,
VERSION,
VTYPE,
ZAGGRLVL,
ZAMNFLAG,
ZAREA1,
ZCATCLASS,
ZCOSTCTR,
ZDATASRC,
ZINFOPROV,
ZPLANTYP,
ZPLANYEAR,
ZRATE_TYP,
ZRES_FLAG,
ZRYEAR,
ZSFTVER,
CURRENCY,
ZCURRENCy,
amount,
zramount
from :calc2
where zramount is not NULL )
order by FISCPER,
FISCPER3,
FISCVARNT,
FISCYEAR,
CHRT_ACCTS,
COMP_CODE,
COSTCENTER,
CO_AREA,
DIVISION,
FUNC_AREA,
GL_ACCOUNT,
INFOPROV,
PROFIT_CTR,
SOLD_TO,
VERSION,
VTYPE,
ZAGGRLVL,
ZAMNFLAG,
ZAREA1,
ZCATCLASS,
ZCOSTCTR,
ZDATASRC,
ZINFOPROV,
ZPLANTYP,
ZPLANYEAR,
ZRATE_TYP,
ZRES_FLAG,
ZRYEAR,
ZSFTVER,
CURRENCY,
ZCURRENCy;
ENDMETHOD.
ENDCLASS.