SAP Reports / Programs

RSPUSCA4 SAP ABAP Report - Import documentation from customer system to new SAP system







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


Text pool values


Title: Import documentation from customer system to new SAP system


INCLUDES used within this REPORT RSPUSCA4

No INCLUDES are used within this REPORT code!


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 = LC_PATHTYPE FILENAME = LV_FILENAME SUBDIR = LC_SUBPATH IMPORTING FILE = MEMFILE EXCEPTIONS WRONG_CALL = 1 OTHERS = 2.

SUBST_GET_ACTIVE_UVERS_ENTRY CALL FUNCTION 'SUBST_GET_ACTIVE_UVERS_ENTRY' IMPORTING EW_UVERS = LS_UVERS EXCEPTIONS NO_SVERS_ENTRY = 1 AMBIGIOUS_ENTRIES = 2 NO_EXCHANGE_ACTIVE = 3 OTHERS = 4.

SUBST_CREATE_COMMANDFILE_SUG7 CALL FUNCTION 'SUBST_CREATE_COMMANDFILE_SUG7' EXPORTING iv_korrname = docu_m TABLES log_tab = prot_tab EXCEPTIONS COMMANDFILE_NOT_CREATED = 1 OTHERS = 2 .

SUBST_CONDENSE_E071_TAB CALL FUNCTION 'SUBST_CONDENSE_E071_TAB' TABLES condense_tab = CUS_REQUEST.

SUBST_UPDATE_COMMANDFILE_SUG7 CALL FUNCTION 'SUBST_UPDATE_COMMANDFILE_SUG7' EXPORTING iv_korrname = DOCU_CUS TABLES e071_tab = CUS_REQUEST log_tab = PROT_TAB EXCEPTIONS ERROR_UPDATE_COMMANDFILE = 1 OTHERS = 2.

SUBST_CONDENSE_E071_TAB CALL FUNCTION 'SUBST_CONDENSE_E071_TAB' TABLES condense_tab = M_REQUEST.

SUBST_UPDATE_COMMANDFILE_SUG7 CALL FUNCTION 'SUBST_UPDATE_COMMANDFILE_SUG7' EXPORTING iv_korrname = DOCU_M tables e071_tab = M_REQUEST log_tab = PROT_TAB EXCEPTIONS ERROR_UPDATE_COMMANDFILE = 1 OTHERS = 2.

STRF_SETNAME CALL FUNCTION 'STRF_SETNAME' EXPORTING " DIRTYPE = " 'T' DIRTYPE = 'P' FILENAME = FILENAME SUBDIR = SUBDIR IMPORTING FILE = FILEPATH EXCEPTIONS WRONG_CALL = 01.

SUBST_SET_COMMANDFILE_NAME CALL FUNCTION 'SUBST_SET_COMMANDFILE_NAME' EXPORTING IV_SAPVERS = sapvers IMPORTING EV_CUSTA = dummy EV_REPTA = dummy EV_GENTA = dummy EV_DDVTA = dummy EV_ADDTA = dummy EV_TSTTA = dummy EV_DOCTA = docu_ccd EV_PCKTA = dummy EV_LANTA = dummy.

TR_CHECK_TYPE CALL FUNCTION 'TR_CHECK_TYPE' EXPORTING WI_E071 = E071_ENTRY IMPORTING PE_RESULT = RESULT WE_TADIR = TADIR_ENTRY.

PUT_CHECK_NAME_CLASS CALL FUNCTION 'PUT_CHECK_NAME_CLASS' EXPORTING WI_OBJECT = TADIR_ENTRY-OBJECT WI_OBJNAME = TADIR_ENTRY-OBJ_NAME WI_PGMID = TADIR_ENTRY-PGMID IMPORTING WE_NAME_CLASS = LV_NAMECLASS.

SUBST_APPEND_PROTOCOL CALL FUNCTION 'SUBST_APPEND_PROTOCOL' EXPORTING L_LEVEL = LEVEL L_SEVERITY = SEVERITY L_MSAG = MSCLASS L_MSGNR = MESSAGE L_V1 = CONV1 L_V2 = CONV2 L_V3 = CONV3 L_V4 = CONV4 TABLES P_TAB = PROT_TAB.

SUBST_WRITE_PROTOCOL CALL FUNCTION 'SUBST_WRITE_PROTOCOL' EXPORTING ACTTYPE = ' ' IFNAME = MEMFILE * IMPORTING * EFNAME = TABLES P_TAB = PROT_TAB EXCEPTIONS WRITE_FAILED = 1 OTHERS = 2.

SUBST_CREATE_COMMANDFILE_SUG7 CALL FUNCTION 'SUBST_CREATE_COMMANDFILE_SUG7' EXPORTING iv_korrname = lv_korrnum TABLES log_tab = prot_tab EXCEPTIONS COMMANDFILE_NOT_CREATED = 1 OTHERS = 2 .

SUBST_CREATE_COMMANDFILE CALL FUNCTION 'SUBST_CREATE_COMMANDFILE' EXPORTING iv_korrname = lv_korrnum * IV_KORRTYPE = 'F' * IV_KORRTEXT = ' ' * IV_TARGETSYSTEM = 'SAP' * IV_DEVCLASS = '$TMP' EXCEPTIONS NAME_COLLISION = 1 CREATE_HEADER_FAILED = 2 UPDATE_HEADER_FAILED = 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 RSPUSCA4 or its description.