SAP Reports / Programs

CORIAPI0 SAP ABAP Report - Adopt Confirmations from BAPI and Update in AFRU







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


Text pool values


Title: Adopt Confirmations from BAPI and Update in AFRU
Text Symbol: 002 = Confirmations from Networks
Text Symbol: 003 = Confirmations from PM/Service Orders


INCLUDES used within this REPORT CORIAPI0

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:

CO_RU_SET_FLG_COLLECT CALL FUNCTION 'CO_RU_SET_FLG_COLLECT'.

CO_RU_CONFIRMATION_PREPARE CALL FUNCTION 'CO_RU_CONFIRMATION_PREPARE' EXPORTING AKTYP_IMP = CONST-AKTYP_HIN AKTYP_PIC_IMP = CONST-AKTYP_HIN NO_DIALOG_FLAG = YX OPER_KEY = OPRKEY CONF_NR = PORTION-CONF_NO KAPAR_IMP = PORTION-CAP_TYPE SPLIT_IMP = PORTION-SPLIT IMPORTING AFRUD_EXP = AFRUD AFVGD_EXP = AFVGD AFVGD_SOP_EXP = *AFVGD CAUFVD_EXP = CAUFVD EXCEPTIONS ERROR_MESSAGE = 99 CONFIRMATION_NOT_ALLOWED = 1 DIFFERENT_KEY = 2 INTERRUPT_BY_USER = 3 KEY_NOT_DEFINED = 4 MATERIAL_DATA_NOT_FOUND = 5 MISSING_AUTHORITY = 6 MIXED_CONFIRMATION = 7 NEW_STATUS_NOT_POSSIBLE = 8 OPERATION_NOT_FOUND = 9 OPERATION_NOT_SELECTABLE = 10 ORDER_ALREADY_LOCKED = 11 ORDER_CATEGORY_NOT_VALID = 12 ORDER_DELETED = 13 ORDER_NOT_FOUND = 14 ORDER_WITHOUT_OPERATION = 15 PREDEC_NOT_CONFIRMED = 16 SEQUENCE_NOT_FOUND = 17 TABLE_ENTRY_NOT_FOUND = 18 UNIT_CONVERSION_NOT_POSSIBLE = 19 SPLIT_NOT_FOUND = 20 OTHERS = 21.

CO_RU_CONFIRMATION_CHECK CALL FUNCTION 'CO_RU_CONFIRMATION_CHECK' EXPORTING AFRUD_IN = AFRUD AKTYP_IN = CONST-AKTYP_HIN CAUFVD_IN = CAUFVD NO_DIALOG_FLAG = YX IMPORTING AFRUD_EXP = AFRUD TABLES NAMTAB = FNAMTAB EXCEPTIONS ERROR_MESSAGE = 99 CONF_DATA_FALSE = 1 CONF_DATE_IN_FUTURE = 2 CONVERSION_ERROR = 3 INTERRUPT_BY_USER = 4 ORDER_ALREADY_LOCKED = 5 TABLE_ENTRY_NOT_FOUND = 6 WORK_CENTER_NOT_FOUND = 7 OTHERS = 8.

CO_RU_CHECK_MLST call function 'CO_RU_CHECK_MLST' exporting tmp_afrud = afrud tmp_afvgd = afvgd importing flg_execute = flg_mlst exceptions NOT_FOUND = 1 OTHERS = 2.

CO_RU_CONFIRMATION_ADD CALL FUNCTION 'CO_RU_CONFIRMATION_ADD' EXPORTING AFRUD_IN = AFRUD AFVGD_IN = AFVGD AKTYP_IN = CONST-AKTYP_HIN AKTYP_PIC_IN = CONST-AKTYP_HIN CAUFVD_IN = CAUFVD NO_DIALOG_FLAG = YX IMPORTING CAUFVD_OUT = CAUFVD AFRUD_OUT = AFRUD TABLES AFRUD_TAB = AFRUDTAB EXCEPTIONS ERROR_MESSAGE = 99 CONVERSION_ERROR = 1 ORDER_DATA_NOT_FOUND = 2 STAND_CONF_NOT_POSSIBLE = 3 DIALOG_NECESSARY = 4 WRONG_SEQUENCE = 5 OTHERS = 6.

CO_RU_CONFIRMATION_POST CALL FUNCTION 'CO_RU_CONFIRMATION_POST' EXPORTING EXT_FLG = YX "4.6A

CO_RU_GET_COSTING_MESSAGES CALL FUNCTION 'CO_RU_GET_COSTING_MESSAGES' TABLES T_COST_CMFNR_EXP = T_COST_CMFNR EXCEPTIONS TABLE_EMPTY = 1.

CO_RF_AFRC_TAB_GET CALL FUNCTION 'CO_RF_AFRC_TAB_GET' TABLES ET_AFRC = T_AFRC EXCEPTIONS NOT_FOUND = 1 OTHERS = 2.

CO_RU_DEQUEUE_ALL * call function 'CO_RU_DEQUEUE_ALL'. "4.6A

CO_RU_DEQUEUE_ALL * call function 'CO_RU_DEQUEUE_ALL'. "4.6A

CO_RU_DEQUEUE_ALL * call function 'CO_RU_DEQUEUE_ALL'. "46A

K_MESSAGE_TRANSFORM CALL FUNCTION 'K_MESSAGE_TRANSFORM' EXPORTING PAR_MSGID = SY-MSGID PAR_MSGNO = SY-MSGNO PAR_MSGTY = SY-MSGTY PAR_MSGV1 = SY-MSGV1 PAR_MSGV2 = SY-MSGV2 PAR_MSGV3 = SY-MSGV3 PAR_MSGV4 = SY-MSGV4 IMPORTING PAR_MSGTX = BAPI_MSG_TEXT EXCEPTIONS NO_MESSAGE_FOUND = 1 PAR_MSGID_MISSING = 2 PAR_MSGNO_MISSING = 3 PAR_MSGTY_MISSING = 4 OTHERS = 5.

CO_ZF_ORDER_LOCK_MULTI CALL FUNCTION 'CO_ZF_ORDER_LOCK_MULTI' EXPORTING LOCK_MODE = 'E' TABLES ENQUEUE_TAB = ENQ_TAB_TMP NOT_LOCKED = ORD_TAB_TMP. "Nicht gesperrte Aufträge

UNIT_CONVERSION_SIMPLE CALL FUNCTION 'UNIT_CONVERSION_SIMPLE' EXPORTING INPUT = AFRUD-ISMNW UNIT_IN = AFRUD-ISMNE UNIT_OUT = AFRUD-ISMNU IMPORTING OUTPUT = AFRUD-ISMNW_2.

STATUS_CHECK CALL FUNCTION 'STATUS_CHECK' EXPORTING OBJNR = AFVGD-OBJNR STATUS = STATUS_RUECK EXCEPTIONS OBJECT_NOT_FOUND = 01 STATUS_NOT_ACTIVE = 02.

NUMBER_GET_NEXT CALL FUNCTION 'NUMBER_GET_NEXT' EXPORTING OBJECT = NR_OBJECT NR_RANGE_NR = NR_NUMBER QUANTITY = NR_QUANTITY IMPORTING NUMBER = NEXT_NUMBER EXCEPTIONS OBJECT_NOT_FOUND = 1 INTERVAL_NOT_FOUND = 2 NUMBER_RANGE_NOT_INTERN = 3 QUANTITY_IS_0 = 4.

CO_RP_UPDATE_CONF_RESERVE CALL FUNCTION 'CO_RP_UPDATE_CONF_RESERVE' IN UPDATE TASK EXPORTING AFORI_IMP = P_ORIND AFRHHER_IMP = HER_BDE AFRUV_IMP = P_TITLE AFRVTXT_IMP = P_TEXT TABLES AFRV_TAB = ERROR_RESERVE.

CO_VB_PDERR_INSERT CALL FUNCTION 'CO_VB_PDERR_INSERT' IN UPDATE TASK TABLES ERROR_TAB = I_PDERR.



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