SAP RM_FOB_SELECTION Function Module for RM: Vorselektion Finanzobjekte mit Typ-Parametern
RM_FOB_SELECTION is a standard rm fob selection SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for RM: Vorselektion Finanzobjekte mit Typ-Parametern 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 rm fob selection FM, simply by entering the name RM_FOB_SELECTION into the relevant SAP transaction such as SE37 or SE38.
Function Group: RMFOS
Program Name: SAPLRMFOS
Main Program: SAPLRMFOS
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RM_FOB_SELECTION 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 'RM_FOB_SELECTION'"RM: Vorselektion Finanzobjekte mit Typ-Parametern.
EXPORTING
* RMBID = "RM-Bereich
* XARCHIVEADD = "zusätzlich archivierbare FOBs selekt.
* PHID = "Portfoliohierarchie
* SICHTID = "Sicht
* XDET = "Kennzeichen Einzelobjekte
* XAGGRONLY = "Kennzeichen nur verdichtete Daten
* XACTIVE = 'X' "Aktive Finanzobjekte selektieren
* XINACTIVE = "Inaktive Finanzobjekte selektieren
* I_FOB_SEL = "Tabellen der Finanzobjektselektionen
* XARCHIVE = "nur archivierbare FOBs selektieren
CHANGING
* PKNOTEN = "Portfoliohierarchieknoten
TABLES
* E_BAUM = "Baumtabelle der Portfoliohierarchie
* E_BAUMTXT = "Texttabelle der Portfoliohierarchie
* E_ZUORDN = "Zuordnungstabelle BPs -> PH-Knoten
E_FOB = "Tabelle Finanzobjekte
EXCEPTIONS
NO_BPIDS = 1 NO_FOBS = 2 INTERNAL_ERROR = 3
IMPORTING Parameters details for RM_FOB_SELECTION
RMBID - RM-Bereich
Data type: JBRRMBM-RMBIDOptional: Yes
Call by Reference: No ( called with pass by value option)
XARCHIVEADD - zusätzlich archivierbare FOBs selekt.
Data type: RMFC_BOOLOptional: Yes
Call by Reference: No ( called with pass by value option)
PHID - Portfoliohierarchie
Data type: JBRPHDEF-PHIDOptional: Yes
Call by Reference: No ( called with pass by value option)
SICHTID - Sicht
Data type: JBRSI-SICHTIDOptional: Yes
Call by Reference: No ( called with pass by value option)
XDET - Kennzeichen Einzelobjekte
Data type: RMFC_BOOLOptional: Yes
Call by Reference: No ( called with pass by value option)
XAGGRONLY - Kennzeichen nur verdichtete Daten
Data type: RMFC_BOOLOptional: Yes
Call by Reference: No ( called with pass by value option)
XACTIVE - Aktive Finanzobjekte selektieren
Data type: RMFC_BOOLDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
XINACTIVE - Inaktive Finanzobjekte selektieren
Data type: RMFC_BOOLOptional: Yes
Call by Reference: No ( called with pass by value option)
I_FOB_SEL - Tabellen der Finanzobjektselektionen
Data type: RMFOS_SELOptional: Yes
Call by Reference: Yes
XARCHIVE - nur archivierbare FOBs selektieren
Data type: RMFC_BOOLOptional: Yes
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for RM_FOB_SELECTION
PKNOTEN - Portfoliohierarchieknoten
Data type: JBRPHBAUM-PKNOTENOptional: Yes
Call by Reference: Yes
TABLES Parameters details for RM_FOB_SELECTION
E_BAUM - Baumtabelle der Portfoliohierarchie
Data type: JBRPHBAUMOptional: Yes
Call by Reference: No ( called with pass by value option)
E_BAUMTXT - Texttabelle der Portfoliohierarchie
Data type: JBRNAMEDATOptional: Yes
Call by Reference: No ( called with pass by value option)
E_ZUORDN - Zuordnungstabelle BPs -> PH-Knoten
Data type: JBRZUORDNOptional: Yes
Call by Reference: No ( called with pass by value option)
E_FOB - Tabelle Finanzobjekte
Data type: JBRFOBOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_BPIDS - Keine BPs entsprechend Selektion
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_FOBS - Keine Finanzobjekte entsprechend Selektion
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INTERNAL_ERROR - Fehler in der Verarbeitung aufgetreten
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RM_FOB_SELECTION 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_rmbid | TYPE JBRRMBM-RMBID, " | |||
| lt_e_baum | TYPE STANDARD TABLE OF JBRPHBAUM, " | |||
| lv_pknoten | TYPE JBRPHBAUM-PKNOTEN, " | |||
| lv_no_bpids | TYPE JBRPHBAUM, " | |||
| lv_xarchiveadd | TYPE RMFC_BOOL, " | |||
| lv_phid | TYPE JBRPHDEF-PHID, " | |||
| lv_no_fobs | TYPE JBRPHDEF, " | |||
| lt_e_baumtxt | TYPE STANDARD TABLE OF JBRNAMEDAT, " | |||
| lv_sichtid | TYPE JBRSI-SICHTID, " | |||
| lt_e_zuordn | TYPE STANDARD TABLE OF JBRZUORDN, " | |||
| lv_internal_error | TYPE JBRZUORDN, " | |||
| lv_xdet | TYPE RMFC_BOOL, " | |||
| lt_e_fob | TYPE STANDARD TABLE OF JBRFOB, " | |||
| lv_xaggronly | TYPE RMFC_BOOL, " | |||
| lv_xactive | TYPE RMFC_BOOL, " 'X' | |||
| lv_xinactive | TYPE RMFC_BOOL, " | |||
| lv_i_fob_sel | TYPE RMFOS_SEL, " | |||
| lv_xarchive | TYPE RMFC_BOOL. " |
|   CALL FUNCTION 'RM_FOB_SELECTION' "RM: Vorselektion Finanzobjekte mit Typ-Parametern |
| EXPORTING | ||
| RMBID | = lv_rmbid | |
| XARCHIVEADD | = lv_xarchiveadd | |
| PHID | = lv_phid | |
| SICHTID | = lv_sichtid | |
| XDET | = lv_xdet | |
| XAGGRONLY | = lv_xaggronly | |
| XACTIVE | = lv_xactive | |
| XINACTIVE | = lv_xinactive | |
| I_FOB_SEL | = lv_i_fob_sel | |
| XARCHIVE | = lv_xarchive | |
| CHANGING | ||
| PKNOTEN | = lv_pknoten | |
| TABLES | ||
| E_BAUM | = lt_e_baum | |
| E_BAUMTXT | = lt_e_baumtxt | |
| E_ZUORDN | = lt_e_zuordn | |
| E_FOB | = lt_e_fob | |
| EXCEPTIONS | ||
| NO_BPIDS = 1 | ||
| NO_FOBS = 2 | ||
| INTERNAL_ERROR = 3 | ||
| . " RM_FOB_SELECTION | ||
ABAP code using 7.40 inline data declarations to call FM RM_FOB_SELECTION
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 RMBID FROM JBRRMBM INTO @DATA(ld_rmbid). | ||||
| "SELECT single PKNOTEN FROM JBRPHBAUM INTO @DATA(ld_pknoten). | ||||
| "SELECT single PHID FROM JBRPHDEF INTO @DATA(ld_phid). | ||||
| "SELECT single SICHTID FROM JBRSI INTO @DATA(ld_sichtid). | ||||
| DATA(ld_xactive) | = 'X'. | |||
Search for further information about these or an SAP related objects