SAP COPCA_DISPLAY_ALV_PROTOCOLL Function Module for
COPCA_DISPLAY_ALV_PROTOCOLL is a standard copca display alv protocoll SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for copca display alv protocoll FM, simply by entering the name COPCA_DISPLAY_ALV_PROTOCOLL into the relevant SAP transaction such as SE37 or SE38.
Function Group: PC56
Program Name: SAPLPC56
Main Program:
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function COPCA_DISPLAY_ALV_PROTOCOLL pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'COPCA_DISPLAY_ALV_PROTOCOLL'".
EXPORTING
I_REPORT = "
* I_RA_VERSION = "
* I_PLAN_VERSION = "
* I_LEDGER = "
* I_TESTRUN = "
* I_LINE_ITEMS = "
* I_COMP_CODE_TEXT = "
* I_CO_AREA_TEXT = "
* I_HEADER_TEXT = "
* I_PROT = "
I_STRUCTURE_NAME1 = "
I_STRUCTURE_NAME2 = "
* I_SAVE = 'A' "
* I_COMP_CODE = "
* I_CO_AREA = "
* I_PERIOD = "
* I_YEAR = "
* I_DEP_AREA = "
TABLES
IT_DATA1 = "
IT_DATA2 = "
* IT_TOP_OF_PAGE = "
EXCEPTIONS
INSUFFICIENT_INPUT = 1
IMPORTING Parameters details for COPCA_DISPLAY_ALV_PROTOCOLL
I_REPORT -
Data type: SY-REPIDOptional: No
Call by Reference: Yes
I_RA_VERSION -
Data type: VERSN_ABGROptional: Yes
Call by Reference: Yes
I_PLAN_VERSION -
Data type: RVERS_PCAOptional: Yes
Call by Reference: Yes
I_LEDGER -
Data type: RLDNROptional: Yes
Call by Reference: Yes
I_TESTRUN -
Data type:Optional: Yes
Call by Reference: Yes
I_LINE_ITEMS -
Data type:Optional: Yes
Call by Reference: Yes
I_COMP_CODE_TEXT -
Data type: T001-BUTXTOptional: Yes
Call by Reference: Yes
I_CO_AREA_TEXT -
Data type: BEZEIOptional: Yes
Call by Reference: Yes
I_HEADER_TEXT -
Data type:Optional: Yes
Call by Reference: Yes
I_PROT -
Data type: PCA_PROTOCOLL_TYPEOptional: Yes
Call by Reference: Yes
I_STRUCTURE_NAME1 -
Data type: DD02L-TABNAMEOptional: No
Call by Reference: Yes
I_STRUCTURE_NAME2 -
Data type: DD02L-TABNAMEOptional: No
Call by Reference: Yes
I_SAVE -
Data type:Default: 'A'
Optional: Yes
Call by Reference: Yes
I_COMP_CODE -
Data type: BUKRSOptional: Yes
Call by Reference: Yes
I_CO_AREA -
Data type: KOKRSOptional: Yes
Call by Reference: Yes
I_PERIOD -
Data type: MONATOptional: Yes
Call by Reference: Yes
I_YEAR -
Data type: GJAHROptional: Yes
Call by Reference: Yes
I_DEP_AREA -
Data type: AFABEROptional: Yes
Call by Reference: Yes
TABLES Parameters details for COPCA_DISPLAY_ALV_PROTOCOLL
IT_DATA1 -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
IT_DATA2 -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
IT_TOP_OF_PAGE -
Data type: SLIS_T_LISTHEADEROptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
INSUFFICIENT_INPUT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for COPCA_DISPLAY_ALV_PROTOCOLL Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lt_it_data1 | TYPE STANDARD TABLE OF STRING, " | |||
| lv_i_report | TYPE SY-REPID, " | |||
| lv_insufficient_input | TYPE SY, " | |||
| lv_i_ra_version | TYPE VERSN_ABGR, " | |||
| lv_i_plan_version | TYPE RVERS_PCA, " | |||
| lv_i_ledger | TYPE RLDNR, " | |||
| lv_i_testrun | TYPE RLDNR, " | |||
| lv_i_line_items | TYPE RLDNR, " | |||
| lv_i_comp_code_text | TYPE T001-BUTXT, " | |||
| lv_i_co_area_text | TYPE BEZEI, " | |||
| lv_i_header_text | TYPE BEZEI, " | |||
| lv_i_prot | TYPE PCA_PROTOCOLL_TYPE, " | |||
| lt_it_data2 | TYPE STANDARD TABLE OF PCA_PROTOCOLL_TYPE, " | |||
| lv_i_structure_name1 | TYPE DD02L-TABNAME, " | |||
| lt_it_top_of_page | TYPE STANDARD TABLE OF SLIS_T_LISTHEADER, " | |||
| lv_i_structure_name2 | TYPE DD02L-TABNAME, " | |||
| lv_i_save | TYPE DD02L, " 'A' | |||
| lv_i_comp_code | TYPE BUKRS, " | |||
| lv_i_co_area | TYPE KOKRS, " | |||
| lv_i_period | TYPE MONAT, " | |||
| lv_i_year | TYPE GJAHR, " | |||
| lv_i_dep_area | TYPE AFABER. " |
|   CALL FUNCTION 'COPCA_DISPLAY_ALV_PROTOCOLL' " |
| EXPORTING | ||
| I_REPORT | = lv_i_report | |
| I_RA_VERSION | = lv_i_ra_version | |
| I_PLAN_VERSION | = lv_i_plan_version | |
| I_LEDGER | = lv_i_ledger | |
| I_TESTRUN | = lv_i_testrun | |
| I_LINE_ITEMS | = lv_i_line_items | |
| I_COMP_CODE_TEXT | = lv_i_comp_code_text | |
| I_CO_AREA_TEXT | = lv_i_co_area_text | |
| I_HEADER_TEXT | = lv_i_header_text | |
| I_PROT | = lv_i_prot | |
| I_STRUCTURE_NAME1 | = lv_i_structure_name1 | |
| I_STRUCTURE_NAME2 | = lv_i_structure_name2 | |
| I_SAVE | = lv_i_save | |
| I_COMP_CODE | = lv_i_comp_code | |
| I_CO_AREA | = lv_i_co_area | |
| I_PERIOD | = lv_i_period | |
| I_YEAR | = lv_i_year | |
| I_DEP_AREA | = lv_i_dep_area | |
| TABLES | ||
| IT_DATA1 | = lt_it_data1 | |
| IT_DATA2 | = lt_it_data2 | |
| IT_TOP_OF_PAGE | = lt_it_top_of_page | |
| EXCEPTIONS | ||
| INSUFFICIENT_INPUT = 1 | ||
| . " COPCA_DISPLAY_ALV_PROTOCOLL | ||
ABAP code using 7.40 inline data declarations to call FM COPCA_DISPLAY_ALV_PROTOCOLL
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single REPID FROM SY INTO @DATA(ld_i_report). | ||||
| "SELECT single BUTXT FROM T001 INTO @DATA(ld_i_comp_code_text). | ||||
| "SELECT single TABNAME FROM DD02L INTO @DATA(ld_i_structure_name1). | ||||
| "SELECT single TABNAME FROM DD02L INTO @DATA(ld_i_structure_name2). | ||||
| DATA(ld_i_save) | = 'A'. | |||
Search for further information about these or an SAP related objects