SAP FTI_LDB_PB_SEL_PULL_DATA Function Module for Select Data for List of Cash Balance Items
FTI_LDB_PB_SEL_PULL_DATA is a standard fti ldb pb sel pull data SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Select Data for List of Cash Balance Items 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 fti ldb pb sel pull data FM, simply by entering the name FTI_LDB_PB_SEL_PULL_DATA into the relevant SAP transaction such as SE37 or SE38.
Function Group: FTI_LDB_PB_SEL
Program Name: SAPLFTI_LDB_PB_SEL
Main Program: SAPLFTI_LDB_PB_SEL
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function FTI_LDB_PB_SEL_PULL_DATA 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 'FTI_LDB_PB_SEL_PULL_DATA'"Select Data for List of Cash Balance Items.
EXPORTING
IM_WA_REPORTING_MODE = "Single-Character Indicator
* IM_DAT_LIST = "Key Date and Key Date Reference
IM_TAB_DIFV_POS_IDENT = "Table Type: DIFV_POS_IDENT Standard
* IM_TAB_HREL_POS_UID = "Hedge Relation Position Guid
* IM_CPROG = "Calling Program
IM_SELECTION_POSITIONS = "Field Name with Select Option
* IM_SELECTION_FLOWS = "Field Name with Select Option
IM_TAB_CCSF_POSITIONS = "Fields to be Selected
* IM_TAB_CCSF_FLOWS = "Fields to be Selected
* IM_FLG_ZERO_POSITIONS = "Single-Character Indicator
* IM_FLG_POS_WITH_FLOWS = "gesetzt: nur Positionen mit Bewegungen werden selektiert
IM_WA_VALUATION_AREA = "Valuation Area
* IM_DATIN_LIST = "Key Date Reference, Daily Evaluation, and Period Table
TABLES
* EX_TAB_REPORTING_VALUES = "Table Type: Treasury: Positions (-> LDB)
* EX_TAB_REPORTING_PL_FLOWS_2 = "Treasury: Revenue Information for Several Time Intervals
* EX_TAB_REPORTING_CASH_FLOW_2 = "Operative CFM: Payments
* EX_TAB_REPORTING_POS1_VALUES = "###Position projection table type
* EX_TAB_REPORTING_FLOWS = "Table Type: Treasury: Flow Information (-> LDB)
* EX_TAB_REPORTING_FLOWS_1 = "Treasury: Flow Information Projection (-> LDB)
* EX_TAB_REPORTING_PL_FLOWS = "Treasury: Revenue Information for Several Time Intervals
* EX_TAB_REPORTING_CASH_FLOW = "Operative CFM: Payments
* EX_TAB_MESSAGE = "Table Type for Error Handling
* EX_TAB_REPORTING_POS2_VALUES = "Treasury: Positions (-> LDB) + addtnl pos attrs
* EX_TAB_REPORTING_FLOWS_2 = "Table Type: Treasury: Flow Information (-> LDB)
EXCEPTIONS
IMPORT_NOT_SUFFICIENT = 1
IMPORTING Parameters details for FTI_LDB_PB_SEL_PULL_DATA
IM_WA_REPORTING_MODE - Single-Character Indicator
Data type: FTI_LDB_REPORTING_MODEOptional: No
Call by Reference: No ( called with pass by value option)
IM_DAT_LIST - Key Date and Key Date Reference
Data type: FTI_YT_DATUMOptional: Yes
Call by Reference: No ( called with pass by value option)
IM_TAB_DIFV_POS_IDENT - Table Type: DIFV_POS_IDENT Standard
Data type: DIFY_POS_IDENT_STANDARDOptional: No
Call by Reference: No ( called with pass by value option)
IM_TAB_HREL_POS_UID - Hedge Relation Position Guid
Data type: FTIY_LDB_HREL_POS_GUIDOptional: Yes
Call by Reference: No ( called with pass by value option)
IM_CPROG - Calling Program
Data type: SYCPROGOptional: Yes
Call by Reference: No ( called with pass by value option)
IM_SELECTION_POSITIONS - Field Name with Select Option
Data type: FTI_YT_RSDS_FRANGEOptional: No
Call by Reference: No ( called with pass by value option)
IM_SELECTION_FLOWS - Field Name with Select Option
Data type: FTI_YT_RSDS_FRANGEOptional: Yes
Call by Reference: No ( called with pass by value option)
IM_TAB_CCSF_POSITIONS - Fields to be Selected
Data type: FTI_YT_SELECTED_FIELDSOptional: No
Call by Reference: No ( called with pass by value option)
IM_TAB_CCSF_FLOWS - Fields to be Selected
Data type: FTI_YT_SELECTED_FIELDSOptional: Yes
Call by Reference: No ( called with pass by value option)
IM_FLG_ZERO_POSITIONS - Single-Character Indicator
Data type: CHAR1Optional: Yes
Call by Reference: No ( called with pass by value option)
IM_FLG_POS_WITH_FLOWS - gesetzt: nur Positionen mit Bewegungen werden selektiert
Data type: FTI_FLG_ONLY_POS_WITH_FLOWSOptional: Yes
Call by Reference: No ( called with pass by value option)
IM_WA_VALUATION_AREA - Valuation Area
Data type: TPM_VAL_AREAOptional: No
Call by Reference: No ( called with pass by value option)
IM_DATIN_LIST - Key Date Reference, Daily Evaluation, and Period Table
Data type: FTI_YS_DATIN_INVOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for FTI_LDB_PB_SEL_PULL_DATA
EX_TAB_REPORTING_VALUES - Table Type: Treasury: Positions (-> LDB)
Data type: FTI_LDB_TR_POSITIONS_TOptional: Yes
Call by Reference: Yes
EX_TAB_REPORTING_PL_FLOWS_2 - Treasury: Revenue Information for Several Time Intervals
Data type: FTI_LDB_TR_PL_CF_2_INTERVALS_TOptional: Yes
Call by Reference: Yes
EX_TAB_REPORTING_CASH_FLOW_2 - Operative CFM: Payments
Data type: VTVDETA_TR_CF_T_2Optional: Yes
Call by Reference: Yes
EX_TAB_REPORTING_POS1_VALUES - ###Position projection table type
Data type: FTI_LDB_TR_POSITIONS_1_TOptional: Yes
Call by Reference: Yes
EX_TAB_REPORTING_FLOWS - Table Type: Treasury: Flow Information (-> LDB)
Data type: FTI_LDB_TR_PERIOD_FLOWS_TOptional: Yes
Call by Reference: Yes
EX_TAB_REPORTING_FLOWS_1 - Treasury: Flow Information Projection (-> LDB)
Data type: FTI_LDB_TR_PERIOD_FLOWS_1_TOptional: Yes
Call by Reference: Yes
EX_TAB_REPORTING_PL_FLOWS - Treasury: Revenue Information for Several Time Intervals
Data type: FTI_LDB_TR_PL_CF_INTERVALS_TOptional: Yes
Call by Reference: Yes
EX_TAB_REPORTING_CASH_FLOW - Operative CFM: Payments
Data type: VTVDETA_TR_CF_TOptional: Yes
Call by Reference: Yes
EX_TAB_MESSAGE - Table Type for Error Handling
Data type: BAPIERR_TOptional: Yes
Call by Reference: Yes
EX_TAB_REPORTING_POS2_VALUES - Treasury: Positions (-> LDB) + addtnl pos attrs
Data type: FTI_LDB_TR_POSITIONS_2_TOptional: Yes
Call by Reference: Yes
EX_TAB_REPORTING_FLOWS_2 - Table Type: Treasury: Flow Information (-> LDB)
Data type: FTI_LDB_TR_PERIOD_FLOWS_2_TOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
IMPORT_NOT_SUFFICIENT - Importvariablen nicht korrekt befüllt
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FTI_LDB_PB_SEL_PULL_DATA 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_im_wa_reporting_mode | TYPE FTI_LDB_REPORTING_MODE, " | |||
| lv_import_not_sufficient | TYPE FTI_LDB_REPORTING_MODE, " | |||
| lt_ex_tab_reporting_values | TYPE STANDARD TABLE OF FTI_LDB_TR_POSITIONS_T, " | |||
| lv_im_dat_list | TYPE FTI_YT_DATUM, " | |||
| lt_ex_tab_reporting_pl_flows_2 | TYPE STANDARD TABLE OF FTI_LDB_TR_PL_CF_2_INTERVALS_T, " | |||
| lv_im_tab_difv_pos_ident | TYPE DIFY_POS_IDENT_STANDARD, " | |||
| lt_ex_tab_reporting_cash_flow_2 | TYPE STANDARD TABLE OF VTVDETA_TR_CF_T_2, " | |||
| lv_im_tab_hrel_pos_uid | TYPE FTIY_LDB_HREL_POS_GUID, " | |||
| lv_im_cprog | TYPE SYCPROG, " | |||
| lv_im_selection_positions | TYPE FTI_YT_RSDS_FRANGE, " | |||
| lt_ex_tab_reporting_pos1_values | TYPE STANDARD TABLE OF FTI_LDB_TR_POSITIONS_1_T, " | |||
| lv_im_selection_flows | TYPE FTI_YT_RSDS_FRANGE, " | |||
| lt_ex_tab_reporting_flows | TYPE STANDARD TABLE OF FTI_LDB_TR_PERIOD_FLOWS_T, " | |||
| lv_im_tab_ccsf_positions | TYPE FTI_YT_SELECTED_FIELDS, " | |||
| lt_ex_tab_reporting_flows_1 | TYPE STANDARD TABLE OF FTI_LDB_TR_PERIOD_FLOWS_1_T, " | |||
| lv_im_tab_ccsf_flows | TYPE FTI_YT_SELECTED_FIELDS, " | |||
| lt_ex_tab_reporting_pl_flows | TYPE STANDARD TABLE OF FTI_LDB_TR_PL_CF_INTERVALS_T, " | |||
| lv_im_flg_zero_positions | TYPE CHAR1, " | |||
| lt_ex_tab_reporting_cash_flow | TYPE STANDARD TABLE OF VTVDETA_TR_CF_T, " | |||
| lt_ex_tab_message | TYPE STANDARD TABLE OF BAPIERR_T, " | |||
| lv_im_flg_pos_with_flows | TYPE FTI_FLG_ONLY_POS_WITH_FLOWS, " | |||
| lv_im_wa_valuation_area | TYPE TPM_VAL_AREA, " | |||
| lt_ex_tab_reporting_pos2_values | TYPE STANDARD TABLE OF FTI_LDB_TR_POSITIONS_2_T, " | |||
| lv_im_datin_list | TYPE FTI_YS_DATIN_INV, " | |||
| lt_ex_tab_reporting_flows_2 | TYPE STANDARD TABLE OF FTI_LDB_TR_PERIOD_FLOWS_2_T. " |
|   CALL FUNCTION 'FTI_LDB_PB_SEL_PULL_DATA' "Select Data for List of Cash Balance Items |
| EXPORTING | ||
| IM_WA_REPORTING_MODE | = lv_im_wa_reporting_mode | |
| IM_DAT_LIST | = lv_im_dat_list | |
| IM_TAB_DIFV_POS_IDENT | = lv_im_tab_difv_pos_ident | |
| IM_TAB_HREL_POS_UID | = lv_im_tab_hrel_pos_uid | |
| IM_CPROG | = lv_im_cprog | |
| IM_SELECTION_POSITIONS | = lv_im_selection_positions | |
| IM_SELECTION_FLOWS | = lv_im_selection_flows | |
| IM_TAB_CCSF_POSITIONS | = lv_im_tab_ccsf_positions | |
| IM_TAB_CCSF_FLOWS | = lv_im_tab_ccsf_flows | |
| IM_FLG_ZERO_POSITIONS | = lv_im_flg_zero_positions | |
| IM_FLG_POS_WITH_FLOWS | = lv_im_flg_pos_with_flows | |
| IM_WA_VALUATION_AREA | = lv_im_wa_valuation_area | |
| IM_DATIN_LIST | = lv_im_datin_list | |
| TABLES | ||
| EX_TAB_REPORTING_VALUES | = lt_ex_tab_reporting_values | |
| EX_TAB_REPORTING_PL_FLOWS_2 | = lt_ex_tab_reporting_pl_flows_2 | |
| EX_TAB_REPORTING_CASH_FLOW_2 | = lt_ex_tab_reporting_cash_flow_2 | |
| EX_TAB_REPORTING_POS1_VALUES | = lt_ex_tab_reporting_pos1_values | |
| EX_TAB_REPORTING_FLOWS | = lt_ex_tab_reporting_flows | |
| EX_TAB_REPORTING_FLOWS_1 | = lt_ex_tab_reporting_flows_1 | |
| EX_TAB_REPORTING_PL_FLOWS | = lt_ex_tab_reporting_pl_flows | |
| EX_TAB_REPORTING_CASH_FLOW | = lt_ex_tab_reporting_cash_flow | |
| EX_TAB_MESSAGE | = lt_ex_tab_message | |
| EX_TAB_REPORTING_POS2_VALUES | = lt_ex_tab_reporting_pos2_values | |
| EX_TAB_REPORTING_FLOWS_2 | = lt_ex_tab_reporting_flows_2 | |
| EXCEPTIONS | ||
| IMPORT_NOT_SUFFICIENT = 1 | ||
| . " FTI_LDB_PB_SEL_PULL_DATA | ||
ABAP code using 7.40 inline data declarations to call FM FTI_LDB_PB_SEL_PULL_DATA
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