‎2007 Dec 10 6:04 AM
How to use EDIT-MASK option in WRITE statement?
Regards,
Sharayu
‎2007 Dec 10 6:12 AM
Hi,
Check the below link
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9e3d35c111d1829f0000e829fbfe/content.htm
Reagrds,
nagaraj
‎2007 Dec 10 6:09 AM
<b>Effect</b>
If the field f has a conversion routine in the ABAP Dictionary, this is placed in the field mask in the form "==conv". " conv" stands for the name of the conversion routine; for example, " ==ALPHA" for the conversion routine " ALPHA". You can use the contents of mask in this form in the USING EDIT MASK mask addition of the WRITE statement.
Example
Check whether the "Customer number" field in the table SBOOK has a conversion routine:
TABLES SBOOK.
DATA: CONV_EXIT(10).
DESCRIBE FIELD SBOOK-CUSTOMID EDIT MASK CONV_EXIT.
IF CONV_EXIT <> SPACE. ... ENDIF.
Result: CONV_EXIT contains the value "==ALPHA".
The following example that uses editing template EDIT MASK for the <b>WRITE command</b>
DATA TIME TYPE T VALUE '154633'.
WRITE (8) TIME USING EDIT MASK '__:__:__'. "Output: 15:46:33
In this example, the internal length (of type T) is six characters, while the output length is eight.
Regards,'
Maha
‎2007 Dec 10 6:12 AM
Hi,
Check the below link
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9e3d35c111d1829f0000e829fbfe/content.htm
Reagrds,
nagaraj
‎2007 Dec 10 6:13 AM
Hi,
use like this..
data: name(20) vale 'abcdefgh'
<b>WRITE: name USING EDIT MASK '_________'.</b>
‎2007 Dec 10 6:14 AM
Hi .
Try this
DATA time TYPE t VALUE '154633'.
WRITE: time,
/(8) time USING EDIT MASK '__:__:__'.
154633
15:46:33
Reward if useful.
Regards,
Chitra Parameswaran