Code: Alles auswählen.
IF dattab-pernr = ' ' AND
dattab-team = ' ' AND
dattab-fahrpunkte = ' ' AND
dattab-fallpunkte = ' ' AND
dattab-berpunkt = ' ' AND
dattab-nebent = ' ' AND
dattab-sollpunkt = ' '.
....
ENDIF.
Code: Alles auswählen.
types:
begin of ts_type_1,
pernr TYPE dattab-pernr,
team TYPE dattab-team,
end of ts_type_1
types:
begin of ts_type_2,
fahrpunkte TYPE dattab-fahrpunkte,
fallpunkte TYPE dattab-fallpunkte,
berpunkt TYPE dattab-berpunkt,
nebent TYPE dattab-nebent,
sollpunkt TYPE dattab-sollpunkt,
end of ts_type_2.
types begin of ts_type_3.
include type ts_type_1 as key_fields
include type ts_type_2 as data_fields
types end of ts_type_3.
Code: Alles auswählen.
data: ls_data type ts_type_3.
* ...
if ls_data-data_fields is initial.
* Irgendetwas machen wenn die Datenfelder leer sind
endif.
if ls_data-key_fields is initial.
* Irgendetwas machen wenn die Schlüsselfelder leer sind
endif.
if ls_data is initial.
* Irgendetwas machen alle Felder leer sind
endif.
if ls_data-sollpunkt is initial.
* Irgendetwas machen wenn ein Feld leer ist
endif.
Code: Alles auswählen.
IF dattab is initial.
Code: Alles auswählen.
IF dattab-pernr IS INITIAL AND
dattab-team IS INITIAL AND
dattab-fahrpunkte IS INITIAL AND
dattab-fallpunkte IS INITIAL.......
....
ENDIF.