代码部分(其中1-4均放在print的form中即可,5单独一个form):
1.
DEFINE SAVEBUFFER.
PERFORM SAVE_TO_BUFFER USING &1 &2.
END-OF-DEFINITION.
2.
DATA: PRINTID TYPE GUID_22. "*
DATA: TIMEID TYPE GUID_22. "* "*
CALL FUNCTION 'GUID_CREATE' "*
IMPORTING "*
EV_GUID_22 = PRINTID. "*
CALL FUNCTION 'GUID_CREATE' "*
IMPORTING "*
EV_GUID_22 = TIMEID.