ALPHA keyword in ABAP( 7.4+ ).
variable =|{ variable alpha = out }|
* It is used to remove leading zeros.
variable =|{ variable alpha = in }|
* It is used to Add leading zeros.
Report
REPORT zab_rp_alpha.
DATA: lv_a(10) TYPE c VALUE '0000012345'.
DATA: lv_b(10) TYPE c VALUE '12345'.
lv_a = |{ lv_a ALPHA = OUT }|.
lv_b = |{ lv_b ALPHA = IN }|.
WRITE: 'Remove leading zeros(0000012345): ', lv_a COLOR 5,
/ 'ADD leading zeros(12345): ', lv_b COLOR 6.
Output
******************************Thank You***************************
Comments
Post a Comment