Skip to content

Instantly share code, notes, and snippets.

@kgorin8
Last active January 23, 2019 11:50
Show Gist options
  • Save kgorin8/15e1ef63fbeb0641af0d4ae9821b4d49 to your computer and use it in GitHub Desktop.
Save kgorin8/15e1ef63fbeb0641af0d4ae9821b4d49 to your computer and use it in GitHub Desktop.
DATA: BEGIN OF T_FIELDS OCCURS 0, "Feldliste im SELECT-Statement
FNAME LIKE DNTAB-FIELDNAME,
END OF T_FIELDS.
DATA: BEGIN OF G_FIELDS OCCURS 0, "Group by for HDB-Select
FNAME LIKE DNTAB-FIELDNAME,
END OF G_FIELDS.
"SUM( WOG001 ) as WOG001" append into T_FIELDS.
select (t_fields) from... groupby (g_fields)...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment