SAP IDOC_INPUT_COPAGN Function Module for Posting of CO-PA IDOCs on receiver side
IDOC_INPUT_COPAGN is a standard idoc input copagn SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Posting of CO-PA IDOCs on receiver side processing and below is the pattern details for this FM, 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 idoc input copagn FM, simply by entering the name IDOC_INPUT_COPAGN into the relevant SAP transaction such as SE37 or SE38.
Function Group: KEV3
Program Name: SAPLKEV3
Main Program: SAPLKEV3
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function IDOC_INPUT_COPAGN 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 'IDOC_INPUT_COPAGN'"Posting of CO-PA IDOCs on receiver side.
EXPORTING
INPUT_METHOD = "
MASS_PROCESSING = "
IMPORTING
WORKFLOW_RESULT = "
APPLICATION_VARIABLE = "
IN_UPDATE_TASK = "
CALL_TRANSACTION_DONE = "
TABLES
IDOC_CONTRL = "
IDOC_DATA = "
IDOC_STATUS = "
RETURN_VARIABLES = "
IDoc processing FM
This FM is the Processing Function module for IDoc: COPAGN01COPAGN01 - CO-PA entry
COPAGN01 - CO-PA entry
IMPORTING Parameters details for IDOC_INPUT_COPAGN
INPUT_METHOD -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
MASS_PROCESSING -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for IDOC_INPUT_COPAGN
WORKFLOW_RESULT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
APPLICATION_VARIABLE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
IN_UPDATE_TASK -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CALL_TRANSACTION_DONE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for IDOC_INPUT_COPAGN
IDOC_CONTRL -
Data type: EDIDCOptional: No
Call by Reference: No ( called with pass by value option)
IDOC_DATA -
Data type: EDIDDOptional: No
Call by Reference: No ( called with pass by value option)
IDOC_STATUS -
Data type: BDIDOCSTATOptional: No
Call by Reference: No ( called with pass by value option)
RETURN_VARIABLES -
Data type: BDWFRETVAROptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for IDOC_INPUT_COPAGN 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_idoc_contrl | TYPE STANDARD TABLE OF EDIDC, " | |||
lv_input_method | TYPE EDIDC, " | |||
lv_workflow_result | TYPE EDIDC, " | |||
lt_idoc_data | TYPE STANDARD TABLE OF EDIDD, " | |||
lv_mass_processing | TYPE EDIDD, " | |||
lv_application_variable | TYPE EDIDD, " | |||
lt_idoc_status | TYPE STANDARD TABLE OF BDIDOCSTAT, " | |||
lv_in_update_task | TYPE BDIDOCSTAT, " | |||
lt_return_variables | TYPE STANDARD TABLE OF BDWFRETVAR, " | |||
lv_call_transaction_done | TYPE BDWFRETVAR. " |
  CALL FUNCTION 'IDOC_INPUT_COPAGN' "Posting of CO-PA IDOCs on receiver side |
EXPORTING | ||
INPUT_METHOD | = lv_input_method | |
MASS_PROCESSING | = lv_mass_processing | |
IMPORTING | ||
WORKFLOW_RESULT | = lv_workflow_result | |
APPLICATION_VARIABLE | = lv_application_variable | |
IN_UPDATE_TASK | = lv_in_update_task | |
CALL_TRANSACTION_DONE | = lv_call_transaction_done | |
TABLES | ||
IDOC_CONTRL | = lt_idoc_contrl | |
IDOC_DATA | = lt_idoc_data | |
IDOC_STATUS | = lt_idoc_status | |
RETURN_VARIABLES | = lt_return_variables | |
. " IDOC_INPUT_COPAGN |
ABAP code using 7.40 inline data declarations to call FM IDOC_INPUT_COPAGN
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.See full list of SAP IDocs
See full list of SAP Function Modules
Search for further information about these or an SAP related objects