SAP Reports / Programs | Controlling | Product Cost Controlling | Product Cost Planning(CO-PC-PCP) SAP CO

M_COPC_OBJADMINF01 SAP ABAP INCLUDE - MCOPCOBJADMINF01







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


INCLUDES used within this REPORT M_COPC_OBJADMINF01

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:

LVC_FIELDCATALOG_MERGE CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' EXPORTING i_structure_name = p_struc i_client_never_display = 'X' CHANGING ct_fieldcat = it_fields EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

POPUP_TO_INFORM CALL FUNCTION 'POPUP_TO_INFORM' EXPORTING titel = repid txt1 = p_subrc txt2 = text-001.

CATT_OBJECT_CANCEL CALL FUNCTION 'CATT_OBJECT_CANCEL' EXPORTING cobj_id = wa_cobj-cobj_id IMPORTING rcode = hcode.

CATT_OBJECT_DELETE CALL FUNCTION 'CATT_OBJECT_DELETE' EXPORTING cobj_id = wa_cobj-cobj_id IMPORTING rcode = hcode.

CATT_OBJECT_RESET CALL FUNCTION 'CATT_OBJECT_RESET' EXPORTING cobj_id = wa_cobj-cobj_id IMPORTING rcode = hcode.

CATT_OBJECT_PUT CALL FUNCTION 'CATT_OBJECT_PUT' EXPORTING cobj_id = wa_cobj-cobj_id IMPORTING rcode = hcode.

CATT_OBJECT_LOCK_AND_FREE CALL FUNCTION 'CATT_OBJECT_LOCK_AND_FREE' EXPORTING cobj_id = wa_cobj-cobj_id status = 'L' IMPORTING rcode = hcode.

CATT_OBJECT_LOCK_AND_FREE CALL FUNCTION 'CATT_OBJECT_LOCK_AND_FREE' EXPORTING cobj_id = wa_cobj-cobj_id status = 'U' IMPORTING rcode = hcode.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-012 text_question = p_text display_cancel_button = ' ' IMPORTING answer = p_answer.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = p_icon_name info = x_text add_stdinf = ' ' IMPORTING RESULT = p_icon_value EXCEPTIONS icon_not_found = 1 outputfield_too_short = 2 OTHERS = 3.

COPC_CHECK_PROCESS_ITEM_VAR CALL FUNCTION 'COPC_CHECK_PROCESS_ITEM_VAR' EXPORTING process = copc_struc_process_start-process id_item = copc_struc_process_start-id_item variante = copc_struc_process_start-variante IMPORTING rcode = p_rcode.

COPC_CHECK_PROCESS_ITEM_VAR CALL FUNCTION 'COPC_CHECK_PROCESS_ITEM_VAR' EXPORTING process = copc_struc_process_start-process id_item = copc_struc_process_start-id_item_von variante = copc_struc_process_start-variante IMPORTING rcode = p_rcode.

COPC_CHECK_PROCESS_ITEM_VAR CALL FUNCTION 'COPC_CHECK_PROCESS_ITEM_VAR' EXPORTING process = copc_struc_process_start-process id_item = copc_struc_process_start-id_item_bis variante = copc_struc_process_start-variante IMPORTING rcode = p_rcode.

CATT_START_PROCESS CALL FUNCTION 'CATT_START_PROCESS' EXPORTING i_environ = structure-environ i_process = structure-process i_id_item = structure-id_item i_objects = structure-anzahl i_variante = structure-variante i_rfc = l_rfc i_user = structure-cattuser i_cycle_from = structure-zyklus_von i_cycle_to = structure-zyklus_bis i_id_item_from = structure-id_item_von i_id_item_to = structure-id_item_bis i_mode = l_catt_mode i_prot = l_catt_prot i_start_mode = l_start_mode EXCEPTIONS err_invalid_rfc_dest = 1 err_inconsistent_process_data = 2 err_catt_not_found = 3 err_cycle = 4 err_object_move = 5 err_enough_objects_available = 6 OTHERS = 7.

CAT_START CALL FUNCTION 'CAT_START' EXPORTING intr = ' ' ktxt = ' ' lmax = 000000 mode = l_mode prot = l_prot vorg = ' ' rfcd = copc_struc_process_start-rfc "#EC DOM_EQUAL rf2d = ' ' pknz = ' ' * importing * lvnr = TABLES keytab = lt_catfs * partab = tab_partab .

CATT_OBJECT_GET CALL FUNCTION 'CATT_OBJECT_GET' DESTINATION copc_struc_process_start-rfc EXPORTING pre_item = umb1 act_item = umb2 cycleold = cycl_cnt cyclenew = cyclcnt1 environ = environ pre_variante = variante act_variante = variante process = copc_struc_process_start-process act_id_item = umb2_id pre_id_item = umb1_id cattuser = user IMPORTING cobj_id = ld_cobj_id rcode = ld_rcode * LOCKOWNER = .

CATT_ATTRIBUTE_INSERT CALL FUNCTION 'CATT_ATTRIBUTE_INSERT' DESTINATION copc_struc_process_start-rfc EXPORTING cobj_id = ld_cobj_id msgid = 'UA' msgno = '504' msg1 = obj_new fld1 = user fld2 = 'UMBUCHUNG' IMPORTING rcode = ld_rcode.

CATT_OBJECT_PUT CALL FUNCTION 'CATT_OBJECT_PUT' DESTINATION copc_struc_process_start-rfc EXPORTING cobj_id = ld_cobj_id IMPORTING rcode = ld_rcode.

CATT_TABLES_CHECK





CALL FUNCTION 'CATT_TABLES_CHECK' DESTINATION copc_struc_process_start-rfc EXPORTING in_cycle = l_cycl_cnt in_environ = l_environ in_catdo = 'X' in_catdh = ' ' TABLES lt_catdo = lt_catdo.

CAT_START CALL FUNCTION 'CAT_START' EXPORTING intr = ' ' ktxt = ' ' lmax = 000000 mode = 'D' prot = 'M' vorg = ' ' rfcd = copc_struc_process_start-rfc "#EC DOM_EQUAL rf2d = ' ' pknz = ' ' spec = ' ' arch = ' ' TABLES keytab = lt_catf partab = tab_partab.

CAT_START CALL FUNCTION 'CAT_START' EXPORTING intr = ' ' ktxt = ' ' lmax = 000000 mode = 'D' prot = 'M' vorg = ' ' rfcd = copc_struc_process_start-rfc "#EC DOM_EQUAL rf2d = ' ' pknz = ' ' spec = ' ' arch = ' ' TABLES keytab = lt_catf partab = tab_partab.



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