SAP Reports / Programs

RIWCWP01 SAP ABAP Report - WCM: List Processing - Work Permits







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

WCLO - WCM: Change Work Permits
WCLP - WCM: Display Work Permits


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 RIWCWP01. "Basic submit
SUBMIT RIWCWP01 AND RETURN. "Return to original report after report execution complete
SUBMIT RIWCWP01 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_IWERK = D .
Selection Text: P_VARI = D .
Title: WCM: List Processing - Work Permits
Text Symbol: 101 = Selection
Text Symbol: 102 = Operations
Text Symbol: 103 = Do You Want to Revoke the Assignments?
Text Symbol: 104 = Confirmation Prompt
Text Symbol: 501 = Exit
Text Symbol: 502 = Do you want to exit the display?
Text Symbol: 503 = Create &1 for order &2?
Text Symbol: 504 = Copy chosen orders to the selected orders?


INCLUDES used within this REPORT RIWCWP01

INCLUDE WCMSI010.


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:

WCGW_ALV_VARIANT_INIT CALL FUNCTION 'WCGW_ALV_VARIANT_INIT' EXPORTING i_program = wctp2_prg-riwcwp01 * I_HANDLE = * I_LOGICAL_GROUP = IMPORTING e_variant = variant EXCEPTIONS error = 1 OTHERS = 2.

WCGW_ALV_VARIANT_DEFAULT_GET CALL FUNCTION 'WCGW_ALV_VARIANT_DEFAULT_GET' IMPORTING e_layout = p_vari CHANGING variant = variant EXCEPTIONS error = 1 OTHERS = 2.

WCGW_ALV_VARIANT_EXIST_CHECK CALL FUNCTION 'WCGW_ALV_VARIANT_EXIST_CHECK' EXPORTING i_layout = p_vari CHANGING variant = variant EXCEPTIONS error = 1 OTHERS = 2.

WCGW_LIST_TCODE_ANALYZE CALL FUNCTION 'WCGW_LIST_TCODE_ANALYZE' EXPORTING i_tcode = p_tcode IMPORTING * E_OBJART = * E_OBJTYP = e_aktyp = aktyp EXCEPTIONS error = 1 OTHERS = 2.

WCGW_ALV_VARIANT_F4 CALL FUNCTION 'WCGW_ALV_VARIANT_F4' IMPORTING e_layout = p_vari CHANGING variant = variant EXCEPTIONS error = 1 OTHERS = 2.

WCGW_LIST_EXCLTAB CALL FUNCTION 'WCGW_LIST_EXCLTAB' EXPORTING i_program = variant-report i_prgtyp = p_prgtyp i_mode = p_mode i_tcode = p_tcode i_aktyp = aktyp * I_LSTCTRL = i_iwerk = l_ctrlwa-iwerk i_objart = wctp1_objart-wapi * I_OBJTYP = i_usectrl = wctpc_usectrl-operational i_hdrcnt = l_hdrcnt IMPORTING e_excltab = l_excltab EXCEPTIONS error = 1 OTHERS = 2.

WCGZ_LIST_FCODE_DEACTIVATE CALL FUNCTION 'WCGZ_LIST_FCODE_DEACTIVATE' EXPORTING i_program = variant-report i_iwerk = l_ctrlwa-iwerk i_aktyp = aktyp * I_LSTCTRL = i_headertab = wkpttab * I_BODYTAB = i_excltab = e_excltab IMPORTING e_excltab = l_excltab EXCEPTIONS error = 1 OTHERS = 2.

WCGW_ALV_GROUPTAB_CREATE CALL FUNCTION 'WCGW_ALV_GROUPTAB_CREATE' EXPORTING i_work_types = wctp1_true i_needs = wctp1_true i_fieldcat = l_fieldcat IMPORTING e_grouptab = l_grouptab e_fieldcat = l_fieldcat EXCEPTIONS error = 1 OTHERS = 2.

WCGZ_LIST_ALV_TABLES_GET CALL FUNCTION 'WCGZ_LIST_ALV_TABLES_GET' EXPORTING i_program = variant-report i_iwerk = l_ctrlwa-iwerk i_aktyp = aktyp CHANGING grouptab = l_grouptab fieldcat = l_fieldcat EXCEPTIONS error = 1 OTHERS = 2.

WCFW_LIST_DISPLAY CALL FUNCTION 'WCFW_LIST_DISPLAY' EXPORTING i_callback_program = variant-report i_callback_pf_status_set = c_form-pf_status_set i_callback_user_command = c_form-user_command * I_STRUCTURE_NAME = is_layout = l_layout it_fieldcat = l_fieldcat it_special_groups = l_grouptab it_sort = l_sorttab i_save = wctpz_display_variants-user_and_global is_variant = variant * IT_EVENTS = * I_SCREEN_START_COLUMN = * I_SCREEN_START_LINE = * I_SCREEN_END_COLUMN = * I_SCREEN_END_LINE = * IMPORTING * E_EXIT_CAUSED_BY_CALLER = * ES_EXIT_CAUSED_BY_USER = TABLES t_outtab = wkpttab EXCEPTIONS program_error = 1 OTHERS = 2.

WCFC_OBJTXT_GET CALL FUNCTION 'WCFC_OBJTXT_GET' EXPORTING i_iwerk = p_iwerk i_objart = wctp1_objart-order i_objtyp = wctp1_objtyp-dummy * I_USAGE = * I_LANGUAGE = SY-LANGU * I_REFRESH = WCTP1_FALSE IMPORTING * E_STXT = e_ptxt = l_ptxt EXCEPTIONS error = 1 OTHERS = 2.

WCFC_OBJTXT_GET CALL FUNCTION 'WCFC_OBJTXT_GET' EXPORTING i_iwerk = p_iwerk i_objart = wctp1_objart-wap i_objtyp = wctp1_objtyp-dummy * I_USAGE = * I_LANGUAGE = SY-LANGU * I_REFRESH = WCTP1_FALSE IMPORTING * E_STXT = e_ptxt = l_ptxt EXCEPTIONS error = 1 OTHERS = 2.

WCFC_OBJTXT_GET CALL FUNCTION 'WCFC_OBJTXT_GET' EXPORTING i_iwerk = p_iwerk i_objart = wctp1_objart-wapi i_objtyp = wctp1_objtyp-generic * I_USAGE = * I_LANGUAGE = SY-LANGU * I_REFRESH = WCTP1_FALSE IMPORTING * E_STXT = e_ptxt = l_ptxt EXCEPTIONS error = 1 OTHERS = 2.

WCFC_OBJTXT_GET CALL FUNCTION 'WCFC_OBJTXT_GET' EXPORTING i_iwerk = p_iwerk i_objart = wctp1_objart-wcd i_objtyp = wctp1_objtyp-opwc * I_USAGE = * I_LANGUAGE = SY-LANGU * I_REFRESH = WCTP1_FALSE IMPORTING * E_STXT = e_ptxt = l_ptxt EXCEPTIONS error = 1 OTHERS = 2.

WCGW_LIST_CUA_TITLE_GET CALL FUNCTION 'WCGW_LIST_CUA_TITLE_GET' EXPORTING i_aktyp = aktyp i_text1 = p_text1 i_text2 = p_text2 IMPORTING e_para = l_para EXCEPTIONS error = 1 OTHERS = 2.

WCGQ_CREATE_GET CALL FUNCTION 'WCGQ_CREATE_GET' EXPORTING i_text = l_ptxt IMPORTING e_dyntxt = l_dyntxt EXCEPTIONS error = 1 OTHERS = 2.

WCFX_ASGN_GET_MULTIPLE CALL FUNCTION 'WCFX_ASGN_GET_MULTIPLE' EXPORTING * I_MEMFLG = WCTP1_UNMARKED i_direction = wctp1_direction-up i_xxtab = l_xxtab IMPORTING * e_upxxtab = e_uptab = l_xxtab * E_XXDNTAB = * E_DNTAB = EXCEPTIONS error = 1 OTHERS = 2.

WCFC_WORK_PERMIT_CHECK CALL FUNCTION 'WCFC_WORK_PERMIT_CHECK' EXPORTING i_iwerk = p_iwerk IMPORTING * E_IWERKTAB = e_possible = l_wkpt EXCEPTIONS error = 1 OTHERS = 2.

WCGW_RIAUFK20_SUBMIT





CALL FUNCTION 'WCGW_RIAUFK20_SUBMIT' EXPORTING i_iwerk = p_iwerk i_mode = wctpc_mode-all_in_background i_selection_screen = wctp1_true i_tcode = wctp2_tcode-iw39 i_only_wcm_orders = wctp1_true * I_R_AUFNR_TAB = * I_R_INCL_TAB = * I_R_EXCL_TAB = * I_R_REVNR = i_variant = wctp1_true IMPORTING e_ordertab = l_ordertab * E_SIZE = EXCEPTIONS error = 1 OTHERS = 2.

WCFW_VARIANT_GET CALL FUNCTION 'WCFW_VARIANT_GET' EXPORTING i_program = wctp2_prg-riwcwa02 i_tcode = wctpf_wcm-list_display IMPORTING e_variant = l_variant EXCEPTIONS error = 1 OTHERS = 2.

WCFW_VARIANT_GET CALL FUNCTION 'WCFW_VARIANT_GET' EXPORTING i_program = wctp2_prg-riwcwd02 i_tcode = wctpf_wcm-list_display IMPORTING e_variant = l_variant EXCEPTIONS error = 1 OTHERS = 2.

WCFW_VARIANT_GET CALL FUNCTION 'WCFW_VARIANT_GET' EXPORTING i_program = wctp2_prg-riwcww02 i_tcode = wctpf_wcm-list_display IMPORTING e_variant = l_variant EXCEPTIONS error = 1 OTHERS = 2.

WCGW_LIST_TECHNICAL_FIELDS CALL FUNCTION 'WCGW_LIST_TECHNICAL_FIELDS' EXPORTING i_task = i_task CHANGING layout = p_layout popup = p_popup prgtyp = p_prgtyp mode = p_mode hit = p_hit toggle = p_toggle tcode = p_tcode text1 = p_text1 text2 = p_text2 sc1 = p_sc1 fcode = p_fcode usectrl = p_usectl r_objnr_tab = s_objnr[] r_refobj_tab = s_refobj[] EXCEPTIONS error = 1 OTHERS = 2.

WCFW_VARIANT_SET CALL FUNCTION 'WCFW_VARIANT_SET' EXPORTING i_program = variant-report i_tcode = p_tcode EXCEPTIONS error = 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 RIWCWP01 or its description.