SAP Reports / Programs

RPIEWT04 SAP ABAP Report - Batch Input: Process sessions in batch







RPIEWT04 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report starts background processing for batch input sessions...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

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


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

PTE2 - Process Batch Input Session


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


Text pool values


Selection Text: Z_VERARB = To process
Selection Text: VON = Date created from
Selection Text: MAPPE = Session name
Selection Text: LOGALL = Extended log
Selection Text: FEHLER = With errors
Selection Text: BIS = Creation date to
Selection Text: BATCHSYS = Target host
Title: Batch Input: Process sessions in batch
Text Symbol: T04 = Time Session name Date Time Job no. Error
Text Symbol: T03 = Time Session name Date Time Job no.
Text Symbol: T02 = Process sessions with errors
Text Symbol: T01 = Process remaining sessions
Text Symbol: E01 = Start date $1 later than end date $2
Text Symbol: E02 = No sessions found
Text Symbol: E03 = No authorization
Text Symbol: E04 = Session locked
Text Symbol: E05 = Error when locking
Text Symbol: E06 = Error in job open
Text Symbol: E07 = Error in submit
Text Symbol: E08 = Error in job close
Text Symbol: F01 = Select sessions
Text Symbol: F02 = Add'l data
Text Symbol: M01 = $ session(s) transferred to background
Text Symbol: M02 = No session transferred to background


INCLUDES used within this REPORT RPIEWT04

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:

HR_MAPNAME_VERIFY CALL FUNCTION 'HR_MAPNAME_VERIFY' EXPORTING MAPNAME = MAPPE * reportname = sy-repid "AHRK027341 REPORTNAME = SY-CPROG "AHRK027341 IMPORTING MAPNAME = MAPPE.

HR_MAPNAME_VERIFY CALL FUNCTION 'HR_MAPNAME_VERIFY' EXPORTING MAPNAME = MAPPE * reportname = sy-repid "AHRK027341 REPORTNAME = SY-CPROG "AHRK027341 IMPORTING MAPNAME = MAPPE.

JOB_OPEN CALL FUNCTION 'JOB_OPEN' EXPORTING JOBGROUP = 'BATCH-INPUT' JOBNAME = JNAME IMPORTING JOBCOUNT = JNUMB EXCEPTIONS CANT_CREATE_JOB = 1 INVALID_JOB_DATA = 2 JOBNAME_MISSING = 3 OTHERS = 99.

JOB_CLOSE CALL FUNCTION 'JOB_CLOSE' EXPORTING JOBCOUNT = JNUMB JOBNAME = JNAME STRTIMMED = 'X' TARGETSYSTEM = BATCHSYS EXCEPTIONS CANT_START_IMMEDIATE = 1 INVALID_STARTDATE = 2 JOBNAME_MISSING = 3 JOB_CLOSE_FAILED = 4 JOB_NOSTEPS = 5 JOB_NOTEX = 6 * no_release_privilege_given = 7 "XLZP30K088240 LOCK_FAILED = 7 "XLZP30K088240 OTHERS = 99.

BP_JOB_DELETE CALL FUNCTION 'BP_JOB_DELETE' EXPORTING JOBNAME = JNAME JOBCOUNT = JNUMB FORCEDMODE = 'X' EXCEPTIONS OTHERS = 99.

ENQUEUE_READ CALL FUNCTION 'ENQUEUE_READ' EXPORTING GCLIENT = MANDANT GNAME = SPACE GARG = SPACE GUNAME = CREATOR * LOCAL = ' ' IMPORTING * NUMBER = SUBRC = RT_CODE TABLES ENQ = ENQL EXCEPTIONS COMMUNICATION_FAILURE = 1 SYSTEM_FAILURE = 2 OTHERS = 3.

ENQUE_REPORT * CALL FUNCTION 'ENQUE_REPORT' * EXPORTING * GCLIENT = MANDANT * GUNAME = CREATOR * GNAME = SPACE * GTARG = SPACE * IMPORTING * SUBRC = RT_CODE * TABLES * ENQ = ENQL.

ENQUEUE_BDC_QID CALL FUNCTION 'ENQUEUE_BDC_QID' EXPORTING DATATYP = DATATYP GROUPID = GROUPID QID = OBJECT EXCEPTIONS FOREIGN_LOCK = 1 SYSTEM_FAILURE = 99.

DEQUEUE_BDC_QID CALL FUNCTION 'DEQUEUE_BDC_QID' EXPORTING DATATYP = DATATYP GROUPID = GROUPID QID = OBJECT.

HELP_VALUES_GET_WITH_TABLE CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE' IMPORTING SELECT_VALUE = SELECTED_SYSTEM TABLES FIELDS = FIELD_TBL VALUETAB = BTC_SYS_HOST_TBL EXCEPTIONS FIELD_NOT_IN_DDIC = 4 MORE_THEN_ONE_SELECTFIELD = 4 NO_SELECTFIELD = 4 OTHERS = 99.

TH_SERVER_LIST CALL FUNCTION 'TH_SERVER_LIST' EXPORTING SERVICES = BATCH TABLES LIST = SYS_TABL EXCEPTIONS OTHERS = 99.

BAL_LOG_CREATE CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING I_S_LOG = ls_log IMPORTING E_LOG_HANDLE = gv_log_handle EXCEPTIONS OTHERS = 1.

BAL_LOG_MSG_ADD_FREE_TEXT CALL FUNCTION 'BAL_LOG_MSG_ADD_FREE_TEXT' EXPORTING I_LOG_HANDLE = gv_log_handle I_MSGTY = iv_msgtyp * I_PROBCLASS = '4' I_TEXT = iv_text * I_S_CONTEXT = * I_S_PARAMS = * IMPORTING * E_S_MSG_HANDLE = * E_MSG_WAS_LOGGED = * E_MSG_WAS_DISPLAYED = EXCEPTIONS LOG_NOT_FOUND = 1 MSG_INCONSISTENT = 2 LOG_IS_FULL = 3 OTHERS = 4 .

BAL_DSP_PROFILE_NO_TREE_GET CALL FUNCTION 'BAL_DSP_PROFILE_NO_TREE_GET' IMPORTING E_S_DISPLAY_PROFILE = ls_display_profile EXCEPTIONS OTHERS = 1.

BAL_DSP_LOG_DISPLAY CALL FUNCTION 'BAL_DSP_LOG_DISPLAY' EXPORTING I_S_DISPLAY_PROFILE = ls_display_profile * I_T_LOG_HANDLE = * I_T_MSG_HANDLE = * I_S_LOG_FILTER = * I_S_MSG_FILTER = * I_T_LOG_CONTEXT_FILTER = * I_T_MSG_CONTEXT_FILTER = * I_AMODAL = ' ' * IMPORTING * E_S_EXIT_COMMAND = EXCEPTIONS PROFILE_INCONSISTENT = 1 INTERNAL_ERROR = 2 NO_DATA_AVAILABLE = 3 NO_AUTHORITY = 4 OTHERS = 5 .

BAL_DSP_LOG_PRINT CALL FUNCTION 'BAL_DSP_LOG_PRINT' EXPORTING i_s_list_append = 'X' i_s_display_profile = ls_display_profile.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING * I_INTERFACE_CHECK = ' ' * I_BYPASSING_BUFFER = ' ' * I_BUFFER_ACTIVE = ' ' I_CALLBACK_PROGRAM = gv_repid I_CALLBACK_PF_STATUS_SET = GC_STATUS I_CALLBACK_USER_COMMAND = GC_COMMAND * I_CALLBACK_TOP_OF_PAGE = ' ' * I_CALLBACK_HTML_TOP_OF_PAGE = ' ' * I_CALLBACK_HTML_END_OF_LIST = ' ' * I_STRUCTURE_NAME = gc_structure * I_BACKGROUND_ID = ' ' * I_GRID_TITLE = * I_GRID_SETTINGS = IS_LAYOUT = gs_layout_grid IT_FIELDCAT = gt_fieldcat_grid * IT_EXCLUDING = * IT_SPECIAL_GROUPS = * IT_SORT = * IT_FILTER = * IS_SEL_HIDE = * I_DEFAULT = 'X' I_SAVE = gc_save IS_VARIANT = gs_variant IT_EVENTS = gt_eventtab_grid * IT_EVENT_EXIT = * IS_PRINT = * IS_REPREP_ID = * I_SCREEN_START_COLUMN = 0 * I_SCREEN_START_LINE = 0 * I_SCREEN_END_COLUMN = 0 * I_SCREEN_END_LINE = 0 * I_HTML_HEIGHT_TOP = 0 * I_HTML_HEIGHT_END = 0 * IT_ALV_GRAPHICS = * IT_HYPERLINK = * IT_ADD_FIELDCAT = * IT_EXCEPT_QINFO = * IR_SALV_FULLSCREEN_ADAPTER = * IMPORTING * E_EXIT_CAUSED_BY_CALLER = * ES_EXIT_CAUSED_BY_USER = TABLES T_OUTTAB = GT_OUTPUT_SESINFO EXCEPTIONS PROGRAM_ERROR = 1 OTHERS = 2 .

REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING I_LIST_TYPE = 0 IMPORTING ET_EVENTS = xt_eventtab_grid EXCEPTIONS LIST_TYPE_WRONG = 1 OTHERS = 2.

REUSE_ALV_FIELDCATALOG_MERGE





CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING I_PROGRAM_NAME = 'RPIEWT04' "note 1333238 I_INTERNAL_TABNAME = 'L_ALV_TAB' "note 1333238 * I_STRUCTURE_NAME = gc_structure "note 1333238 * I_CLIENT_NEVER_DISPLAY = 'X' I_INCLNAME = 'RPIEWT04' "note 1333238 * I_BYPASSING_BUFFER = * I_BUFFER_ACTIVE = CHANGING CT_FIELDCAT = xt_fieldcat EXCEPTIONS INCONSISTENT_INTERFACE = 1 PROGRAM_ERROR = 2 OTHERS = 3 .



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