Daar Community,
I would like to use HEADER.SAP.USER.START to write some additional information in the 'REP' report for Job SAP_ABAP.
For the object include HAEDER.UNIX.USER.START I use the command 'echo' to write the values of the variables in the report, unfortunately this does not work for SAP_ABAP.
Currently I use the PRINT function, but it writes the data to the activation report (ACT) of this object.
Settings for HEADER.SAP.USER.START:
:set &SAP_JOBNAME = SYS_ACT_ME_NAME()
:set &SAP_TITLE = get_att_plain(OBJECT_TITLE)
:set &SAP_PARENT = sys_act_parent_name()
:set &SAP_CLIENT = SYS_ACT_CLIENT()
:PRINT "METADATA # JOBNAME: &SAP_JOBNAME #"
:PRINT "METADATA # TITLE: &SAP_TITLE #"
:PRINT "METADATA # PARENTNAME: &SAP_PARENT #"
:PRINT "METADATA # CLIENT: &SAP_CLIENT #"
Text stored in Activation (ACT):
2022-05-13 01:47:43 - U00020408 METADATA # JOBNAME: JOBS.SAP_ABAP.TEST1 #
2022-05-13 01:47:43 - U00020408 METADATA # TITLE: SIMPLE ABAP TEST1 #
2022-05-13 01:47:43 - U00020408 METADATA # PARENTNAME: #
2022-05-13 01:47:43 - U00020408 METADATA # CLIENT: 1031 #
Is it possible to write this information (&SAP_JOBNAME, &SAP_TITLE, &SAP_PARENTNAME, &SAP_CLIENT) to the 'REP' report for Job SAP_ABAP?
I know that theoretically one can change the SERVER_OPTIONS configuration for the PRINT function and set 'P' in position 15, but this is not a good solution for me.
Thanks in advance for any guidance.
best regards
MaKe