SAP Reports / Programs

RCOPOC_WKLT SAP ABAP Report - Worklist for PI Sheets/Work Instructions







RCOPOC_WKLT 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 RCOPOC_WKLT 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

CO60 - Find PI Sheet
CO60XT - Find Work Instructions


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 RCOPOC_WKLT. "Basic submit
SUBMIT RCOPOC_WKLT AND RETURN. "Return to original report after report execution complete
SUBMIT RCOPOC_WKLT 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_ALL = All
Selection Text: P_ALVVAR = Display Variant
Selection Text: P_ARCH = Archived (EBR)
Selection Text: P_CANC = Terminated
Selection Text: P_CLOSE = To Be Completed
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: P_AUTYP = D .
Selection Text: S_ADRES = D .
Selection Text: S_ANDAT = D .
Selection Text: S_ANUZT = D .
Selection Text: S_AUART = D .
Selection Text: S_CHARGE = D .
Selection Text: S_GLTRP = D .
Selection Text: S_GLTRS = D .
Selection Text: S_GSTRP = D .
Selection Text: S_GSTRS = D .
Selection Text: S_MATNR = D .
Selection Text: S_PRUEF = D .
Selection Text: S_WERKS = D .
Title: Worklist for PI Sheets/Work Instructions
Text Symbol: WIN = Work Instructions
Text Symbol: NWD = No work instructions discarded/cancelled
Text Symbol: NPD = No PI sheet discarded/cancelled
Text Symbol: MOR = Manufacturing Order
Text Symbol: 001 = Status
Text Symbol: 002 = Messages
Text Symbol: 003 = Variances
Text Symbol: 006 = Delete PI Sheets
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 = No messages exist
Text Symbol: 019 = At least 1 message with errors
Text Symbol: 020 = At least 1 message to send
Text Symbol: 030 = Do you want to discard or cancel the PI sheets selected?
Text Symbol: 031 = Discard/Cancel PI Sheet
Text Symbol: 032 = Delete selected PI sheets?
Text Symbol: CDE = Destination
Text Symbol: CID = Destination of Control Instructions
Text Symbol: CIN = Control Instructions
Text Symbol: DCW = Discard or cancel selected work instructions?
Text Symbol: DEL = Delete selected work instructions?
Text Symbol: DET = Destination Type
Text Symbol: DEW = Delete Work Instructions
Text Symbol: DTY = Type
Text Symbol: DWI = Discard/Cancel Work Instructions


INCLUDES used within this REPORT RCOPOC_WKLT

INCLUDE ICOCMT01.
INCLUDE CO_CRSTATE.


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:

PI_SHEET_SHOW CALL FUNCTION 'PI_SHEET_SHOW' EXPORTING cntrl_recipe_id = ls_heran-crid display_mode = 'X' EXCEPTIONS not_found = 1 crd_type_not_supported = 2 no_authorization = 3 internal_error = 4 OTHERS = 5.

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.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING it_fieldcat = l_fieldcat TABLES t_outtab = it_sum EXCEPTIONS program_error = 1 OTHERS = 2.

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

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

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

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = -fnotsent * TEXT = ' ' info = l_qinfo * ADD_STDINF = 'X' IMPORTING result = -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 = -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 = -comm_icon EXCEPTIONS icon_not_found = 1 outputfield_too_short = 2 OTHERS = 3.

PI_SHEET_SHOW CALL FUNCTION 'PI_SHEET_SHOW' EXPORTING cntrl_recipe_id = it_crid * CRD_TYPE = it_heran-cotyp display_mode = 'X' EXCEPTIONS not_found = 1 crd_type_not_supported = 2 no_authorization = 3 internal_error = 4 OTHERS = 5.

PI_SHEET_SHOW CALL FUNCTION 'PI_SHEET_SHOW' EXPORTING cntrl_recipe_id = it_crid * CRD_TYPE = it_heran-cotyp display_mode = ' ' EXCEPTIONS not_found = 1 crd_type_not_supported = 2 no_authorization = 3 internal_error = 4 OTHERS = 5.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = lv_titlebar text_question = lv_question default_button = '2' display_cancel_button = space IMPORTING answer = answer EXCEPTIONS text_not_found = 1 OTHERS = 2.

PI_SHEET_DELETE CALL FUNCTION 'PI_SHEET_DELETE' EXPORTING dialog_flag = 'X' IMPORTING deleted_count = del_count not_deleted_count = ndel_count TABLES cntrl_recipe_id_tab = it_crid.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = lv_titlebar text_question = lv_question default_button = '2' display_cancel_button = space IMPORTING answer = answer EXCEPTIONS text_not_found = 1 OTHERS = 2.

PI_SHEET_DISCARD CALL FUNCTION 'PI_SHEET_DISCARD' EXPORTING dialog_flag = 'X' IMPORTING discarded_count = del_count not_discarded_count = ndel_count TABLES cntrl_recipe_id_tab = it_crid.

PI_SHEET_DISCARD_CANCEL_XS CALL FUNCTION 'PI_SHEET_DISCARD_CANCEL_XS' EXPORTING iv_dialog_flag = lc_true iv_allow_cancel = lc_true iv_allow_discard = lc_true iv_pi_sheets_only = lc_true IMPORTING ev_discarded_count = del_count ev_not_discarded_count = ndel_count TABLES lt_pi_sheet = lt_pi_sheet.

POC_PDF_FORM_READ CALL FUNCTION 'POC_PDF_FORM_READ' EXPORTING iv_werks = -werk IMPORTING ev_formular = lv_formular.

POC_GET_PISHEET_DATA_XML CALL FUNCTION 'POC_GET_PISHEET_DATA_XML' EXPORTING iv_crid = iv_formular = lv_formular IMPORTING ev_data_xstring = lv_data_xstring EXCEPTIONS conv_not_possible = 1 OTHERS = 2.

POC_CONV_XML_TO_PDF CALL FUNCTION 'POC_CONV_XML_TO_PDF' EXPORTING iv_form_name = lv_formular iv_xml = lv_data_xstring EXCEPTIONS internal_error = 1 OTHERS = 2.

COCB_CONTROL_RECIPE_GET_LIST_2 CALL FUNCTION 'COCB_CONTROL_RECIPE_GET_LIST_2' EXPORTING max_no_of_entries = lv_maxpi IMPORTING no_of_selected_entries = l_no_entries TABLES cr_header = it_coch sel_range_plant = s_werks sel_range_crid = s_ins_id sel_range_process_order = g_s_aufnr sel_range_address = s_adres sel_range_destination = s_dest 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 sel_range_auart = gtr_auart sel_range_autyp = gtr_autyp cr_orderdata = gt_orderdata 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 = -crid crd_type = -cotyp IMPORTING cr_state = -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' value = -hastat IMPORTING text = -stattxt EXCEPTIONS no_ddic_field = 1 illegal_value = 2 OTHERS = 3.

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

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

PI_SHEET_CHECK_MESSAGES CALL FUNCTION 'PI_SHEET_CHECK_MESSAGES' EXPORTING cntrl_recipe_id = -crid crd_type = -cotyp IMPORTING new_count = new_count incomplete_count = inc_count error_count = err_count warning_count = warn_count sent_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 IMPORTING 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 IMPORTING 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 IMPORTING icon_id = it_sum-comm_icon EXCEPTIONS icon_not_found = 1 OTHERS = 2.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = 'RCOPOC_WKLT' 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 = 'RCOPOC_WKLT' 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.

HELP_START CALL FUNCTION 'HELP_START' EXPORTING help_infos = hinfo IMPORTING selection = selection select_value = value TABLES dynpselect = i_dyse dynpvaluetab = i_dyva EXCEPTIONS OTHERS = 1.



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