SAP REXC_MS_DATA_CREATE Function Module for









REXC_MS_DATA_CREATE is a standard rexc ms data create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 rexc ms data create FM, simply by entering the name REXC_MS_DATA_CREATE into the relevant SAP transaction such as SE37 or SE38.

Function Group: REXC_MS_DATA_TRANSFER
Program Name: SAPLREXC_MS_DATA_TRANSFER
Main Program: SAPLREXC_MS_DATA_TRANSFER
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function REXC_MS_DATA_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 'REXC_MS_DATA_CREATE'"
EXPORTING
COMP_CODE = "
BUSINESS_ENTITY = "
* BUILDING = "
* PARTICIP_GROUP = "
SCHEME = "
CALC_YEAR = "
* SET_ACTIVE = 'X' "

TABLES
SINGLE_DOC = "
RETURN = "
.



IMPORTING Parameters details for REXC_MS_DATA_CREATE

COMP_CODE -

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

BUSINESS_ENTITY -

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

BUILDING -

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

PARTICIP_GROUP -

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

SCHEME -

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

CALC_YEAR -

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

SET_ACTIVE -

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

TABLES Parameters details for REXC_MS_DATA_CREATE

SINGLE_DOC -

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

RETURN -

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

Copy and paste ABAP code example for REXC_MS_DATA_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_comp_code  TYPE REXC_MS_DATA_TRANSFER_KEY-COMP_CODE, "   
lt_single_doc  TYPE STANDARD TABLE OF REXC_MS_SINGLE_DOC_DAT, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_business_entity  TYPE REXC_MS_DATA_TRANSFER_KEY-BUSINESS_ENTITY, "   
lv_building  TYPE REXC_MS_DATA_TRANSFER_KEY-BUILDING, "   
lv_particip_group  TYPE REXC_MS_DATA_TRANSFER_KEY-PARTICIP_GROUP, "   
lv_scheme  TYPE REXC_MS_DATA_TRANSFER_KEY-SCHEME, "   
lv_calc_year  TYPE REXC_MS_DATA_TRANSFER_KEY-CALC_YEAR, "   
lv_set_active  TYPE BOOLEAN. "   'X'

  CALL FUNCTION 'REXC_MS_DATA_CREATE'  "
    EXPORTING
         COMP_CODE = lv_comp_code
         BUSINESS_ENTITY = lv_business_entity
         BUILDING = lv_building
         PARTICIP_GROUP = lv_particip_group
         SCHEME = lv_scheme
         CALC_YEAR = lv_calc_year
         SET_ACTIVE = lv_set_active
    TABLES
         SINGLE_DOC = lt_single_doc
         RETURN = lt_return
. " REXC_MS_DATA_CREATE




ABAP code using 7.40 inline data declarations to call FM REXC_MS_DATA_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 COMP_CODE FROM REXC_MS_DATA_TRANSFER_KEY INTO @DATA(ld_comp_code).
 
 
 
"SELECT single BUSINESS_ENTITY FROM REXC_MS_DATA_TRANSFER_KEY INTO @DATA(ld_business_entity).
 
"SELECT single BUILDING FROM REXC_MS_DATA_TRANSFER_KEY INTO @DATA(ld_building).
 
"SELECT single PARTICIP_GROUP FROM REXC_MS_DATA_TRANSFER_KEY INTO @DATA(ld_particip_group).
 
"SELECT single SCHEME FROM REXC_MS_DATA_TRANSFER_KEY INTO @DATA(ld_scheme).
 
"SELECT single CALC_YEAR FROM REXC_MS_DATA_TRANSFER_KEY INTO @DATA(ld_calc_year).
 
DATA(ld_set_active) = 'X'.
 


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!