Fonction SAP BAPI_RE_SALES_REP_REPORT - Enter Sales Reports

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
COMPCODE BAPI_RE_CONTRACT_KEY-COMP_CODE C 4 Company Code
CONTRACTNUMBER BAPI_RE_CONTRACT_KEY-CONTRACT_NUMBER C 13 Number of Real Estate Contract
TEST_RUN BAPI_RE_ADDITIONAL_FIELDS-TESTRUN C 1 SPACE X Simulation Indicator

Paramètre Reférence Long. Facultatif Description
RETURN BAPIRET2 548 Return Parameter(s)
SALES_REP BAPI_RE_SALES_REP_DAT 150 Sales Reports

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