SAP Reports / Programs

CUBE_SAMPLE_CREATE SAP ABAP Report - Report CUBE_SAMPLE_CREATE_NEW







CUBE_SAMPLE_CREATE is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter CUBE_SAMPLE_CREATE into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT CUBE_SAMPLE_CREATE. "Basic submit
SUBMIT CUBE_SAMPLE_CREATE AND RETURN. "Return to original report after report execution complete
SUBMIT CUBE_SAMPLE_CREATE VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Report CUBE_SAMPLE_CREATE_NEW
Text Symbol: 100 = No Suitable InfoCube Fields Found


INCLUDES used within this REPORT CUBE_SAMPLE_CREATE

INCLUDE LBTCHDEF.


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

RSDC_MULTI_FINEST_TIMNM CALL FUNCTION 'RSDC_MULTI_FINEST_TIMNM' EXPORTING i_t_timnm = e_t_timnm IMPORTING e_timnm = .

RST_TOBJ_TO_DERIVED_TOBJ CALL FUNCTION 'RST_TOBJ_TO_DERIVED_TOBJ' EXPORTING i_timnm_from = rsd_c_timnm-fiscper i_timnm_to = rsd_c_timnm-fiscyear i_timvl = i_fiscper * i_fiscvarnt = l_fiscvarnt i_buffer = rs_c_false IMPORTING e_timvl = i_fiscyear EXCEPTIONS incompatible_tobjs = 1 no_input_value = 2 fiscvarnt_missing = 3 input_not_numeric = 4 wrong_date = 5 wrong_fiscper = 6 x_message = 7 OTHERS = 8.

WEEK_GET_FIRST_DAY CALL FUNCTION 'WEEK_GET_FIRST_DAY' EXPORTING week = i_week IMPORTING date = i_date EXCEPTIONS week_invalid = 1 OTHERS = 2.

RST_TOBJ_TO_DERIVED_TOBJ CALL FUNCTION 'RST_TOBJ_TO_DERIVED_TOBJ' EXPORTING i_timnm_from = rsd_c_timnm-calquarter i_timnm_to = rsd_c_timnm-calyear i_timvl = i_quarter * i_fiscvarnt = l_fiscvarnt i_buffer = rs_c_false IMPORTING e_timvl = wa_year EXCEPTIONS incompatible_tobjs = 1 no_input_value = 2 fiscvarnt_missing = 3 input_not_numeric = 4 wrong_date = 5 wrong_fiscper = 6 x_message = 7 OTHERS = 8.

RST_TOBJ_TO_DERIVED_TOBJ CALL FUNCTION 'RST_TOBJ_TO_DERIVED_TOBJ' EXPORTING i_timnm_from = i_timnm_to = i_timvl = l_chavl i_fiscvarnt = l_fiscvarnt i_buffer = rs_c_false IMPORTING e_timvl = l_chavl2 EXCEPTIONS incompatible_tobjs = 1 no_input_value = 2 fiscvarnt_missing = 3 input_not_numeric = 4 wrong_date = 5 wrong_fiscper = 6 x_message = 7 OTHERS = 8.

RSD_CUBE_GET CALL FUNCTION 'RSD_CUBE_GET' EXPORTING i_infocube = l_infocube IMPORTING e_s_cube = l_s_cube EXCEPTIONS infocube_not_found = 1 illegal_input = 2 OTHERS = 4.

RSSB_AUTHORITY_ADMWB_INFOCUBE CALL FUNCTION 'RSSB_AUTHORITY_ADMWB_INFOCUBE' EXPORTING * I_INFOAREA = i_actvt = rssb_c_auth_actvt-delete i_infocube = l_infocube i_icubeobj = rssb_c_auth_icubeobj-data * I_TRY_DISPLAY = * IMPORTING * E_DISPLAY_ONLY = EXCEPTIONS user_not_authorized = 1 OTHERS = 2.

CUBE_SAMPLE_CREATE_NEW CALL FUNCTION 'CUBE_SAMPLE_CREATE_NEW' EXPORTING i_infocube = l_infocube i_samplesize = l_samplesize i_fiscvarnt = l_fiscvarnt i_random_seed = 0 i_modus = i_modus IMPORTING e_t_data = EXCEPTIONS illegal_input = 1 inherited_error = 2 OTHERS = 3.

RSS_SYSTEM_GET_UNIQUE_ID CALL FUNCTION 'RSS_SYSTEM_GET_UNIQUE_ID' IMPORTING e_uni_idc25 = l_uniqueid.

RSD_COB_PRO_ALL_GET * CALL FUNCTION 'RSD_COB_PRO_ALL_GET' * EXPORTING * I_INFOCUBE = l_infocube * I_WITH_ATR_NAV = RS_C_FALSE * I_WITH_META_IOBJ = RS_C_FALSE * I_OBJVERS = RS_C_OBJVERS-ACTIVE * I_BYPASS_BUFFER = RS_C_FALSE * IMPORTING * E_T_COB_PRO = i_t_cob_pro ** E_T_IOBJ_CMP = e_t_iobj_cmp ** E_T_ATR = ** E_TLOGO = * EXCEPTIONS * INFOCUBE_NOT_FOUND = 1 * ERROR_READING_INFOCATALOG = 2 * ILLEGAL_INPUT = 3 * OTHERS = 4.

LVC_FIELDCATALOG_MERGE CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' EXPORTING i_structure_name = l_tablnm CHANGING ct_fieldcat = l_t_fieldcatalog.

BP_START_DATE_EDITOR CALL FUNCTION 'BP_START_DATE_EDITOR' EXPORTING stdt_dialog = btc_yes stdt_input = l_startspecs stdt_opcode = btc_edit_startdate IMPORTING stdt_modify_type = l_modify stdt_output = l_startspecs EXCEPTIONS fcal_id_not_defined = 1 incomplete_last_startdate = 2 incomplete_startdate = 3 invalid_dialog_type = 4 invalid_eventid = 5 invalid_opcode = 6 invalid_opmode_name = 7 invalid_periodbehaviour = 8 invalid_predecessor_jobname = 9 last_startdate_in_the_past = 10 no_period_data_given = 11 no_startdate_given = 12 period_and_predjob_no_way = 13 period_too_small_for_limit = 14 predecessor_jobname_not_unique = 15 startdate_interval_too_large = 16 startdate_in_the_past = 17 startdate_is_a_holiday = 18 startdate_out_of_fcal_range = 19 stdt_before_holiday_in_past = 20 unknown_fcal_error_occured = 21 no_workday_nr_given = 22 invalid_workday_countdir = 23 invalid_workday_nr = 24 notbefore_stdt_missing = 25 workday_starttime_missing = 26 no_eventid_given = 27 OTHERS = 28.

JOB_OPEN CALL FUNCTION 'JOB_OPEN' EXPORTING jobname = l_jobname jobgroup = l_c_jobgroup IMPORTING jobcount = l_jobcount EXCEPTIONS cant_create_job = 1 invalid_job_data = 2 jobname_missing = 3 OTHERS = 4.

JOB_CLOSE CALL FUNCTION 'JOB_CLOSE' EXPORTING calendar_id = l_startspecs-calendarid event_id = l_startspecs-eventid event_param = l_startspecs-eventparm jobcount = l_jobcount jobname = l_jobname laststrtdt = l_startspecs-laststrtdt laststrttm = l_startspecs-laststrttm prddays = l_startspecs-prddays prdhours = l_startspecs-prdhours prdmins = l_startspecs-prdmins prdmonths = l_startspecs-prdmonths prdweeks = l_startspecs-prdweeks predjob_checkstat = l_startspecs-checkstat pred_jobcount = l_startspecs-predjobcnt pred_jobname = l_startspecs-predjob sdlstrtdt = l_startspecs-sdlstrtdt sdlstrttm = l_startspecs-sdlstrttm startdate_restriction = btc_process_always strtimmed = l_strtimmed targetsystem = l_startspecs-instname start_on_workday_nr = l_startspecs-wdayno workday_count_direction = l_startspecs-wdaycdir EXCEPTIONS cant_start_immediate = 1 invalid_startdate = 2 jobname_missing = 3 job_close_failed = 4 job_nosteps = 5 job_notex = 6 lock_failed = 7.

LVC_FIELDCATALOG_MERGE CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' EXPORTING i_structure_name = l_tablnm CHANGING ct_fieldcat = l_t_fieldcatalog.

RSDRI_CUBE_WRITE_PACKAGE CALL FUNCTION 'RSDRI_CUBE_WRITE_PACKAGE' EXPORTING i_infocube = i_infocube i_curr_conversion = rs_c_false CHANGING c_t_data = .

RSDC_MULTI_FINEST_TIMNM CALL FUNCTION 'RSDC_MULTI_FINEST_TIMNM' EXPORTING i_t_timnm = l_t_timnm IMPORTING e_timnm = .

RST_TOBJ_DERIVABLE CALL FUNCTION 'RST_TOBJ_DERIVABLE' EXPORTING i_timnm_from = i_timnm_to = i_s_cob_pro-iobjnm IMPORTING e_subrc = l_subrc.

RST_TOBJ_DERIVABLE





CALL FUNCTION 'RST_TOBJ_DERIVABLE' EXPORTING i_timnm_from = i_timnm_to = i_s_cob_pro-iobjnm IMPORTING e_subrc = l_subrc.

RST_TOBJ_DERIVABLE CALL FUNCTION 'RST_TOBJ_DERIVABLE' EXPORTING i_timnm_from = i_timnm_to = i_s_cob_pro-iobjnm IMPORTING e_subrc = l_subrc.

RST_TOBJ_DERIVABLE CALL FUNCTION 'RST_TOBJ_DERIVABLE' EXPORTING i_timnm_from = i_timnm_to = i_s_cob_pro-iobjnm IMPORTING e_subrc = l_subrc.

RST_TOBJ_DERIVABLE CALL FUNCTION 'RST_TOBJ_DERIVABLE' EXPORTING i_timnm_from = i_timnm_to = i_s_cob_pro-iobjnm IMPORTING e_subrc = l_subrc.

RST_TOBJ_DERIVABLE CALL FUNCTION 'RST_TOBJ_DERIVABLE' EXPORTING i_timnm_from = i_timnm_to = i_s_cob_pro-iobjnm IMPORTING e_subrc = l_subrc.

RSD_COB_PRO_ALL_GET CALL FUNCTION 'RSD_COB_PRO_ALL_GET' EXPORTING i_infocube = i_infocube i_with_atr_nav = rs_c_false i_with_meta_iobj = rs_c_false i_objvers = rs_c_objvers-active i_bypass_buffer = rs_c_false IMPORTING e_t_cob_pro = e_t_cob_pro * E_T_IOBJ_CMP = * E_T_ATR = * E_TLOGO = EXCEPTIONS infocube_not_found = 1 error_reading_infocatalog = 2 illegal_input = 3 OTHERS = 4.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.

The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name CUBE_SAMPLE_CREATE or its description.