Country specific Date and Amount format
Hi All,
Is there any way we can change the date and amount format?
Actually we are printing a Invoice smartform for US.
Now i want to copy that smartform for European countries for minor changes in the layout. In the same way i have to change the date and amount format. Is there any way we can do with out hardcoding. Please help in this issue.
Thanks in advance,
Bhanu P R Gattu.
We have the same problem. Our WDA is running under a service user which has the US date format. Even if we do
SET COUNTRY 'DE'.
It does not change the display format to DD.MM.YYYY but retains MM/DD/YYYY.
Similar Messages
-
Hi friends,
I am facing problem with date and currency format while uploading data through BDC.
Plz. tell me how to handle the problems related to Date and amount format.
Thanks in AdvanceDear Punit,
This is a common problem, when carrying out BDC.
For example, while recording you met with the 2 fields --> MSEG-DMBTR (Curr) and MSEG-MENGE(Quantity).
Go to SE11 --> MSEG --> Search for DMBTR --> Double click on the Data Element i.e. DMBTR --> Double Click on the domain WERTZ --> You can see under the block Output Characteristics : Output Length = 16.
While declaring the TYPES Structure, make it CHAR(16).
Similarly for MENGE --> Data Element : MENGE_D --> Domain : MENGE13 --> Output Length = 17.
Make it CHAR(17).
For Date field ---> CHAR(10).
Consider this technique as the Rule-of-Thumb while doing BDC.
Regards,
Abir
Don't forget to award points * -
Hi,
Please help me as i require to display dates are per the country , for eg if it is US the date should be dd/mm/yyyy else for other countries like india it should be dd.mm.yyyy .
Regards
AbhishekI know this is an old thread, but thought I would add my on comments:
This code example shows how to create a country specific date format.
Also see table T005 and field DATFM / Domain DATFM
DATA: external_date LIKE rvdat-extdatum,
country LIKE t005-land1,
internal_date LIKE syst-datum,
internal_period LIKE tprg-prgrs .
internal_date = sy-datum.
internal_period = 1.
country = 'DO'. "Dominican Republic
CALL FUNCTION 'PERIOD_AND_DATE_CONVERT_OUTPUT'
EXPORTING
country = country " Enter Country Code Here
internal_date = internal_date
internal_period = internal_period " Default this value to one
LANGUAGE = SYST-LANGU
I_PERIV = I_PERIV
I_WERKS = I_WERKS
I_MRPPP = I_MRPPP
IMPORTING
external_date = external_date " The date formated for the country will be in this field
EXTERNAL_PERIOD = EXTERNAL_PERIOD
EXTERNAL_PRINTTEXT = EXTERNAL_PRINTTEXT
EXCEPTIONS
DATE_INVALID = 1
PERIODE_INVALID = 2 -
How to set the Date and Currency Formats Based on Country
Hi Friends,
I am designing the one Global Form it will use for all countries.
in that Form i want to print the date and currnecy Formats based on country.
Like
For US i want print the date and Currency Like This.
Date - MM/DD/YYYY
Curremcy - XX,XXX,XX.XX
For DE i want print the date and Currency Like This.
Date - DD.MM.YYYY
Curremcy - XX.XXX.XX,XX
Please suggest how i can control these things through Java Script or Formcalc....Hi Nitin,
thanks For ur reply,
i tried with this solution,
But it is displaying the default Format like bellow formats.
For short - mm/dd/yy
For Medium - mmm dd , yyyy
For Long - thursday ,mmm dd , yyyy
it was prinitng in above mentioned format,
but here i want to print my own format for USA like MM/DD/YYYY. -
Hi,
When utilizing SmartForms for getting XSF output file, I've noticed, that dates and amounts are being formatted according country specific settings, i.e. date like MM/DD/YYYY or DD/MM/YYYY or DD-MM-YYYY etc. Similarly, the numeric values (amounts) are being formatted differently (1,234.56 or 1 234,56 etc.)
I would need to get rid from that masking and get only generic format in XSF output, i.e. 8 digit date (YYYYMMDD) and numeric values without any thousand separators, just with decimal dot (1234.56)
Does anyone know, how to turn this masking off?
Thank youhi
&symbol(T)& -- to remove the thousands seperator.
Example:::&EKPO-MENGE(T)& -> 1234.560
Use---->&symbol(K)& for Ignoring Conversion Routines
surya -
ESS services date and time format?
Hi,
How can we change the date and time format displayed on some of the ESS services like addresses, LR screen? Currently I see US format date MM/DD/YYYY and time is in european format 12,50 instead of dot(.).
I tried changing the browser setting to UK but it didn't work. Any other suggestion please?
Thanks
PraveenI tried to create a simple WD application with just date control UI element, I can see the date format is displayed based on my browser setting. If I change it to US in my browser locale, it date format changes to US date format, if I change it to UK locale the date format is UK based.
Only my ESS/MSS applications are always displayed as US format. I checked at the iView level and I can only see ForcedRequestLanguage but I cannot see ForcedRequestCountry property so I'm unable to set any country specific details here. When I look at the JCo connection language tab, I see the
Current locale: en
Default VM locale: en_US
I think this is where change is required. However I changed following JCo languages from en to en_UK but still no luck
SAP_R3_HumanResources
SAP_R3_HumanResources_MetaData
Backend is checked as posted above.
I checked below which is the second precendence in determining locale
Portal mandatory locale -- open file prtDefault.properties on server under
/usr/sap/<SID>/JC#/j2ee/cluster/server#/apps/sap.com/irj/servlet_jsp/irj/root/web-inf/portal/system/properties/
I cannot find below mandatory parameters in the prtDefault.properties file
request.mandatorylanguage
request.mandatorycountry
However, I found this
request.defaultlanguage=en
request.defaultcountry=us
Is this something I can change? Or should I replace or should I add mandatoryLanguage/country?
Can this file be edited through NWA or should this file be edited manually at the file system level?
Please advice.
Thanks
Praveen
Edited by: Praveen11 on Aug 20, 2009 8:38 AM
Edited by: Praveen11 on Aug 20, 2009 8:41 AM -
Dates and Amounts are shown incorrectly
Hi all,
We are receiving emails from a custom workflow, but the dates and amounts are in European format (dd.mm.yyyy and 1.000.000,00). I would like to change this to US format. I have already looked at the User ID's of all involved, including WF-BATCH and RFC_USER and they have the correct setup, yet the work items and emails which come from these users have the wrong format. Any suggestions?Are the e-mail generating steps executed in background (WF-BATCH format settings are relevant) or in foreground (executing user's format settings are relevant).
Perhaps you've had an ABAP rookie in your house who has hardcoded the formats? It has been known to happen.... -
Date and Cost formats in export toward Excel (2013)
Hi,
I'm trying to export Start date and Cost of my project tasks to Excel:
File/Save as/ Excel Workbook...
but all these date and cost data arrive in Excel with Text format. With the 2003 version, date and cost formats were well recognized.
I'm using Project 2013 English and Excel 2013 English on a French Win 7.
What are the settings (decimal separator...) which are needed to allow this feature ?
ThanksHi Julie,
Thanks for your help.
The "Convert to Number" feature works fine for the Cost.
But the dates arrive as text with a long format such as "03 August 2015 08:00" and the =DateValue(Cell
reference) function returns an error : #VALUE!
Any idea to retrieve the dates?
Thanks again -
Ack file date and time format is same as in source xml format
Hi...All,
1) my scenario is file-rfc-file using BPM,
we are getting file in xml format from source along with timestamp and this data will be going to R/3 and the acknowledgement (success or failure) file will be sending back to source system.
in this sceneario we have to fulfill in the follwing client requirement
File1.<same File1 date and time>.XML
Is it possible to make it as the following? if it is possible
could u please let me know how to fulfill the follwing requirement.
ACK File1.<same File1 date and time>.XML
Where <same File1 date and time> format = u2018YYYYMMDDhhmmssu2019 .
2) Is the XML file name visible in the SAP-XI monitoring screen and will it help to trace the messages?
thanks in advance,
Pasi.Hi,
I didnot under stand your first question coulf you be more specfic.
2. Ans : In general , we will follow the below steps
--First we we check for the file is picked or no, if not see the Sender side CC parameters like mode and path details
--If file was picked then we need to check whether we are using the File content conversion parameters or not if yes we need to check the FCC parameters ,
Goto RWB-Channelmonitoring by the following link
http://host:port/mdt/channelmonitorservlet
select the sender side CC name and check for errors
If no errors in above, goto SXMB_MONI for Integration Engine xml processing , check for successful or error occured black or red color
--if success in SXMB_MONI then we need to check in RWB as above channel monitor now select the receiver side CC
If no errors then check for output file is placed intarget or not
Please reward points if it helps
Thanks
Vikranth -
Menu bar date and time format in Lion
Is there a way to change the formatting of the date and time shown in the menu bar in Lion? I've been googling for a while, but can't find a solution. At the moment the time has a very unusual format of <hh:mm.ss>. Note the '.' before seconds. What I want to achieve is to change that dot to a colon as it normally is (and was in Leopard and earlier, don't know about Snow Leopard), ie. <hh:mm:ss>. I've checked the date and time formats in system settings several times, but those have no effect on the menu bar. When I set the clock to display an analogue icon and click on it, the date and time in the popup menu are shown correctly using the full format.
johankytt wrote:
Well ofcourse I am. And no, I am not using a third party utility. This functionality has been available in OSX for ages.
I never noticed that option!
It works ok for me (with a colon, not a dot).
Is it possible you have a dead pixel where the top dot of the colon should be? -
Validation on data and time format
Hi
In a flat file a date and time fill in but user. And the data and time format should always be fill in with the format <DDMMYYYY> <HHMMSS>
is there a FM which check whether user has put the wrong date format such as <YYYYMMDD> or <MMDDYYYY> instead for the the one mention above.
Please advise whether there is a FM which check on the format on the time stamp also.
Note: the input of the data and time is done by the user.
ThankHi,
use the new OOPs concept,
PARAMETERS dateTYPE c LENGTH 10.
DATA matcher TYPE REF TO cl_abap_matcher.
* For date
matcher = cl_abap_matcher=>create( pattern = `[0-9]{1,2}/[0-9]{1,2}/[0-9]{2,4}`
ignore_case = 'X'
text = date ).
IF matcher->match( ) IS INITIAL.
MESSAGE 'Wrong Format' TYPE 'I'.
ELSE.
MESSAGE 'Format OK' TYPE 'I'.
ENDIF.
like dis pattern for time :
[0-9]{1,2}:[0-9]{2}
pattern for timestamp:
[0-9]{1,2}/[0-9]{1,2}/[0-9]{2,4} [0-9]{1,2}:[0-9]{2}
Code Formatted by: Alvaro Tejada Galindo on Jan 7, 2009 4:35 PM -
User login report in Active Directory for specific date and time
I want to get User login report in Active Directory for specific date and time e.g user logged in at15-01-2015 from 8:00am to 4:00pm
Is any query, script or any tool available?
Waiting for reply pleaseYou can identify the last logon date and time using my script here: https://gallery.technet.microsoft.com/scriptcenter/Get-Active-Directory-User-bbcdd771
If you would like to get back in time and see when the user did a logon / logoff then you need to have auditing enabled. Once done, you can records from Security log in the event viewer: https://social.technet.microsoft.com/Forums/windowsserver/en-US/98cbecb0-d23d-479d-aa65-07e3e214e2c7/manage-active-directory-users-logon-logoff-events
I have started a Wiki about how to track logon / logoff and it can help too: http://social.technet.microsoft.com/wiki/contents/articles/20422.record-logon-logoff-activities-on-domain-servers-and-workstations-using-group-policy.aspx
This posting is provided AS IS with no warranties or guarantees , and confers no rights.
Ahmed MALEK
My Website Link
My Linkedin Profile
My MVP Profile -
How to change date and time format
Hi experts,
Can i know how to change the date and time format?
I want the date format to be dd-mmm-yyyy and time format to be hh:mm:ss
These date and time is in my sapscript form.
I make use of PERFORM function in sapscript.
This is the code in my print program.
FORM get_actlog_QA TABLES in_tab STRUCTURE itcsy
out_tab STRUCTURE itcsy.
DATA: object TYPE string, "
qaname LIKE JCDS-USNAM, "NAME for engineering process, QA Manager
qadate LIKE JCDS-UDATE, "DATE changed in engineering process, QA Manager
qatime LIKE JCDS-UTIME. "TIME changed in engineering process, QA Manager
DATA: lt_jcds type standard table of jcds,
wa_jcds like line of lt_jcds,
new_date(10) type c.
READ TABLE in_tab INDEX 1.
MOVE in_tab-value TO object.
select * into CORRESPONDING FIELDS OF TABLE lt_jcds
from jcds WHERE objnr = object
AND ( stat = 'E0005' )
AND inact = ''.
Loop at lt_jcds into wa_jcds.
qaname = wa_jcds-USNAM.
qadate = wa_jcds-UDATE.
qatime = wa_jcds-UTIME.
READ TABLE out_tab INDEX 1.
MOVE qaname TO out_tab-value.
MODIFY out_tab INDEX sy-tabix.
READ TABLE out_tab INDEX 2.
MOVE qadate TO out_tab-value.
MODIFY out_tab INDEX sy-tabix.
READ TABLE out_tab INDEX 3.
MOVE qatime TO out_tab-value.
MODIFY out_tab INDEX sy-tabix.
endloop.
clear wa_jcds.
ENDFORM.
This is my PERFORM in sapscript.
/: DEFINE &V_QANAME& = ''.
/: DEFINE &V_QADATE& = ''.
/: DEFINE &V_QATIME& = ''.
/: PERFORM GET_ACTLOG_QA IN PROGRAM ZFIR002
/: USING &VIQMEL-OBJNR&
/: CHANGING &V_QANAME&
/: CHANGING &V_QADATE&
/: CHANGING &V_QATIME&
/: ENDPERFORM.
Sapscript
Prepared by : &V_QANAME& ,, &V_QADATE& ,, &V_QATIME&
The output now is
Prepared by: Name 20080312 115536
I want to change the date format to 12-MAR-2008
and the time format to 11:55:36
Can anyone please suggest on how to solve this?
Thank you.Hi,
Before assigning the QADATE value you can write the logic to display 20080312 as 12-MAR-2008 taking the offset values .
Like
qadate = wa_jcds-UDATE.
qatime = wa_jcds-UTIME.
lw_year = qadate(4).
lw_month = qadate+4(2).
lw_date = qadate+6(2).
case lw_month.
when 1.
when 2.
concatenate lw_date '-FEB-' lw_year into qadate.
when 3.
concatenate lw_date '-MAR-' lw_year into qadate.
endcase.
READ TABLE out_tab INDEX 2.
MOVE qadate TO out_tab-value.
MODIFY out_tab INDEX sy-tabix.
And you can also change the timeformat also .
then assign that value to qatime .Then
READ TABLE out_tab INDEX 3.
MOVE qatime TO out_tab-value.
MODIFY out_tab INDEX sy-tabix.
I think this helps you.
Regards,
Rajitha. -
How do you change the date and time format in Pages
I've tried changing the date and time format a number of times for Pages but it does not change. I'm going to the System Preferences/Language and Text and Formats. I make the changes click on OK and go back to Pages. NO change.
Hi Uncle,
Page 116 of the Pages'09 User Guide: Control Click the date, Edit Date and Time.
Date and time can also be in a table. Format the table cell.
The User Guide is well worth a read. Download it from the Help menu in Pages.
Regards,
Ian. -
How to set the date and time format from Windows Server 2008 R2
Hi,
I want to control my client's date and time format as dd/mm/yyyy format and I need to do it using the windows server 2008 R2. How can I achieve this goal?
Yoshika04Hi,
In Windows Server 2008 R2, you can use Regional Options Extension in Group Policy Preferences to configure the date and
time format. For more information, please refer to:
Regional Options Extension
http://technet.microsoft.com/en-us/library/cc754496.aspx
Regards,
Bruce
Maybe you are looking for
-
IDOC-Segment Created a idoc document against Billing document
Dear All, Thanks in advance. Already created a idoc document against Billing document and one of the IDOC segment is not in the IDOC document output segments(WE05) actually it missed the segment. so i want to add the segment which it was missed duri
-
i am using NIPCI6229 card i want to generate 5 V in the digital ouput line . it has to be there in the output line only for 100ms please help me. aftwer 100ms it has to go to zero state
-
when i try to open itunes i get a message "itunes can not be opened" -1712 what can i do?
-
Call subcontroller in new window
at the moment, i show a subcontroller in the middle of my page like this <bsp:call url = "myController.do" comp_id = "abc"> <bsp:parameter name="mr_object" value="<%= controller->mr_object %>" /> </bsp:call> Now I would like to op
-
Session Management in BSP applications
Hello, I habe been developing the following application to send E-Mails from Outlook to SAP WEB AS Abap Stack: - I have created a COM-Addin in MS Outlook - When the user clicks on a button, that I have created, the currently marked E-Mail-Message is