cancel
Showing results for 
Search instead for 
Did you mean: 

set date mask not working in Script for some line items

Former Member
0 Kudos

Hi,

We are using SET DATE MASK 'DD-MMM-YYYY' to print a date field for some line items. We are getting the correct format e.g. 31-Dec-2006 for most of the line items. But for some of the line items the format displayed is 31/12/2006.

The field which are displaying is of type LIKP-WADAT_IST.

If any one knows why this could be happening pls let us know.

Regards,

Koustubh

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

There are 2 areas you need to check:

1. User Profile - is your date format set to "DD.MM.YYYY" ?

2. If user profile already set, try to issue

SET COUNTRY ' ' in your smart forms in the initialization

Former Member
0 Kudos

Hi,

here is the code for which i am facing the problem

/*

/E ITEM_TDEL_BL

/: SET DATE MASK = 'DD-MMM-YYYY'.

P3 ,,,,,,&T_TDEL_BL-mtyp_txt&,,&T_TDEL_BL-WADAT_IST&

/E ITEM_TDEL_BL_INV

/: SET DATE MASK = 'DD-MMM-YYYY'.

P3 ,,,,,,&w_mtyp_inv&,,&w_inv_date&

where &T_TDEL_BL-WADAT_IST& and &w_inv_date& are the date fields.

Former Member
0 Kudos

Hello,

Try using Write statment

Syntax

WRITE (8) TIME USING EDIT MASK '__:__:__'.

Regards

Former Member
0 Kudos

can you send that partcular code to investigate?