SAP CF_BT_ROUT_FHM_READ_WITH_KEY Function Module for NOTRANSL: Lesen eines Eintrags der FHM-Belegtabelle mit Key im Plan
CF_BT_ROUT_FHM_READ_WITH_KEY is a standard cf bt rout fhm read with key SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Lesen eines Eintrags der FHM-Belegtabelle mit Key im Plan 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 cf bt rout fhm read with key FM, simply by entering the name CF_BT_ROUT_FHM_READ_WITH_KEY into the relevant SAP transaction such as SE37 or SE38.
Function Group: CFBT
Program Name: SAPLCFBT
Main Program: SAPLCFBT
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CF_BT_ROUT_FHM_READ_WITH_KEY 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 'CF_BT_ROUT_FHM_READ_WITH_KEY'"NOTRANSL: Lesen eines Eintrags der FHM-Belegtabelle mit Key im Plan.
EXPORTING
PLNNR = "Task list number
PLNTY = "Task list type
PZLFH = "PRT counter task list allocation PRT
IMPORTING
PLFHD_OUT = "Dialog structure PRT allocation task list
TABIX_OUT = "Index document table entry
FLG_SEL_OUT = "
VBKZ_OUT = "
EXCEPTIONS
FHM_MASTER_NOT_FOUND = 1 NOT_FOUND_PLANFH = 2
IMPORTING Parameters details for CF_BT_ROUT_FHM_READ_WITH_KEY
PLNNR - Task list number
Data type: PLFH-PLNNROptional: No
Call by Reference: No ( called with pass by value option)
PLNTY - Task list type
Data type: PLFH-PLNTYOptional: No
Call by Reference: No ( called with pass by value option)
PZLFH - PRT counter task list allocation PRT
Data type: PLFH-PZLFHOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CF_BT_ROUT_FHM_READ_WITH_KEY
PLFHD_OUT - Dialog structure PRT allocation task list
Data type: PLFHDOptional: No
Call by Reference: No ( called with pass by value option)
TABIX_OUT - Index document table entry
Data type: SY-TABIXOptional: No
Call by Reference: No ( called with pass by value option)
FLG_SEL_OUT -
Data type: PLFHB-FLG_SELOptional: No
Call by Reference: No ( called with pass by value option)
VBKZ_OUT -
Data type: PLFHB-MODKZOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
FHM_MASTER_NOT_FOUND - PRT master does not exist
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOT_FOUND_PLANFH - Document table entry does not exist
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CF_BT_ROUT_FHM_READ_WITH_KEY 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_plnnr | TYPE PLFH-PLNNR, " | |||
| lv_plfhd_out | TYPE PLFHD, " | |||
| lv_fhm_master_not_found | TYPE PLFHD, " | |||
| lv_plnty | TYPE PLFH-PLNTY, " | |||
| lv_tabix_out | TYPE SY-TABIX, " | |||
| lv_not_found_planfh | TYPE SY, " | |||
| lv_pzlfh | TYPE PLFH-PZLFH, " | |||
| lv_flg_sel_out | TYPE PLFHB-FLG_SEL, " | |||
| lv_vbkz_out | TYPE PLFHB-MODKZ. " |
|   CALL FUNCTION 'CF_BT_ROUT_FHM_READ_WITH_KEY' "NOTRANSL: Lesen eines Eintrags der FHM-Belegtabelle mit Key im Plan |
| EXPORTING | ||
| PLNNR | = lv_plnnr | |
| PLNTY | = lv_plnty | |
| PZLFH | = lv_pzlfh | |
| IMPORTING | ||
| PLFHD_OUT | = lv_plfhd_out | |
| TABIX_OUT | = lv_tabix_out | |
| FLG_SEL_OUT | = lv_flg_sel_out | |
| VBKZ_OUT | = lv_vbkz_out | |
| EXCEPTIONS | ||
| FHM_MASTER_NOT_FOUND = 1 | ||
| NOT_FOUND_PLANFH = 2 | ||
| . " CF_BT_ROUT_FHM_READ_WITH_KEY | ||
ABAP code using 7.40 inline data declarations to call FM CF_BT_ROUT_FHM_READ_WITH_KEY
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 PLNNR FROM PLFH INTO @DATA(ld_plnnr). | ||||
| "SELECT single PLNTY FROM PLFH INTO @DATA(ld_plnty). | ||||
| "SELECT single TABIX FROM SY INTO @DATA(ld_tabix_out). | ||||
| "SELECT single PZLFH FROM PLFH INTO @DATA(ld_pzlfh). | ||||
| "SELECT single FLG_SEL FROM PLFHB INTO @DATA(ld_flg_sel_out). | ||||
| "SELECT single MODKZ FROM PLFHB INTO @DATA(ld_vbkz_out). | ||||
Search for further information about these or an SAP related objects