Fonction SAP BAPI_TEMPLATECO_GET_DETAIL - GetDetail 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
LANGUAGE BAPI_TEMPLATECO_COMMON-LANGU C 1 X Language key
TEMPLATE BAPI_TEMPLATECO_COMMON-TEMPLATE C 10 Template

Paramètre Reférence Type Long. Description
TEMPLATETEXT BAPI_TEMPLATECO_COMMON-TEMPLATETEXT C 30 Template Text

Paramètre Reférence Long. Facultatif Description
CELLFIXVALUES BAPI_TEMPLATECO_CELLFIXVALUE 81 Data Structure for Fixed Values of Cells for BO TemplateCO
CELLSOURCES BAPI_TEMPLATECO_CELLSOURCE 93 X Data Structure for Sources of Cells for BO TemplateCO
FLEXFUNCSOURCES BAPI_TEMPLATECO_FLEXFUNCSRC 85 X Data Structure for Flex. Func. Sources for BO TemplateCO
POSITIONS BAPI_TEMPLATECO_POSITION 39 Data Structure for Positions of BO TemplateCO
RETURN BAPIRET2 548 X Return Parameter

Functionality
You use this method to get the details of a given template.
This method can be used to get template values forBAPI_TEMPLATECO_CREATE.
The authorization object K_TEMPL is checked for the activity code 03(Display) 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
- LANGUAGE : Language
Export parameters contain the values of the template:
- POSITIONS : Definition of the visible lines of the template
- CELLFIXVALUES : Fix values of the template
- CELLSOURCES : Sources of the formulas of the template
- FLEXFUNCSOURCES : Sources of the flexible functions of the template
Messages are returned with the parameter return.

Description
Template description

Value range
TEMPLATETEXT has type CHAR 30

Description
Template language

Default
System language

Description
Cell fixed values

Value range
CELLFIXVALUES is a structure:
- POSITIONNUMBER (NUMC 8) : Template item, reference to parameterPOSITIONS-POSITIONNUMBER
- COLUMN (CHAR 1) : Template column ID
- VALUE (CHAR 72) : Fixed value

Description
Cell formula sources

Value range
CELLSOURCES is a structure:
- POSITIONNUMBER (NUMC 8) : Template item, reference to parameterPOSITIONS-POSITIONNUMBER
- COLUMN (CHAR 1) : Template Column ID
- SOURCELINEID (NUMC 8) : Control block number
- FLEXFUNCID (NUMC 4) : ID of the flexible function the formula refersto; reference to FLEXFUNCSOURCES if needed
- SOURCELINE (CHAR 72) : Source line

Description
Flexible functions formula sources

Value range
FLEXFUNCSOURCES is a structure:
- FLEXFUNCID (NUMC 4) : ID of the flexible function
- QUAN_BOOL_FLAG (CHAR 1) : Q (Quantity) or B (Boolean), defines thepart of the flexible function formula
- SOURCELINEID (NUMC 8) : Control block number
- SOURCELINE (CHAR 72) : Source line

Description
Postition: Visible rows of the template

Value range
POSITIONS is a structure:
- POSITIONNUMBER (NUMC 8) : Template item
- LINETYPE (CHAR 1) : Template row type
- LINE_OBJECT_TEXT (CHAR 30) : Text for the row

Description
Messages

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