SAP CRS_PRICES_BEF_DATA_TRANSFER Function Module for Implementation of exit CRM_EXIT_BEF_DATA_TRANSFER









CRS_PRICES_BEF_DATA_TRANSFER is a standard crs prices bef data transfer SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Implementation of exit CRM_EXIT_BEF_DATA_TRANSFER 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 crs prices bef data transfer FM, simply by entering the name CRS_PRICES_BEF_DATA_TRANSFER into the relevant SAP transaction such as SE37 or SE38.

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



Function CRS_PRICES_BEF_DATA_TRANSFER 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 'CRS_PRICES_BEF_DATA_TRANSFER'"Implementation of exit CRM_EXIT_BEF_DATA_TRANSFER
EXPORTING
I_OBJ_CLASS = "Object Class
I_OBJ_NAME = "Object name for download
* I_BAPICRMDH2 = "BAPI Structure: Download Header Data
I_KEYWORD_IN = "Keyword for customer enhancements
* I_CRMRFCPAR = "Definitions for RFC Connections

IMPORTING
E_DO_NOT_SEND = "Checkbox

CHANGING
C_BAPICRMDH2 = "BAPI Strucutre: Download Header Data
C_CRMRFCPAR = "Definitions for RFC Connections
C_OBJNAME = "Object name for download
* C_FILTER_MODE = "Filter Mode (Filter Entire Object/Dependent Records)

TABLES
T_INT_TABLES = "Middleware Transaction Container Structure
T_BAPISTRUCT = "Middleware Transaction Container Structure
T_MESSAGES = "BAPI Structure: Messages per Data Record
T_KEY_INFO = "BAPI Structure: Key Information
T_OTHER_INFO = "Container for 'Customer Exit' Parameter
T_BAPIIDLIST = "Key Values
.



IMPORTING Parameters details for CRS_PRICES_BEF_DATA_TRANSFER

I_OBJ_CLASS - Object Class

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

I_OBJ_NAME - Object name for download

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

I_BAPICRMDH2 - BAPI Structure: Download Header Data

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

I_KEYWORD_IN - Keyword for customer enhancements

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

I_CRMRFCPAR - Definitions for RFC Connections

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

EXPORTING Parameters details for CRS_PRICES_BEF_DATA_TRANSFER

E_DO_NOT_SEND - Checkbox

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

CHANGING Parameters details for CRS_PRICES_BEF_DATA_TRANSFER

C_BAPICRMDH2 - BAPI Strucutre: Download Header Data

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

C_CRMRFCPAR - Definitions for RFC Connections

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

C_OBJNAME - Object name for download

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

C_FILTER_MODE - Filter Mode (Filter Entire Object/Dependent Records)

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

TABLES Parameters details for CRS_PRICES_BEF_DATA_TRANSFER

T_INT_TABLES - Middleware Transaction Container Structure

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

T_BAPISTRUCT - Middleware Transaction Container Structure

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

T_MESSAGES - BAPI Structure: Messages per Data Record

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

T_KEY_INFO - BAPI Structure: Key Information

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

T_OTHER_INFO - Container for 'Customer Exit' Parameter

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

T_BAPIIDLIST - Key Values

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

Copy and paste ABAP code example for CRS_PRICES_BEF_DATA_TRANSFER 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_obj_class  TYPE BAPICRMOBJ-OBJCLASS, "   
lv_c_bapicrmdh2  TYPE BAPICRMDH2, "   
lt_t_int_tables  TYPE STANDARD TABLE OF BAPIMTCS, "   
lv_e_do_not_send  TYPE CRM_PARA-XFELD, "   
lv_i_obj_name  TYPE BAPICRMOBJ-OBJ_NAME, "   
lv_c_crmrfcpar  TYPE CRMRFCPAR, "   
lt_t_bapistruct  TYPE STANDARD TABLE OF BAPIMTCS, "   
lv_c_objname  TYPE BAPICRMOBJ-OBJ_NAME, "   
lt_t_messages  TYPE STANDARD TABLE OF BAPICRMMSG, "   
lv_i_bapicrmdh2  TYPE BAPICRMDH2, "   
lt_t_key_info  TYPE STANDARD TABLE OF BAPICRMKEY, "   
lv_i_keyword_in  TYPE CRM_PARA-KEYWORD_IN, "   
lv_c_filter_mode  TYPE CRMFILMOD, "   
lv_i_crmrfcpar  TYPE CRMRFCPAR, "   
lt_t_other_info  TYPE STANDARD TABLE OF BAPIEXTC, "   
lt_t_bapiidlist  TYPE STANDARD TABLE OF BAPIIDLIST. "   

  CALL FUNCTION 'CRS_PRICES_BEF_DATA_TRANSFER'  "Implementation of exit CRM_EXIT_BEF_DATA_TRANSFER
    EXPORTING
         I_OBJ_CLASS = lv_i_obj_class
         I_OBJ_NAME = lv_i_obj_name
         I_BAPICRMDH2 = lv_i_bapicrmdh2
         I_KEYWORD_IN = lv_i_keyword_in
         I_CRMRFCPAR = lv_i_crmrfcpar
    IMPORTING
         E_DO_NOT_SEND = lv_e_do_not_send
    CHANGING
         C_BAPICRMDH2 = lv_c_bapicrmdh2
         C_CRMRFCPAR = lv_c_crmrfcpar
         C_OBJNAME = lv_c_objname
         C_FILTER_MODE = lv_c_filter_mode
    TABLES
         T_INT_TABLES = lt_t_int_tables
         T_BAPISTRUCT = lt_t_bapistruct
         T_MESSAGES = lt_t_messages
         T_KEY_INFO = lt_t_key_info
         T_OTHER_INFO = lt_t_other_info
         T_BAPIIDLIST = lt_t_bapiidlist
. " CRS_PRICES_BEF_DATA_TRANSFER




ABAP code using 7.40 inline data declarations to call FM CRS_PRICES_BEF_DATA_TRANSFER

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 OBJCLASS FROM BAPICRMOBJ INTO @DATA(ld_i_obj_class).
 
 
 
"SELECT single XFELD FROM CRM_PARA INTO @DATA(ld_e_do_not_send).
 
"SELECT single OBJ_NAME FROM BAPICRMOBJ INTO @DATA(ld_i_obj_name).
 
 
 
"SELECT single OBJ_NAME FROM BAPICRMOBJ INTO @DATA(ld_c_objname).
 
 
 
 
"SELECT single KEYWORD_IN FROM CRM_PARA INTO @DATA(ld_i_keyword_in).
 
 
 
 
 


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!