SAP /SAPAPO/DM_CHECK_DNF_COMB Function Module for Check DNF Combination Against Profile ID
/SAPAPO/DM_CHECK_DNF_COMB is a standard /sapapo/dm check dnf comb SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Check DNF Combination Against Profile ID 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 /sapapo/dm check dnf comb FM, simply by entering the name /SAPAPO/DM_CHECK_DNF_COMB into the relevant SAP transaction such as SE37 or SE38.
Function Group: /SAPAPO/DM_CHAR_VAL_SEL
Program Name: /SAPAPO/SAPLDM_CHAR_VAL_SEL
Main Program: /SAPAPO/SAPLDM_CHAR_VAL_SEL
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function /SAPAPO/DM_CHECK_DNF_COMB 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 '/SAPAPO/DM_CHECK_DNF_COMB'"Check DNF Combination Against Profile ID.
EXPORTING
* USE_BUFFERED_PROFID = "benutze Priofile, die in der FG gepuffert sind
* IV_DATE = '29990101' "Gueltigkeitsdatum fuer Profil, falls nicht angegeben
CHANGING
IV_PROFID = "Profil, gegen das DNF geprueft wird
TABLES
* DNF_COMB_TAB = "Tabelle mit Kombinationen in DNF
* DNF_COMB_TAB_EXT = "Tabelle mit Kombinationen in DNF
EXCEPTIONS
PROFILE_NOT_FOUND = 1 INHERITED_ERROR = 2
IMPORTING Parameters details for /SAPAPO/DM_CHECK_DNF_COMB
USE_BUFFERED_PROFID - benutze Priofile, die in der FG gepuffert sind
Data type: COptional: Yes
Call by Reference: Yes
IV_DATE - Gueltigkeitsdatum fuer Profil, falls nicht angegeben
Data type: SY-DATUMDefault: '29990101'
Optional: Yes
Call by Reference: Yes
CHANGING Parameters details for /SAPAPO/DM_CHECK_DNF_COMB
IV_PROFID - Profil, gegen das DNF geprueft wird
Data type: /SAPAPO/PHVP-PROFILIDOptional: No
Call by Reference: Yes
TABLES Parameters details for /SAPAPO/DM_CHECK_DNF_COMB
DNF_COMB_TAB - Tabelle mit Kombinationen in DNF
Data type: /SAPAPO/MV_PROF_CHARS_SELTABOptional: Yes
Call by Reference: Yes
DNF_COMB_TAB_EXT - Tabelle mit Kombinationen in DNF
Data type: /SAPAPO/MV_VAL_CHARS_SELTABOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
PROFILE_NOT_FOUND - Profil entweder in FG nicht bekannt oder nicht auffindbar
Data type:Optional: No
Call by Reference: Yes
INHERITED_ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for /SAPAPO/DM_CHECK_DNF_COMB 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_iv_profid | TYPE /SAPAPO/PHVP-PROFILID, " | |||
| lt_dnf_comb_tab | TYPE STANDARD TABLE OF /SAPAPO/MV_PROF_CHARS_SELTAB, " | |||
| lv_profile_not_found | TYPE /SAPAPO/MV_PROF_CHARS_SELTAB, " | |||
| lv_use_buffered_profid | TYPE C, " | |||
| lv_iv_date | TYPE SY-DATUM, " '29990101' | |||
| lv_inherited_error | TYPE SY, " | |||
| lt_dnf_comb_tab_ext | TYPE STANDARD TABLE OF /SAPAPO/MV_VAL_CHARS_SELTAB. " |
|   CALL FUNCTION '/SAPAPO/DM_CHECK_DNF_COMB' "Check DNF Combination Against Profile ID |
| EXPORTING | ||
| USE_BUFFERED_PROFID | = lv_use_buffered_profid | |
| IV_DATE | = lv_iv_date | |
| CHANGING | ||
| IV_PROFID | = lv_iv_profid | |
| TABLES | ||
| DNF_COMB_TAB | = lt_dnf_comb_tab | |
| DNF_COMB_TAB_EXT | = lt_dnf_comb_tab_ext | |
| EXCEPTIONS | ||
| PROFILE_NOT_FOUND = 1 | ||
| INHERITED_ERROR = 2 | ||
| . " /SAPAPO/DM_CHECK_DNF_COMB | ||
ABAP code using 7.40 inline data declarations to call FM /SAPAPO/DM_CHECK_DNF_COMB
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 PROFILID FROM /SAPAPO/PHVP INTO @DATA(ld_iv_profid). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_iv_date). | ||||
| DATA(ld_iv_date) | = '29990101'. | |||
Search for further information about these or an SAP related objects