Functionality Using this BAPI, you can create areal estate contract> in thesystem. Transfer the company code in which the real estate contract should becreated. Also transfer the contract type of the real estate contract. If external number assignment is used, you also have to enter the numberof the real estate contract to be created. For the meanings of the other parameters, refer to the specificparameter documentation.Example DATA: ls_bapi_cn TYPE bapi_re_contract_dat, ld_compcode TYPE bapi_re_contract_key-comp_code, ld_contractnumber TYPE bapi_re_contract_key-contract_number, lt_bapi_error TYPE bapirettab, * set text of CN ls_bapi_cn-contract_text = 'Coffe Shops'. CALL FUNCTION 'BAPI_RE_CN_CREATE' EXPORTING comp_code_ext = '1000' contract_type = '0010' contract_number_ext = '1' contract = ls_bapi_cn test_run = 'X' IMPORTING compcode = ld_comp_code contractnumber = ld_contractnumber TABLES return = lt_bapi_error. INCLUDE RECA_BAPI_BUKRS OBJECT DOKU ID TX Description Number of the new real estate contract. See real estate contract number>. INCLUDE RECA_BAPI_PARAM_OPTIONAL OBJECT DOKU ID TX INCLUDE RECA_BAPI_TEST_RUN OBJECT DOKU ID TX INCLUDE RECA_BAPI_RETURN OBJECT DOKU ID TX INCLUDE RESR_BAPI_SALES_REP_ADD OBJECT DOKU ID TX |