Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Want to know all jobs with a spezial mailadress at the spool recipient

ulda
Explorer
0 Kudos

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

2 REPLIES 2

raymond_giuseppi
Active Contributor
0 Kudos

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.

0 Kudos

Thank you! 🙂

I will try it