Automic Workload Automation

 View Only
  • 1.  HEADER.SAP.USER.START writing text into the REP report

    Posted May 13, 2022 10:10 AM
    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


  • 2.  RE: HEADER.SAP.USER.START writing text into the REP report

    Posted May 14, 2022 12:47 AM
    Hi Mariusz,

    the job report of a SAP job is the "job log" information retrieved from SAP (you can access it via SM37). And this is created by the ABAP you're running from AE. So in order to add something to it, you'll have to modify the ABAP coding.

    regards,
    Peter


  • 3.  RE: HEADER.SAP.USER.START writing text into the REP report

    Posted May 17, 2022 11:25 AM
    Hallo Peter,

    Thank you very much for your answer, I will try to find a different solution.

    best regards
    MaKe