cancel
Showing results for 
Search instead for 
Did you mean: 

edit mask

Former Member
0 Kudos

hi,

can anyone tell what is the meaning for the below code.

WRITE vbep-vbeln TO wf_date USING EDIT MASK '__/__/____'.

thanks in advance

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Edit mask is used for formatting the output.

when u check the value of sy-datum in debug mode u can see 20070101

but when u use write : sy-datum. u can see o/p 01:01:2007

means system automatically formats when u use write/write -- to statements.

The edit mask u can see at domain level.

If u need any other formats than the default one. u can add Edit mask option.

Former Member
0 Kudos

HI,

It will write the date format as __/__/____.

After execution of that step, the field WF_DATE will have the date format as mentioned in the EDIT MASK

Regards

sudheer

Former Member
0 Kudos

WRITE vbep-vbeln TO wf_date USING EDIT MASK '__/__/____'.

say u have a value in vbep-vbeln as 10102007, then

wf_date will hold value as 10/10/2007 which refers to date field.

former_member189629
Active Contributor
0 Kudos

Surya,

Using EDIT MASK is used in the WRITE statement to Change the Output format of the field as per the need.

For Eg :

DATA: T1 TYPE T VALUE '124050'.

WRITE: T1. "will display the time as 124050

WRITE :(8) T1 USING EDIT MASK '__:__:__' . "Will display as 12:40:50

We can also use this Option to enforce Conversion Exit on a Field .

DATA : VAR1(10) VALUE '123'.

WRITE:/ VAR1 USING EDIT MASK '==ALPHA'. "Will display like 0000000123

Reward if helpful,

Karthik