SAP Function Modules

BAPI_RE_PR_CREATE SAP Function module - Create Land







BAPI_RE_PR_CREATE is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name BAPI_RE_PR_CREATE into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: REBD_BAPI_PROPERTY
Released Date: 19.08.2005
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM BAPI_RE_PR_CREATE - BAPI RE PR CREATE





CALL FUNCTION 'BAPI_RE_PR_CREATE' "Create Land
  EXPORTING
    comp_code_ext =             " bapi_re_property_key-comp_code  External: Company Code
    business_entity_number_ext =   " bapi_re_property_key-business_entity  External: Number of Business Entity
*   property_number_ext =       " bapi_re_property_key-property  External: Number of Property
*   property =                  " bapi_re_property_dat  Property - Data
*   object_address =            " bapi_re_obj_address_dat  Address
*   cosettle_param =            " bapi_re_cosettle_par_dat  CO Settlement Rule: Parameter
*   trans =                     " bapi_re_additional_fields-trans  Business Transaction
*   test_run = SPACE            " bapi_re_additional_fields-testrun  Simulation indicator
  IMPORTING
    compcode =                  " bapi_re_property_key-comp_code  Company Code
    businessentitynumber =      " bapi_re_property_key-business_entity  Number of Business Entity
    propertynumber =            " bapi_re_property_key-property  Number of Property Belonging to BE
  TABLES
*   term_org_assignment =       " bapi_re_term_oa_dat  Org. Assignment
*   measurement =               " bapi_re_measurement_dat  Measurements
*   partner =                   " bapi_re_partner_dat  Partner
*   option_rate =               " bapi_re_option_rate_dat  Option Rates
*   cosettle_rule =             " bapi_re_cosettle_rl_dat  CO Settlement Rule: Allocation Rules
*   obj_assign =                " bapi_re_obj_assign_dat  Object Assignment
*   resubm_rule =               " bapi_re_resubm_rule_dat  Reminder Rule
*   arch_rel =                  " bapi_re_arch_rel_dat  Architectural Linkage Objects
*   arch_relms =                " bapi_re_arch_relms_dat  Architectural Linkage Object Parts
*   status =                    " bapi_re_status_dat  Status
*   extension_in =              " bapiparex     Add. Data: Entry
    return =                    " bapiret2      Return Parameters
*   infrastructure =            " bapi_re_infra_dat  Infrastructure
*   charact =                   " bapi_re_charact_dat  Fixt./Fittings Characteristics
    .  "  BAPI_RE_PR_CREATE

ABAP code example for Function Module BAPI_RE_PR_CREATE





The ABAP code below is a full code listing to execute function module BAPI_RE_PR_CREATE including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_compcode  TYPE BAPI_RE_PROPERTY_KEY-COMP_CODE ,
ld_businessentitynumber  TYPE BAPI_RE_PROPERTY_KEY-BUSINESS_ENTITY ,
ld_propertynumber  TYPE BAPI_RE_PROPERTY_KEY-PROPERTY ,
it_term_org_assignment  TYPE STANDARD TABLE OF BAPI_RE_TERM_OA_DAT,"TABLES PARAM
wa_term_org_assignment  LIKE LINE OF it_term_org_assignment ,
it_measurement  TYPE STANDARD TABLE OF BAPI_RE_MEASUREMENT_DAT,"TABLES PARAM
wa_measurement  LIKE LINE OF it_measurement ,
it_partner  TYPE STANDARD TABLE OF BAPI_RE_PARTNER_DAT,"TABLES PARAM
wa_partner  LIKE LINE OF it_partner ,
it_option_rate  TYPE STANDARD TABLE OF BAPI_RE_OPTION_RATE_DAT,"TABLES PARAM
wa_option_rate  LIKE LINE OF it_option_rate ,
it_cosettle_rule  TYPE STANDARD TABLE OF BAPI_RE_COSETTLE_RL_DAT,"TABLES PARAM
wa_cosettle_rule  LIKE LINE OF it_cosettle_rule ,
it_obj_assign  TYPE STANDARD TABLE OF BAPI_RE_OBJ_ASSIGN_DAT,"TABLES PARAM
wa_obj_assign  LIKE LINE OF it_obj_assign ,
it_resubm_rule  TYPE STANDARD TABLE OF BAPI_RE_RESUBM_RULE_DAT,"TABLES PARAM
wa_resubm_rule  LIKE LINE OF it_resubm_rule ,
it_arch_rel  TYPE STANDARD TABLE OF BAPI_RE_ARCH_REL_DAT,"TABLES PARAM
wa_arch_rel  LIKE LINE OF it_arch_rel ,
it_arch_relms  TYPE STANDARD TABLE OF BAPI_RE_ARCH_RELMS_DAT,"TABLES PARAM
wa_arch_relms  LIKE LINE OF it_arch_relms ,
it_status  TYPE STANDARD TABLE OF BAPI_RE_STATUS_DAT,"TABLES PARAM
wa_status  LIKE LINE OF it_status ,
it_extension_in  TYPE STANDARD TABLE OF BAPIPAREX,"TABLES PARAM
wa_extension_in  LIKE LINE OF it_extension_in ,
it_return  TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM
wa_return  LIKE LINE OF it_return ,
it_infrastructure  TYPE STANDARD TABLE OF BAPI_RE_INFRA_DAT,"TABLES PARAM
wa_infrastructure  LIKE LINE OF it_infrastructure ,
it_charact  TYPE STANDARD TABLE OF BAPI_RE_CHARACT_DAT,"TABLES PARAM
wa_charact  LIKE LINE OF it_charact .


DATA(ld_comp_code_ext) = some text here

DATA(ld_business_entity_number_ext) = some text here

DATA(ld_property_number_ext) = some text here
DATA(ld_property) = 'Check type of data required'.
DATA(ld_object_address) = 'Check type of data required'.
DATA(ld_cosettle_param) = 'Check type of data required'.

DATA(ld_trans) = some text here

DATA(ld_test_run) = some text here

"populate fields of struture and append to itab
append wa_term_org_assignment to it_term_org_assignment.

"populate fields of struture and append to itab
append wa_measurement to it_measurement.

"populate fields of struture and append to itab
append wa_partner to it_partner.

"populate fields of struture and append to itab
append wa_option_rate to it_option_rate.

"populate fields of struture and append to itab
append wa_cosettle_rule to it_cosettle_rule.

"populate fields of struture and append to itab
append wa_obj_assign to it_obj_assign.

"populate fields of struture and append to itab
append wa_resubm_rule to it_resubm_rule.

"populate fields of struture and append to itab
append wa_arch_rel to it_arch_rel.

"populate fields of struture and append to itab
append wa_arch_relms to it_arch_relms.

"populate fields of struture and append to itab
append wa_status to it_status.

"populate fields of struture and append to itab
append wa_extension_in to it_extension_in.

"populate fields of struture and append to itab
append wa_return to it_return.

"populate fields of struture and append to itab
append wa_infrastructure to it_infrastructure.

"populate fields of struture and append to itab
append wa_charact to it_charact. . CALL FUNCTION 'BAPI_RE_PR_CREATE' EXPORTING comp_code_ext = ld_comp_code_ext business_entity_number_ext = ld_business_entity_number_ext * property_number_ext = ld_property_number_ext * property = ld_property * object_address = ld_object_address * cosettle_param = ld_cosettle_param * trans = ld_trans * test_run = ld_test_run IMPORTING compcode = ld_compcode businessentitynumber = ld_businessentitynumber propertynumber = ld_propertynumber TABLES * term_org_assignment = it_term_org_assignment * measurement = it_measurement * partner = it_partner * option_rate = it_option_rate * cosettle_rule = it_cosettle_rule * obj_assign = it_obj_assign * resubm_rule = it_resubm_rule * arch_rel = it_arch_rel * arch_relms = it_arch_relms * status = it_status * extension_in = it_extension_in return = it_return * infrastructure = it_infrastructure * charact = it_charact . " BAPI_RE_PR_CREATE
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_compcode  TYPE BAPI_RE_PROPERTY_KEY-COMP_CODE ,
it_term_org_assignment  TYPE STANDARD TABLE OF BAPI_RE_TERM_OA_DAT ,
wa_term_org_assignment  LIKE LINE OF it_term_org_assignment,
ld_comp_code_ext  TYPE BAPI_RE_PROPERTY_KEY-COMP_CODE ,
it_measurement  TYPE STANDARD TABLE OF BAPI_RE_MEASUREMENT_DAT ,
wa_measurement  LIKE LINE OF it_measurement,
ld_business_entity_number_ext  TYPE BAPI_RE_PROPERTY_KEY-BUSINESS_ENTITY ,
ld_businessentitynumber  TYPE BAPI_RE_PROPERTY_KEY-BUSINESS_ENTITY ,
ld_property_number_ext  TYPE BAPI_RE_PROPERTY_KEY-PROPERTY ,
ld_propertynumber  TYPE BAPI_RE_PROPERTY_KEY-PROPERTY ,
it_partner  TYPE STANDARD TABLE OF BAPI_RE_PARTNER_DAT ,
wa_partner  LIKE LINE OF it_partner,
ld_property  TYPE BAPI_RE_PROPERTY_DAT ,
it_option_rate  TYPE STANDARD TABLE OF BAPI_RE_OPTION_RATE_DAT ,
wa_option_rate  LIKE LINE OF it_option_rate,
ld_object_address  TYPE BAPI_RE_OBJ_ADDRESS_DAT ,
it_cosettle_rule  TYPE STANDARD TABLE OF BAPI_RE_COSETTLE_RL_DAT ,
wa_cosettle_rule  LIKE LINE OF it_cosettle_rule,
ld_cosettle_param  TYPE BAPI_RE_COSETTLE_PAR_DAT ,
it_obj_assign  TYPE STANDARD TABLE OF BAPI_RE_OBJ_ASSIGN_DAT ,
wa_obj_assign  LIKE LINE OF it_obj_assign,
ld_trans  TYPE BAPI_RE_ADDITIONAL_FIELDS-TRANS ,
it_resubm_rule  TYPE STANDARD TABLE OF BAPI_RE_RESUBM_RULE_DAT ,
wa_resubm_rule  LIKE LINE OF it_resubm_rule,
ld_test_run  TYPE BAPI_RE_ADDITIONAL_FIELDS-TESTRUN ,
it_arch_rel  TYPE STANDARD TABLE OF BAPI_RE_ARCH_REL_DAT ,
wa_arch_rel  LIKE LINE OF it_arch_rel,
it_arch_relms  TYPE STANDARD TABLE OF BAPI_RE_ARCH_RELMS_DAT ,
wa_arch_relms  LIKE LINE OF it_arch_relms,
it_status  TYPE STANDARD TABLE OF BAPI_RE_STATUS_DAT ,
wa_status  LIKE LINE OF it_status,
it_extension_in  TYPE STANDARD TABLE OF BAPIPAREX ,
wa_extension_in  LIKE LINE OF it_extension_in,
it_return  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_return  LIKE LINE OF it_return,
it_infrastructure  TYPE STANDARD TABLE OF BAPI_RE_INFRA_DAT ,
wa_infrastructure  LIKE LINE OF it_infrastructure,
it_charact  TYPE STANDARD TABLE OF BAPI_RE_CHARACT_DAT ,
wa_charact  LIKE LINE OF it_charact.


"populate fields of struture and append to itab
append wa_term_org_assignment to it_term_org_assignment.

ld_comp_code_ext = some text here

"populate fields of struture and append to itab
append wa_measurement to it_measurement.

ld_business_entity_number_ext = some text here

ld_property_number_ext = some text here

"populate fields of struture and append to itab
append wa_partner to it_partner.
ld_property = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_option_rate to it_option_rate.
ld_object_address = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_cosettle_rule to it_cosettle_rule.
ld_cosettle_param = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_obj_assign to it_obj_assign.

ld_trans = some text here

"populate fields of struture and append to itab
append wa_resubm_rule to it_resubm_rule.

ld_test_run = some text here

"populate fields of struture and append to itab
append wa_arch_rel to it_arch_rel.

"populate fields of struture and append to itab
append wa_arch_relms to it_arch_relms.

"populate fields of struture and append to itab
append wa_status to it_status.

"populate fields of struture and append to itab
append wa_extension_in to it_extension_in.

"populate fields of struture and append to itab
append wa_return to it_return.

"populate fields of struture and append to itab
append wa_infrastructure to it_infrastructure.

"populate fields of struture and append to itab
append wa_charact to it_charact.

SAP Documentation for FM BAPI_RE_PR_CREATE


This BAPI allows you to create land in the system. ...See here for full SAP fm documentation

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name BAPI_RE_PR_CREATE or its description.