SAP API_RE_RC_CREATE Function Module for Create Parcel Update









API_RE_RC_CREATE is a standard api re rc 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 Create Parcel Update 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 api re rc create FM, simply by entering the name API_RE_RC_CREATE into the relevant SAP transaction such as SE37 or SE38.

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



Function API_RE_RC_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 'API_RE_RC_CREATE'"Create Parcel Update
EXPORTING
IS_RECORD_CHANGE = "Parcel Update - Internal
* IF_TEST_RUN = ' ' "Simulation Mode
* IF_MSGLIST_INSTEAD_OF_EXC = ' ' "
* IO_MSGLIST = "
* IT_RC_PL_REL = "Change in Holdings - Internal
* IT_PARTNER = "Partner
* IT_TEXT = "Texts/Memos - Internal
* IT_RESUBM_RULE = "Reminder Rules
* IT_STATUS = "Status
* IS_CI_DATA = "Data of CI Include
* IT_EXT_DATA = "Enhancements: Data
* ID_TRANS = "Business Transaction

IMPORTING
ED_RCCATEGORY = "Parcel Update Category(RC, Land Reallocation, Appropriation)
ED_SURVEYOFFICE = "Survey Office
ED_RCNO = "Notice Number for Parcel Update
EF_STORED = "Data has been changed

EXCEPTIONS
ERROR = 1
.



IMPORTING Parameters details for API_RE_RC_CREATE

IS_RECORD_CHANGE - Parcel Update - Internal

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

IF_TEST_RUN - Simulation Mode

Data type: BAPI_RE_ADDITIONAL_FIELDS-TESTRUN
Default: ' '
Optional: Yes
Call by Reference: Yes

IF_MSGLIST_INSTEAD_OF_EXC -

Data type: RECABOOL
Default: ' '
Optional: Yes
Call by Reference: Yes

IO_MSGLIST -

Data type: OBJECT
Optional: Yes
Call by Reference: Yes

IT_RC_PL_REL - Change in Holdings - Internal

Data type: BAPI_RE_T_RC_PL_REL_INT
Optional: Yes
Call by Reference: Yes

IT_PARTNER - Partner

Data type: BAPI_RE_T_PARTNER_INT
Optional: Yes
Call by Reference: Yes

IT_TEXT - Texts/Memos - Internal

Data type: BAPI_RE_T_TEXT_INT
Optional: Yes
Call by Reference: Yes

IT_RESUBM_RULE - Reminder Rules

Data type: BAPI_RE_T_RESUBM_RULE_INT
Optional: Yes
Call by Reference: Yes

IT_STATUS - Status

Data type: BAPI_RE_T_STATUS_INT
Optional: Yes
Call by Reference: Yes

IS_CI_DATA - Data of CI Include

Data type: RELM_RECORD_CHANGE_CI
Optional: Yes
Call by Reference: Yes

IT_EXT_DATA - Enhancements: Data

Data type: RE_T_EXT_DATA
Optional: Yes
Call by Reference: Yes

ID_TRANS - Business Transaction

Data type: BAPI_RE_ADDITIONAL_FIELDS-TRANS
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for API_RE_RC_CREATE

ED_RCCATEGORY - Parcel Update Category(RC, Land Reallocation, Appropriation)

Data type: BAPI_RE_RECORD_CHANGE_INTK-RCCATEGORY
Optional: No
Call by Reference: Yes

ED_SURVEYOFFICE - Survey Office

Data type: BAPI_RE_RECORD_CHANGE_INTK-SURVEYOFFICE
Optional: No
Call by Reference: Yes

ED_RCNO - Notice Number for Parcel Update

Data type: BAPI_RE_RECORD_CHANGE_INTK-RCNO
Optional: No
Call by Reference: Yes

EF_STORED - Data has been changed

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

EXCEPTIONS details

ERROR - Error During Creation

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

Copy and paste ABAP code example for API_RE_RC_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_error  TYPE STRING, "   
lv_ed_rccategory  TYPE BAPI_RE_RECORD_CHANGE_INTK-RCCATEGORY, "   
lv_is_record_change  TYPE BAPI_RE_RECORD_CHANGE_INT, "   
lv_if_test_run  TYPE BAPI_RE_ADDITIONAL_FIELDS-TESTRUN, "   ' '
lv_if_msglist_instead_of_exc  TYPE RECABOOL, "   ' '
lv_io_msglist  TYPE OBJECT, "   
lv_it_rc_pl_rel  TYPE BAPI_RE_T_RC_PL_REL_INT, "   
lv_ed_surveyoffice  TYPE BAPI_RE_RECORD_CHANGE_INTK-SURVEYOFFICE, "   
lv_ed_rcno  TYPE BAPI_RE_RECORD_CHANGE_INTK-RCNO, "   
lv_it_partner  TYPE BAPI_RE_T_PARTNER_INT, "   
lv_it_text  TYPE BAPI_RE_T_TEXT_INT, "   
lv_ef_stored  TYPE RECABOOL, "   
lv_it_resubm_rule  TYPE BAPI_RE_T_RESUBM_RULE_INT, "   
lv_it_status  TYPE BAPI_RE_T_STATUS_INT, "   
lv_is_ci_data  TYPE RELM_RECORD_CHANGE_CI, "   
lv_it_ext_data  TYPE RE_T_EXT_DATA, "   
lv_id_trans  TYPE BAPI_RE_ADDITIONAL_FIELDS-TRANS. "   

  CALL FUNCTION 'API_RE_RC_CREATE'  "Create Parcel Update
    EXPORTING
         IS_RECORD_CHANGE = lv_is_record_change
         IF_TEST_RUN = lv_if_test_run
         IF_MSGLIST_INSTEAD_OF_EXC = lv_if_msglist_instead_of_exc
         IO_MSGLIST = lv_io_msglist
         IT_RC_PL_REL = lv_it_rc_pl_rel
         IT_PARTNER = lv_it_partner
         IT_TEXT = lv_it_text
         IT_RESUBM_RULE = lv_it_resubm_rule
         IT_STATUS = lv_it_status
         IS_CI_DATA = lv_is_ci_data
         IT_EXT_DATA = lv_it_ext_data
         ID_TRANS = lv_id_trans
    IMPORTING
         ED_RCCATEGORY = lv_ed_rccategory
         ED_SURVEYOFFICE = lv_ed_surveyoffice
         ED_RCNO = lv_ed_rcno
         EF_STORED = lv_ef_stored
    EXCEPTIONS
        ERROR = 1
. " API_RE_RC_CREATE




ABAP code using 7.40 inline data declarations to call FM API_RE_RC_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 RCCATEGORY FROM BAPI_RE_RECORD_CHANGE_INTK INTO @DATA(ld_ed_rccategory).
 
 
"SELECT single TESTRUN FROM BAPI_RE_ADDITIONAL_FIELDS INTO @DATA(ld_if_test_run).
DATA(ld_if_test_run) = ' '.
 
DATA(ld_if_msglist_instead_of_exc) = ' '.
 
 
 
"SELECT single SURVEYOFFICE FROM BAPI_RE_RECORD_CHANGE_INTK INTO @DATA(ld_ed_surveyoffice).
 
"SELECT single RCNO FROM BAPI_RE_RECORD_CHANGE_INTK INTO @DATA(ld_ed_rcno).
 
 
 
 
 
 
 
 
"SELECT single TRANS FROM BAPI_RE_ADDITIONAL_FIELDS INTO @DATA(ld_id_trans).
 


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!