SAP CMPD_CMPGN_SELECTION Function Module for NOTRANSL: Naturalrabattermittlung









CMPD_CMPGN_SELECTION is a standard cmpd cmpgn selection 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: Naturalrabattermittlung 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 cmpd cmpgn selection FM, simply by entering the name CMPD_CMPGN_SELECTION into the relevant SAP transaction such as SE37 or SE38.

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



Function CMPD_CMPGN_SELECTION 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 'CMPD_CMPGN_SELECTION'"NOTRANSL: Naturalrabattermittlung
EXPORTING
I_APPLICATION = "Application
I_DATE = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_DIALOG = 'X' "DE-EN-LANG-SWITCH-NO-TRANSLATION
I_HEADER_COMMUNICATION = "DE-EN-LANG-SWITCH-NO-TRANSLATION
I_ITEM_COMMUNICATION = "DE-EN-LANG-SWITCH-NO-TRANSLATION
I_SCHEME = "Procedure for Campaign Determination
* I_MULTIPLE = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_PROTOCOL = ' ' "DE-EN-LANG-SWITCH-NO-TRANSLATION

IMPORTING
ET_COND_RECORDS = "Table of Campaigns Found
ET_ACCESS_INFO = "Table of Access Information
.



IMPORTING Parameters details for CMPD_CMPGN_SELECTION

I_APPLICATION - Application

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

I_DATE - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

I_DIALOG - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

I_HEADER_COMMUNICATION - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

I_ITEM_COMMUNICATION - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

I_SCHEME - Procedure for Campaign Determination

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

I_MULTIPLE - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

I_PROTOCOL - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

EXPORTING Parameters details for CMPD_CMPGN_SELECTION

ET_COND_RECORDS - Table of Campaigns Found

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

ET_ACCESS_INFO - Table of Access Information

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

Copy and paste ABAP code example for CMPD_CMPGN_SELECTION 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_i_application  TYPE T683-KAPPL, "   
lv_et_cond_records  TYPE KOND3_T, "   
lv_i_date  TYPE SY-DATUM, "   
lv_et_access_info  TYPE KOND3_ACS_T, "   
lv_i_dialog  TYPE KOND3_ACS_T, "   'X'
lv_i_header_communication  TYPE KOMK, "   
lv_i_item_communication  TYPE KOMP, "   
lv_i_scheme  TYPE KALCD, "   
lv_i_multiple  TYPE CMPC_MULT_CAMPAIGN, "   ' '
lv_i_protocol  TYPE CMPC_MULT_CAMPAIGN. "   SPACE

  CALL FUNCTION 'CMPD_CMPGN_SELECTION'  "NOTRANSL: Naturalrabattermittlung
    EXPORTING
         I_APPLICATION = lv_i_application
         I_DATE = lv_i_date
         I_DIALOG = lv_i_dialog
         I_HEADER_COMMUNICATION = lv_i_header_communication
         I_ITEM_COMMUNICATION = lv_i_item_communication
         I_SCHEME = lv_i_scheme
         I_MULTIPLE = lv_i_multiple
         I_PROTOCOL = lv_i_protocol
    IMPORTING
         ET_COND_RECORDS = lv_et_cond_records
         ET_ACCESS_INFO = lv_et_access_info
. " CMPD_CMPGN_SELECTION




ABAP code using 7.40 inline data declarations to call FM CMPD_CMPGN_SELECTION

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 KAPPL FROM T683 INTO @DATA(ld_i_application).
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_i_date).
 
 
DATA(ld_i_dialog) = 'X'.
 
 
 
 
DATA(ld_i_multiple) = ' '.
 
DATA(ld_i_protocol) = ' '.
 


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!