SAP Function Modules

REEX_CB_CHECK_SINGLE_OBJ SAP Function module







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

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


Pattern for FM REEX_CB_CHECK_SINGLE_OBJ - REEX CB CHECK SINGLE OBJ





CALL FUNCTION 'REEX_CB_CHECK_SINGLE_OBJ' "
* EXPORTING
*   id_objnr =                  " recaobjnr     Object Number
*   id_bukrs =                  " bukrs         Company Code
*   id_swenr =                  " swenr         Business Entity Number
*   id_sgrnr =                  " sgrnr         Land Number for BE
*   id_sgenr =                  " sgenr         Building Number
*   id_smenr =                  " rebdrono      Number of Rental Object
*   d_snksl =                   " resc_settl_unit-snksl  Service Charge Key
*   id_sempsl =                 " resc_settl_unit-sempsl  Settlement Unit
*   id_dabrbez =                " dabrbez       Reference date for settlement
*   id_recnnr =                 " recnnumber    Contract Number
*   id_activity = SPACE         " tj01-vrgng    Business Transaction
  EXCEPTIONS
    OBJECT_NOT_FOUND = 1        "               Object Does Not Exist
    ACTIVITY_NOT_ALLOWED = 2    "               Activity Not Allowed for Object
    .  "  REEX_CB_CHECK_SINGLE_OBJ

ABAP code example for Function Module REEX_CB_CHECK_SINGLE_OBJ





The ABAP code below is a full code listing to execute function module REEX_CB_CHECK_SINGLE_OBJ 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_id_objnr) = 'Check type of data required'.
DATA(ld_id_bukrs) = 'Check type of data required'.
DATA(ld_id_swenr) = 'Check type of data required'.
DATA(ld_id_sgrnr) = 'Check type of data required'.
DATA(ld_id_sgenr) = 'Check type of data required'.
DATA(ld_id_smenr) = 'Check type of data required'.

DATA(ld_d_snksl) = some text here

DATA(ld_id_sempsl) = some text here
DATA(ld_id_dabrbez) = 'Check type of data required'.
DATA(ld_id_recnnr) = 'Check type of data required'.

SELECT single VRGNG
FROM TJ01
INTO @DATA(ld_id_activity).
. CALL FUNCTION 'REEX_CB_CHECK_SINGLE_OBJ' * EXPORTING * id_objnr = ld_id_objnr * id_bukrs = ld_id_bukrs * id_swenr = ld_id_swenr * id_sgrnr = ld_id_sgrnr * id_sgenr = ld_id_sgenr * id_smenr = ld_id_smenr * d_snksl = ld_d_snksl * id_sempsl = ld_id_sempsl * id_dabrbez = ld_id_dabrbez * id_recnnr = ld_id_recnnr * id_activity = ld_id_activity EXCEPTIONS OBJECT_NOT_FOUND = 1 ACTIVITY_NOT_ALLOWED = 2 . " REEX_CB_CHECK_SINGLE_OBJ
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "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_id_objnr  TYPE RECAOBJNR ,
ld_id_bukrs  TYPE BUKRS ,
ld_id_swenr  TYPE SWENR ,
ld_id_sgrnr  TYPE SGRNR ,
ld_id_sgenr  TYPE SGENR ,
ld_id_smenr  TYPE REBDRONO ,
ld_d_snksl  TYPE RESC_SETTL_UNIT-SNKSL ,
ld_id_sempsl  TYPE RESC_SETTL_UNIT-SEMPSL ,
ld_id_dabrbez  TYPE DABRBEZ ,
ld_id_recnnr  TYPE RECNNUMBER ,
ld_id_activity  TYPE TJ01-VRGNG .

ld_id_objnr = 'Check type of data required'.
ld_id_bukrs = 'Check type of data required'.
ld_id_swenr = 'Check type of data required'.
ld_id_sgrnr = 'Check type of data required'.
ld_id_sgenr = 'Check type of data required'.
ld_id_smenr = 'Check type of data required'.

ld_d_snksl = some text here

ld_id_sempsl = some text here
ld_id_dabrbez = 'Check type of data required'.
ld_id_recnnr = 'Check type of data required'.

SELECT single VRGNG
FROM TJ01
INTO ld_id_activity.

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