on 2019 Jan 10 5:07 PM
I want to get the date format of logged in system in a variable like if the date format of system is 'dd.mm.yyyy' then the same string i want as output. I want to have the value in a variable which i am using while writing function module.
Request clarification before answering.
Could you reformulate 'the date format of logged in system' ?
You can get
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As the others have stated the internal date format is YYYYMMDD.
If you want the date format settings for a specific user try using Function module SUSR_GET_USER_DEFAULTS.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Check the conversion exits, or write the date variable to a character variable. That will give you the date in user format, as Loyd says, the internal date format is YYYYMMDD.
Rich
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Shalinee,
You are starting from an incorrect premise. The date format of any SAP system is ALWAYS in the format YYYYMMDD and is based on the SAP data type of DATS.
The display format is based on the user parameter unless overridden. This is clearly documented within any SAP system, and is required reading.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
30 | |
8 | |
8 | |
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.