Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Date format changes for different documents

Former Member
0 Likes
476

Dears,

I am facing some issues while generating some outputs in SAP Script which related to F.62 transaction. Though I have completed the requirement but after generating the output the date format are coming different for different documents.

These all documents belongs to the country USA. and the for this fomat is maintained in the system is DD/MM/YYYY.

But after generating the output in SAP Script, it comes with diffrenet format like DD.MM.YYYY for some documents.

For e.g,

SY-DATUM               01/24/2013 with one doucment

BLDAT                      12/22/2012

SY-DATUM               24.01.2013 with another document

BLDAT                     01.10.2012

Kindly advise me with proper solutions.

Thanks in advance,

Shreya

2 REPLIES 2
Read only

Former Member
0 Likes
416

Hi,

"SET DATE MASK" has been used for displaying above date formats .

so please check is different Masking used for displaying BLDAT ?

How to Used SET DATE MASK  find below link .

http://help.sap.com/saphelp_40b/helpdata/en/d1/8031dd454211d189710000e8322d00/content.htm

Regard's

Smruti

Read only

gouravkumar64
Active Contributor
0 Likes
416

HI Shreya,

try like this,

just before ur variable in sapscript.

/: SET DATE MASK = 'DD.MM.YYYY'.

the next line contains ur date variable.similarly u can use this any place.

lastly see this,

http://help.sap.com/abapdocu_70/en/ABENCOUNTRY_FORMATS.htm

There are many wiki help also.

search please.

Hope It helps.

Thanks

Gourav.