on 10-23-2007 7:57 AM
Hi all,
Currently my date format in one smartform is 04.09.2007 i want to change this to 09/04/2007. What i have to do.
Please help me its urgent.
Thank you. Sidd.
Hi,
Check
/: SET DATE MASK = 'date_mask'
http://help.sap.com/saphelp_erp2004/helpdata/en/d1/8031dd454211d189710000e8322d00/content.htm
regards,
Omkar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
u can change the date foramat by calling the function module.
CALL FUNCTION 'CONVERSION_EXIT_IDATE_OUTPUT'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
In the same Tcode Change your User profile settings
System--> User Profile --> Own data --> Defaults( Tab) --> Date format
Check this link
http://www.sapdb.org/7.4/htmhelp/48/0d8018b4f211d2a97100a0c9449261/content.htm
Try with this
/: SET DATE MASK = 'date_mask'
If u want the output then use this coding in your smartfom
Use the FM : CONVERSION_EXIT_IDATE_INPUT to convert date to Date format.
try like this. it will solve your problem
start-of-selection.
data: lv_date type sy-datum.
data: lv_formatdate(10) type c.
data: var1(4) type c,
var2(2) type c,
var3(2) type c.
lv_date = sy-datum.
var1 = lv_date+(4).
var2 = lv_date+4(2).
var3 = lv_date+6(2).
concatenate var3 var2 var1 into lv_formatdate separated by '.'. " By changing here Var position you can get your required output
Ex: var1 var2 var3
etc
Regards
Pavan
Message was edited by:
Pavan praveen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
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.