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: 

SX_INTERNET_ADDRESS_TO_NORMAL

Former Member
0 Kudos

hi,

i need to validate the email id which user enters in the input field of a screen.I used the fuctional module SX_INTERNET_ADDRESS_TO_NORMAL but its not working..so can u please tell me what is the right way to use this FM...This FM doesnt have documentation too.

please help me,

Thanks in advance

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Thanks for the reply but i cant get it.. i want to know what are should be entered in the importing and exporting column...

can u please tell me that..

thanks

4 REPLIES 4

Former Member
0 Kudos

check this thread

Former Member
0 Kudos

Thanks for the reply but i cant get it.. i want to know what are should be entered in the importing and exporting column...

can u please tell me that..

thanks

0 Kudos

in ADDRESS_UNSTRUCT structure

pass the following

TYPE = INT

ADDRESS = the email addess to be validated

0 Kudos

type-pools: sx.

data: BEGIN OF sx_address, "SAPconnect general addr

type TYPE sx_addr_type,

address TYPE sx_addr,

END OF sx_address.

sx_address-type = 'INT'.

sx_address-address = 'abc@@@@hotmail.com'.

CALL FUNCTION 'SX_INTERNET_ADDRESS_TO_NORMAL'

EXPORTING

ADDRESS_UNSTRUCT = sx_address

IMPORTING

ADDRESS_NORMAL = SX_ADDRESS

EXCEPTIONS

ERROR_ADDRESS_TYPE = 1

ERROR_ADDRESS = 2

ERROR_GROUP_ADDRESS = 3

OTHERS = 4.

IF SY-SUBRC = 2.

message 'Invalid Address' type 'E'.

ENDIF.