cancel
Showing results for 
Search instead for 
Did you mean: 

Date field separators locale

former_member190457
Contributor
0 Kudos

Hi everybody,

I am working with date fields on both WDJ and R/3. Abap date field separators are ".".

In my locale, WDJ iview date field separators are "/". We want WDJ iview separators to become ".".

I found out this [workshop|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/58a7e390-0201-0010-abb1-8eec7eb7a2ec], at page 83, it is explained that WDJ locale can be set through a url parameter.

Where should this parameter be set? In the iview configuration, we tried in the "application parameters" the value sap-locale=de, and also the Forced Display Language=German. But no result so far.

Can anyone help?

Thanks and regards,

Vincenzo

Accepted Solutions (1)

Accepted Solutions (1)

siddharth_jain
Active Contributor
0 Kudos

Please have a look on following thread to get some idea:

Siddharth

former_member190457
Contributor
0 Kudos

Hi, thanks the two following solutions are available:

- in iview application parameters: sap-locale%3Dde (do NOT use the "=" character).

- in your component you can define a method such as


private void internalFormatDate(Date ui_el) {
		SimpleDateFormat formatter =
			(SimpleDateFormat) DateFormat.getDateTimeInstance(
				DateFormat.LONG,
				DateFormat.LONG,
			                Locale.GERMAN);
		formatter.format(ui_el);
	}

Thanks, regards,

Vincenzo

Answers (2)

Answers (2)

siddharth_jain
Active Contributor
0 Kudos

Hi,

Did you try assigning the value as de_DE or de-DE as mentioned in the SAP help.

Also you can try accessing the WD application with the Parameter in Standalone way instead of WDJ iview and see if it works.

If it works in Standalone mode then there will be some different way to pass this Paramenter in Portal mode.

Siddharth

former_member190457
Contributor
0 Kudos

Hi,

de_DE, de-DE, de no use...

however in standalone mode the simple sap-locale=de works.

Indeed it must be supposed to work differently...

Can anyone please help?

Vincenzo

siddharth_jain
Active Contributor
0 Kudos

Hi,

I guess You have to append this parameter to Webdynpro Application URL while accessing,Check the following SAP Help:--

http://help.sap.com/saphelp_nw2004s/helpdata/en/f4/651741f163f023e10000000a155106/frameset.htm

Siddharth

former_member190457
Contributor
0 Kudos

Hi, that's exaclty what I did.

In my iview's application parameters I've specified: sap-locale=de

with no results.

Any idea?

Thanks, regards

Vincenzo