Application Development 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: 

DATE MASK

Former Member
0 Kudos

HI,

IN ALV

DATA: DATE TYPE LVC_EDTMSK.

<b>{ HERE I WANT SET DATE IN DD/MMM/YY FORM USING DATE DATA FIELD }</b>

CALL METHOD SET_COL->SET_EDIT_MASK

EXPORTING

VALUE = DATE.

THANK YOU

ASHOK KUMAR

2 REPLIES 2

Former Member
0 Kudos

Hi,

Below is a sample code.

clear ls_fieldcatalog.

ls_fieldcatalog-col_pos = pos.

ls_fieldcatalog-fieldname = 'LOSFX'.

ls_fieldcatalog-tabname = 'I_OUTPUT'.

ls_fieldcatalog-ref_field = 'LOSFX'.

ls_fieldcatalog-do_sum = 'X'.

ls_fieldcatalog-EDIT_MASK = '____/__/__'.

ls_fieldcatalog-ref_table = 'MARC'.

append ls_fieldcatalog to i_fieldcatalog

Reward points if it helps.

Regards,

Omkar.

Former Member
0 Kudos

You can follow the following code.I think it will help you.

clear wa_fieldcat.

wa_fieldcat-col_pos = pos.

wa_fieldcat-fieldname = 'LOSFX'.

wa_fieldcat-tabname = 'I_OUTPUT'.

wa_fieldcat-ref_field = 'LOSFX'.

wa_fieldcat-EDIT_MASK = '____/__/__'.

wa_fieldcat-ref_table = 'MARC'.

append wa_fieldcat to it_fieldcat

Regards

Srikanta Gope