CORUAFWJ is a standard ABAP INCLUDE 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 CORUAFWJ into the relevant SAP transactions such as SE38 or SE80
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.
Title: Include for posting goods movements per job or V2 update: Logic
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
DDIF_NAMETAB_GET CALL FUNCTION 'DDIF_NAMETAB_GET' EXPORTING tabname = con_tabnam_resb_affw TABLES dfies_tab = namtab.
CO_SF_HEADER_GOODS_ISSUE CALL FUNCTION 'CO_SF_HEADER_GOODS_ISSUE' EXPORTING aufnr = affw_tab-aufnr EXCEPTIONS not_found = 1 not_activ = 2 wrong_status = 3 wrong_type = 4.
CO_SF_HEADER_GOODS_ISSUE CALL FUNCTION 'CO_SF_HEADER_GOODS_ISSUE' EXPORTING aufnr = l_maufnr EXCEPTIONS not_found = 1 not_activ = 2 wrong_status = 3 wrong_type = 4.
ENQUEUE_ESAFFW CALL FUNCTION 'ENQUEUE_ESAFFW' EXPORTING weblnr = affw_tab-weblnr weblpos = affw_tab-weblpos _scope = '3' "Freigabe Sperre bei Ende TA & VB EXCEPTIONS OTHERS = 01.
MARC_SINGLE_READ CALL FUNCTION 'MARC_SINGLE_READ' EXPORTING matnr = affw_tab-matnr werks = affw_tab-werks IMPORTING wmarc = ls_marc EXCEPTIONS lock_on_marc = 1 lock_system_error = 2 wrong_call = 3 not_found = 4.
ENQUEUE_ESAFFW CALL FUNCTION 'ENQUEUE_ESAFFW' EXPORTING weblnr = affw_tab-weblnr weblpos = affw_tab-weblpos _scope = '3' "Freigabe Sperre bei Ende TA & VB EXCEPTIONS OTHERS = 01.
ENQUEUE_EMRKPF CALL FUNCTION 'ENQUEUE_EMRKPF' EXPORTING rsnum = affw_tab-rsnum _scope = '3' "Freigabe Sperre bei Ende TA & VB EXCEPTIONS OTHERS = 1.
MATERIAL_UNIT_CONVERSION CALL FUNCTION 'MATERIAL_UNIT_CONVERSION' EXPORTING input = affw_tab-erfmg kzmeinh = yx matnr = affw_tab-matnr meinh = affw_tab-erfme meins = resb-meins IMPORTING output = tmp_lresb-bdmng EXCEPTIONS OTHERS = 1.
L_PPIM_BATCH_DETERMINATION_INT CALL FUNCTION 'L_PPIM_BATCH_DETERMINATION_INT' EXPORTING i_lresb = tmp_lresb TABLES t_bdbatch = bdbatch_tab EXCEPTIONS error_message = 2 OTHERS = 1.
BF_SET_LOC_ENQ_TAB CALL FUNCTION 'BF_SET_LOC_ENQ_TAB' EXPORTING vbeln = affw_tab-kdauf posnr = affw_tab-kdpos pspnr = affw_tab-ps_psp_pnr TABLES l_bdbatch = bdbatch_tab.
CO_FW_AFFW_POST CALL FUNCTION 'CO_FW_AFFW_POST' IN UPDATE TASK EXPORTING i_called = 'C' TABLES affw_bt = affwb_tab.
CO_FW_DELETE_AND_GM_CLOSURE CALL FUNCTION 'CO_FW_DELETE_AND_GM_CLOSURE' EXPORTING i_modus = modus_backgr TABLES it_affw = affw_del_tab.
CO_FW_AFFW_POST CALL FUNCTION 'CO_FW_AFFW_POST' IN UPDATE TASK EXPORTING i_called = 'D' TABLES affw_bt = affw0_tab.
ENQUEUE_ESAFFW CALL FUNCTION 'ENQUEUE_ESAFFW' EXPORTING weblnr = affw_tab-weblnr weblpos = affw_tab-weblpos _scope = '3' "Freigabe Sperre bei Ende TA & VB EXCEPTIONS OTHERS = 01.
ENQUEUE_EMRKPF CALL FUNCTION 'ENQUEUE_EMRKPF' EXPORTING rsnum = affw_tab-rsnum _scope = '3' "Freigabe Sperre bei Ende TA & VB EXCEPTIONS OTHERS = 1.
ENQUEUE_ESAFFW CALL FUNCTION 'ENQUEUE_ESAFFW' EXPORTING weblnr = fw_blnr weblpos = weblpos_max-weblpos _scope = '3' "Freigabe Sperre bei Ende TA & VB EXCEPTIONS OTHERS = 01.
CO_FW_CHECK_MHD_NECESSARY CALL FUNCTION 'CO_FW_CHECK_MHD_NECESSARY' EXPORTING matnr_imp = affwb_tab-matnr werks_imp = affwb_tab-werks bwart_imp = affwb_tab-bwart EXCEPTIONS mhd_necessary = 1 hsd_necessary = 2.
V51S_HU_LGORT CALL FUNCTION 'V51S_HU_LGORT' EXPORTING if_lgort = imsegb_tab-lgort if_werks = imsegb_tab-werks IMPORTING ef_hu_managed = l_flg_hupf EXCEPTIONS OTHERS = 0.
CALL FUNCTION 'CO_FW_GOODS_MOVEMENTS_BY_AFFW' STARTING NEW TASK tasknam DESTINATION IN GROUP pagroup PERFORMING receive_result ON END OF TASK EXPORTING imkpf_str = imkpf "#EC ENHOK xallp_imp = xallp iv_ewm_proc = flg_ewm_proc TABLES affwb_tab = affwb_tab "#EC ENHOK imseg_tab = imsegb_tab "#EC ENHOK resb_tab = resb_tab "#EC ENHOK EXCEPTIONS communication_failure = 1 MESSAGE msg_text system_failure = 2 MESSAGE msg_text resource_failure = 3 OTHERS = 4.
CO_FW_GOODS_MOVEMENTS_BY_AFFW CALL FUNCTION 'CO_FW_GOODS_MOVEMENTS_BY_AFFW' EXPORTING imkpf_str = imkpf "#EC ENHOK xallp_imp = xallp iv_ewm_proc = flg_ewm_proc TABLES affwb_tab = affwb_tab "#EC ENHOK imseg_tab = imsegb_tab "#EC ENHOK resb_tab = resb_tab EXCEPTIONS OTHERS = 1.
K_MESSAGE_TRANSFORM CALL FUNCTION 'K_MESSAGE_TRANSFORM' EXPORTING par_msgid = affw_prt-msgid par_msgno = msg_number par_msgty = affw_prt-msgty par_msgv1 = affw_prt-msgv1 par_msgv2 = affw_prt-msgv2 par_msgv3 = affw_prt-msgv3 par_msgv4 = affw_prt-msgv4 IMPORTING par_msgtx = msg_text EXCEPTIONS no_message_found = 1 par_msgid_missing = 2 par_msgno_missing = 3 par_msgty_missing = 4 OTHERS = 5.
DEQUEUE_EMRKPF CALL FUNCTION 'DEQUEUE_EMRKPF' EXPORTING rsnum = rsnum_in EXCEPTIONS OTHERS = 0.
DEQUEUE_ESAFFW CALL FUNCTION 'DEQUEUE_ESAFFW' EXPORTING weblnr = weblnr_in weblpos = weblpos_in EXCEPTIONS OTHERS = 0.
REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = gc_repid i_callback_pf_status_set = gc_pf_status i_callback_user_command = gc_user_command is_layout = ls_layout it_fieldcat = lt_fieldcat it_events = lt_eventtab i_save = yx is_variant = ls_variant TABLES t_outtab = gt_affw_prt EXCEPTIONS program_error = 1 OTHERS = 2.
REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = gc_repid i_callback_pf_status_set = gc_pf_status i_callback_user_command = gc_user_command is_layout = ls_layout it_fieldcat = lt_fieldcat it_events = lt_eventtab i_save = yx is_variant = ls_variant TABLES t_outtab = gt_mseg_tab 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.
REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = gt_commentary.
PAK_GET_SHORTTEXT_DTEL CALL FUNCTION 'PAK_GET_SHORTTEXT_DTEL' EXPORTING i_elem_key = gc_p_simul i_language = sy-langu IMPORTING e_short_text = g_sh_txt.
FORMAT_TEXTLINES CALL FUNCTION 'FORMAT_TEXTLINES' EXPORTING formatwidth = 60 linewidth = 132 startline = 1 TABLES lines = gt_tline EXCEPTIONS OTHERS = 0.
REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = gt_commentary.
REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = gc_repid i_internal_tabname = iv_tab i_structure_name = iv_stru i_inclname = gc_repid CHANGING ct_fieldcat = xt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.
MIGO_DIALOG CALL FUNCTION 'MIGO_DIALOG' EXPORTING i_mblnr = gt_mseg_tab-wablnr i_mjahr = gt_mseg_tab-mjahr EXCEPTIONS illegal_combination = 1 OTHERS = 2.
HELP_OBJECT_SHOW CALL FUNCTION 'HELP_OBJECT_SHOW' EXPORTING dokclass = 'NA' doklangu = sy-langu dokname = l_dokname msg_var_1 = gt_affw_prt-msgv1 msg_var_2 = gt_affw_prt-msgv2 msg_var_3 = gt_affw_prt-msgv3 msg_var_4 = gt_affw_prt-msgv4 TABLES links = lt_link.
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 CORUAFWJ or its description.