04-19-2017 8:07 AM
Hey Guys,
i searching for the possibility to find out all jobs, that have the Mailaddress blabla@blabla.com in the Spoollist recipient.
The background is, that the Mailaddress will no longer be accessible.
So i have to change the Mailaddress at every job - of course, i will change it to a SAP User, so we don´t have this problem in the future again.
Thank you!
Daniel
04-19-2017 10:03 AM
You have to read data from table TBTCO where TBTCO-OBJTYPE = 'RECIPIENT', you could also check TBTCO-OBJKEY(3) equal to '&AD'. (vs USR for user, DLI for distribution list)
Then CALL SO_USER_ADDRESS_READ_API1 with a single record in USER_ADDR where USERID = TBTCO-OBJTYPE(17) and COM_TYPE = TBTCO-OBJTYPE+17(6). In the changed table parameter Mail address will be filled in ADDRESS subfield.
04-21-2017 6:33 AM