SAP FMCA_FPF_MAP_DB_TO_WD Function Module for Mapping Database data to Web Dynpro data
FMCA_FPF_MAP_DB_TO_WD is a standard fmca fpf map db to wd 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 Database data to Web Dynpro data 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 fmca fpf map db to wd FM, simply by entering the name FMCA_FPF_MAP_DB_TO_WD into the relevant SAP transaction such as SE37 or SE38.
Function Group: FMCA_COCKPIT_UTIL
Program Name: SAPLFMCA_COCKPIT_UTIL
Main Program: SAPLFMCA_COCKPIT_UTIL
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FMCA_FPF_MAP_DB_TO_WD 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 'FMCA_FPF_MAP_DB_TO_WD'"Mapping Database data to Web Dynpro data.
EXPORTING
* IS_FMCA_RETURN = "
* IT_FMCA_FORMS = "
* IT_STATUS = "
* IT_BRF_MSG = "
* IT_FPF_HIS = "
* IT_NOTES = "
* IT_FMCA_ACCT = "Table Type for Form Bundle Accounting Items View in WDY
IMPORTING
ES_FMCA_RETURN_WD = "
ET_FMCA_FORM_WD = "
ET_STATUS_WD = "
ET_BRF_MSG_WD = "
ET_FORM_BRF_MSG = "
ET_FPF_HIS_WD = "
ET_NOTES_WD = "
ET_FMCA_ACCT = "Table Type for Form Bundle Accounting Items View in WDY
IMPORTING Parameters details for FMCA_FPF_MAP_DB_TO_WD
IS_FMCA_RETURN -
Data type: FMCA_POBJ_SOptional: Yes
Call by Reference: Yes
IT_FMCA_FORMS -
Data type: FMCA_FORMS_TOptional: Yes
Call by Reference: Yes
IT_STATUS -
Data type: FMCA_POBJ_STATUS_TOptional: Yes
Call by Reference: Yes
IT_BRF_MSG -
Data type: FMCA_BRF_MSG_TOptional: Yes
Call by Reference: Yes
IT_FPF_HIS -
Data type: FMCA_FPF_HIS_TABOptional: Yes
Call by Reference: Yes
IT_NOTES -
Data type: FMCA_POBJ_NOTE_TOptional: Yes
Call by Reference: Yes
IT_FMCA_ACCT - Table Type for Form Bundle Accounting Items View in WDY
Data type: FMCA_TRM_RET_ACCT_WD_TOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for FMCA_FPF_MAP_DB_TO_WD
ES_FMCA_RETURN_WD -
Data type: FMCA_POBJ_S_INIT_WDOptional: No
Call by Reference: Yes
ET_FMCA_FORM_WD -
Data type: FMCA_FOBJ_WD_TOptional: No
Call by Reference: Yes
ET_STATUS_WD -
Data type: FMCA_POBJ_STATUS_T_WDOptional: No
Call by Reference: Yes
ET_BRF_MSG_WD -
Data type: DFMCA_BRF_MSG_WD_TOptional: No
Call by Reference: Yes
ET_FORM_BRF_MSG -
Data type: CL_FMCA_COCKPIT_SERVICES=>FORM_BRF_MSG_TOptional: No
Call by Reference: Yes
ET_FPF_HIS_WD -
Data type: FMCA_FPF_HIS_T_WDOptional: No
Call by Reference: Yes
ET_NOTES_WD -
Data type: FMCA_POBJ_NOTE_WD_TOptional: No
Call by Reference: Yes
ET_FMCA_ACCT - Table Type for Form Bundle Accounting Items View in WDY
Data type: FMCA_TRM_RET_ACCT_WD_TOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for FMCA_FPF_MAP_DB_TO_WD 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_is_fmca_return | TYPE FMCA_POBJ_S, " | |||
| lv_es_fmca_return_wd | TYPE FMCA_POBJ_S_INIT_WD, " | |||
| lv_it_fmca_forms | TYPE FMCA_FORMS_T, " | |||
| lv_et_fmca_form_wd | TYPE FMCA_FOBJ_WD_T, " | |||
| lv_it_status | TYPE FMCA_POBJ_STATUS_T, " | |||
| lv_et_status_wd | TYPE FMCA_POBJ_STATUS_T_WD, " | |||
| lv_it_brf_msg | TYPE FMCA_BRF_MSG_T, " | |||
| lv_et_brf_msg_wd | TYPE DFMCA_BRF_MSG_WD_T, " | |||
| lv_it_fpf_his | TYPE FMCA_FPF_HIS_TAB, " | |||
| lv_et_form_brf_msg | TYPE CL_FMCA_COCKPIT_SERVICES=>FORM_BRF_MSG_T, " | |||
| lv_it_notes | TYPE FMCA_POBJ_NOTE_T, " | |||
| lv_et_fpf_his_wd | TYPE FMCA_FPF_HIS_T_WD, " | |||
| lv_et_notes_wd | TYPE FMCA_POBJ_NOTE_WD_T, " | |||
| lv_it_fmca_acct | TYPE FMCA_TRM_RET_ACCT_WD_T, " | |||
| lv_et_fmca_acct | TYPE FMCA_TRM_RET_ACCT_WD_T. " |
|   CALL FUNCTION 'FMCA_FPF_MAP_DB_TO_WD' "Mapping Database data to Web Dynpro data |
| EXPORTING | ||
| IS_FMCA_RETURN | = lv_is_fmca_return | |
| IT_FMCA_FORMS | = lv_it_fmca_forms | |
| IT_STATUS | = lv_it_status | |
| IT_BRF_MSG | = lv_it_brf_msg | |
| IT_FPF_HIS | = lv_it_fpf_his | |
| IT_NOTES | = lv_it_notes | |
| IT_FMCA_ACCT | = lv_it_fmca_acct | |
| IMPORTING | ||
| ES_FMCA_RETURN_WD | = lv_es_fmca_return_wd | |
| ET_FMCA_FORM_WD | = lv_et_fmca_form_wd | |
| ET_STATUS_WD | = lv_et_status_wd | |
| ET_BRF_MSG_WD | = lv_et_brf_msg_wd | |
| ET_FORM_BRF_MSG | = lv_et_form_brf_msg | |
| ET_FPF_HIS_WD | = lv_et_fpf_his_wd | |
| ET_NOTES_WD | = lv_et_notes_wd | |
| ET_FMCA_ACCT | = lv_et_fmca_acct | |
| . " FMCA_FPF_MAP_DB_TO_WD | ||
ABAP code using 7.40 inline data declarations to call FM FMCA_FPF_MAP_DB_TO_WD
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