cancel
Showing results for 
Search instead for 
Did you mean: 

Issue in Date Format in Production

mohit_bansal3
Active Participant
0 Kudos

Hi ,

I have written for Invoice Prining SAP SCript for F.62.

In developemt and Quality system Date format is coming" MM/DD/YYYY" But in Production system it is showing "YYYY/DD/MM'.

I have checked the Program aslo, which is also same in every server and checked the User Profile also, which is showing 'MM'DD'YYYY'.

I am trying to get the solution, what may be the reason for the same.

Rgds

Mohit

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Change the user default setting as mentioned in program by using Tcode:SU3

Former Member
0 Kudos

HI,

if you changing default setting using Tcode:SU3..... May be its resolved problem for current user.....

But in feature may be some another user will get same problem due to different date formats settings.

May it's better to modify sap script code ...

Regards

sudheer

Answers (1)

Answers (1)

Former Member
0 Kudos

HI Mohit,

if possible provide your sap script printing code. so that we will analyse the issue.

-


For time beeing try to use below code during Invoice Prining

DATA: year(4),

mnth(2),

day(2),

l_v_date TYPE sy-datum.

CLEAR: date,

year,mnth,day.

CLEAR: year,

mnth,

day,

l_v_date.

year = g_wa_head1-lfdat+0(4).

mnth = g_wa_head1-lfdat+4(2).

day = g_wa_head1-lfdat+6(2).

CONCATENATE mnth '/' day '/' year INTO date.

regards

sudheer