SAP Reports / Programs

RDDPREPC2 SAP ABAP Report - FA: Prepare Component Export (from 620)







RDDPREPC2 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 RDDPREPC2 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 RDDPREPC2. "Basic submit
SUBMIT RDDPREPC2 AND RETURN. "Return to original report after report execution complete
SUBMIT RDDPREPC2 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: FA: Prepare Component Export (from 620)


INCLUDES used within this REPORT RDDPREPC2

INCLUDE RDDRSCST.


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:

STRF_SETNAME CALL FUNCTION 'STRF_SETNAME' EXPORTING dirtype = gc_proto_put filename = 'M2SCRIPT.TOC'

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING logical_filename = 'BC_RDDCRTAB' CHANGING physical_filename = fname_p EXCEPTIONS OTHERS = 1.

SUBST_APPEND_DEFAULT_PROTOCOL CALL FUNCTION 'SUBST_APPEND_DEFAULT_PROTOCOL' EXPORTING iv_msgnr = lv_msgnr iv_severity = p_tab-severity.

EM_INIT_MERGE CALL FUNCTION 'EM_INIT_MERGE' EXPORTING * iv_map = gp_map iv_cofi = lv_comf iv_text = lv_text iv_trfu = 'D' iv_cli = '000' iv_tsid = 'SAP' iv_user = 'SAPUSER' iv_step = 'E' * iv_imap = gp_imap iv_nmap = 'EXCHANGE_D' * iv_cmap = gp_cmap * iv_exp = gp_exp iv_crea = gc_over_mode iv_prot = gc_fileonly * iv_name = lv_name iv_veri = gc_delivered iv_tabu = gc_mark * iv_restart = gp_rest iv_clidep = ' ' * iv_namespace = lv_namespace * iv_vdat = lv_vdat iv_force_creation = gc_mark EXCEPTIONS OTHERS = 1.

EM_MERGE CALL FUNCTION 'EM_MERGE' * exporting * iv_posl = gp_posl * iv_negl = gp_negl * iv_korrl = gp_korrl * iv_tlogo = gp_tlogo * iv_dat_s = gp_dat_s * iv_dat_e = gp_dat_e * iv_tim_s = gp_tim_s * iv_tim_e = gp_tim_e TABLES it_negl = lt_negl_total it_posl = lt_posl ir_korrs = lr_korrs ir_korro = lr_korro ir_stico_mode = gr_stico_mode EXCEPTIONS OTHERS = 1.

STRF_SETNAME CALL FUNCTION 'STRF_SETNAME' EXPORTING dirtype = gc_proto_put filename = lv_miscext_fname subdir = 'data' IMPORTING file = gv_default_file EXCEPTIONS wrong_call = 01.

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING logical_filename = 'BC_RDDCRTAB' CHANGING physical_filename = fname_p EXCEPTIONS OTHERS = 1.

STRF_SETNAME CALL FUNCTION 'STRF_SETNAME' EXPORTING dirtype = gc_proto_put filename = lv_miscext_fname subdir = 'data' IMPORTING file = gv_default_file EXCEPTIONS wrong_call = 01.

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING logical_filename = 'BC_RDDCRTAB' CHANGING physical_filename = fname_p EXCEPTIONS OTHERS = 1.

SUBST_INIT_DEFAULT_PROTOCOL CALL FUNCTION 'SUBST_INIT_DEFAULT_PROTOCOL' EXPORTING iv_msag = gc_msag iv_acttype = gc_proto_put iv_fname = pc_proto_name iv_subdir = gc_dir_log iv_repid = gc_repid IMPORTING ev_fname = lv_fname EXCEPTIONS saprelease_not_found = 01.

STRF_SETNAME CALL FUNCTION 'STRF_SETNAME' EXPORTING dirtype = gc_proto_put filename = lv_fname subdir = gc_dir_log IMPORTING file = lv_file EXCEPTIONS wrong_call = 01.

TR_INITIALIZE_LOG_WITH_FILE CALL FUNCTION 'TR_INITIALIZE_LOG_WITH_FILE' EXPORTING file = lv_file.

SUBST_WRITE_DEFAULT_PROTOCOL CALL FUNCTION 'SUBST_WRITE_DEFAULT_PROTOCOL' EXPORTING iv_suppress_footer = ' '.

SUBST_GET_REPORT_PARM CALL FUNCTION 'SUBST_GET_REPORT_PARM' EXPORTING iv_parmname = lv_name IMPORTING ev_parameter = lv_value.

SUBST_GET_SAPRELEASE CALL FUNCTION 'SUBST_GET_SAPRELEASE' IMPORTING ev_saprelease = lv_saprl EXCEPTIONS no_svers_entry = 01.

SUBST_GET_RELMAP_FOR_BASREL CALL FUNCTION 'SUBST_GET_RELMAP_FOR_BASREL' EXPORTING iv_basrelease = gv_basrelease IMPORTING ev_saprel1 = lv_tgtrel.

SUBST_RELMAP_GET_IDPOSITION CALL FUNCTION 'SUBST_RELMAP_GET_IDPOSITION' EXPORTING iv_relmapname = gv_basrelease iv_saprelease_long = lv_tgtrel IMPORTING ev_idposition = lv_idpos.



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 RDDPREPC2 or its description.