on 11-21-2016 4:25 AM
Hi All,
My requirement is to send the output as Excel to all Email id/distribution list maintained in Spool list recipient inSM36 when scheduling a batch job.
When the batch is executed , in run time I need to read what ID's they have given in Spool recipient.
Any FM or tables?
Check Table "TBTCO" for your Job-characteristics for field "RECOBJTYPE" with value 'RECIPIENT' and check the "RECOBJKEY" for the Distribution List ... Then you can use FM "SO_DLI_LIST_READ" to get the E-mail ID's if necessary (or Fetch directly from tables "SOID" / "SODM" / "SOUD").
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nic,
Thank you .I found the distribution list name from SOID table only passing the RECOBJKEY.
I need one more clarrification.
If user gives Internal user ,External address, Org Unit in SM36 spool recipient how to find it.?
If user give internal user the - The RECOBJKEY values is like USR41000000000XXX 410000000XXXX
If user give Distribution list - The RECOBJKEY value isDLI410000000000XX 410000000XXXX
Can u tel me the tables for internal user ,External address, Org Unit.
Thanks
James
OK, then you can make use of FM "SO_USER_ADDRESS_READ_API1" and fill the TABLES Param "USER_ADDRESS-USERID" with that first part of the 'RECOBJKEY' ("&AD 0000039412") ... Execute the Function, and that should work ...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nic,
Thank you its working good.
Can you tel me all the FM for reading all cases of spool recipient list in organizational unit
1. SM36 ->spool recipient ->Organizational Unit -> (Workcenter , Job, Person, User, Position)
2. SM36 ->spool recipient ->Addressess and internal users
Thanking you,
james
Hello James
Maybe you could try this way when you use the DistributionList-result :
Or maybe you already have the Distr.List, so you can skip everything before the FM?
Hope this helps ...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nic,
Thank you .I found the distribution list name from SOID table only passing the RECOBJKEY.
I need one more clarrification.
If user gives Internal user ,External address, Org Unit in SM36 spool recipient how to find it.?
If user give internal user the - The RECOBJKEY values is like USR41000000000XXX 410000000XXXX
If user give Distribution list - The RECOBJKEY value isDLI410000000000XX 410000000XXXX
Can u tel me the tables for internal user ,External address, Org Unit.
Thanks
James
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.