cancel
Showing results for 
Search instead for 
Did you mean: 

System date and time variables in Alert container

Former Member
0 Kudos

Is there a way to retrieve system date and system time during dynamic creation of Alert text message in alert category?

Thanks,

Pam

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi

If you are using dynamic alert, you can create a variable (VarTime), and use the container operation to assign a value to it. In the container operation you have access to your interface variables and from them you can use Context Objects. From here you have access to different time variables, for example TimeSent for the interface variable. Not sure how accurate your timestamp needs to be, but this was good enough for me.

regards Ole

jyothi_anagani
Active Contributor
0 Kudos

Hi,

/people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step

Thanks.

Former Member
0 Kudos

Hi Pam,

I found that it is possible to include date & time in alert container:

In Container tag:

Add element: Date, data type is ABAP Dict. Data Type = SWFXST_DATE

Add element: Time, data type is ABAP Dict. Data Type = SWFXST_TIME

Then you may try to add in long or short text to include these containers:

Date: &DATE&

Time: &TIME&

Regards,

Donald

Former Member
0 Kudos

you can only use the container vairables defined in the below link

http://help.sap.com/saphelp_nw04/helpdata/en/d0/d4b54020c6792ae10000000a155106/content.htm

since system date and time are not in there,you can't use them in alert categories

Thanx

Aamir