REPORT z02_04.
DATA: gv_int1 TYPE i VALUE 2.
DATA: gv_int2 TYPE i VALUE 3.
DATA: gv_iresult TYPE i.
gv_iresult = gv_int1 + gv_int2.
WRITE : / '1 : ', gv_iresult.
ADD 1 TO gv_iresult.
WRITE : / '2 : ', gv_iresult.
DATA: gv_pack1 TYPE p DECIMALS 2 VALUE '2.17'.
DATA: gv_pack2 TYPE p DECIMALS 2 VALUE '5.43'.
DATA: gv_presult TYPE p DECIMALS 2.
gv_presult = gv_pack2 / gv_pack2.
WRITE : / '3 : ', gv_presult.
MULTIPLY gv_presult by gv_pack2.
WRITE : / '4 : ', gv_presult.
DATA: gv_float1 TYPE f VALUE '1.337'.
DATA: gv_float2 TYPE f VALUE '2.7'.
DATA: gv_fresult TYPE f .
DATA: gv_cresult TYPE c LENGTH 16.
gv_fresult = gv_float2 * gv_float1.
WRITE : / '5 : ', gv_fresult.
CALL FUNCTION 'FLTP_CHAR_CONVERSION'
EXPORTING
DECIM = 2
INPUT = gv_fresult
IMPORTING
FLSTR = gv_cresult.
WRITE : / '6 : ', gv_cresult.
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
411 | REPORT Z02_16. | sapjoy | 2012.07.31 | 1511 |
410 | REPORT z02_15. | sapjoy | 2012.07.31 | 1621 |
409 | REPORT z02_14. | sapjoy | 2012.07.31 | 1538 |
408 | REPORT z02_13. | sapjoy | 2012.07.31 | 1690 |
407 | REPORT z02_12. | sapjoy | 2012.07.31 | 1619 |
406 | REPORT z02_11. | sapjoy | 2012.07.31 | 1717 |
405 | REPORT z02_10. | sapjoy | 2012.07.31 | 1609 |
404 | REPORT z02_09. | sapjoy | 2012.07.31 | 1586 |
403 | REPORT z02_08. | sapjoy | 2012.07.31 | 1843 |
402 | REPORT z02_07. | sapjoy | 2012.07.31 | 1786 |
401 | REPORT z02_06. | sapjoy | 2012.07.31 | 1658 |
400 | REPORT z02_05. | sapjoy | 2012.07.31 | 1863 |
» | REPORT z02_04. | sapjoy | 2012.07.31 | 1953 |
398 | REPORT z02_03 | sapjoy | 2012.07.31 | 1805 |
397 | REPORT z02_01. | sapjoy | 2012.07.31 | 1788 |
396 | REPORT Z_WHEREUSEDLIST [4] | sapjoy | 2011.03.29 | 3215 |
395 | Z_EXPORT_GRAPHIC_FROM_SE78 [1] | sapjoy | 2011.03.29 | 4447 |
394 | REPORT ZSMARTFORMS_03. | sapjoy | 2008.11.28 | 3345 |
393 | REPORT zfalv_011. | sapjoy | 2011.02.16 | 3627 |
392 | <b>easy abap 소스 전체 파일 입니다. [188] | sapjoy | 2008.05.02 | 10149 |