SAP CFA_DERIVE_FO_FOR_EXPOSURE Function Module for FO Derivation of Exposure
CFA_DERIVE_FO_FOR_EXPOSURE is a standard cfa derive fo for exposure SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for FO Derivation of Exposure 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 cfa derive fo for exposure FM, simply by entering the name CFA_DERIVE_FO_FOR_EXPOSURE into the relevant SAP transaction such as SE37 or SE38.
Function Group: CFADEP
Program Name: SAPLCFADEP
Main Program: SAPLCFADEP
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CFA_DERIVE_FO_FOR_EXPOSURE 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 'CFA_DERIVE_FO_FOR_EXPOSURE'"FO Derivation of Exposure.
EXPORTING
I_DATASTR = "Name Analysestruktur
* I_TRACE_MODE = "Trace-Modus
I_EXPOSURE = "Derivation Structure for Operational Exposures
CHANGING
C_I75XXXX = "Merkmale Analysestruktur
C_FOB = "Struktur Finanzobjekt (feste Felder)
* C_TEMP = "Struktur temporäre Felder
EXCEPTIONS
DATASTR_NOT_FOUND = 1 DERIVATION_FAILED = 2
IMPORTING Parameters details for CFA_DERIVE_FO_FOR_EXPOSURE
I_DATASTR - Name Analysestruktur
Data type: JBRRMBIDOptional: No
Call by Reference: Yes
I_TRACE_MODE - Trace-Modus
Data type: KEDR_TRACE_MODEOptional: Yes
Call by Reference: Yes
I_EXPOSURE - Derivation Structure for Operational Exposures
Data type: JBDEXPOSUREDERIOptional: No
Call by Reference: Yes
CHANGING Parameters details for CFA_DERIVE_FO_FOR_EXPOSURE
C_I75XXXX - Merkmale Analysestruktur
Data type:Optional: No
Call by Reference: Yes
C_FOB - Struktur Finanzobjekt (feste Felder)
Data type: RMDEROptional: No
Call by Reference: Yes
C_TEMP - Struktur temporäre Felder
Data type: JBRTEMPDERIOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
DATASTR_NOT_FOUND - Analysestruktur unbekannt
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DERIVATION_FAILED - Ableitung fehlgeschlagen
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CFA_DERIVE_FO_FOR_EXPOSURE 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_c_i75xxxx | TYPE STRING, " | |||
| lv_i_datastr | TYPE JBRRMBID, " | |||
| lv_datastr_not_found | TYPE JBRRMBID, " | |||
| lv_c_fob | TYPE RMDER, " | |||
| lv_i_trace_mode | TYPE KEDR_TRACE_MODE, " | |||
| lv_derivation_failed | TYPE KEDR_TRACE_MODE, " | |||
| lv_c_temp | TYPE JBRTEMPDERI, " | |||
| lv_i_exposure | TYPE JBDEXPOSUREDERI. " |
|   CALL FUNCTION 'CFA_DERIVE_FO_FOR_EXPOSURE' "FO Derivation of Exposure |
| EXPORTING | ||
| I_DATASTR | = lv_i_datastr | |
| I_TRACE_MODE | = lv_i_trace_mode | |
| I_EXPOSURE | = lv_i_exposure | |
| CHANGING | ||
| C_I75XXXX | = lv_c_i75xxxx | |
| C_FOB | = lv_c_fob | |
| C_TEMP | = lv_c_temp | |
| EXCEPTIONS | ||
| DATASTR_NOT_FOUND = 1 | ||
| DERIVATION_FAILED = 2 | ||
| . " CFA_DERIVE_FO_FOR_EXPOSURE | ||
ABAP code using 7.40 inline data declarations to call FM CFA_DERIVE_FO_FOR_EXPOSURE
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