Syntax documentation select_expression Locate the document in its SAP Library structure

Syntax Rules for Column Descriptions

Syntax

<select_expression>

This database query is formulated in the same way as a Structure linkSELECT statement, however the keyword DATAEXTRACT replaces the keywords EXTRACT DB. All options of a SELECT statement are permitted:

Use

Use this syntax rule in a DATAEXTRACT command to specify which columns in a table to extract.

Example

DATAEXTRACT * FROM article
OUTFIELDS
  ano       01-08
  descr     09-39
  stock    40-51
  min_ord   52-63
  price     64-74
  weight    75-85
OUTFILE 'article.data' FORMATTED

Example

DATAEXTRACT ano,descr,stock,min_ord FROM article order by ano
OUTFIELDS
  ano       1
  descr     2
  stock    3
  min_ord   4
OUTFILE 'article.data'

Example

DATAEXTRACT ano,descr,stock,min_ord FROM article WITH LOCK
OUTFIELDS
  ano       1
  descr     2
  stock    3
  min_rod  4
OUTFILE 'article.data'