Application Development and Automation 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: 
Read only

check mail

Former Member
0 Likes
508

hi experts I  have report

I want help in the following two points :

  • Check
    the e-mail address for the pernr from the current record if it has
    ‘@gmail.com’ to see if it requires to be updated,
  • If
    condition is true then check from the previous record to get the old e-mail
    address and update the current e-mail address record of the pernr,
1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
464

Try this ;

DATA:  lv_mailTYPE string

          

START-OF-SELECTION.

lv_mail = mail address as per input / stored in DB.

IF lv_mail CS  '@gmail.com'.

   Apply the processing logic.

ENDIF.

Cheers!

Abhinab.

hi experts I  have report

I want help in the following two points :

  • Check
    the e-mail address for the pernr from the current record if it has
    ‘@gmail.com’ to see if it requires to be updated,
  • If
    condition is true then check from the previous record to get the old e-mail
    address and update the current e-mail address record of the pernr,
2 REPLIES 2
Read only

venkat_aileni
Contributor
0 Likes
464

Hi-

You can use string operator SPLIT to check  string '@gmail.com'.

like:

DATA: string TYPE string,

       lv_str1 TYPE string,

       lv_str2 TYPE string.

string = '[email protected]'.

SPLIT string AT '@' INTO lv_str1 lv_str2.

CONDENSE: lv_str2.

TRANSLATE lv_str2 TO LOWER CASE.

IF lv_str2 = 'gmail.com'.

"<Add your logic>

ENDIF.

Thanks,

Venkat

Read only

Former Member
0 Likes
465

Try this ;

DATA:  lv_mailTYPE string

          

START-OF-SELECTION.

lv_mail = mail address as per input / stored in DB.

IF lv_mail CS  '@gmail.com'.

   Apply the processing logic.

ENDIF.

Cheers!

Abhinab.