SAP Reports / Programs | Manufacturing Execution System | Industry Solution High Tech | Manufacturing Execution System(IS-HT-MES) SAP IS

/SAPHT/MESYCOVGSP1 SAP ABAP INCLUDE - Process order split - subroutines







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


Text pool values


Title: Process order split - subroutines


INCLUDES used within this REPORT /SAPHT/MESYCOVGSP1

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:

/SAPHT/MES_OBSOLETE CALL FUNCTION '/SAPHT/MES_OBSOLETE'.

CO_BT_CAUFV_GET CALL FUNCTION 'CO_BT_CAUFV_GET' EXPORTING INDEX = 2 " 2nd CAUFV_BT entry IMPORTING CAUFVD_EXP = CAUFVD_WRK * vbkz_exp = vbkz_tmp EXCEPTIONS ENTRY_NOT_FOUND = 01 EOF = 02.

CO_DT_LST_MARK_GET_FIRST CALL FUNCTION 'CO_DT_LST_MARK_GET_FIRST' EXPORTING OBJECT_IMP = OBJ-POS FLG_OPR_SOP_IMP = SPACE IMPORTING RC27I_EXP = RC27I * rclst_exp = *rclst EXCEPTIONS NOT_FOUND = 1.

CO_DT_LST_MARK_GET_NEXT CALL FUNCTION 'CO_DT_LST_MARK_GET_NEXT' EXPORTING OBJECT_IMP = OBJ-POS RC27I_IMP = RC27I FLG_OPR_SOP_IMP = SPACE EXCEPTIONS LAST_REACHED = 01.

CO_BT_AFVG_READ_WITH_INDEX CALL FUNCTION 'CO_BT_AFVG_READ_WITH_INDEX' EXPORTING INDEX = RC27I-INDEX_PLPO IMPORTING AFVGD_EXP = AFVGD_PHASE EXCEPTIONS ERROR_READ_AFVG = 01.

CO_BO_OPR_OF_ORDER_GET CALL FUNCTION 'CO_BO_OPR_OF_ORDER_GET' EXPORTING AUFNR_IMP = CAUFVD-AUFNR TABLES AFVGD_GET = AFVG_TAB EXCEPTIONS OTHERS = 1. "#EC NO_INCOMP

CO_BT_AFVG_READ_WITH_KEY CALL FUNCTION 'CO_BT_AFVG_READ_WITH_KEY' EXPORTING AUFNR_ACT = CAUFVD-AUFNR AUFPL = AFVGD_PHASE-AUFPL APLZL = AFVGD_PHASE-PVZKN * FLG_WORK = YX IMPORTING * afvgd_exp = afvgd_tmp VORNR_EXP = W_SUP_OPER * index = afvgd_tmp-pvzin EXCEPTIONS NOT_FOUND = 1.

CO_BC_RESBD_TAB_TO_ORDER_GET CALL FUNCTION 'CO_BC_RESBD_TAB_TO_ORDER_GET' EXPORTING AUFNR_IMP = CAUFVD-AUFNR TABLES RESBD_TAB = RESB_TAB.

STATUS_CHECK CALL FUNCTION 'STATUS_CHECK' EXPORTING OBJNR = RESB_TAB-OBJNR STATUS = LC_DLT " 'I0013' "delete indicator EXCEPTIONS OBJECT_NOT_FOUND = 1 STATUS_NOT_ACTIVE = 2 OTHERS = 3.

CO_DT_LST_STORE CALL FUNCTION 'CO_DT_LST_STORE'.

/SAPHT/MESZOSP_PROC_ORD_SPLT CALL FUNCTION '/SAPHT/MESZOSP_PROC_ORD_SPLT' EXPORTING AFVGD_IMP = AFVGD_PHASE CHANGING PARENT_ORDER = CAUFVD.

/SAPHT/MESZOSP_PROC_ORD_SPLT * CALL FUNCTION '/SAPHT/MESZOSP_PROC_ORD_SPLT' * EXPORTING * AFVGD_IMP = AFVGD_PHASE * PARENT_ORDER = CAUFVD.

CO_DT_LST_RESTORE CALL FUNCTION 'CO_DT_LST_RESTORE'.

CO_BT_CAUFV_GET CALL FUNCTION 'CO_BT_CAUFV_GET' EXPORTING INDEX = 2 " 2nd CAUFV_BT entry IMPORTING CAUFVD_EXP = CAUFVD_WRK * vbkz_exp = vbkz_tmp EXCEPTIONS ENTRY_NOT_FOUND = 01 EOF = 02.

CO_DT_LST_MARK_GET_FIRST CALL FUNCTION 'CO_DT_LST_MARK_GET_FIRST' EXPORTING OBJECT_IMP = OBJ-POS FLG_OPR_SOP_IMP = SPACE IMPORTING RC27I_EXP = RC27I * rclst_exp = *rclst EXCEPTIONS NOT_FOUND = 1.

CO_DT_LST_MARK_GET_NEXT CALL FUNCTION 'CO_DT_LST_MARK_GET_NEXT' EXPORTING OBJECT_IMP = OBJ-POS RC27I_IMP = RC27I FLG_OPR_SOP_IMP = SPACE EXCEPTIONS LAST_REACHED = 01.

CO_BT_AFVG_READ_WITH_INDEX CALL FUNCTION 'CO_BT_AFVG_READ_WITH_INDEX' EXPORTING INDEX = RC27I-INDEX_PLPO IMPORTING AFVGD_EXP = AFVGD_PHASE EXCEPTIONS ERROR_READ_AFVG = 01.

CO_BO_OPR_OF_ORDER_GET CALL FUNCTION 'CO_BO_OPR_OF_ORDER_GET' EXPORTING AUFNR_IMP = CAUFVD-AUFNR TABLES AFVGD_GET = AFVG_TAB EXCEPTIONS OTHERS = 1. "#EC NO_INCOMP

CO_BT_AFVG_READ_WITH_KEY





CALL FUNCTION 'CO_BT_AFVG_READ_WITH_KEY' EXPORTING AUFNR_ACT = CAUFVD-AUFNR AUFPL = AFVGD_PHASE-AUFPL APLZL = AFVGD_PHASE-PVZKN * FLG_WORK = YX IMPORTING * afvgd_exp = afvgd_tmp VORNR_EXP = W_SUP_OPER * index = afvgd_tmp-pvzin EXCEPTIONS NOT_FOUND = 1.

CO_BC_RESBD_TAB_TO_ORDER_GET CALL FUNCTION 'CO_BC_RESBD_TAB_TO_ORDER_GET' EXPORTING AUFNR_IMP = CAUFVD-AUFNR TABLES RESBD_TAB = RESB_TAB.

STATUS_CHECK CALL FUNCTION 'STATUS_CHECK' EXPORTING OBJNR = RESB_TAB-OBJNR STATUS = LC_DLT " 'I0013' "delete indicator EXCEPTIONS OBJECT_NOT_FOUND = 1 STATUS_NOT_ACTIVE = 2 OTHERS = 3.

CO_DT_LST_STORE CALL FUNCTION 'CO_DT_LST_STORE'.

/SAPHT/MESZMERG_PROC_ORD_MERG CALL FUNCTION '/SAPHT/MESZMERG_PROC_ORD_MERG' EXPORTING AFVGD_IMP = AFVGD_PHASE SURVIVING_ORDER = CAUFVD TABLES AFVG_T_S = AFVG_TAB.

CO_DT_LST_RESTORE CALL FUNCTION 'CO_DT_LST_RESTORE'.

STATUS_CHECK CALL FUNCTION 'STATUS_CHECK' EXPORTING OBJNR = W_OBJNR STATUS = W_STATUS_CODE EXCEPTIONS OBJECT_NOT_FOUND = 1 STATUS_NOT_ACTIVE = 2 OTHERS = 3.

STATUS_CHECK CALL FUNCTION 'STATUS_CHECK' EXPORTING * BYPASS_BUFFER = ' ' * CLIENT = SY-MANDT OBJNR = P_OBJNR STATUS = P_STATUS EXCEPTIONS OBJECT_NOT_FOUND = 1 STATUS_NOT_ACTIVE = 2 OTHERS = 3.

STATUS_READ CALL FUNCTION 'STATUS_READ' EXPORTING * CLIENT = SY-MANDT OBJNR = P_OBJNR * ONLY_ACTIVE = ' ' * IMPORTING * OBTYP = * STSMA = * STONR = TABLES STATUS = SURV_STATUS EXCEPTIONS OBJECT_NOT_FOUND = 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 /SAPHT/MESYCOVGSP1 or its description.