SAP AIPA_CP Function Module for
AIPA_CP is a standard aipa cp 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 aipa cp FM, simply by entering the name AIPA_CP into the relevant SAP transaction such as SE37 or SE38.
Function Group: AIPA_COPY_VALUES
Program Name: SAPLAIPA_COPY_VALUES
Main Program: SAPLAIPA_COPY_VALUES
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function AIPA_CP 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 'AIPA_CP'".
EXPORTING
ID_KOKRS = "
* ID_VERSN_FROM = '000' "
* ID_TRGKZ_FROM = 'N' "
* ID_IPPOS_FROM = ' ' "
* ID_SGTXT = ' ' "
* ID_VORGA = ' ' "
* IFLG_SUPPL_RET_SPLIT = ' ' "
* IFLG_RECONV_OBJ_TO_CA = ' ' "
* IFLG_RECONV_CA_TO_OBJ = ' ' "
* ID_RECONV_FROM_YEAR = '0000' "
* IFLG_ADJUST_TO_ACTUALS = ' ' "
* ID_GNJHR = "
* ID_ADJUST_STATSEL = ' ' "
* IFLG_CONS_ONLY = ' ' "
* IFLG_CONS_CHECK = ' ' "
* IFLG_CONS_CHECK_OBJ = ' ' "
* IFLG_CONS_CHECK_DEF = ' ' "
* IFLG_CONS_ADJUST = ' ' "
* ID_CONS_SEVERITY = 'E' "
* ID_BUDG_REL_YEAR = '0000' "
* ID_BUDG_REL_PRZ = 100 "
* IFLG_COMPUTE_DELTA = 'X' "
ID_WRTTP = "
* IFLG_TEST_RUN = 'X' "
* ID_VERSN = '000' "
* ID_TRGKZ = 'N' "
* ID_IPPOS = ' ' "
* ID_PRART = ' ' "
ID_WRTTP_FROM_1 = "
* ID_WRTTP_FROM_2 = ' ' "
TABLES
IT_COPY = "
* ITX_COVOB_SOURCE = "
* ET_RETURN = "
EXCEPTIONS
ABEND_OCCURED = 1
IMPORTING Parameters details for AIPA_CP
ID_KOKRS -
Data type: KOKRSOptional: No
Call by Reference: No ( called with pass by value option)
ID_VERSN_FROM -
Data type: VERSNDefault: '000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ID_TRGKZ_FROM -
Data type: BP_TRGKZDefault: 'N'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ID_IPPOS_FROM -
Data type: IM_IPPOSDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
ID_SGTXT -
Data type: SGTXTDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
ID_VORGA -
Data type: BP_VORGANGDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
IFLG_SUPPL_RET_SPLIT -
Data type: IM_FLG_SUPPL_RET_SPLITDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
IFLG_RECONV_OBJ_TO_CA -
Data type: IM_OBJTOCADefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
IFLG_RECONV_CA_TO_OBJ -
Data type: IM_CATOOBJDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
ID_RECONV_FROM_YEAR -
Data type: IM_YFROMRCDefault: '0000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IFLG_ADJUST_TO_ACTUALS -
Data type: XFELDDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
ID_GNJHR -
Data type: IM_GNJHROptional: Yes
Call by Reference: No ( called with pass by value option)
ID_ADJUST_STATSEL -
Data type: IM_STATSELDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
IFLG_CONS_ONLY -
Data type: XFELDDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
IFLG_CONS_CHECK -
Data type: IM_CONSCHECK_COAREADefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
IFLG_CONS_CHECK_OBJ -
Data type: IM_CONSCHECK_OBJDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
IFLG_CONS_CHECK_DEF -
Data type: IM_CONSCHECK_DEFDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
IFLG_CONS_ADJUST -
Data type: XFELDDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
ID_CONS_SEVERITY -
Data type: SYMSGTYDefault: 'E'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ID_BUDG_REL_YEAR -
Data type: GJAHRDefault: '0000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ID_BUDG_REL_PRZ -
Data type: IM_BRPRZDefault: 100
Optional: Yes
Call by Reference: No ( called with pass by value option)
IFLG_COMPUTE_DELTA -
Data type: XFELDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ID_WRTTP -
Data type: CO_WRTTPOptional: No
Call by Reference: No ( called with pass by value option)
IFLG_TEST_RUN -
Data type: XFELDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ID_VERSN -
Data type: VERSNDefault: '000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ID_TRGKZ -
Data type: BP_TRGKZDefault: 'N'
Optional: Yes
Call by Reference: No ( called with pass by value option)
ID_IPPOS -
Data type: IM_IPPOSDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
ID_PRART -
Data type: IM_PRARTDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
ID_WRTTP_FROM_1 -
Data type: CO_WRTTPOptional: No
Call by Reference: No ( called with pass by value option)
ID_WRTTP_FROM_2 -
Data type: CO_WRTTPDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for AIPA_CP
IT_COPY -
Data type: RAIP_OBJCPOptional: No
Call by Reference: Yes
ITX_COVOB_SOURCE -
Data type: IM_COVOB_TAB_TYPEOptional: Yes
Call by Reference: Yes
ET_RETURN -
Data type: BAPIRET2Optional: Yes
Call by Reference: Yes
EXCEPTIONS details
ABEND_OCCURED -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for AIPA_CP 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_copy | TYPE STANDARD TABLE OF RAIP_OBJCP, " | |||
| lv_id_kokrs | TYPE KOKRS, " | |||
| lv_abend_occured | TYPE KOKRS, " | |||
| lv_id_versn_from | TYPE VERSN, " '000' | |||
| lv_id_trgkz_from | TYPE BP_TRGKZ, " 'N' | |||
| lv_id_ippos_from | TYPE IM_IPPOS, " ' ' | |||
| lv_id_sgtxt | TYPE SGTXT, " ' ' | |||
| lv_id_vorga | TYPE BP_VORGANG, " ' ' | |||
| lv_iflg_suppl_ret_split | TYPE IM_FLG_SUPPL_RET_SPLIT, " ' ' | |||
| lv_iflg_reconv_obj_to_ca | TYPE IM_OBJTOCA, " ' ' | |||
| lv_iflg_reconv_ca_to_obj | TYPE IM_CATOOBJ, " ' ' | |||
| lv_id_reconv_from_year | TYPE IM_YFROMRC, " '0000' | |||
| lv_iflg_adjust_to_actuals | TYPE XFELD, " ' ' | |||
| lv_id_gnjhr | TYPE IM_GNJHR, " | |||
| lt_itx_covob_source | TYPE STANDARD TABLE OF IM_COVOB_TAB_TYPE, " | |||
| lv_id_adjust_statsel | TYPE IM_STATSEL, " ' ' | |||
| lv_iflg_cons_only | TYPE XFELD, " ' ' | |||
| lv_iflg_cons_check | TYPE IM_CONSCHECK_COAREA, " ' ' | |||
| lv_iflg_cons_check_obj | TYPE IM_CONSCHECK_OBJ, " ' ' | |||
| lv_iflg_cons_check_def | TYPE IM_CONSCHECK_DEF, " ' ' | |||
| lv_iflg_cons_adjust | TYPE XFELD, " ' ' | |||
| lv_id_cons_severity | TYPE SYMSGTY, " 'E' | |||
| lv_id_budg_rel_year | TYPE GJAHR, " '0000' | |||
| lv_id_budg_rel_prz | TYPE IM_BRPRZ, " 100 | |||
| lv_iflg_compute_delta | TYPE XFELD, " 'X' | |||
| lv_id_wrttp | TYPE CO_WRTTP, " | |||
| lt_et_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_iflg_test_run | TYPE XFELD, " 'X' | |||
| lv_id_versn | TYPE VERSN, " '000' | |||
| lv_id_trgkz | TYPE BP_TRGKZ, " 'N' | |||
| lv_id_ippos | TYPE IM_IPPOS, " ' ' | |||
| lv_id_prart | TYPE IM_PRART, " ' ' | |||
| lv_id_wrttp_from_1 | TYPE CO_WRTTP, " | |||
| lv_id_wrttp_from_2 | TYPE CO_WRTTP. " ' ' |
|   CALL FUNCTION 'AIPA_CP' " |
| EXPORTING | ||
| ID_KOKRS | = lv_id_kokrs | |
| ID_VERSN_FROM | = lv_id_versn_from | |
| ID_TRGKZ_FROM | = lv_id_trgkz_from | |
| ID_IPPOS_FROM | = lv_id_ippos_from | |
| ID_SGTXT | = lv_id_sgtxt | |
| ID_VORGA | = lv_id_vorga | |
| IFLG_SUPPL_RET_SPLIT | = lv_iflg_suppl_ret_split | |
| IFLG_RECONV_OBJ_TO_CA | = lv_iflg_reconv_obj_to_ca | |
| IFLG_RECONV_CA_TO_OBJ | = lv_iflg_reconv_ca_to_obj | |
| ID_RECONV_FROM_YEAR | = lv_id_reconv_from_year | |
| IFLG_ADJUST_TO_ACTUALS | = lv_iflg_adjust_to_actuals | |
| ID_GNJHR | = lv_id_gnjhr | |
| ID_ADJUST_STATSEL | = lv_id_adjust_statsel | |
| IFLG_CONS_ONLY | = lv_iflg_cons_only | |
| IFLG_CONS_CHECK | = lv_iflg_cons_check | |
| IFLG_CONS_CHECK_OBJ | = lv_iflg_cons_check_obj | |
| IFLG_CONS_CHECK_DEF | = lv_iflg_cons_check_def | |
| IFLG_CONS_ADJUST | = lv_iflg_cons_adjust | |
| ID_CONS_SEVERITY | = lv_id_cons_severity | |
| ID_BUDG_REL_YEAR | = lv_id_budg_rel_year | |
| ID_BUDG_REL_PRZ | = lv_id_budg_rel_prz | |
| IFLG_COMPUTE_DELTA | = lv_iflg_compute_delta | |
| ID_WRTTP | = lv_id_wrttp | |
| IFLG_TEST_RUN | = lv_iflg_test_run | |
| ID_VERSN | = lv_id_versn | |
| ID_TRGKZ | = lv_id_trgkz | |
| ID_IPPOS | = lv_id_ippos | |
| ID_PRART | = lv_id_prart | |
| ID_WRTTP_FROM_1 | = lv_id_wrttp_from_1 | |
| ID_WRTTP_FROM_2 | = lv_id_wrttp_from_2 | |
| TABLES | ||
| IT_COPY | = lt_it_copy | |
| ITX_COVOB_SOURCE | = lt_itx_covob_source | |
| ET_RETURN | = lt_et_return | |
| EXCEPTIONS | ||
| ABEND_OCCURED = 1 | ||
| . " AIPA_CP | ||
ABAP code using 7.40 inline data declarations to call FM AIPA_CP
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.| DATA(ld_id_versn_from) | = '000'. | |||
| DATA(ld_id_trgkz_from) | = 'N'. | |||
| DATA(ld_id_ippos_from) | = ' '. | |||
| DATA(ld_id_sgtxt) | = ' '. | |||
| DATA(ld_id_vorga) | = ' '. | |||
| DATA(ld_iflg_suppl_ret_split) | = ' '. | |||
| DATA(ld_iflg_reconv_obj_to_ca) | = ' '. | |||
| DATA(ld_iflg_reconv_ca_to_obj) | = ' '. | |||
| DATA(ld_id_reconv_from_year) | = '0000'. | |||
| DATA(ld_iflg_adjust_to_actuals) | = ' '. | |||
| DATA(ld_id_adjust_statsel) | = ' '. | |||
| DATA(ld_iflg_cons_only) | = ' '. | |||
| DATA(ld_iflg_cons_check) | = ' '. | |||
| DATA(ld_iflg_cons_check_obj) | = ' '. | |||
| DATA(ld_iflg_cons_check_def) | = ' '. | |||
| DATA(ld_iflg_cons_adjust) | = ' '. | |||
| DATA(ld_id_cons_severity) | = 'E'. | |||
| DATA(ld_id_budg_rel_year) | = '0000'. | |||
| DATA(ld_id_budg_rel_prz) | = 100. | |||
| DATA(ld_iflg_compute_delta) | = 'X'. | |||
| DATA(ld_iflg_test_run) | = 'X'. | |||
| DATA(ld_id_versn) | = '000'. | |||
| DATA(ld_id_trgkz) | = 'N'. | |||
| DATA(ld_id_ippos) | = ' '. | |||
| DATA(ld_id_prart) | = ' '. | |||
| DATA(ld_id_wrttp_from_2) | = ' '. | |||
Search for further information about these or an SAP related objects