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

Function AIPA_READ_CO_OBJECT 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_READ_CO_OBJECT'".
EXPORTING
I_OBJNR = "CO object number for measure
* I_FLG_REQUESTS_ALONE = ' ' "
IMPORTING
E_OBART = "Object type
E_TBP1C = "Associated budget profile
E_AUFKV = "Order
E_PRPS = "WBS element
E_PROJ = "Project
E_IMAK = "
E_IMAKT = "
ET_COOBJ_ASSIGNED = "
E_REQ_CH = "
E_MEAS_AS = "
TABLES
* ET_IMZO = "
* ET_IMAKPGES = "
* ET_ROPA = "
EXCEPTIONS
NOT_FOUND = 1 OBART_NOT_FOUND = 2
IMPORTING Parameters details for AIPA_READ_CO_OBJECT
I_OBJNR - CO object number for measure
Data type: IMZO-OBJNROptional: No
Call by Reference: No ( called with pass by value option)
I_FLG_REQUESTS_ALONE -
Data type: SY-DATARDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for AIPA_READ_CO_OBJECT
E_OBART - Object type
Data type: IMPS-OBARTOptional: No
Call by Reference: No ( called with pass by value option)
E_TBP1C - Associated budget profile
Data type: TBP1COptional: No
Call by Reference: No ( called with pass by value option)
E_AUFKV - Order
Data type: AUFKVOptional: No
Call by Reference: No ( called with pass by value option)
E_PRPS - WBS element
Data type: PRPSOptional: No
Call by Reference: No ( called with pass by value option)
E_PROJ - Project
Data type: PROJOptional: No
Call by Reference: No ( called with pass by value option)
E_IMAK -
Data type: IMAKOptional: No
Call by Reference: No ( called with pass by value option)
E_IMAKT -
Data type: IMAKTOptional: No
Call by Reference: No ( called with pass by value option)
ET_COOBJ_ASSIGNED -
Data type: IM_COOBJ_TAB_TYPEOptional: No
Call by Reference: No ( called with pass by value option)
E_REQ_CH -
Data type: RAIPATTR-REQ_CHOptional: No
Call by Reference: No ( called with pass by value option)
E_MEAS_AS -
Data type: RAIPATTR-MEAS_ASOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for AIPA_READ_CO_OBJECT
ET_IMZO -
Data type: IMZOOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_IMAKPGES -
Data type: RIMAKPGESOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_ROPA -
Data type: IMIS_TYPE_TX_ROPAOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NOT_FOUND - Nothing found
Data type:Optional: No
Call by Reference: Yes
OBART_NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for AIPA_READ_CO_OBJECT 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_et_imzo | TYPE STANDARD TABLE OF IMZO, " | |||
| lv_e_obart | TYPE IMPS-OBART, " | |||
| lv_i_objnr | TYPE IMZO-OBJNR, " | |||
| lv_not_found | TYPE IMZO, " | |||
| lv_e_tbp1c | TYPE TBP1C, " | |||
| lv_e_aufkv | TYPE AUFKV, " | |||
| lt_et_imakpges | TYPE STANDARD TABLE OF RIMAKPGES, " | |||
| lv_obart_not_found | TYPE RIMAKPGES, " | |||
| lv_i_flg_requests_alone | TYPE SY-DATAR, " ' ' | |||
| lv_e_prps | TYPE PRPS, " | |||
| lt_et_ropa | TYPE STANDARD TABLE OF IMIS_TYPE_TX_ROPA, " | |||
| lv_e_proj | TYPE PROJ, " | |||
| lv_e_imak | TYPE IMAK, " | |||
| lv_e_imakt | TYPE IMAKT, " | |||
| lv_et_coobj_assigned | TYPE IM_COOBJ_TAB_TYPE, " | |||
| lv_e_req_ch | TYPE RAIPATTR-REQ_CH, " | |||
| lv_e_meas_as | TYPE RAIPATTR-MEAS_AS. " |
|   CALL FUNCTION 'AIPA_READ_CO_OBJECT' " |
| EXPORTING | ||
| I_OBJNR | = lv_i_objnr | |
| I_FLG_REQUESTS_ALONE | = lv_i_flg_requests_alone | |
| IMPORTING | ||
| E_OBART | = lv_e_obart | |
| E_TBP1C | = lv_e_tbp1c | |
| E_AUFKV | = lv_e_aufkv | |
| E_PRPS | = lv_e_prps | |
| E_PROJ | = lv_e_proj | |
| E_IMAK | = lv_e_imak | |
| E_IMAKT | = lv_e_imakt | |
| ET_COOBJ_ASSIGNED | = lv_et_coobj_assigned | |
| E_REQ_CH | = lv_e_req_ch | |
| E_MEAS_AS | = lv_e_meas_as | |
| TABLES | ||
| ET_IMZO | = lt_et_imzo | |
| ET_IMAKPGES | = lt_et_imakpges | |
| ET_ROPA | = lt_et_ropa | |
| EXCEPTIONS | ||
| NOT_FOUND = 1 | ||
| OBART_NOT_FOUND = 2 | ||
| . " AIPA_READ_CO_OBJECT | ||
ABAP code using 7.40 inline data declarations to call FM AIPA_READ_CO_OBJECT
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 OBART FROM IMPS INTO @DATA(ld_e_obart). | ||||
| "SELECT single OBJNR FROM IMZO INTO @DATA(ld_i_objnr). | ||||
| "SELECT single DATAR FROM SY INTO @DATA(ld_i_flg_requests_alone). | ||||
| DATA(ld_i_flg_requests_alone) | = ' '. | |||
| "SELECT single REQ_CH FROM RAIPATTR INTO @DATA(ld_e_req_ch). | ||||
| "SELECT single MEAS_AS FROM RAIPATTR INTO @DATA(ld_e_meas_as). | ||||
Search for further information about these or an SAP related objects