SAP ABAP - Sample Program On Function Module To Verify Valid E-Mail Address - SX_INTERNET_ADDRESS_TO_NORMAL.

TYPES: BEGIN OF sx_address,
type TYPE sxaddrtype-addr_type,
address TYPE soextreci1-receiver,
END OF sx_address.

DATA: unstruct TYPE sx_address.

unstruct-type = 'INT'.
unstruct-address = adr6-smtp_addr.

IF adr6-smtp_addr IS NOT INITIAL.

CALL FUNCTION 'SX_INTERNET_ADDRESS_TO_NORMAL'
EXPORTING
address_unstruct = unstruct
* COMPLETE_ADDRESS = 'X'
* IMPORTING
* ADDRESS_NORMAL =
* LOCAL =
* DOMAIN =
* COMMENT =
* ADDR_NORMAL_NO_UPPER =
* ADDR_NORMAL_NO_UP_WITH_COMMENT =
EXCEPTIONS
error_address_type = 1
error_address = 2
error_group_address = 3
OTHERS = 4.


IF sy-subrc NE 0.
MESSAGE 'Please Provide A Valid E-Mail ID.' TYPE 'E'.
ENDIF.

ENDIF.


MORE PROGRAMS ON REPORT PROGRAMMING:

- Type Conversion ( Char To Curr Type).

- Type Conversion ( Curr To Char Type).

- Setting Default Values In Selection Screen.

- Programming On Buttons In A Screen.

- Create A Screen With Two TABSTRIPS For A Report Program.

- ...Back To Index On Report Programming.


Your suggestions and comments are welcome in this section.

Please mail all your contributions to administrator@abapmadeeasy.com We request you to mention your Name, Designation, Experience & Organization you are working for. Your posts will be verified and posted in this site with your name.