SAP /SAPAPO/DM_CHAR_MAINT_PRF_DL Function Module for Maintenance of CBF Profile









/SAPAPO/DM_CHAR_MAINT_PRF_DL is a standard /sapapo/dm char maint prf dl SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Maintenance of CBF Profile 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 char maint prf dl FM, simply by entering the name /SAPAPO/DM_CHAR_MAINT_PRF_DL into the relevant SAP transaction such as SE37 or SE38.

Function Group: /SAPAPO/DM_CHAR_DISPLAY
Program Name: /SAPAPO/SAPLDM_CHAR_DISPLAY
Main Program: /SAPAPO/SAPLDM_CHAR_DISPLAY
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function /SAPAPO/DM_CHAR_MAINT_PRF_DL 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_CHAR_MAINT_PRF_DL'"Maintenance of CBF Profile
EXPORTING
* IMATNR = "
* ICUBE = "Externe Bezeichnung für den S&D Planungsbereich
* IPRTXT = "
* IDATUM = "
* IAENNR = "
IDISPLAY = "

EXCEPTIONS
NO_RELEV_CHAR_VAL = 1 SYSTEM_ERROR = 2 PROFILE_NOT_FOUND = 3
.



IMPORTING Parameters details for /SAPAPO/DM_CHAR_MAINT_PRF_DL

IMATNR -

Data type: /SAPAPO/DMDISC-MATNR
Optional: Yes
Call by Reference: No ( called with pass by value option)

ICUBE - Externe Bezeichnung für den S&D Planungsbereich

Data type: /SAPAPO/DMDISC-PAREA
Optional: Yes
Call by Reference: No ( called with pass by value option)

IPRTXT -

Data type: /SAPAPO/DMDISC-PROFTXT
Optional: Yes
Call by Reference: No ( called with pass by value option)

IDATUM -

Data type: /SAPAPO/DMDISC-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

IAENNR -

Data type: /SAPAPO/DMDISC-AENNR
Optional: Yes
Call by Reference: No ( called with pass by value option)

IDISPLAY -

Data type: SY-MARKY
Optional: No
Call by Reference: Yes

EXCEPTIONS details

NO_RELEV_CHAR_VAL -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

SYSTEM_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

PROFILE_NOT_FOUND -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for /SAPAPO/DM_CHAR_MAINT_PRF_DL 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_imatnr  TYPE /SAPAPO/DMDISC-MATNR, "   
lv_no_relev_char_val  TYPE /SAPAPO/DMDISC, "   
lv_icube  TYPE /SAPAPO/DMDISC-PAREA, "   
lv_system_error  TYPE /SAPAPO/DMDISC, "   
lv_iprtxt  TYPE /SAPAPO/DMDISC-PROFTXT, "   
lv_profile_not_found  TYPE /SAPAPO/DMDISC, "   
lv_idatum  TYPE /SAPAPO/DMDISC-DATUM, "   
lv_iaennr  TYPE /SAPAPO/DMDISC-AENNR, "   
lv_idisplay  TYPE SY-MARKY. "   

  CALL FUNCTION '/SAPAPO/DM_CHAR_MAINT_PRF_DL'  "Maintenance of CBF Profile
    EXPORTING
         IMATNR = lv_imatnr
         ICUBE = lv_icube
         IPRTXT = lv_iprtxt
         IDATUM = lv_idatum
         IAENNR = lv_iaennr
         IDISPLAY = lv_idisplay
    EXCEPTIONS
        NO_RELEV_CHAR_VAL = 1
        SYSTEM_ERROR = 2
        PROFILE_NOT_FOUND = 3
. " /SAPAPO/DM_CHAR_MAINT_PRF_DL




ABAP code using 7.40 inline data declarations to call FM /SAPAPO/DM_CHAR_MAINT_PRF_DL

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 MATNR FROM /SAPAPO/DMDISC INTO @DATA(ld_imatnr).
 
 
"SELECT single PAREA FROM /SAPAPO/DMDISC INTO @DATA(ld_icube).
 
 
"SELECT single PROFTXT FROM /SAPAPO/DMDISC INTO @DATA(ld_iprtxt).
 
 
"SELECT single DATUM FROM /SAPAPO/DMDISC INTO @DATA(ld_idatum).
 
"SELECT single AENNR FROM /SAPAPO/DMDISC INTO @DATA(ld_iaennr).
 
"SELECT single MARKY FROM SY INTO @DATA(ld_idisplay).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!