Fonction SAP BAPI_TEMPLATECO_DELETE - Delete for Business Object TemplateCO

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CONTROLLINGAREA BAPI_TEMPLATECO_COMMON-CO_AREA C 4 Controlling Area
ENVIRONMENT BAPI_TEMPLATECO_COMMON-ENVIRONMENT C 3 Template Main Environment
TEMPLATE BAPI_TEMPLATECO_COMMON-TEMPLATE C 10 Template
TESTRUN BAPI_TEMPLATECO_COMMON-TESTRUN C 1 SPACE X General Flag

Paramètre Reférence Long. Facultatif Description
RETURN BAPIRET2 548 X Return Parameter

Functionality
You use this method to delete a given template.
The authorization object K_TEMPL is checked for the activity code 04(Delete) with parameters Controlling Area, Environment, and Template.
Use the import parameters to define the template to read as follows:
- CONTROLLINGAREA : Controlling area
- ENVIRONMENT : Environment
- TEMPLATE : Template name
- TESTRUN : Test run
The template cannot be deleted if it is still used in a costing method.This is checked before deletion.
Messages are returned with the parameter return.

Notes
Always run a test run before deleting a template.

Description
Test run
Indicator showing whether validation is performed without saving theprocess structure.

Value range
" ": process template is saved if no error is found
"X": validation only, without saving

Description
Messages

Value range
Tables of the affected messages with parameter information. Rows andcolumns are given for table parameters.