SAP Function Modules

ALE_RE_RO_CREATE SAP Function module







ALE_RE_RO_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 ALE_RE_RO_CREATE into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: REBD_BAPI_RENTAL_OBJECT
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM ALE_RE_RO_CREATE - ALE RE RO CREATE





CALL FUNCTION 'ALE_RE_RO_CREATE' "
  EXPORTING
    compcodeext =               " bapi_re_rental_object_key-comp_code
    businessentitynumberext =   " bapi_re_rental_object_key-business_entity
    rentalobjecttype =          " bapi_re_rental_object_key-rental_object_type
    usagetype =                 " bapi_re_rental_object_key-usage_type
*   rentalobjectnumberext =     " bapi_re_rental_object_key-rental_object
*   poolspacenumberext =        " bapi_re_rental_object_key-pool_space
*   rentalobject =              " bapi_re_rental_object_dat
*   objectaddress =             " bapi_re_obj_address_dat
*   cosettleparam =             " bapi_re_cosettle_par_dat
*   trans =                     " bapi_re_additional_fields-trans  Business Transaction
*   testrun = SPACE             " bapi_re_additional_fields-testrun
*   obj_type = 'BUS1504'        " serial-obj_type
*   serial_id = '0'             " serial-chnum
  TABLES
*   termorgassignment =         " bapi_re_term_oa_dat
*   termpayment =               " bapi_re_term_py_dat
*   termrhythm =                " bapi_re_term_rh_dat
*   termvacancy =               " bapi_re_term_oc_dat
*   termadjustment =            " bapi_re_term_aj_dat
*   measurement =               " bapi_re_measurement_dat  Measurements
*   partner =                   " bapi_re_partner_dat  Partner
*   optionrate =                " bapi_re_option_rate_dat
*   cosettlerule =              " bapi_re_cosettle_rl_dat
*   charact =                   " bapi_re_charact_dat  Fixtures and Fittings Characteristics
*   condition =                 " bapi_re_condition_dat  Conditions
*   objassign =                 " bapi_re_obj_assign_dat
*   occupancy =                 " bapi_re_occupancy_dat  Occupancy
*   measpt =                    " bapi_re_measpt_dat  Measuring Point
*   measptrel =                 " bapi_re_measpt_rel_dat
*   resubmrule =                " bapi_re_resubm_rule_dat
*   archrel =                   " bapi_re_arch_rel_dat
*   archrelms =                 " bapi_re_arch_relms_dat
*   status =                    " bapi_re_status_dat  Status
*   extensionin =               " bapiparex
*   infrastructure =            " bapi_re_infra_dat  Infrastructure
    receivers =                 " bdi_logsys
*   communication_documents =   " swotobjid
*   application_objects =       " swotobjid
  EXCEPTIONS
    ERROR_CREATING_IDOCS = 1    "
    .  "  ALE_RE_RO_CREATE

ABAP code example for Function Module ALE_RE_RO_CREATE





The ABAP code below is a full code listing to execute function module ALE_RE_RO_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:
it_termorgassignment  TYPE STANDARD TABLE OF BAPI_RE_TERM_OA_DAT,"TABLES PARAM
wa_termorgassignment  LIKE LINE OF it_termorgassignment ,
it_termpayment  TYPE STANDARD TABLE OF BAPI_RE_TERM_PY_DAT,"TABLES PARAM
wa_termpayment  LIKE LINE OF it_termpayment ,
it_termrhythm  TYPE STANDARD TABLE OF BAPI_RE_TERM_RH_DAT,"TABLES PARAM
wa_termrhythm  LIKE LINE OF it_termrhythm ,
it_termvacancy  TYPE STANDARD TABLE OF BAPI_RE_TERM_OC_DAT,"TABLES PARAM
wa_termvacancy  LIKE LINE OF it_termvacancy ,
it_termadjustment  TYPE STANDARD TABLE OF BAPI_RE_TERM_AJ_DAT,"TABLES PARAM
wa_termadjustment  LIKE LINE OF it_termadjustment ,
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_optionrate  TYPE STANDARD TABLE OF BAPI_RE_OPTION_RATE_DAT,"TABLES PARAM
wa_optionrate  LIKE LINE OF it_optionrate ,
it_cosettlerule  TYPE STANDARD TABLE OF BAPI_RE_COSETTLE_RL_DAT,"TABLES PARAM
wa_cosettlerule  LIKE LINE OF it_cosettlerule ,
it_charact  TYPE STANDARD TABLE OF BAPI_RE_CHARACT_DAT,"TABLES PARAM
wa_charact  LIKE LINE OF it_charact ,
it_condition  TYPE STANDARD TABLE OF BAPI_RE_CONDITION_DAT,"TABLES PARAM
wa_condition  LIKE LINE OF it_condition ,
it_objassign  TYPE STANDARD TABLE OF BAPI_RE_OBJ_ASSIGN_DAT,"TABLES PARAM
wa_objassign  LIKE LINE OF it_objassign ,
it_occupancy  TYPE STANDARD TABLE OF BAPI_RE_OCCUPANCY_DAT,"TABLES PARAM
wa_occupancy  LIKE LINE OF it_occupancy ,
it_measpt  TYPE STANDARD TABLE OF BAPI_RE_MEASPT_DAT,"TABLES PARAM
wa_measpt  LIKE LINE OF it_measpt ,
it_measptrel  TYPE STANDARD TABLE OF BAPI_RE_MEASPT_REL_DAT,"TABLES PARAM
wa_measptrel  LIKE LINE OF it_measptrel ,
it_resubmrule  TYPE STANDARD TABLE OF BAPI_RE_RESUBM_RULE_DAT,"TABLES PARAM
wa_resubmrule  LIKE LINE OF it_resubmrule ,
it_archrel  TYPE STANDARD TABLE OF BAPI_RE_ARCH_REL_DAT,"TABLES PARAM
wa_archrel  LIKE LINE OF it_archrel ,
it_archrelms  TYPE STANDARD TABLE OF BAPI_RE_ARCH_RELMS_DAT,"TABLES PARAM
wa_archrelms  LIKE LINE OF it_archrelms ,
it_status  TYPE STANDARD TABLE OF BAPI_RE_STATUS_DAT,"TABLES PARAM
wa_status  LIKE LINE OF it_status ,
it_extensionin  TYPE STANDARD TABLE OF BAPIPAREX,"TABLES PARAM
wa_extensionin  LIKE LINE OF it_extensionin ,
it_infrastructure  TYPE STANDARD TABLE OF BAPI_RE_INFRA_DAT,"TABLES PARAM
wa_infrastructure  LIKE LINE OF it_infrastructure ,
it_receivers  TYPE STANDARD TABLE OF BDI_LOGSYS,"TABLES PARAM
wa_receivers  LIKE LINE OF it_receivers ,
it_communication_documents  TYPE STANDARD TABLE OF SWOTOBJID,"TABLES PARAM
wa_communication_documents  LIKE LINE OF it_communication_documents ,
it_application_objects  TYPE STANDARD TABLE OF SWOTOBJID,"TABLES PARAM
wa_application_objects  LIKE LINE OF it_application_objects .


DATA(ld_compcodeext) = some text here

DATA(ld_businessentitynumberext) = some text here

DATA(ld_rentalobjecttype) = some text here

DATA(ld_usagetype) = Check type of data required

DATA(ld_rentalobjectnumberext) = some text here

DATA(ld_poolspacenumberext) = some text here
DATA(ld_rentalobject) = 'Check type of data required'.
DATA(ld_objectaddress) = 'Check type of data required'.
DATA(ld_cosettleparam) = 'Check type of data required'.

DATA(ld_trans) = some text here

DATA(ld_testrun) = some text here

DATA(ld_obj_type) = some text here

DATA(ld_serial_id) = Check type of data required

"populate fields of struture and append to itab
append wa_termorgassignment to it_termorgassignment.

"populate fields of struture and append to itab
append wa_termpayment to it_termpayment.

"populate fields of struture and append to itab
append wa_termrhythm to it_termrhythm.

"populate fields of struture and append to itab
append wa_termvacancy to it_termvacancy.

"populate fields of struture and append to itab
append wa_termadjustment to it_termadjustment.

"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_optionrate to it_optionrate.

"populate fields of struture and append to itab
append wa_cosettlerule to it_cosettlerule.

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

"populate fields of struture and append to itab
append wa_condition to it_condition.

"populate fields of struture and append to itab
append wa_objassign to it_objassign.

"populate fields of struture and append to itab
append wa_occupancy to it_occupancy.

"populate fields of struture and append to itab
append wa_measpt to it_measpt.

"populate fields of struture and append to itab
append wa_measptrel to it_measptrel.

"populate fields of struture and append to itab
append wa_resubmrule to it_resubmrule.

"populate fields of struture and append to itab
append wa_archrel to it_archrel.

"populate fields of struture and append to itab
append wa_archrelms to it_archrelms.

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

"populate fields of struture and append to itab
append wa_extensionin to it_extensionin.

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

"populate fields of struture and append to itab
append wa_receivers to it_receivers.

"populate fields of struture and append to itab
append wa_communication_documents to it_communication_documents.

"populate fields of struture and append to itab
append wa_application_objects to it_application_objects. . CALL FUNCTION 'ALE_RE_RO_CREATE' EXPORTING compcodeext = ld_compcodeext businessentitynumberext = ld_businessentitynumberext rentalobjecttype = ld_rentalobjecttype usagetype = ld_usagetype * rentalobjectnumberext = ld_rentalobjectnumberext * poolspacenumberext = ld_poolspacenumberext * rentalobject = ld_rentalobject * objectaddress = ld_objectaddress * cosettleparam = ld_cosettleparam * trans = ld_trans * testrun = ld_testrun * obj_type = ld_obj_type * serial_id = ld_serial_id TABLES * termorgassignment = it_termorgassignment * termpayment = it_termpayment * termrhythm = it_termrhythm * termvacancy = it_termvacancy * termadjustment = it_termadjustment * measurement = it_measurement * partner = it_partner * optionrate = it_optionrate * cosettlerule = it_cosettlerule * charact = it_charact * condition = it_condition * objassign = it_objassign * occupancy = it_occupancy * measpt = it_measpt * measptrel = it_measptrel * resubmrule = it_resubmrule * archrel = it_archrel * archrelms = it_archrelms * status = it_status * extensionin = it_extensionin * infrastructure = it_infrastructure receivers = it_receivers * communication_documents = it_communication_documents * application_objects = it_application_objects EXCEPTIONS ERROR_CREATING_IDOCS = 1 . " ALE_RE_RO_CREATE
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here 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_compcodeext  TYPE BAPI_RE_RENTAL_OBJECT_KEY-COMP_CODE ,
it_termorgassignment  TYPE STANDARD TABLE OF BAPI_RE_TERM_OA_DAT ,
wa_termorgassignment  LIKE LINE OF it_termorgassignment,
ld_businessentitynumberext  TYPE BAPI_RE_RENTAL_OBJECT_KEY-BUSINESS_ENTITY ,
it_termpayment  TYPE STANDARD TABLE OF BAPI_RE_TERM_PY_DAT ,
wa_termpayment  LIKE LINE OF it_termpayment,
ld_rentalobjecttype  TYPE BAPI_RE_RENTAL_OBJECT_KEY-RENTAL_OBJECT_TYPE ,
it_termrhythm  TYPE STANDARD TABLE OF BAPI_RE_TERM_RH_DAT ,
wa_termrhythm  LIKE LINE OF it_termrhythm,
ld_usagetype  TYPE BAPI_RE_RENTAL_OBJECT_KEY-USAGE_TYPE ,
it_termvacancy  TYPE STANDARD TABLE OF BAPI_RE_TERM_OC_DAT ,
wa_termvacancy  LIKE LINE OF it_termvacancy,
ld_rentalobjectnumberext  TYPE BAPI_RE_RENTAL_OBJECT_KEY-RENTAL_OBJECT ,
it_termadjustment  TYPE STANDARD TABLE OF BAPI_RE_TERM_AJ_DAT ,
wa_termadjustment  LIKE LINE OF it_termadjustment,
it_measurement  TYPE STANDARD TABLE OF BAPI_RE_MEASUREMENT_DAT ,
wa_measurement  LIKE LINE OF it_measurement,
ld_poolspacenumberext  TYPE BAPI_RE_RENTAL_OBJECT_KEY-POOL_SPACE ,
ld_rentalobject  TYPE BAPI_RE_RENTAL_OBJECT_DAT ,
it_partner  TYPE STANDARD TABLE OF BAPI_RE_PARTNER_DAT ,
wa_partner  LIKE LINE OF it_partner,
ld_objectaddress  TYPE BAPI_RE_OBJ_ADDRESS_DAT ,
it_optionrate  TYPE STANDARD TABLE OF BAPI_RE_OPTION_RATE_DAT ,
wa_optionrate  LIKE LINE OF it_optionrate,
ld_cosettleparam  TYPE BAPI_RE_COSETTLE_PAR_DAT ,
it_cosettlerule  TYPE STANDARD TABLE OF BAPI_RE_COSETTLE_RL_DAT ,
wa_cosettlerule  LIKE LINE OF it_cosettlerule,
ld_trans  TYPE BAPI_RE_ADDITIONAL_FIELDS-TRANS ,
it_charact  TYPE STANDARD TABLE OF BAPI_RE_CHARACT_DAT ,
wa_charact  LIKE LINE OF it_charact,
ld_testrun  TYPE BAPI_RE_ADDITIONAL_FIELDS-TESTRUN ,
it_condition  TYPE STANDARD TABLE OF BAPI_RE_CONDITION_DAT ,
wa_condition  LIKE LINE OF it_condition,
it_objassign  TYPE STANDARD TABLE OF BAPI_RE_OBJ_ASSIGN_DAT ,
wa_objassign  LIKE LINE OF it_objassign,
ld_obj_type  TYPE SERIAL-OBJ_TYPE ,
it_occupancy  TYPE STANDARD TABLE OF BAPI_RE_OCCUPANCY_DAT ,
wa_occupancy  LIKE LINE OF it_occupancy,
ld_serial_id  TYPE SERIAL-CHNUM ,
it_measpt  TYPE STANDARD TABLE OF BAPI_RE_MEASPT_DAT ,
wa_measpt  LIKE LINE OF it_measpt,
it_measptrel  TYPE STANDARD TABLE OF BAPI_RE_MEASPT_REL_DAT ,
wa_measptrel  LIKE LINE OF it_measptrel,
it_resubmrule  TYPE STANDARD TABLE OF BAPI_RE_RESUBM_RULE_DAT ,
wa_resubmrule  LIKE LINE OF it_resubmrule,
it_archrel  TYPE STANDARD TABLE OF BAPI_RE_ARCH_REL_DAT ,
wa_archrel  LIKE LINE OF it_archrel,
it_archrelms  TYPE STANDARD TABLE OF BAPI_RE_ARCH_RELMS_DAT ,
wa_archrelms  LIKE LINE OF it_archrelms,
it_status  TYPE STANDARD TABLE OF BAPI_RE_STATUS_DAT ,
wa_status  LIKE LINE OF it_status,
it_extensionin  TYPE STANDARD TABLE OF BAPIPAREX ,
wa_extensionin  LIKE LINE OF it_extensionin,
it_infrastructure  TYPE STANDARD TABLE OF BAPI_RE_INFRA_DAT ,
wa_infrastructure  LIKE LINE OF it_infrastructure,
it_receivers  TYPE STANDARD TABLE OF BDI_LOGSYS ,
wa_receivers  LIKE LINE OF it_receivers,
it_communication_documents  TYPE STANDARD TABLE OF SWOTOBJID ,
wa_communication_documents  LIKE LINE OF it_communication_documents,
it_application_objects  TYPE STANDARD TABLE OF SWOTOBJID ,
wa_application_objects  LIKE LINE OF it_application_objects.


ld_compcodeext = some text here

"populate fields of struture and append to itab
append wa_termorgassignment to it_termorgassignment.

ld_businessentitynumberext = some text here

"populate fields of struture and append to itab
append wa_termpayment to it_termpayment.

ld_rentalobjecttype = some text here

"populate fields of struture and append to itab
append wa_termrhythm to it_termrhythm.

ld_usagetype = Check type of data required

"populate fields of struture and append to itab
append wa_termvacancy to it_termvacancy.

ld_rentalobjectnumberext = some text here

"populate fields of struture and append to itab
append wa_termadjustment to it_termadjustment.

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

ld_poolspacenumberext = some text here
ld_rentalobject = 'Check type of data required'.

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

"populate fields of struture and append to itab
append wa_optionrate to it_optionrate.
ld_cosettleparam = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_cosettlerule to it_cosettlerule.

ld_trans = some text here

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

ld_testrun = some text here

"populate fields of struture and append to itab
append wa_condition to it_condition.

"populate fields of struture and append to itab
append wa_objassign to it_objassign.

ld_obj_type = some text here

"populate fields of struture and append to itab
append wa_occupancy to it_occupancy.

ld_serial_id = Check type of data required

"populate fields of struture and append to itab
append wa_measpt to it_measpt.

"populate fields of struture and append to itab
append wa_measptrel to it_measptrel.

"populate fields of struture and append to itab
append wa_resubmrule to it_resubmrule.

"populate fields of struture and append to itab
append wa_archrel to it_archrel.

"populate fields of struture and append to itab
append wa_archrelms to it_archrelms.

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

"populate fields of struture and append to itab
append wa_extensionin to it_extensionin.

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

"populate fields of struture and append to itab
append wa_receivers to it_receivers.

"populate fields of struture and append to itab
append wa_communication_documents to it_communication_documents.

"populate fields of struture and append to itab
append wa_application_objects to it_application_objects.

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 ALE_RE_RO_CREATE or its description.