on 02-06-2008 10:30 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Befire printing it use
SET DATE MASK 'MM/DD/YYYY' or in whatever format you need.
Reward points if useful
Regards,
Nageswar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
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.