SAP /SAPAPO/DM_CP_PUB Function Module for Publish Orders (Application/Event Channel Interface)









/SAPAPO/DM_CP_PUB is a standard /sapapo/dm cp pub SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Publish Orders (Application/Event Channel Interface) 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 cp pub FM, simply by entering the name /SAPAPO/DM_CP_PUB into the relevant SAP transaction such as SE37 or SE38.

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



Function /SAPAPO/DM_CP_PUB 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_CP_PUB'"Publish Orders (Application/Event Channel Interface)
EXPORTING
IV_COLLECT = "sammeln oder direkt versenden
* IV_OVERWRITE_CIF_CUSTOMIZING = GC_FALSE "CIF Customizing mit Collect Parameter übersteuern
* IV_PERFORM_COMMIT = GC_TRUE "boolsche Variable (X=true, -=false, space=unknown)

TABLES
CT_CP = "orders to be published

EXCEPTIONS
CX_SY_SQL_ERROR = 1
.



IMPORTING Parameters details for /SAPAPO/DM_CP_PUB

IV_COLLECT - sammeln oder direkt versenden

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

IV_OVERWRITE_CIF_CUSTOMIZING - CIF Customizing mit Collect Parameter übersteuern

Data type: BOOLEAN
Default: GC_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_PERFORM_COMMIT - boolsche Variable (X=true, -=false, space=unknown)

Data type: BOOLEAN
Default: GC_TRUE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for /SAPAPO/DM_CP_PUB

CT_CP - orders to be published

Data type: /SAPAPO/DM_CP
Optional: No
Call by Reference: Yes

EXCEPTIONS details

CX_SY_SQL_ERROR - SQL error

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for /SAPAPO/DM_CP_PUB 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:
lt_ct_cp  TYPE STANDARD TABLE OF /SAPAPO/DM_CP, "   
lv_iv_collect  TYPE XFLAG, "   
lv_cx_sy_sql_error  TYPE XFLAG, "   
lv_iv_overwrite_cif_customizing  TYPE BOOLEAN, "   GC_FALSE
lv_iv_perform_commit  TYPE BOOLEAN. "   GC_TRUE

  CALL FUNCTION '/SAPAPO/DM_CP_PUB'  "Publish Orders (Application/Event Channel Interface)
    EXPORTING
         IV_COLLECT = lv_iv_collect
         IV_OVERWRITE_CIF_CUSTOMIZING = lv_iv_overwrite_cif_customizing
         IV_PERFORM_COMMIT = lv_iv_perform_commit
    TABLES
         CT_CP = lt_ct_cp
    EXCEPTIONS
        CX_SY_SQL_ERROR = 1
. " /SAPAPO/DM_CP_PUB




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

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.

 
 
 
DATA(ld_iv_overwrite_cif_customizing) = GC_FALSE.
 
DATA(ld_iv_perform_commit) = GC_TRUE.
 


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!