SAP BAPI_RE_OO_CREATE Function Module for









BAPI_RE_OO_CREATE is a standard bapi re oo 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 bapi re oo create FM, simply by entering the name BAPI_RE_OO_CREATE into the relevant SAP transaction such as SE37 or SE38.

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



Function BAPI_RE_OO_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 'BAPI_RE_OO_CREATE'"
EXPORTING
* OFFERED_OBJECT_ID_EXT = "
* RESERVATION_OBJ_TYPE = "
* OFFERED_OBJ = "
* TRANS = "
* TEST_RUN = ' ' "

IMPORTING
OFFEREDOBJECTID = "
EXTERNALID = "

TABLES
* OO_CHARACT = "
RETURN = "
* OO_AECCHAR = "
* INFRASTRUCTURE = "
* PARTNER = "
* CHARACT = "
* PERM_OCC = "
* RESUBM_RULE = "
* STATUS = "
* EXTENSION_IN = "
.



IMPORTING Parameters details for BAPI_RE_OO_CREATE

OFFERED_OBJECT_ID_EXT -

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

RESERVATION_OBJ_TYPE -

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

OFFERED_OBJ -

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

TRANS -

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

TEST_RUN -

Data type: BAPI_RE_ADDITIONAL_FIELDS-TESTRUN
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for BAPI_RE_OO_CREATE

OFFEREDOBJECTID -

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

EXTERNALID -

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

TABLES Parameters details for BAPI_RE_OO_CREATE

OO_CHARACT -

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

RETURN -

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

OO_AECCHAR -

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

INFRASTRUCTURE -

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

PARTNER -

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

CHARACT -

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

PERM_OCC -

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

RESUBM_RULE -

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

STATUS -

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

EXTENSION_IN -

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

Copy and paste ABAP code example for BAPI_RE_OO_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:
lt_oo_charact  TYPE STANDARD TABLE OF BAPI_RE_OO_CHARACT_DAT, "   
lv_offeredobjectid  TYPE BAPI_RE_OFFERED_OBJ_KEY-OFFERED_OBJECT_ID, "   
lv_offered_object_id_ext  TYPE BAPI_RE_OFFERED_OBJ_KEY-OFFERED_OBJECT_ID, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_externalid  TYPE BAPI_RE_OFFERED_OBJ_KEY-EXTERNAL_ID, "   
lt_oo_aecchar  TYPE STANDARD TABLE OF BAPI_RE_OO_AECCHAR_DAT, "   
lv_reservation_obj_type  TYPE BAPI_RE_OFFERED_OBJ_KEY-RESERVATION_OBJ_TYPE, "   
lv_offered_obj  TYPE BAPI_RE_OFFERED_OBJ_DAT, "   
lt_infrastructure  TYPE STANDARD TABLE OF BAPI_RE_INFRA_DAT, "   
lv_trans  TYPE BAPI_RE_ADDITIONAL_FIELDS-TRANS, "   
lt_partner  TYPE STANDARD TABLE OF BAPI_RE_PARTNER_DAT, "   
lt_charact  TYPE STANDARD TABLE OF BAPI_RE_CHARACT_DAT, "   
lv_test_run  TYPE BAPI_RE_ADDITIONAL_FIELDS-TESTRUN, "   SPACE
lt_perm_occ  TYPE STANDARD TABLE OF BAPI_RE_PERM_OCC_DAT, "   
lt_resubm_rule  TYPE STANDARD TABLE OF BAPI_RE_RESUBM_RULE_DAT, "   
lt_status  TYPE STANDARD TABLE OF BAPI_RE_STATUS_DAT, "   
lt_extension_in  TYPE STANDARD TABLE OF BAPIPAREX. "   

  CALL FUNCTION 'BAPI_RE_OO_CREATE'  "
    EXPORTING
         OFFERED_OBJECT_ID_EXT = lv_offered_object_id_ext
         RESERVATION_OBJ_TYPE = lv_reservation_obj_type
         OFFERED_OBJ = lv_offered_obj
         TRANS = lv_trans
         TEST_RUN = lv_test_run
    IMPORTING
         OFFEREDOBJECTID = lv_offeredobjectid
         EXTERNALID = lv_externalid
    TABLES
         OO_CHARACT = lt_oo_charact
         RETURN = lt_return
         OO_AECCHAR = lt_oo_aecchar
         INFRASTRUCTURE = lt_infrastructure
         PARTNER = lt_partner
         CHARACT = lt_charact
         PERM_OCC = lt_perm_occ
         RESUBM_RULE = lt_resubm_rule
         STATUS = lt_status
         EXTENSION_IN = lt_extension_in
. " BAPI_RE_OO_CREATE




ABAP code using 7.40 inline data declarations to call FM BAPI_RE_OO_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 OFFERED_OBJECT_ID FROM BAPI_RE_OFFERED_OBJ_KEY INTO @DATA(ld_offeredobjectid).
 
"SELECT single OFFERED_OBJECT_ID FROM BAPI_RE_OFFERED_OBJ_KEY INTO @DATA(ld_offered_object_id_ext).
 
 
"SELECT single EXTERNAL_ID FROM BAPI_RE_OFFERED_OBJ_KEY INTO @DATA(ld_externalid).
 
 
"SELECT single RESERVATION_OBJ_TYPE FROM BAPI_RE_OFFERED_OBJ_KEY INTO @DATA(ld_reservation_obj_type).
 
 
 
"SELECT single TRANS FROM BAPI_RE_ADDITIONAL_FIELDS INTO @DATA(ld_trans).
 
 
 
"SELECT single TESTRUN FROM BAPI_RE_ADDITIONAL_FIELDS INTO @DATA(ld_test_run).
DATA(ld_test_run) = ' '.
 
 
 
 
 


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!