Code: Alles auswählen.
Tables: vbrk, kna1, knbk.
Data: FAKTURADAT1 type vbrk-fkdat,
FAKTURADAT2 type vbrk-fkdat.
Data: ok-code type sy-ucomm,
save_ok like ok-code.
Start-of-selection.
Call screen 1000.
MODULE status_1000 OUTPUT.
SET PF-STATUS 'SCREEN_1000'.
ENDMODULE.
MODULE user_command_1000 INPUT.
IF sy-ucomm = 'BACK' or
sy-ucomm = 'CANCEL' or
sy-ucomm = 'EXIT'.
Leave PROGRAM.
ENDIF.
ENDMODULE.
End-of-selection.
Select * from vbrk
where fkdat between fakturadat1 and fakturadat2.
Write: / vbrk-vbeln.
Endselect.