SAP Reports / Programs | Logistics - General(LO) SAP LO

RMAPIS SAP ABAP Report - PI Sheet MiniApp







RMAPIS 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 RMAPIS 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 RMAPIS. "Basic submit
SUBMIT RMAPIS AND RETURN. "Return to original report after report execution complete
SUBMIT RMAPIS 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: P_COMPL = Completed
Selection Text: P_DISC = Discarded
Selection Text: P_INWORK = In Process
Selection Text: P_NEW = New
Selection Text: P_NOTST = No Test
Selection Text: P_SUM = Totals Display
Selection Text: P_TST = Test
Selection Text: S_ADRES = D Processor Group
Selection Text: S_ANDAT = D Created On
Selection Text: S_ANUZT = D Created At
Selection Text: S_AUFNR = D Process Order
Selection Text: S_CHARGE = D Batch
Selection Text: S_CRID = D Control Recipe
Selection Text: S_GLTRP = D Basic Finish Date
Selection Text: S_GLTRS = D Scheduled Finish
Selection Text: S_GSTRP = D Basic Start Date
Selection Text: S_GSTRS = D Scheduled Start
Selection Text: S_MATNR = D Material Number
Selection Text: S_PHSEQ = D Control Recipe Destination
Selection Text: S_PRUEF = D Inspection Lot
Selection Text: S_RESS = D Resource
Selection Text: S_WERKS = D Plant
Selection Text: P_CLOSE = To Be Completed
Selection Text: P_CANC = Terminated
Selection Text: P_ARCH = Archived (EBR)
Selection Text: P_ALVVAR = Display Variant
Selection Text: P_ALL = All
Title: PI Sheet MiniApp
Text Symbol: 001 = Status
Text Symbol: 002 = Messages
Text Symbol: 003 = Variances
Text Symbol: 007 = Comments
Text Symbol: 008 = PI Sheet
Text Symbol: 009 = Planned for the next
Text Symbol: 010 = Hours
Text Symbol: 011 = Material
Text Symbol: 012 = Process Order
Text Symbol: 013 = Inspection Lot





Text Symbol: 014 = Mode
Text Symbol: 015 = Variances occurred
Text Symbol: 016 = Comments exist
Text Symbol: 017 = All messages sent
Text Symbol: 018 = Not all messages sent
Text Symbol: 019 = Messages with errors
Text Symbol: 020 = Number


INCLUDES used within this REPORT RMAPIS

INCLUDE ICOCMT01.


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:

REUSE_ALV_GRID_DISPLAY * CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' * EXPORTING ** I_INTERFACE_CHECK = ' ' ** I_BUFFER_ACTIVE = ' ' * i_callback_program = 'RCOPOC_WKLT' * i_callback_pf_status_set = 'PI_LIST_SET_STATUS' * i_callback_user_command = 'PI_LIST_USER_COMMAND' ** I_STRUCTURE_NAME = * is_layout = l_layout * it_fieldcat = l_fieldcat ** IT_EXCLUDING = ** IT_SPECIAL_GROUPS = ** IT_SORT = ** IT_FILTER = ** IS_SEL_HIDE = * I_DEFAULT = 'X' * I_SAVE = 'A' * IS_VARIANT = l_alv_variant ** IT_EVENTS = * it_event_exit = l_exits ** 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 ** IMPORTING ** E_EXIT_CAUSED_BY_CALLER = ** ES_EXIT_CAUSED_BY_USER = * TABLES * t_outtab = it_heran * EXCEPTIONS * program_error = 1 * OTHERS = 2.

DDUT_TEXT_FOR_VALUE CALL FUNCTION 'DDUT_TEXT_FOR_VALUE' EXPORTING tabname = 'COCHP' fieldname = 'CRSTAT' calling_program = 'RCOPOC_WKLT' value = co_crstate_initial IMPORTING text = sttxt EXCEPTIONS no_ddic_field = 1 illegal_value = 2 OTHERS = 3.

DDUT_TEXT_FOR_VALUE CALL FUNCTION 'DDUT_TEXT_FOR_VALUE' EXPORTING tabname = 'COCHP' fieldname = 'CRSTAT' calling_program = 'RCOPOC_WKLT' value = co_crstate_processing IMPORTING text = sttxt EXCEPTIONS no_ddic_field = 1 illegal_value = 2 OTHERS = 3.

DDUT_TEXT_FOR_VALUE CALL FUNCTION 'DDUT_TEXT_FOR_VALUE' EXPORTING tabname = 'COCHP' fieldname = 'CRSTAT' calling_program = 'RCOPOC_WKLT' value = co_crstate_review IMPORTING text = sttxt EXCEPTIONS no_ddic_field = 1 illegal_value = 2 OTHERS = 3.

DDUT_TEXT_FOR_VALUE CALL FUNCTION 'DDUT_TEXT_FOR_VALUE' EXPORTING tabname = 'COCHP' fieldname = 'CRSTAT' calling_program = 'RCOPOC_WKLT' value = co_crstate_canceled IMPORTING text = sttxt EXCEPTIONS no_ddic_field = 1 illegal_value = 2 OTHERS = 3.

DDUT_TEXT_FOR_VALUE CALL FUNCTION 'DDUT_TEXT_FOR_VALUE' EXPORTING tabname = 'COCHP' fieldname = 'CRSTAT' calling_program = 'RCOPOC_WKLT' value = co_crstate_completed IMPORTING text = sttxt EXCEPTIONS no_ddic_field = 1 illegal_value = 2 OTHERS = 3.

DDUT_TEXT_FOR_VALUE CALL FUNCTION 'DDUT_TEXT_FOR_VALUE' EXPORTING tabname = 'COCHP' fieldname = 'CRSTAT' calling_program = 'RCOPOC_WKLT' value = co_crstate_discarded IMPORTING text = sttxt EXCEPTIONS no_ddic_field = 1 illegal_value = 2 OTHERS = 3.

DDUT_TEXT_FOR_VALUE CALL FUNCTION 'DDUT_TEXT_FOR_VALUE' EXPORTING tabname = 'COCHP' fieldname = 'CRSTAT' calling_program = 'RCOPOC_WKLT' value = co_crstate_ebrarchived IMPORTING text = sttxt EXCEPTIONS no_ddic_field = 1 illegal_value = 2 OTHERS = 3.

REUSE_ALV_GRID_DISPLAY * CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' * EXPORTING ** I_INTERFACE_CHECK = ' ' ** I_BUFFER_ACTIVE = ' ' ** I_CALLBACK_PROGRAM = ' ' ** I_CALLBACK_PF_STATUS_SET = ' ' ** I_CALLBACK_USER_COMMAND = ' ' ** I_CALLBACK_TOP_OF_PAGE = ' ' ** I_CALLBACK_HTML_TOP_OF_PAGE = ' ' ** I_CALLBACK_HTML_END_OF_LIST = ' ' ** I_STRUCTURE_NAME = ** I_BACKGROUND_ID = ' ' ** I_GRID_TITLE = ** I_GRID_SETTINGS = ** IS_LAYOUT = * IT_FIELDCAT = l_fieldcat ** IT_EXCLUDING = ** IT_SPECIAL_GROUPS = ** IT_SORT = ** IT_FILTER = ** IS_SEL_HIDE = ** I_DEFAULT = 'X' ** I_SAVE = ' ' ** IS_VARIANT = ** IT_EVENTS = ** 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 ** IT_ALV_GRAPHICS = ** IMPORTING ** E_EXIT_CAUSED_BY_CALLER = ** ES_EXIT_CAUSED_BY_USER = * TABLES * T_OUTTAB = it_sum * EXCEPTIONS * PROGRAM_ERROR = 1 * OTHERS = 2 * .

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = it_heran-fnotsent * TEXT = ' ' info = l_qinfo * ADD_STDINF = 'X' IMPORTING result = it_heran-msg_icon EXCEPTIONS icon_not_found = 1 outputfield_too_short = 2 OTHERS = 3.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = it_heran-fnotsent * TEXT = ' ' info = l_qinfo * ADD_STDINF = 'X' IMPORTING result = it_heran-msg_icon EXCEPTIONS icon_not_found = 1 outputfield_too_short = 2 OTHERS = 3.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = it_heran-fnotsent * TEXT = ' ' info = l_qinfo * ADD_STDINF = 'X' IMPORTING result = it_heran-msg_icon EXCEPTIONS icon_not_found = 1 outputfield_too_short = 2 OTHERS = 3.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = it_heran-fnotsent * TEXT = ' ' info = l_qinfo * ADD_STDINF = 'X' IMPORTING result = it_heran-msg_icon EXCEPTIONS icon_not_found = 1 outputfield_too_short = 2 OTHERS = 3.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = c_warn_sign * TEXT = ' ' info = l_qinfo * ADD_STDINF = 'X' IMPORTING result = it_heran-dif_icon EXCEPTIONS icon_not_found = 1 outputfield_too_short = 2 OTHERS = 3.

ICON_CREATE





CALL FUNCTION 'ICON_CREATE' EXPORTING name = c_comm_sign * text = INFO = l_qinfo * ADD_STDINF = 'X' IMPORTING result = it_heran-comm_icon EXCEPTIONS icon_not_found = 1 outputfield_too_short = 2 OTHERS = 3.

COCB_CONTROL_RECIPE_GET_LIST_2 CALL FUNCTION 'COCB_CONTROL_RECIPE_GET_LIST_2' * exporting * MAX_no_OF_ENTRIES = l_maxpi importing NO_OF_SELECTED_ENTRIES = l_no_entries TABLES cr_header = it_coch sel_range_plant = s_werks SEL_RANGE_CRID = s_crid sel_range_process_order = g_s_aufnr sel_range_address = s_adres sel_range_destination = s_phseq sel_range_dest_type = s_cotyp sel_range_test_cntl_rec = s_tstkz sel_range_status = s_str_status sel_range_date = s_andat sel_range_time = s_anuzt sel_range_material = s_matnr sel_range_batch = s_charge sel_range_inspection_lot = s_pruef EXCEPTIONS no_control_recipe_found = 1 no_authority = 2 internal_failure = 3 OTHERS = 4.

END_TIME_DETERMINE CALL FUNCTION 'END_TIME_DETERMINE' EXPORTING DURATION = p_thor UNIT = 'H' * FACTORY_CALENDAR = IMPORTING END_DATE = tomorrow END_TIME = now CHANGING START_DATE = SY-DATlo START_TIME = SY-timlo EXCEPTIONS FACTORY_CALENDAR_NOT_FOUND = 1 DATE_OUT_OF_CALENDAR_RANGE = 2 DATE_NOT_VALID = 3 UNIT_CONVERSION_ERROR = 4 SI_UNIT_MISSING = 5 PARAMETERS_NO_VALID = 6 OTHERS = 7 .

PI_SHEET_GET_STATE CALL FUNCTION 'PI_SHEET_GET_STATE' EXPORTING cntrl_recipe_id = it_heran-crid crd_type = it_heran-cotyp IMPORTING cr_state = it_heran-hastat EXCEPTIONS not_found = 1 OTHERS = 2.

DDUT_TEXT_FOR_VALUE CALL FUNCTION 'DDUT_TEXT_FOR_VALUE' EXPORTING tabname = 'COCHP' fieldname = 'CRSTAT' calling_program = 'RCOPOC_WKLT' * STRUCNAME = value = it_heran-hastat * VALUE_IS_EXTERNAL = ' ' IMPORTING text = it_heran-stattxt * NOT_UNIQUE = * VALUE_INTERNAL = * TEXT_FIELDS = * CHANGING * ADDITIONAL_FIELDS = EXCEPTIONS no_ddic_field = 1 illegal_value = 2 OTHERS = 3.

PI_SHEET_CHECK_DEVIATIONS CALL FUNCTION 'PI_SHEET_CHECK_DEVIATIONS' EXPORTING cntrl_recipe_id = it_heran-crid crd_type = it_heran-cotyp IMPORTING deviations_count = it_heran-idifs EXCEPTIONS OTHERS = 1.

PI_SHEET_CHECK_COMMENTS CALL FUNCTION 'PI_SHEET_CHECK_COMMENTS' EXPORTING cntrl_recipe_id = it_heran-crid crd_type = it_heran-cotyp IMPORTING comments_count = it_heran-icoms EXCEPTIONS OTHERS = 1.

PI_SHEET_CHECK_MESSAGES CALL FUNCTION 'PI_SHEET_CHECK_MESSAGES' EXPORTING cntrl_recipe_id = it_heran-crid crd_type = it_heran-cotyp IMPORTING new_count = new_count incomplete_count = inc_count error_count = err_count warning_count = warn_count * SENT_COUNT = partly_sent_count = part_count partly_sent_warning_count = partw_count dest_error_count = dest_count EXCEPTIONS OTHERS = 1.

ICON_CHECK CALL FUNCTION 'ICON_CHECK' EXPORTING icon_name = it_sum-fnotsent * LANGUAGE = ' ' * BUTTON = 'X' * STATUS = 'X' * MESSAGE = 'X' * FUNCTION = 'X' * TEXTFIELD = 'X' * LOCKED = 'X' IMPORTING * ICON_TEXT = * ICON_SIZE = icon_id = it_sum-msg_icon EXCEPTIONS icon_not_found = 1 OTHERS = 2.

ICON_CHECK CALL FUNCTION 'ICON_CHECK' EXPORTING icon_name = c_warn_sign * LANGUAGE = ' ' * BUTTON = 'X' * STATUS = 'X' * MESSAGE = 'X' * FUNCTION = 'X' * TEXTFIELD = 'X' * LOCKED = 'X' IMPORTING * ICON_TEXT = * ICON_SIZE = icon_id = it_sum-dif_icon EXCEPTIONS icon_not_found = 1 OTHERS = 2.

ICON_CHECK CALL FUNCTION 'ICON_CHECK' EXPORTING icon_name = c_comm_sign * LANGUAGE = ' ' * BUTTON = 'X' * STATUS = 'X' * MESSAGE = 'X' * FUNCTION = 'X' * TEXTFIELD = 'X' * LOCKED = 'X' IMPORTING * ICON_TEXT = * ICON_SIZE = icon_id = it_sum-comm_icon EXCEPTIONS icon_not_found = 1 OTHERS = 2.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING DYNAME = 'RMAPIS' DYNUMB = '1000' * TRANSLATE_TO_UPPER = ' ' TABLES DYNPFIELDS = DYNPFIELDS EXCEPTIONS INVALID_ABAPWORKAREA = 1 INVALID_DYNPROFIELD = 2 INVALID_DYNPRONAME = 3 INVALID_DYNPRONUMMER = 4 INVALID_REQUEST = 5 NO_FIELDDESCRIPTION = 6 INVALID_PARAMETER = 7 UNDEFIND_ERROR = 8 OTHERS = 9.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING DYNAME = 'RMAPIS' DYNUMB = '1000' * TRANSLATE_TO_UPPER = ' ' TABLES DYNPFIELDS = DYNPFIELDS EXCEPTIONS INVALID_ABAPWORKAREA = 1 INVALID_DYNPROFIELD = 2 INVALID_DYNPRONAME = 3 INVALID_DYNPRONUMMER = 4 INVALID_REQUEST = 5 NO_FIELDDESCRIPTION = 6 INVALID_PARAMETER = 7 UNDEFIND_ERROR = 8 OTHERS = 9.

HELP_VALUES_GET_WITH_TABLE_EXT CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE_EXT' EXPORTING FIELDNAME = 'ADRES' TABNAME = 'TC52' * DISPLAY = DISPLAY IMPORTING SELECT_VALUE = DESTINATION_ADRESS TABLES FIELDS = F4FTAB VALUETAB = F4VTAB SELECT_VALUES = SEL_VALS EXCEPTIONS FIELD_NOT_IN_DDIC = 01 MORE_THEN_ONE_SELECTFIELD = 02 NO_SELECTFIELD = 03 OTHERS = 04.

REUSE_ALV_VARIANT_F4 CALL FUNCTION 'REUSE_ALV_VARIANT_F4' EXPORTING IS_VARIANT = h_alvvar * I_TABNAME_HEADER = * I_TABNAME_ITEM = * IT_DEFAULT_FIELDCAT = I_SAVE = 'A' * I_DISPLAY_VIA_GRID = ' ' IMPORTING * E_EXIT = ES_VARIANT = h_alvvar EXCEPTIONS NOT_FOUND = 1 PROGRAM_ERROR = 2 OTHERS = 3 .

OWN_LOGICAL_SYSTEM_GET CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET' IMPORTING OWN_LOGICAL_SYSTEM = l_logsys EXCEPTIONS OWN_LOGICAL_SYSTEM_NOT_DEFINED = 1 OTHERS = 2 .



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