SAP CRS_FUNCLOC_MAP2E_INTO_BAPI Function Module for Mapping to BAPIMTCS structure Functional Location
CRS_FUNCLOC_MAP2E_INTO_BAPI is a standard crs funcloc map2e into bapi SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Mapping to BAPIMTCS structure Functional Location 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 crs funcloc map2e into bapi FM, simply by entering the name CRS_FUNCLOC_MAP2E_INTO_BAPI into the relevant SAP transaction such as SE37 or SE38.
Function Group: CRMQ_FUNCLOC
Program Name: SAPLCRMQ_FUNCLOC
Main Program: SAPLCRMQ_FUNCLOC
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CRS_FUNCLOC_MAP2E_INTO_BAPI 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 'CRS_FUNCLOC_MAP2E_INTO_BAPI'"Mapping to BAPIMTCS structure Functional Location.
EXPORTING
* I_OPERATION = "Function
TABLES
* IN_IFLOT = "Functional Location (Table)
* IN_ADR2 = "Change document structure; generated by RSSCD000
* IN_ADR3 = "Change document structure; generated by RSSCD000
* IN_JEST = "Individual Object Status
* IN_JSTO = "Status object information
* IN_STXH = "STXD SAPscript text file header
* IN_STXL = "STXD SAPscript text file lines
* IN_BGMKOBJ = "Master Warranty - Object Assignment
* OUT_BAPI_IFLOT = "BAPI Structure for table IFLOt
* OUT_BAPI_IFLOT_OLD = "BAPI Structure for table IFLOT
* OUT_BAPI_IFLOTX = "BAPI Structure for table IFLOTX
* IN_IFLOT_OLD = "Functional Location (Table)
* OUT_BAPI_IFLOTX_OLD = "BAPI Structure for table IFLOTX
* OUT_BAPI_ILOA = "PM Object Location and Account Assignment
* OUT_BAPI_ILOA_OLD = "PM Object Location and Account Assignment
* OUT_BAPI_IHPA = "Plant Maintenance: Partners
* OUT_BAPI_IHPA_OLD = "Plant Maintenance: Partners
* OUT_BAPI_ADRC = "BAPI Structure: Customer Address
* OUT_BAPI_ADR2 = "BAPI Structure: Telephone (Business Address Services)
* OUT_BAPI_ADR3 = "BAPI Structure: Fax Numbers (Business Address Services)
* OUT_BAPISMJEST = "BAPI Structure for Table Jest Mobile Service
* OUT_BAPISMJSTO = "BAPI Structure Table Jsto Mobile Service
* IN_IFLOTX = "Functional Location: Short Texts
* OUT_BAPISTXH = "BAPI CRS Structure for STXH (SAPscript Text)
* OUT_BAPISTXL = "BAPI Structure for STX_LINES Structure
* OUT_BAPI_BGMKOBJ = "BAPI Structure for table BGMKOBJ
* IN_IFLOTX_OLD = "Functional Location: Short Texts
* IN_ILOA = "PM Object Location and Account Assignment
* IN_ILOA_OLD = "PM Object Location and Account Assignment
* IN_IHPA = "Plant Maintenance: Partners
* IN_IHPA_OLD = "Reference structure for XIHPA
* IN_ADRC = "Change document structure; generated by RSSCD000
IMPORTING Parameters details for CRS_FUNCLOC_MAP2E_INTO_BAPI
I_OPERATION - Function
Data type: CRM_PARA-MSGFNOPEROptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CRS_FUNCLOC_MAP2E_INTO_BAPI
IN_IFLOT - Functional Location (Table)
Data type: IFLOTOptional: Yes
Call by Reference: Yes
IN_ADR2 - Change document structure; generated by RSSCD000
Data type: VADR2Optional: Yes
Call by Reference: Yes
IN_ADR3 - Change document structure; generated by RSSCD000
Data type: VADR3Optional: Yes
Call by Reference: Yes
IN_JEST - Individual Object Status
Data type: JESTOptional: Yes
Call by Reference: Yes
IN_JSTO - Status object information
Data type: JSTOOptional: Yes
Call by Reference: Yes
IN_STXH - STXD SAPscript text file header
Data type: STXHOptional: Yes
Call by Reference: Yes
IN_STXL - STXD SAPscript text file lines
Data type: ITXTLOptional: Yes
Call by Reference: Yes
IN_BGMKOBJ - Master Warranty - Object Assignment
Data type: BGMKOBJOptional: Yes
Call by Reference: Yes
OUT_BAPI_IFLOT - BAPI Structure for table IFLOt
Data type: BAPI_IFLOTOptional: Yes
Call by Reference: Yes
OUT_BAPI_IFLOT_OLD - BAPI Structure for table IFLOT
Data type: BAPI_IFLOTOptional: Yes
Call by Reference: Yes
OUT_BAPI_IFLOTX - BAPI Structure for table IFLOTX
Data type: BAPI_IFLOTXOptional: Yes
Call by Reference: Yes
IN_IFLOT_OLD - Functional Location (Table)
Data type: IFLOTOptional: Yes
Call by Reference: Yes
OUT_BAPI_IFLOTX_OLD - BAPI Structure for table IFLOTX
Data type: BAPI_IFLOTXOptional: Yes
Call by Reference: Yes
OUT_BAPI_ILOA - PM Object Location and Account Assignment
Data type: BAPI_ILOA1Optional: Yes
Call by Reference: Yes
OUT_BAPI_ILOA_OLD - PM Object Location and Account Assignment
Data type: BAPI_ILOA1Optional: Yes
Call by Reference: Yes
OUT_BAPI_IHPA - Plant Maintenance: Partners
Data type: BAPI_IHPAOptional: Yes
Call by Reference: Yes
OUT_BAPI_IHPA_OLD - Plant Maintenance: Partners
Data type: BAPI_IHPAOptional: Yes
Call by Reference: Yes
OUT_BAPI_ADRC - BAPI Structure: Customer Address
Data type: BAPICUSADROptional: Yes
Call by Reference: Yes
OUT_BAPI_ADR2 - BAPI Structure: Telephone (Business Address Services)
Data type: BAPICUSTELOptional: Yes
Call by Reference: Yes
OUT_BAPI_ADR3 - BAPI Structure: Fax Numbers (Business Address Services)
Data type: BAPICUSFAXOptional: Yes
Call by Reference: Yes
OUT_BAPISMJEST - BAPI Structure for Table Jest Mobile Service
Data type: BAPISMJESTOptional: Yes
Call by Reference: Yes
OUT_BAPISMJSTO - BAPI Structure Table Jsto Mobile Service
Data type: BAPISMJSTOOptional: Yes
Call by Reference: Yes
IN_IFLOTX - Functional Location: Short Texts
Data type: IFLOTXOptional: Yes
Call by Reference: Yes
OUT_BAPISTXH - BAPI CRS Structure for STXH (SAPscript Text)
Data type: BAPISTXTXHOptional: Yes
Call by Reference: Yes
OUT_BAPISTXL - BAPI Structure for STX_LINES Structure
Data type: BAPISTXTXLOptional: Yes
Call by Reference: Yes
OUT_BAPI_BGMKOBJ - BAPI Structure for table BGMKOBJ
Data type: BAPI_BGMKOBJOptional: Yes
Call by Reference: Yes
IN_IFLOTX_OLD - Functional Location: Short Texts
Data type: IFLOTXOptional: Yes
Call by Reference: Yes
IN_ILOA - PM Object Location and Account Assignment
Data type: ILOAOptional: Yes
Call by Reference: Yes
IN_ILOA_OLD - PM Object Location and Account Assignment
Data type: ILOAOptional: Yes
Call by Reference: Yes
IN_IHPA - Plant Maintenance: Partners
Data type: IHPAVBOptional: Yes
Call by Reference: Yes
IN_IHPA_OLD - Reference structure for XIHPA
Data type: IHPAVBOptional: Yes
Call by Reference: Yes
IN_ADRC - Change document structure; generated by RSSCD000
Data type: VADRCOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for CRS_FUNCLOC_MAP2E_INTO_BAPI 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_in_iflot | TYPE STANDARD TABLE OF IFLOT, " | |||
| lv_i_operation | TYPE CRM_PARA-MSGFNOPER, " | |||
| lt_in_adr2 | TYPE STANDARD TABLE OF VADR2, " | |||
| lt_in_adr3 | TYPE STANDARD TABLE OF VADR3, " | |||
| lt_in_jest | TYPE STANDARD TABLE OF JEST, " | |||
| lt_in_jsto | TYPE STANDARD TABLE OF JSTO, " | |||
| lt_in_stxh | TYPE STANDARD TABLE OF STXH, " | |||
| lt_in_stxl | TYPE STANDARD TABLE OF ITXTL, " | |||
| lt_in_bgmkobj | TYPE STANDARD TABLE OF BGMKOBJ, " | |||
| lt_out_bapi_iflot | TYPE STANDARD TABLE OF BAPI_IFLOT, " | |||
| lt_out_bapi_iflot_old | TYPE STANDARD TABLE OF BAPI_IFLOT, " | |||
| lt_out_bapi_iflotx | TYPE STANDARD TABLE OF BAPI_IFLOTX, " | |||
| lt_in_iflot_old | TYPE STANDARD TABLE OF IFLOT, " | |||
| lt_out_bapi_iflotx_old | TYPE STANDARD TABLE OF BAPI_IFLOTX, " | |||
| lt_out_bapi_iloa | TYPE STANDARD TABLE OF BAPI_ILOA1, " | |||
| lt_out_bapi_iloa_old | TYPE STANDARD TABLE OF BAPI_ILOA1, " | |||
| lt_out_bapi_ihpa | TYPE STANDARD TABLE OF BAPI_IHPA, " | |||
| lt_out_bapi_ihpa_old | TYPE STANDARD TABLE OF BAPI_IHPA, " | |||
| lt_out_bapi_adrc | TYPE STANDARD TABLE OF BAPICUSADR, " | |||
| lt_out_bapi_adr2 | TYPE STANDARD TABLE OF BAPICUSTEL, " | |||
| lt_out_bapi_adr3 | TYPE STANDARD TABLE OF BAPICUSFAX, " | |||
| lt_out_bapismjest | TYPE STANDARD TABLE OF BAPISMJEST, " | |||
| lt_out_bapismjsto | TYPE STANDARD TABLE OF BAPISMJSTO, " | |||
| lt_in_iflotx | TYPE STANDARD TABLE OF IFLOTX, " | |||
| lt_out_bapistxh | TYPE STANDARD TABLE OF BAPISTXTXH, " | |||
| lt_out_bapistxl | TYPE STANDARD TABLE OF BAPISTXTXL, " | |||
| lt_out_bapi_bgmkobj | TYPE STANDARD TABLE OF BAPI_BGMKOBJ, " | |||
| lt_in_iflotx_old | TYPE STANDARD TABLE OF IFLOTX, " | |||
| lt_in_iloa | TYPE STANDARD TABLE OF ILOA, " | |||
| lt_in_iloa_old | TYPE STANDARD TABLE OF ILOA, " | |||
| lt_in_ihpa | TYPE STANDARD TABLE OF IHPAVB, " | |||
| lt_in_ihpa_old | TYPE STANDARD TABLE OF IHPAVB, " | |||
| lt_in_adrc | TYPE STANDARD TABLE OF VADRC. " |
|   CALL FUNCTION 'CRS_FUNCLOC_MAP2E_INTO_BAPI' "Mapping to BAPIMTCS structure Functional Location |
| EXPORTING | ||
| I_OPERATION | = lv_i_operation | |
| TABLES | ||
| IN_IFLOT | = lt_in_iflot | |
| IN_ADR2 | = lt_in_adr2 | |
| IN_ADR3 | = lt_in_adr3 | |
| IN_JEST | = lt_in_jest | |
| IN_JSTO | = lt_in_jsto | |
| IN_STXH | = lt_in_stxh | |
| IN_STXL | = lt_in_stxl | |
| IN_BGMKOBJ | = lt_in_bgmkobj | |
| OUT_BAPI_IFLOT | = lt_out_bapi_iflot | |
| OUT_BAPI_IFLOT_OLD | = lt_out_bapi_iflot_old | |
| OUT_BAPI_IFLOTX | = lt_out_bapi_iflotx | |
| IN_IFLOT_OLD | = lt_in_iflot_old | |
| OUT_BAPI_IFLOTX_OLD | = lt_out_bapi_iflotx_old | |
| OUT_BAPI_ILOA | = lt_out_bapi_iloa | |
| OUT_BAPI_ILOA_OLD | = lt_out_bapi_iloa_old | |
| OUT_BAPI_IHPA | = lt_out_bapi_ihpa | |
| OUT_BAPI_IHPA_OLD | = lt_out_bapi_ihpa_old | |
| OUT_BAPI_ADRC | = lt_out_bapi_adrc | |
| OUT_BAPI_ADR2 | = lt_out_bapi_adr2 | |
| OUT_BAPI_ADR3 | = lt_out_bapi_adr3 | |
| OUT_BAPISMJEST | = lt_out_bapismjest | |
| OUT_BAPISMJSTO | = lt_out_bapismjsto | |
| IN_IFLOTX | = lt_in_iflotx | |
| OUT_BAPISTXH | = lt_out_bapistxh | |
| OUT_BAPISTXL | = lt_out_bapistxl | |
| OUT_BAPI_BGMKOBJ | = lt_out_bapi_bgmkobj | |
| IN_IFLOTX_OLD | = lt_in_iflotx_old | |
| IN_ILOA | = lt_in_iloa | |
| IN_ILOA_OLD | = lt_in_iloa_old | |
| IN_IHPA | = lt_in_ihpa | |
| IN_IHPA_OLD | = lt_in_ihpa_old | |
| IN_ADRC | = lt_in_adrc | |
| . " CRS_FUNCLOC_MAP2E_INTO_BAPI | ||
ABAP code using 7.40 inline data declarations to call FM CRS_FUNCLOC_MAP2E_INTO_BAPI
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 MSGFNOPER FROM CRM_PARA INTO @DATA(ld_i_operation). | ||||
Search for further information about these or an SAP related objects