SAP CMP_MASS_CREATE Function Module for NOTRANSL: Massenreklamation durchführen









CMP_MASS_CREATE is a standard cmp mass create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Massenreklamation durchführen 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 cmp mass create FM, simply by entering the name CMP_MASS_CREATE into the relevant SAP transaction such as SE37 or SE38.

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



Function CMP_MASS_CREATE 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 'CMP_MASS_CREATE'"NOTRANSL: Massenreklamation durchführen
EXPORTING
* COMPRES = "Area Not More Closely Defined, Possibly Used for Patchlevels
* MLGUT = "Indicator: Empties bill of material
* TESTRUN = "Checkbox
* IMPL_EXIST_SALESDOC = "Checkbox
* IMPL_EXIST_INVOICE = "Checkbox
* EXIT_SALESDOC = "
* EXIT_INVOICE = "
* AUART1 = "Sales Document Type
* FKART1 = "Billing Type
* AUART2 = "Sales Document Type
* FKART2 = "Billing Type
* CMP_KUNAG = "Sold-To Party
* CMP_VRKME = "Sales Unit
* CMP_PRICE = "Condition Rate or Percentage Rate
* CMP_KSCHL = "Condition Type

CHANGING
ITX_VBFS = "Messages from Mass Complaints Processing
IT_XVBRP = "Reference Structure for XVBRP/YVBRP
IT_XKOMV = "Pricing: Communications Condition Record
LS_VBRK = "Billing Document: Header Data
.



IMPORTING Parameters details for CMP_MASS_CREATE

COMPRES - Area Not More Closely Defined, Possibly Used for Patchlevels

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

MLGUT - Indicator: Empties bill of material

Data type: MARA-MLGUT
Optional: Yes
Call by Reference: No ( called with pass by value option)

TESTRUN - Checkbox

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

IMPL_EXIST_SALESDOC - Checkbox

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

IMPL_EXIST_INVOICE - Checkbox

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

EXIT_SALESDOC -

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

EXIT_INVOICE -

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

AUART1 - Sales Document Type

Data type: VBAK-AUART
Optional: Yes
Call by Reference: No ( called with pass by value option)

FKART1 - Billing Type

Data type: VBRK-FKART
Optional: Yes
Call by Reference: No ( called with pass by value option)

AUART2 - Sales Document Type

Data type: VBAK-AUART
Optional: Yes
Call by Reference: No ( called with pass by value option)

FKART2 - Billing Type

Data type: VBRK-FKART
Optional: Yes
Call by Reference: No ( called with pass by value option)

CMP_KUNAG - Sold-To Party

Data type: VBRK-KUNAG
Optional: Yes
Call by Reference: No ( called with pass by value option)

CMP_VRKME - Sales Unit

Data type: VBRP-VRKME
Optional: Yes
Call by Reference: No ( called with pass by value option)

CMP_PRICE - Condition Rate or Percentage Rate

Data type: KOMV-KBETR
Optional: Yes
Call by Reference: No ( called with pass by value option)

CMP_KSCHL - Condition Type

Data type: KOMV-KSCHL
Optional: Yes
Call by Reference: No ( called with pass by value option)

CHANGING Parameters details for CMP_MASS_CREATE

ITX_VBFS - Messages from Mass Complaints Processing

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

IT_XVBRP - Reference Structure for XVBRP/YVBRP

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

IT_XKOMV - Pricing: Communications Condition Record

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

LS_VBRK - Billing Document: Header Data

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

Copy and paste ABAP code example for CMP_MASS_CREATE 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_compres  TYPE CHAR4, "   
lv_itx_vbfs  TYPE CMP_VBFS_EXT_T, "   
lv_mlgut  TYPE MARA-MLGUT, "   
lv_testrun  TYPE XFELD, "   
lv_impl_exist_salesdoc  TYPE XFELD, "   
lv_impl_exist_invoice  TYPE XFELD, "   
lv_exit_salesdoc  TYPE ANY, "   
lv_exit_invoice  TYPE ANY, "   
lv_auart1  TYPE VBAK-AUART, "   
lv_it_xvbrp  TYPE CMP_VBRPVB_T, "   
lv_fkart1  TYPE VBRK-FKART, "   
lv_it_xkomv  TYPE CMP_KOMV_T, "   
lv_auart2  TYPE VBAK-AUART, "   
lv_ls_vbrk  TYPE VBRK, "   
lv_fkart2  TYPE VBRK-FKART, "   
lv_cmp_kunag  TYPE VBRK-KUNAG, "   
lv_cmp_vrkme  TYPE VBRP-VRKME, "   
lv_cmp_price  TYPE KOMV-KBETR, "   
lv_cmp_kschl  TYPE KOMV-KSCHL. "   

  CALL FUNCTION 'CMP_MASS_CREATE'  "NOTRANSL: Massenreklamation durchführen
    EXPORTING
         COMPRES = lv_compres
         MLGUT = lv_mlgut
         TESTRUN = lv_testrun
         IMPL_EXIST_SALESDOC = lv_impl_exist_salesdoc
         IMPL_EXIST_INVOICE = lv_impl_exist_invoice
         EXIT_SALESDOC = lv_exit_salesdoc
         EXIT_INVOICE = lv_exit_invoice
         AUART1 = lv_auart1
         FKART1 = lv_fkart1
         AUART2 = lv_auart2
         FKART2 = lv_fkart2
         CMP_KUNAG = lv_cmp_kunag
         CMP_VRKME = lv_cmp_vrkme
         CMP_PRICE = lv_cmp_price
         CMP_KSCHL = lv_cmp_kschl
    CHANGING
         ITX_VBFS = lv_itx_vbfs
         IT_XVBRP = lv_it_xvbrp
         IT_XKOMV = lv_it_xkomv
         LS_VBRK = lv_ls_vbrk
. " CMP_MASS_CREATE




ABAP code using 7.40 inline data declarations to call FM CMP_MASS_CREATE

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 MLGUT FROM MARA INTO @DATA(ld_mlgut).
 
 
 
 
 
 
"SELECT single AUART FROM VBAK INTO @DATA(ld_auart1).
 
 
"SELECT single FKART FROM VBRK INTO @DATA(ld_fkart1).
 
 
"SELECT single AUART FROM VBAK INTO @DATA(ld_auart2).
 
 
"SELECT single FKART FROM VBRK INTO @DATA(ld_fkart2).
 
"SELECT single KUNAG FROM VBRK INTO @DATA(ld_cmp_kunag).
 
"SELECT single VRKME FROM VBRP INTO @DATA(ld_cmp_vrkme).
 
"SELECT single KBETR FROM KOMV INTO @DATA(ld_cmp_price).
 
"SELECT single KSCHL FROM KOMV INTO @DATA(ld_cmp_kschl).
 


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!