SAP /SAPAPO/DM_GIVE_COLL_PROFCOMB Function Module for Specifies Valid Profile Combinations for a Period, Incl. Profile Changes
/SAPAPO/DM_GIVE_COLL_PROFCOMB is a standard /sapapo/dm give coll profcomb SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Specifies Valid Profile Combinations for a Period, Incl. Profile Changes 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 give coll profcomb FM, simply by entering the name /SAPAPO/DM_GIVE_COLL_PROFCOMB 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_GIVE_COLL_PROFCOMB 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_GIVE_COLL_PROFCOMB'"Specifies Valid Profile Combinations for a Period, Incl. Profile Changes.
EXPORTING
IV_PROFILE = "CBF-Profil, fuer das die Merkmale und Kombinationen bestimmt werden
IV_FROM_DATE = "Beginn des Planungszeitraums
IV_TO_DATE = "Ende des Planungszeitraums
* IF_ALL_C_LAST_TABLES = "falls gesetzt, dann nur letzten Pl.ZR und alle 'passenden' Komb. ausgeben
TABLES
ET_COLL_CHARS = "alle Merkmale, die in dem Zeitraum jemals gueltig sind
ET_GEN_PROFCOMB = "allgemeinsten Profilkombinationen, die in dem Zeitraum gueltig sind
EXCEPTIONS
INHERITED_ERROR = 1
IMPORTING Parameters details for /SAPAPO/DM_GIVE_COLL_PROFCOMB
IV_PROFILE - CBF-Profil, fuer das die Merkmale und Kombinationen bestimmt werden
Data type: /SAPAPO/PROFILIDOptional: No
Call by Reference: Yes
IV_FROM_DATE - Beginn des Planungszeitraums
Data type: SY-DATUMOptional: No
Call by Reference: Yes
IV_TO_DATE - Ende des Planungszeitraums
Data type: SY-DATUMOptional: No
Call by Reference: Yes
IF_ALL_C_LAST_TABLES - falls gesetzt, dann nur letzten Pl.ZR und alle 'passenden' Komb. ausgeben
Data type: COptional: Yes
Call by Reference: Yes
TABLES Parameters details for /SAPAPO/DM_GIVE_COLL_PROFCOMB
ET_COLL_CHARS - alle Merkmale, die in dem Zeitraum jemals gueltig sind
Data type: /SAPAPO/MV_PROF_CHARS_SELTABOptional: No
Call by Reference: No ( called with pass by value option)
ET_GEN_PROFCOMB - allgemeinsten Profilkombinationen, die in dem Zeitraum gueltig sind
Data type: /SAPAPO/MV_PROF_CHARS_SELTABOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
INHERITED_ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for /SAPAPO/DM_GIVE_COLL_PROFCOMB 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_profile | TYPE /SAPAPO/PROFILID, " | |||
| lt_et_coll_chars | TYPE STANDARD TABLE OF /SAPAPO/MV_PROF_CHARS_SELTAB, " | |||
| lv_inherited_error | TYPE /SAPAPO/MV_PROF_CHARS_SELTAB, " | |||
| lv_iv_from_date | TYPE SY-DATUM, " | |||
| lt_et_gen_profcomb | TYPE STANDARD TABLE OF /SAPAPO/MV_PROF_CHARS_SELTAB, " | |||
| lv_iv_to_date | TYPE SY-DATUM, " | |||
| lv_if_all_c_last_tables | TYPE C. " |
|   CALL FUNCTION '/SAPAPO/DM_GIVE_COLL_PROFCOMB' "Specifies Valid Profile Combinations for a Period, Incl. Profile Changes |
| EXPORTING | ||
| IV_PROFILE | = lv_iv_profile | |
| IV_FROM_DATE | = lv_iv_from_date | |
| IV_TO_DATE | = lv_iv_to_date | |
| IF_ALL_C_LAST_TABLES | = lv_if_all_c_last_tables | |
| TABLES | ||
| ET_COLL_CHARS | = lt_et_coll_chars | |
| ET_GEN_PROFCOMB | = lt_et_gen_profcomb | |
| EXCEPTIONS | ||
| INHERITED_ERROR = 1 | ||
| . " /SAPAPO/DM_GIVE_COLL_PROFCOMB | ||
ABAP code using 7.40 inline data declarations to call FM /SAPAPO/DM_GIVE_COLL_PROFCOMB
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 DATUM FROM SY INTO @DATA(ld_iv_from_date). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_iv_to_date). | ||||
Search for further information about these or an SAP related objects