Code: Alles auswählen.
DATA: BEGIN OF itab OCCURS 0,
vbeln LIKE vbrk-vbeln,
fkdat LIKE vbrk-fkdat,
kunag LIKE vbrk-kunag,
name1 LIKE kna1-name1,
posnr LIKE vbrp-posnr,
pstyv LIKE vbrp-pstyv,
matnr LIKE vbrp-matnr,
arktx LIKE vbrp-arktx,
vgbel LIKE vbrp-vgbel,
aubel LIKE vbrp-aubel,
fkimg LIKE vbrp-fkimg,
vrkme LIKE vbrp-vrkme,
fklmg LIKE vbrp-fklmg,
meins LIKE vbrp-meins,
netwr LIKE vbrp-netwr,
pvkme LIKE vbrp-netwr.
DATA: END OF itab.
**
gt_fieldcat-fieldname = 'VBELN'.
gt_fieldcat-no_zero = 'X'.
gt_fieldcat-hotspot = 'X'.
gt_fieldcat-outputlen = '8'.
gt_fieldcat-coltext = 'Faktura'.
append gt_fieldcat.
clear gt_fieldcat.
gt_fieldcat-fieldname = 'FKDAT'.
gt_fieldcat-outputlen = '8'.
gt_fieldcat-coltext = 'FaktDat.'.
append gt_fieldcat.
gt_fieldcat-fieldname = 'KUNAG'.
gt_fieldcat-no_zero = 'X'.
gt_fieldcat-outputlen = '6'.
gt_fieldcat-coltext = 'AG'.
append gt_fieldcat.
clear gt_fieldcat.
gt_fieldcat-fieldname = 'NAME1'.
gt_fieldcat-outputlen = '20'.
gt_fieldcat-coltext = 'Name'.
append gt_fieldcat.
clear gt_fieldcat.
gt_fieldcat-fieldname = 'POSNR'.
gt_fieldcat-outputlen = '5'.
gt_fieldcat-coltext = 'PosNr.'.
append gt_fieldcat.
clear gt_fieldcat.
gt_fieldcat-fieldname = 'MATNR'.
gt_fieldcat-no_zero = 'X'.
gt_fieldcat-outputlen = '6'.
gt_fieldcat-coltext = 'MatNr.'.
append gt_fieldcat.
clear gt_fieldcat.
gt_fieldcat-fieldname = 'ARKTX'.
gt_fieldcat-outputlen = '20'.
gt_fieldcat-coltext = 'MatBez.'.
append gt_fieldcat.
clear gt_fieldcat.
gt_fieldcat-fieldname = 'VGBEL'.
gt_fieldcat-no_zero = 'X'.
gt_fieldcat-outputlen = '8'.
gt_fieldcat-coltext = 'Lieferung'.
append gt_fieldcat.
clear gt_fieldcat.
gt_fieldcat-fieldname = 'AUBEL'.
gt_fieldcat-no_zero = 'X'.
gt_fieldcat-outputlen = '8'.
gt_fieldcat-coltext = 'Auftrag'.
append gt_fieldcat.
clear gt_fieldcat.
gt_fieldcat-fieldname = 'FKIMG'.
gt_fieldcat-outputlen = '8'.
gt_fieldcat-coltext = 'GelMeng'.
append gt_fieldcat.
clear gt_fieldcat.
gt_fieldcat-fieldname = 'VRKME'.
gt_fieldcat-outputlen = '4'.
gt_fieldcat-coltext = 'VrkME'.
append gt_fieldcat.
clear gt_fieldcat.
gt_fieldcat-fieldname = 'FKLMG'.
gt_fieldcat-outputlen = '8'.
gt_fieldcat-coltext = 'FakMeng'.
append gt_fieldcat.
clear gt_fieldcat.
gt_fieldcat-fieldname = 'MEINS'.
gt_fieldcat-outputlen = '4'.
gt_fieldcat-coltext = 'BasME'.
append gt_fieldcat.
clear gt_fieldcat.
gt_fieldcat-fieldname = 'PVKME'.
gt_fieldcat-outputlen = '5'.
gt_fieldcat-coltext = 'Preis'.
append gt_fieldcat.
clear gt_fieldcat.
gt_fieldcat-fieldname = 'VRKME'.
gt_fieldcat-outputlen = '4'.
gt_fieldcat-coltext = 'per'.
append gt_fieldcat.
clear gt_fieldcat.
gt_fieldcat-fieldname = 'NETWR'.
gt_fieldcat-outputlen = '5'.
gt_fieldcat-coltext = 'NettoBetr.'.
append gt_fieldcat.
clear gt_fieldcat.
gt_fieldcat-fieldname = 'PSTYV'.
gt_fieldcat-outputlen = '5'.
gt_fieldcat-coltext = 'PTyp'.
append gt_fieldcat.
clear gt_fieldcat.