SAP /ACCGO/CMGL_EVALUATE_DPQS Function Module for Evaluate DPQS for Commingle









/ACCGO/CMGL_EVALUATE_DPQS is a standard /accgo/cmgl evaluate dpqs SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Evaluate DPQS for Commingle 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 /accgo/cmgl evaluate dpqs FM, simply by entering the name /ACCGO/CMGL_EVALUATE_DPQS into the relevant SAP transaction such as SE37 or SE38.

Function Group: /ACCGO/CMGL_APPL
Program Name: /ACCGO/SAPLCMGL_APPL
Main Program: /ACCGO/SAPLCMGL_APPL
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function /ACCGO/CMGL_EVALUATE_DPQS 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 '/ACCGO/CMGL_EVALUATE_DPQS'"Evaluate DPQS for Commingle
EXPORTING
IM_APPLDOC_ITEM_KEY = "Application Document Item Primary Keys
* IM_SOURCE_DPQS = "Schedule ID
* IM_TARGET_DPQS = "Schedule ID
IM_LOGGER = "Class to Maintain Applicaton Logs
IM_QUANTITY = "Weight Value
IM_UOM = "Base Unit of Measure

IMPORTING
EX_ADJUSTED_QTY = "Adjusted Quantity
EX_ADJUSTED_UOM = "Base Unit of Measure

EXCEPTIONS
SCHEDULE_NOT_FOUND = 1 APPDOC_NOT_FOUND = 2
.



IMPORTING Parameters details for /ACCGO/CMGL_EVALUATE_DPQS

IM_APPLDOC_ITEM_KEY - Application Document Item Primary Keys

Data type: /ACCGO/CAS_S_CAI_PK
Optional: No
Call by Reference: Yes

IM_SOURCE_DPQS - Schedule ID

Data type: /ACCGO/E_SCHEDULE_ID
Optional: Yes
Call by Reference: Yes

IM_TARGET_DPQS - Schedule ID

Data type: /ACCGO/E_SCHEDULE_ID
Optional: Yes
Call by Reference: Yes

IM_LOGGER - Class to Maintain Applicaton Logs

Data type: /ACCGO/CL_CMN_LOGGER
Optional: No
Call by Reference: Yes

IM_QUANTITY - Weight Value

Data type: /ACCGO/E_WT_VAL
Optional: No
Call by Reference: Yes

IM_UOM - Base Unit of Measure

Data type: MEINS
Optional: No
Call by Reference: Yes

EXPORTING Parameters details for /ACCGO/CMGL_EVALUATE_DPQS

EX_ADJUSTED_QTY - Adjusted Quantity

Data type: /ACCGO/E_ADJ_QTY
Optional: No
Call by Reference: Yes

EX_ADJUSTED_UOM - Base Unit of Measure

Data type: MEINS
Optional: No
Call by Reference: Yes

EXCEPTIONS details

SCHEDULE_NOT_FOUND -

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

APPDOC_NOT_FOUND -

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

Copy and paste ABAP code example for /ACCGO/CMGL_EVALUATE_DPQS 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_ex_adjusted_qty  TYPE /ACCGO/E_ADJ_QTY, "   
lv_schedule_not_found  TYPE /ACCGO/E_ADJ_QTY, "   
lv_im_appldoc_item_key  TYPE /ACCGO/CAS_S_CAI_PK, "   
lv_im_source_dpqs  TYPE /ACCGO/E_SCHEDULE_ID, "   
lv_ex_adjusted_uom  TYPE MEINS, "   
lv_appdoc_not_found  TYPE MEINS, "   
lv_im_target_dpqs  TYPE /ACCGO/E_SCHEDULE_ID, "   
lv_im_logger  TYPE /ACCGO/CL_CMN_LOGGER, "   
lv_im_quantity  TYPE /ACCGO/E_WT_VAL, "   
lv_im_uom  TYPE MEINS. "   

  CALL FUNCTION '/ACCGO/CMGL_EVALUATE_DPQS'  "Evaluate DPQS for Commingle
    EXPORTING
         IM_APPLDOC_ITEM_KEY = lv_im_appldoc_item_key
         IM_SOURCE_DPQS = lv_im_source_dpqs
         IM_TARGET_DPQS = lv_im_target_dpqs
         IM_LOGGER = lv_im_logger
         IM_QUANTITY = lv_im_quantity
         IM_UOM = lv_im_uom
    IMPORTING
         EX_ADJUSTED_QTY = lv_ex_adjusted_qty
         EX_ADJUSTED_UOM = lv_ex_adjusted_uom
    EXCEPTIONS
        SCHEDULE_NOT_FOUND = 1
        APPDOC_NOT_FOUND = 2
. " /ACCGO/CMGL_EVALUATE_DPQS




ABAP code using 7.40 inline data declarations to call FM /ACCGO/CMGL_EVALUATE_DPQS

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.

 
 
 
 
 
 
 
 
 
 


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!