cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Table containing scot smtp 'Address area' e-mail addresses

benoit-schmid
Contributor
0 Likes
3,363

Good Morning,

Could you provide me the table name that stores the e-mails stored for the following scot configuration:
SCOT -> SMTP Nodes -> SMTP -> Internet -> Address area

Thanks in advance for your help.

Accepted Solutions (1)

Accepted Solutions (1)

mamartins
Active Contributor

The table you need to read is the SXROUTE, column Address Area (REC_ADDR).

Interestingly, the data is stored backwards...

benoit-schmid
Contributor
0 Likes

Good Afternoon,

You are correct. It is the table I am looking for.

The e-mail addresses are reversed. By reversed, I mean that tota@ch is stored as hc@atot.

From unix, I am using the following command to get the e-mail addresses:
hdbsql -a -x -quiet -U default 'select rec_addr from sxroute' | rev

Would you know if I could get the correct e-mail address with a direct sql query?

Have a nice day.

jmodaal
Active Contributor

Hello,

I do not know whether this is possible in SQL. If you are in ABAP, you can use function module SX_ADDRESS_IN_ROUTE_CONVERT or have a look into the source code and use the ~10 lines of code where the mirroring is done. 

Kind regards

Jan

benoit-schmid
Contributor
0 Likes

Good Morning,

Yan, could you post you abap code in this thread?

Have a nice day.

jmodaal
Active Contributor

Hello,

I have doubts whether it is allowed to post source code from SAP here in the forum. Just have a look into the function module. It is no rocket science. Or you can use this ABAP source code, which does the same: 

 

 

data: mirrored   type char80 value 'moc.ti-tuctrohs@ofni',
      unmirrored type char80.
data: moveToOffs type i,
      moveFromOffs type i.
write:/ 'Mirrored string  :', mirrored.
moveToOffs = strlen( mirrored ) - 1.
moveFromOffs = 0.
do strlen( mirrored ) times.
  unmirrored+moveToOffs(1) = mirrored+moveFromOffs(1).
  moveToOffs = moveToOffs - 1.
  moveFromOffs = moveFromOffs + 1.
enddo.
write:/ 'Unmirrored string:', unmirrored.

 

 

 

 

Kind regards

Jan

 

Answers (1)

Answers (1)

S_Sriram
Active Contributor
0 Likes