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

Function FIAA_OBJ_KEY_CONVERT 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 'FIAA_OBJ_KEY_CONVERT'".
EXPORTING
ID_DIRECTION = "Split or merge the key fields
ID_OBJ_TYPE = "Object Type
CHANGING
* CD_OBJ_KEY_CONTAINER = "
* CD_ORDER_EBELN = "Purchasing Document Number
* CD_GL_ACCOUNT_BUKRS = "Company Code
* CD_GL_ACCOUNT_SAKNR = "G/L Account Number
* CD_PROJ_POSNR = "WBS Element of Investment Project
* CD_BUILD_BUKRS = "Company Code
* CD_BUILD_SWENR = "Number of Business Entity
* CD_BUILD_SGENR = "Building Number
* CD_PROP_BUKRS = "Company Code
* CD_PROP_SWENR = "Number of Business Entity
* CD_PROP_SGRNR = "Land Number for BE
* CD_EQUI_EQUNR = "Equipment Number
* CD_PROFIT_CENTER = "
* CD_TPL_TPLNR = "Functional Location
* CD_CRED_BUKRS = "Company Code
* CD_CRED_LIFNR = "Account number of vendor (other key word)
* CD_COCTR_KOKRS = "Controlling Area
* CD_COCTR_KOSTL = "Cost Center
* CD_EMP_PERNR = "Personnel Number
* CD_INT_ORDER_AUFNR = "Internal Order
EXCEPTIONS
DIRECTION_INVALID = 1 CD_PROJ_POSNR_NOT_QUALIFIED = 10 KEY_CONTAINER_NOT_QUALIFIED = 11 PROFIT_CENTER_NOT_QUALIFIED = 12 CD_EQUI_EQUNR_NOT_QUALIFIED = 2 CD_TPL_TPLNR_NOT_QUALIFIED = 3 BUKRS_OR_LIFNR_NOT_QUALIFIED = 4 KOKRS_OR_KOSTL_NOT_QUALIFIED = 5 CD_EMP_PERNR_NOT_QUALIFIED = 6 INT_ORDER_AUFNR_NOT_QUALIFIED = 7 CD_ORDER_EBELN_NOT_QUALIFIED = 8 GL_BUKRS__SAKNR_NOT_QUALIFIED = 9
IMPORTING Parameters details for FIAA_OBJ_KEY_CONVERT
ID_DIRECTION - Split or merge the key fields
Data type: CONV_DIRECTIONOptional: No
Call by Reference: Yes
ID_OBJ_TYPE - Object Type
Data type: SWO_OBJTYPOptional: No
Call by Reference: Yes
CHANGING Parameters details for FIAA_OBJ_KEY_CONVERT
CD_OBJ_KEY_CONTAINER -
Data type: OBJ_KEY_CONTAINEROptional: Yes
Call by Reference: Yes
CD_ORDER_EBELN - Purchasing Document Number
Data type: EBELNOptional: Yes
Call by Reference: Yes
CD_GL_ACCOUNT_BUKRS - Company Code
Data type: BUKRSOptional: Yes
Call by Reference: Yes
CD_GL_ACCOUNT_SAKNR - G/L Account Number
Data type: SAKNROptional: Yes
Call by Reference: Yes
CD_PROJ_POSNR - WBS Element of Investment Project
Data type: AM_POSNROptional: Yes
Call by Reference: Yes
CD_BUILD_BUKRS - Company Code
Data type: BUKRSOptional: Yes
Call by Reference: Yes
CD_BUILD_SWENR - Number of Business Entity
Data type: SWENROptional: Yes
Call by Reference: Yes
CD_BUILD_SGENR - Building Number
Data type: SGENROptional: Yes
Call by Reference: Yes
CD_PROP_BUKRS - Company Code
Data type: BUKRSOptional: Yes
Call by Reference: Yes
CD_PROP_SWENR - Number of Business Entity
Data type: SWENROptional: Yes
Call by Reference: Yes
CD_PROP_SGRNR - Land Number for BE
Data type: SGRNROptional: Yes
Call by Reference: Yes
CD_EQUI_EQUNR - Equipment Number
Data type: EQUNROptional: Yes
Call by Reference: Yes
CD_PROFIT_CENTER -
Data type: PRCTROptional: Yes
Call by Reference: Yes
CD_TPL_TPLNR - Functional Location
Data type: ILOM_STRNOOptional: Yes
Call by Reference: Yes
CD_CRED_BUKRS - Company Code
Data type: BUKRSOptional: Yes
Call by Reference: Yes
CD_CRED_LIFNR - Account number of vendor (other key word)
Data type: AM_LIFNROptional: Yes
Call by Reference: Yes
CD_COCTR_KOKRS - Controlling Area
Data type: KOKRSOptional: Yes
Call by Reference: Yes
CD_COCTR_KOSTL - Cost Center
Data type: KOSTLOptional: Yes
Call by Reference: Yes
CD_EMP_PERNR - Personnel Number
Data type: PERNR_DOptional: Yes
Call by Reference: Yes
CD_INT_ORDER_AUFNR - Internal Order
Data type: CAUFNOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
DIRECTION_INVALID -
Data type:Optional: No
Call by Reference: Yes
CD_PROJ_POSNR_NOT_QUALIFIED -
Data type:Optional: No
Call by Reference: Yes
KEY_CONTAINER_NOT_QUALIFIED -
Data type:Optional: No
Call by Reference: Yes
PROFIT_CENTER_NOT_QUALIFIED -
Data type:Optional: No
Call by Reference: Yes
CD_EQUI_EQUNR_NOT_QUALIFIED -
Data type:Optional: No
Call by Reference: Yes
CD_TPL_TPLNR_NOT_QUALIFIED -
Data type:Optional: No
Call by Reference: Yes
BUKRS_OR_LIFNR_NOT_QUALIFIED -
Data type:Optional: No
Call by Reference: Yes
KOKRS_OR_KOSTL_NOT_QUALIFIED -
Data type:Optional: No
Call by Reference: Yes
CD_EMP_PERNR_NOT_QUALIFIED -
Data type:Optional: No
Call by Reference: Yes
INT_ORDER_AUFNR_NOT_QUALIFIED -
Data type:Optional: No
Call by Reference: Yes
CD_ORDER_EBELN_NOT_QUALIFIED -
Data type:Optional: No
Call by Reference: Yes
GL_BUKRS__SAKNR_NOT_QUALIFIED -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FIAA_OBJ_KEY_CONVERT 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: | ||||
| lv_id_direction | TYPE CONV_DIRECTION, " | |||
| lv_direction_invalid | TYPE CONV_DIRECTION, " | |||
| lv_cd_obj_key_container | TYPE OBJ_KEY_CONTAINER, " | |||
| lv_cd_order_ebeln | TYPE EBELN, " | |||
| lv_cd_proj_posnr_not_qualified | TYPE EBELN, " | |||
| lv_cd_gl_account_bukrs | TYPE BUKRS, " | |||
| lv_key_container_not_qualified | TYPE BUKRS, " | |||
| lv_cd_gl_account_saknr | TYPE SAKNR, " | |||
| lv_profit_center_not_qualified | TYPE SAKNR, " | |||
| lv_cd_proj_posnr | TYPE AM_POSNR, " | |||
| lv_cd_build_bukrs | TYPE BUKRS, " | |||
| lv_cd_build_swenr | TYPE SWENR, " | |||
| lv_cd_build_sgenr | TYPE SGENR, " | |||
| lv_cd_prop_bukrs | TYPE BUKRS, " | |||
| lv_cd_prop_swenr | TYPE SWENR, " | |||
| lv_cd_prop_sgrnr | TYPE SGRNR, " | |||
| lv_id_obj_type | TYPE SWO_OBJTYP, " | |||
| lv_cd_equi_equnr | TYPE EQUNR, " | |||
| lv_cd_equi_equnr_not_qualified | TYPE EQUNR, " | |||
| lv_cd_profit_center | TYPE PRCTR, " | |||
| lv_cd_tpl_tplnr | TYPE ILOM_STRNO, " | |||
| lv_cd_tpl_tplnr_not_qualified | TYPE ILOM_STRNO, " | |||
| lv_cd_cred_bukrs | TYPE BUKRS, " | |||
| lv_bukrs_or_lifnr_not_qualified | TYPE BUKRS, " | |||
| lv_cd_cred_lifnr | TYPE AM_LIFNR, " | |||
| lv_kokrs_or_kostl_not_qualified | TYPE AM_LIFNR, " | |||
| lv_cd_coctr_kokrs | TYPE KOKRS, " | |||
| lv_cd_emp_pernr_not_qualified | TYPE KOKRS, " | |||
| lv_cd_coctr_kostl | TYPE KOSTL, " | |||
| lv_int_order_aufnr_not_qualified | TYPE KOSTL, " | |||
| lv_cd_emp_pernr | TYPE PERNR_D, " | |||
| lv_cd_order_ebeln_not_qualified | TYPE PERNR_D, " | |||
| lv_cd_int_order_aufnr | TYPE CAUFN, " | |||
| lv_gl_bukrs__saknr_not_qualified | TYPE CAUFN. " |
|   CALL FUNCTION 'FIAA_OBJ_KEY_CONVERT' " |
| EXPORTING | ||
| ID_DIRECTION | = lv_id_direction | |
| ID_OBJ_TYPE | = lv_id_obj_type | |
| CHANGING | ||
| CD_OBJ_KEY_CONTAINER | = lv_cd_obj_key_container | |
| CD_ORDER_EBELN | = lv_cd_order_ebeln | |
| CD_GL_ACCOUNT_BUKRS | = lv_cd_gl_account_bukrs | |
| CD_GL_ACCOUNT_SAKNR | = lv_cd_gl_account_saknr | |
| CD_PROJ_POSNR | = lv_cd_proj_posnr | |
| CD_BUILD_BUKRS | = lv_cd_build_bukrs | |
| CD_BUILD_SWENR | = lv_cd_build_swenr | |
| CD_BUILD_SGENR | = lv_cd_build_sgenr | |
| CD_PROP_BUKRS | = lv_cd_prop_bukrs | |
| CD_PROP_SWENR | = lv_cd_prop_swenr | |
| CD_PROP_SGRNR | = lv_cd_prop_sgrnr | |
| CD_EQUI_EQUNR | = lv_cd_equi_equnr | |
| CD_PROFIT_CENTER | = lv_cd_profit_center | |
| CD_TPL_TPLNR | = lv_cd_tpl_tplnr | |
| CD_CRED_BUKRS | = lv_cd_cred_bukrs | |
| CD_CRED_LIFNR | = lv_cd_cred_lifnr | |
| CD_COCTR_KOKRS | = lv_cd_coctr_kokrs | |
| CD_COCTR_KOSTL | = lv_cd_coctr_kostl | |
| CD_EMP_PERNR | = lv_cd_emp_pernr | |
| CD_INT_ORDER_AUFNR | = lv_cd_int_order_aufnr | |
| EXCEPTIONS | ||
| DIRECTION_INVALID = 1 | ||
| CD_PROJ_POSNR_NOT_QUALIFIED = 10 | ||
| KEY_CONTAINER_NOT_QUALIFIED = 11 | ||
| PROFIT_CENTER_NOT_QUALIFIED = 12 | ||
| CD_EQUI_EQUNR_NOT_QUALIFIED = 2 | ||
| CD_TPL_TPLNR_NOT_QUALIFIED = 3 | ||
| BUKRS_OR_LIFNR_NOT_QUALIFIED = 4 | ||
| KOKRS_OR_KOSTL_NOT_QUALIFIED = 5 | ||
| CD_EMP_PERNR_NOT_QUALIFIED = 6 | ||
| INT_ORDER_AUFNR_NOT_QUALIFIED = 7 | ||
| CD_ORDER_EBELN_NOT_QUALIFIED = 8 | ||
| GL_BUKRS__SAKNR_NOT_QUALIFIED = 9 | ||
| . " FIAA_OBJ_KEY_CONVERT | ||
ABAP code using 7.40 inline data declarations to call FM FIAA_OBJ_KEY_CONVERT
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.Search for further information about these or an SAP related objects