Ansicht
Dokumentation

BAPI_RE_SU_CREATE - Create Settlement Unit

BAPI_RE_SU_CREATE - Create Settlement Unit

BAL Application Log Documentation   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

Using this BAPI, you can create settlement units in the system.

Transfer the company code, the business entity (optional) and the service charge key for the new settlement unit. If external number assignment is used, you also have to enter the number of the settlement unit to be created.

For the meanings of the other parameters, refer to the specific parameter documentation.

Example

DATA:
  ls_bapi_su              TYPE bapi_re_settl_unit_dat,
  ld_compcode             TYPE bapi_re_settl_unit_key-comp_code,
  ld_businessentitynumber TYPE bapi_re_settl_unit_key-business_entity,
  ld_servchargekey        TYPE bapi_re_settl_unit_key-serv_charge_key,
  ld_settlunitnumber      TYPE bapi_re_settl_unit_key-settlement_unit,
  lt_bapi_error           TYPE bapirettab,

* set text of SU
ls_bapi_su-settl_unit_text = 'Abrechnung test'.

CALL FUNCTION 'BAPI_RE_BE_CREATE'
  EXPORTING
    comp_code_ext              = '1000'
    business_entity_number_ext = '1'
    serv_charge_key_ext        = '1000'
    settlement_unit_number_ext = '1'
    settl_unit                 = ls_bapi_su
    test_run                   = 'X'
  IMPORTING
    compcode                   = ld_compcode
    businessentitynumber       = ld_businessentitynumber
    servchargekey              = ld_servchargekey
    settlementunitnumber       = ld_settlunitnumber
  TABLES
    return                     = lt_bapi_error.

Notes

Further information





Parameters

APPORT_RULE
BUSINESSENTITYNUMBER
BUSINESS_ENTITY_NUMBER_EXT
COMPCODE
COMP_CODE_EXT
COSTCOLLECTOR
COST_OBJECT
EXTENSION_IN
MEASPT
OPTION_RATE
PARTICIP_REL
RESUBM_RULE
RETURN
SERVCHARGEKEY
SERV_CHARGE_KEY_EXT
SETTLEMENTUNITNUMBER
SETTLEMENT_UNIT_NUMBER_EXT
SETTLEMENT_UNIT_TYPE
SETTL_UNIT
STATUS
TERM_ORG_ASSIGNMENT
TEST_RUN
TRANS

Exceptions

Function Group

RESC_BAPI_SETTL_UNIT

RFUMSV00 - Advance Return for Tax on Sales/Purchases   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.

Length: 5578 Date: 20240523 Time: 163241     sap01-206 ( 36 ms )