Ansicht
Dokumentation

ABENDDICDDL_DEFINE_STRUCT_CMPPRPS - DDICDDL DEFINE STRUCT CMPPRPS

ABENDDICDDL_DEFINE_STRUCT_CMPPRPS - DDICDDL DEFINE STRUCT CMPPRPS

CPI1466 during Backup   PERFORM Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

- DEFINE STRUCTURE, component_annos

$[@EndUserText.label : '...'$]
$[@AbapCatalog.decfloat.outputStyle : style $]
$[@Semantics.amount.currencyCode : 'struct.comp'$]
$[@Semantics.quantity.unitOfMeasure : 'struct.comp'$]


Effect

Annotation for specifying optional properties of a component in the definition of a DDIC structure using the statement DEFINE STRUCTURE in Dictionary DDL.

  • @AbapCatalog.decfloat.outputStyle defines the output style of a decimal floating point number. style can be specified as:
  • #NORMAL - default, mathematical or scientific, depending on space

  • #SIGN_RIGHT

  • #SCALE_PRESERVING

  • #SCIENTIFIC

  • #SCIENTIFIC_WITH_LEADING_ZERO

  • #SCALE_PRESERVING_SCIENTIFIC

  • #ENGINEERING

  • @Semantics.amount.currencyCode - Definition of a reference field for a currency field. A component comp with the built-in dictionary type CUKY from the same or from a different structure struc must be specified in quotation marks.
  • @Semantics.quantity.unitOfMeasure - Definition of a reference field for a quantity field. A component comp with the built-in dictionary type UNIT from the same or from a different structure struc must be specified in quotation marks.

Note

The syntax used to specify the properties is based on CDS annotations. There are, however, no visible associated annotation definitions.

Example

Defines the component weight_unit as a reference field for the quantity field weight in the same structure.

...
define structure struct {
  ...
  @Semantics.quantity.unitOfMeasure : 'struct.weight_unit'
  weight :      abap.quan(2);
  weight_unit : abap.unit(2);
  ...
  }






Fill RESBD Structure from EBP Component Structure   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 5401 Date: 20240329 Time: 070845     sap01-206 ( 47 ms )