cancel
Showing results for 
Search instead for 
Did you mean: 

date format: DD-MM-YYYY

Former Member
0 Kudos

Hi,

I am using SAPscipt in arabic language and printing a date field in DD-MMM-YYYY format in english.

It is printing in expected format,except month,which is in arabic.

Day and year are coming in english by default,but month is coming in arabic,even when i have used SET COUNTRY ' ' in print program and in SAP script,brfore printing the date.

Can you please give me some inputs for printing month also in english.

Thanks & Regards

Seshagiri

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Pls check whether the following logic is useful to you:

TABLES: T247.

DATA: V_DATE TYPE SYDATUM.

DATA: V_STRING(20).

V_DATE = SY-DATUM.

SELECT SINGLE * FROM T247

WHERE SPRAS = SY-LANGU

AND MNR = V_DATE+4(2).

IF SY-SUBRC = 0.

CONCATENATE V_DATE+6(2) '-' T247-KTX '-' V_DATE(4)

INTO V_STRING.

WRITE: / V_STRING.

ENDIF.

If u can implement a similar thing in the script, it will work I think.

Regards,

Renjith Michael.

Former Member
0 Kudos

Hi,

Befire printing it use

SET DATE MASK 'MM/DD/YYYY' or in whatever format you need.

Reward points if useful

Regards,

Nageswar