SAP AFO_APFO_CHECK Function Module for Prüfen der Daten des CFM-Teils eines Finanzobjekts









AFO_APFO_CHECK is a standard afo apfo check SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Prüfen der Daten des CFM-Teils eines Finanzobjekts 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 afo apfo check FM, simply by entering the name AFO_APFO_CHECK into the relevant SAP transaction such as SE37 or SE38.

Function Group: AFO_APFO1
Program Name: SAPLAFO_APFO1
Main Program: SAPLAFO_APFO1
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function AFO_APFO_CHECK 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 'AFO_APFO_CHECK'"Prüfen der Daten des CFM-Teils eines Finanzobjekts
EXPORTING
I_PROGN = "ABAP-Programmname
I_DATASTR = "Risikomanagementbereich
I_TAFO_DATA = "Zentrale Finanzobjektdaten + BDT Status informationen
I_FLG_FDUE = "
I_ACT_APFO = "RM: FO-Integration RM-Teil
I_MESSAGE_TYPE = "Muß/Kann (falls fehlerfrei) Sicherung der SEM-Applikation
I_TAB_JBRRMBM = "Zuordnung der Merkmale zu den RM-Bereichen

IMPORTING
E_FLG_ERROR = "

CHANGING
C_TAB_MESSAGES = "
.



IMPORTING Parameters details for AFO_APFO_CHECK

I_PROGN - ABAP-Programmname

Data type: TRDIR-NAME
Optional: No
Call by Reference: Yes

I_DATASTR - Risikomanagementbereich

Data type: JBRRMB-RMBID
Optional: No
Call by Reference: Yes

I_TAFO_DATA - Zentrale Finanzobjektdaten + BDT Status informationen

Data type: JBDOBJ1_EXT
Optional: No
Call by Reference: Yes

I_FLG_FDUE -

Data type: C
Optional: No
Call by Reference: Yes

I_ACT_APFO - RM: FO-Integration RM-Teil

Data type: RMFOOBJ1
Optional: No
Call by Reference: Yes

I_MESSAGE_TYPE - Muß/Kann (falls fehlerfrei) Sicherung der SEM-Applikation

Data type: JBRASAVT-SAVHC
Optional: No
Call by Reference: Yes

I_TAB_JBRRMBM - Zuordnung der Merkmale zu den RM-Bereichen

Data type: CFFOI_JBRRMBM_T
Optional: No
Call by Reference: Yes

EXPORTING Parameters details for AFO_APFO_CHECK

E_FLG_ERROR -

Data type: C
Optional: No
Call by Reference: Yes

CHANGING Parameters details for AFO_APFO_CHECK

C_TAB_MESSAGES -

Data type: AFOI_MESSAGE_T
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for AFO_APFO_CHECK 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_i_progn  TYPE TRDIR-NAME, "   
lv_e_flg_error  TYPE C, "   
lv_c_tab_messages  TYPE AFOI_MESSAGE_T, "   
lv_i_datastr  TYPE JBRRMB-RMBID, "   
lv_i_tafo_data  TYPE JBDOBJ1_EXT, "   
lv_i_flg_fdue  TYPE C, "   
lv_i_act_apfo  TYPE RMFOOBJ1, "   
lv_i_message_type  TYPE JBRASAVT-SAVHC, "   
lv_i_tab_jbrrmbm  TYPE CFFOI_JBRRMBM_T. "   

  CALL FUNCTION 'AFO_APFO_CHECK'  "Prüfen der Daten des CFM-Teils eines Finanzobjekts
    EXPORTING
         I_PROGN = lv_i_progn
         I_DATASTR = lv_i_datastr
         I_TAFO_DATA = lv_i_tafo_data
         I_FLG_FDUE = lv_i_flg_fdue
         I_ACT_APFO = lv_i_act_apfo
         I_MESSAGE_TYPE = lv_i_message_type
         I_TAB_JBRRMBM = lv_i_tab_jbrrmbm
    IMPORTING
         E_FLG_ERROR = lv_e_flg_error
    CHANGING
         C_TAB_MESSAGES = lv_c_tab_messages
. " AFO_APFO_CHECK




ABAP code using 7.40 inline data declarations to call FM AFO_APFO_CHECK

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 NAME FROM TRDIR INTO @DATA(ld_i_progn).
 
 
 
"SELECT single RMBID FROM JBRRMB INTO @DATA(ld_i_datastr).
 
 
 
 
"SELECT single SAVHC FROM JBRASAVT INTO @DATA(ld_i_message_type).
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!