on 05-01-2008 12:11 PM
Hi Experts,
I have a variable in which i have a date which is the output of a perform
&GV_BLDAT&, the date is in this format
20080424
I need this date to be printed in 24.04.2008
I have tried to use SET DATE MASK
the data type of this is Gv_BLDAT type likp-bldat,
can any one help me with the steps
data: w_date type char10.
concatenate gv_bldat6(2) '.' gv_bldat4(2) '.' gv_bldat+0(4) into w_date.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
To format date fields, use the SAPscript SET DATE MASK command. Executing this command causes all subsequent date fields to be printed with the specified formatting.
Syntax
/: SET DATE MASK = 'date_mask'
The following templates may be used in the date mask:
DD day (two digits)
DDD name of day (abbreviated)
DDDD name of day (written out in full)
MM month (two digits)
MMM name of month (abbreviated)
MMMM name of month (written out in full)
YY year (two digits)
YYYY year (four digits)
LD day (formatted as for the L option)
LM month (formatted as for the L option)
LY year (formatted as for the L option)
Assuming a current system date of April 24th, 2008.
/: SET DATE MASK = 'DD.MM.YYYY'
&DATE& -> 24.04.2008
/: SET DATE MASK = 'MMMM DD, YYYY'
&DATE& -> March 01, 1997
Hope this helps u...
Regards,
KK
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think you have to manually do the formatting if set date mask doesnt work.
Since you already got the date from a subroutine (perform), why not edit it there also.
you can use write statement for the format in the external subroutine.
reward if helpful.
thanks.
tyken
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.