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: 

Messages for Password Expire

Former Member
0 Kudos

Hi Experts,

I am using an application and it has password facility .

The password will expire every 90 days.

Now my issue is, I want a message like "ur password will expire soon" from 80th day onwards.

Plz help me to achive this.

Regards

Ganesh Reddy

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Hi Experts,

I am using an application and it has password facility .

The password will expire every 90 days.

Now my issue is, I want a message like "ur password will expire soon" from 80th day onwards.

Plz help me to achive this.

DATA: create_date type sy-datum,

current_date type sy-datum,

diff type i.

create_date = Password created date.

current_date = sy-datum.

diff = current_date - create_date.

If diff ge 80.

message 'Ur password will expire soon' Type 'I'.

endif.

Hope this helps u.

Thanks.

10 REPLIES 10

Former Member
0 Kudos

Hi,

You can do one thing.


data: l_create type sy-datum
data: l_expire type sy-datum

1) take the create date of the pasword.

l_create =  z_password_create_date.

2)
l_expire = l_create + 80     "80 days you are adding

3) if l_expire = sy-datum
   message e00(ooo)   with text "ur password will expire soon"
   endif.

this will give the message when ever that report is executed...

hope this will help you.

Regards!

Former Member
0 Kudos

hi

do this..

first you take a variable for the date calculation ok ..say var1..

and at the time of password creation save the exp date of password as.



exp_dat = sy-datum + 90.


"for calulation of exp days...

var1 = exp_date - sy-datum.


"for the message printing..


message E001 with var1.



"TEXT :

ur password will expire within &   " remember to write & 

hope this help you.

Regards

Ritesh J

Former Member
0 Kudos

Hi,

Hi Experts,

I am using an application and it has password facility .

The password will expire every 90 days.

Now my issue is, I want a message like "ur password will expire soon" from 80th day onwards.

Plz help me to achive this.

DATA: create_date type sy-datum,

current_date type sy-datum,

diff type i.

create_date = Password created date.

current_date = sy-datum.

diff = current_date - create_date.

If diff ge 80.

message 'Ur password will expire soon' Type 'I'.

endif.

Hope this helps u.

Thanks.

0 Kudos

2 persons with exactly the same problem?

Edit: nvm.

0 Kudos

Hi Maen,

I am not getting ur points??

0 Kudos

I'm not giving any points.

Anyway, strikes me a bit odd to see 2 different persons with exact the same problem, exact the same message. If you're co-workers, wasn't one person posting the question enough?

Another thing: what's the problem with the code you posted?

0 Kudos

hey ...who r u the 2 persons?

0 Kudos

I wonder why people ask such questions and more surprising is that other post answer to such silly queries.

0 Kudos

Hey,

Sorry guys.

While posting the answer for this question, i forgot to delete the orginal question.

Thats the problem.

Leave it.

0 Kudos

hey Anuraag Aggarwal ...

don't think you are the genious....

Don't comment like this ... all guys are not like me..