‎2007 Mar 21 5:10 PM
‎2007 Mar 21 5:55 PM
Hi,
1) EDIT MASK can be used for output formatting options.
Outputs field f according to the formatting template mask .
Without this addition, field f is output in the standard format for that particular type or with a format defined in the ABAP/4 Dictionary . The addition allows you to define a different format.
For example, formatted output of the time:
DATA TIME TYPE T VALUE '154633'.
WRITE (8) TIME USING EDIT MASK '__:__:__'. "Output: 15:46:33
2) EDIT MASK can be used to supply attributes of a field.
If the field f has a conversion routine in the ABAP/4 Dictionary , this is placed in the field mask in the form " ==conv ". " conv " stands for the name of the conversion routine, e.g. " ==ALPHA " in the conversion routine " ALPHA ". In this form, mask can then be used in the addition USING EDIT MASK mask of the WRITE statement.
Example
Check whether there is a conversion routine for the field "customer number" in the table SBOOK :
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 ".
Regards,
Ferry Lianto
‎2007 Mar 21 5:15 PM
Its a formatting option.. ex
DATA time TYPE t VALUE '154633'.
WRITE: time,
/(8) time USING EDIT MASK '__:__:__'.
~Suresh
‎2007 Mar 21 5:26 PM
Hi Balu,
Check this link for EDIT MASK,
http://help.sap.com/saphelp_erp2004/helpdata/en/33/206bc8012e11d3b495006094192fe3/content.htm
http://help.sap.com/saphelp_erp2004/helpdata/en/ff/4649baf17411d2b486006094192fe3/content.htm
Thanks,
Vinay
‎2007 Mar 21 5:55 PM
Hi,
1) EDIT MASK can be used for output formatting options.
Outputs field f according to the formatting template mask .
Without this addition, field f is output in the standard format for that particular type or with a format defined in the ABAP/4 Dictionary . The addition allows you to define a different format.
For example, formatted output of the time:
DATA TIME TYPE T VALUE '154633'.
WRITE (8) TIME USING EDIT MASK '__:__:__'. "Output: 15:46:33
2) EDIT MASK can be used to supply attributes of a field.
If the field f has a conversion routine in the ABAP/4 Dictionary , this is placed in the field mask in the form " ==conv ". " conv " stands for the name of the conversion routine, e.g. " ==ALPHA " in the conversion routine " ALPHA ". In this form, mask can then be used in the addition USING EDIT MASK mask of the WRITE statement.
Example
Check whether there is a conversion routine for the field "customer number" in the table SBOOK :
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 ".
Regards,
Ferry Lianto