SAP Function Modules

REAL_ESTATE_CUSTOMER_FIND SAP Function module







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

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


Pattern for FM REAL_ESTATE_CUSTOMER_FIND - REAL ESTATE CUSTOMER FIND





CALL FUNCTION 'REAL_ESTATE_CUSTOMER_FIND' "
* EXPORTING
*   i_allcust =                 " char1
  TABLES
    e_kunnr =                   " rfvikunnri
    e_vimidd =                  " rfvivimidd
    i_so_bukrs =                " rsobukrs
*   i_so_smenr =                " rsosmenr
*   i_so_e_smive =              " rsoe_smive
*   i_so_smive =                " rsosmive
*   i_so_swenr =                " rsoswenr
* CHANGING
*   i_setid =                   " sethier-setid
    .  "  REAL_ESTATE_CUSTOMER_FIND

ABAP code example for Function Module REAL_ESTATE_CUSTOMER_FIND





The ABAP code below is a full code listing to execute function module REAL_ESTATE_CUSTOMER_FIND 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_e_kunnr  TYPE STANDARD TABLE OF RFVIKUNNRI,"TABLES PARAM
wa_e_kunnr  LIKE LINE OF it_e_kunnr ,
it_e_vimidd  TYPE STANDARD TABLE OF RFVIVIMIDD,"TABLES PARAM
wa_e_vimidd  LIKE LINE OF it_e_vimidd ,
it_i_so_bukrs  TYPE STANDARD TABLE OF RSOBUKRS,"TABLES PARAM
wa_i_so_bukrs  LIKE LINE OF it_i_so_bukrs ,
it_i_so_smenr  TYPE STANDARD TABLE OF RSOSMENR,"TABLES PARAM
wa_i_so_smenr  LIKE LINE OF it_i_so_smenr ,
it_i_so_e_smive  TYPE STANDARD TABLE OF RSOE_SMIVE,"TABLES PARAM
wa_i_so_e_smive  LIKE LINE OF it_i_so_e_smive ,
it_i_so_smive  TYPE STANDARD TABLE OF RSOSMIVE,"TABLES PARAM
wa_i_so_smive  LIKE LINE OF it_i_so_smive ,
it_i_so_swenr  TYPE STANDARD TABLE OF RSOSWENR,"TABLES PARAM
wa_i_so_swenr  LIKE LINE OF it_i_so_swenr .


DATA(ld_i_setid) = some text here
DATA(ld_i_allcust) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_kunnr to it_e_kunnr.

"populate fields of struture and append to itab
append wa_e_vimidd to it_e_vimidd.

"populate fields of struture and append to itab
append wa_i_so_bukrs to it_i_so_bukrs.

"populate fields of struture and append to itab
append wa_i_so_smenr to it_i_so_smenr.

"populate fields of struture and append to itab
append wa_i_so_e_smive to it_i_so_e_smive.

"populate fields of struture and append to itab
append wa_i_so_smive to it_i_so_smive.

"populate fields of struture and append to itab
append wa_i_so_swenr to it_i_so_swenr. . CALL FUNCTION 'REAL_ESTATE_CUSTOMER_FIND' * EXPORTING * i_allcust = ld_i_allcust TABLES e_kunnr = it_e_kunnr e_vimidd = it_e_vimidd i_so_bukrs = it_i_so_bukrs * i_so_smenr = it_i_so_smenr * i_so_e_smive = it_i_so_e_smive * i_so_smive = it_i_so_smive * i_so_swenr = it_i_so_swenr * CHANGING * i_setid = ld_i_setid . " REAL_ESTATE_CUSTOMER_FIND
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_i_setid  TYPE SETHIER-SETID ,
ld_i_allcust  TYPE CHAR1 ,
it_e_kunnr  TYPE STANDARD TABLE OF RFVIKUNNRI ,
wa_e_kunnr  LIKE LINE OF it_e_kunnr,
it_e_vimidd  TYPE STANDARD TABLE OF RFVIVIMIDD ,
wa_e_vimidd  LIKE LINE OF it_e_vimidd,
it_i_so_bukrs  TYPE STANDARD TABLE OF RSOBUKRS ,
wa_i_so_bukrs  LIKE LINE OF it_i_so_bukrs,
it_i_so_smenr  TYPE STANDARD TABLE OF RSOSMENR ,
wa_i_so_smenr  LIKE LINE OF it_i_so_smenr,
it_i_so_e_smive  TYPE STANDARD TABLE OF RSOE_SMIVE ,
wa_i_so_e_smive  LIKE LINE OF it_i_so_e_smive,
it_i_so_smive  TYPE STANDARD TABLE OF RSOSMIVE ,
wa_i_so_smive  LIKE LINE OF it_i_so_smive,
it_i_so_swenr  TYPE STANDARD TABLE OF RSOSWENR ,
wa_i_so_swenr  LIKE LINE OF it_i_so_swenr.


ld_i_setid = some text here
ld_i_allcust = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_kunnr to it_e_kunnr.

"populate fields of struture and append to itab
append wa_e_vimidd to it_e_vimidd.

"populate fields of struture and append to itab
append wa_i_so_bukrs to it_i_so_bukrs.

"populate fields of struture and append to itab
append wa_i_so_smenr to it_i_so_smenr.

"populate fields of struture and append to itab
append wa_i_so_e_smive to it_i_so_e_smive.

"populate fields of struture and append to itab
append wa_i_so_smive to it_i_so_smive.

"populate fields of struture and append to itab
append wa_i_so_swenr to it_i_so_swenr.

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