Let's follow up this discussion at the Neptune Community

(this forum will be kept in read-only mode)
Answered

Set Date, time and currency formats globally

Hi 


Is there a way to set the date, time and currency settings globally in a Neptune application.


I need to to get the users sap display settings from usr01 and display said items in the appropriate format in lists and tables etc.


1.  Is there a way to set the date/time/currency formats globally

2.  If not, I can write a new format routine and call it from the format method of a table column, but I would like to use the build in routines e.g. date:MM.dd.yyyy, how would I call this from java script.


Thanks


Darren


Best Answer

Hi Darren


Here is the guide:


Add these entries to Table /NEPTUNE/LIB_VAL


A 339 date:BrowserSetting

A 339 date:SAPUserDefault

A 339 number:BrowserSetting

A 339 number:SAPUserDefault

A 339 time:BrowserSetting



Then change the method: UI5_VALUE_FORMATTER in class /NEPTUNE/CL_NAD_SERVER. Use the attached file.


Enjoy


Regards

Ole Andre 




txt

Hi Darren


In NAD 3.1 SP01 we have introduced new formatters, that read SAP or Browser format:


date:BrowserSetting

number:BrowserSetting


date:SAPUserDefault

number:SAPUserDefault


I guess this is what you are looking for.


Another solution is to use the formatters, and then call a global function for formatting Numbers/Dates.


Regrads

Ole Andre

HI Ole-André


We have implemented nad 3.1 and I cant see date:SAPUserDefault or number:SAPUserDefault in any of the format routines, this would be perfect for what I need.


How can I get these formatters


Thanks

Hi 


date:SAPUserDefault and number:SAPUserDefault is exactly what I require

When is sp01 being released ?


Thanks

HI Darren


NAD 3.1 SP01 will be released in June. Still a lot of development, so the date is not set atm.


Will that be in time for you ?


Regards

Ole Andre 

HI Ole-André


We have a go live for the first suite of apps on  Monday 15th of June.

I also have a desktop application that uses sap.m and am waiting on the search help functionality also.


No pressure :), but do you think these features will be available by then ?


Thanks


Darren

Hi Darren


I think the date will be closer to the end of June.


But, we can implement the change in your system if you like. 


Regards

Ole Andre 

Hi Ole-André


That would be a great help, it would take a bit of pressure off.

What do you require to implement this


Many thanks


Darren

Answer

Hi Darren


Here is the guide:


Add these entries to Table /NEPTUNE/LIB_VAL


A 339 date:BrowserSetting

A 339 date:SAPUserDefault

A 339 number:BrowserSetting

A 339 number:SAPUserDefault

A 339 time:BrowserSetting



Then change the method: UI5_VALUE_FORMATTER in class /NEPTUNE/CL_NAD_SERVER. Use the attached file.


Enjoy


Regards

Ole Andre 




txt

1 person likes this

Hi Ole Andre 


This works perfectly


Many thanks for your very prompt help

Login or Signup to post a comment