메뉴 건너뛰기

SAP 한국 커뮤니티

REPORT Z15_028

sapjoy 2007.02.01 21:03 조회 수 : 2509

REPORT Z15_028 .
TYPES : BEGIN OF ty_test, code TYPE i,
        name(10) TYPE c, amount TYPE p DECIMALS 2,
        END OF ty_test.
DATA : it_test TYPE STANDARD TABLE OF ty_test
        WITH HEADER LINE INITIAL SIZE 10.
DATA : wa TYPE ty_test,
        chk1 TYPE c,
        fldname(30), fldval(50).
INITIALIZATION.
        it_test-code = 300.
        it_test-name = 'Ramesh'.
        it_test-amount = 5500.
        APPEND it_test.
        wa-code = 207.
        wa-name = 'Prem'.
        wa-amount = 5000.
        APPEND wa TO it_test.
        WRITE : / 'Loop Display ( Appended rows ) :-'.
        LOOP AT it_test.
                WRITE : / chk1 AS CHECKBOX,
                sy-tabix, sy-vline, it_test-code, it_test-name, it_test-amount.
*라인을 선택하게 되면 변수에 값이 저장됨
                HIDE : it_test-code, it_test-name.
ENDLOOP.
END-OF-SELECTION.
        CLEAR : it_test-code, it_test-name.
        WRITE : / 'this from end of selection'.
AT LINE-SELECTION.  "더블클릭
        CHECK sy-lsind = 1.
        WINDOW STARTING AT 5 4  ENDING AT 85 20.
        WRITE: /  'THE USER DOUBLE-CLICKED A LINE IN THE Report'.
        WRITE: /  sy-lisel.
        WRITE : / 'Sometime ',it_test-code, it_test-name, ' is good '.
        WRITE : /, / 'we can also use this in SELECT statement'.
        CLEAR : it_test-code, it_test-name.
        ULINE.
        WRITE : / 'Below from Get Cursor Field...'.
        GET CURSOR FIELD fldname VALUE fldval.
        CONDENSE : fldname, fldval.
        WRITE : / 'You have clicked ', fldname, ' & its value is ', fldval.
번호 제목 글쓴이 날짜 조회 수
231 REPORT z18_028 sapjoy 2007.04.10 4281
230 REPORT Z03_021 [5] sapjoy 2007.05.15 2737
229 REPORT z18_002_d sapjoy 2008.04.16 2088
228 REPORT Z18_000 [1] sapjoy 2008.04.16 2602
227 REPORT Z17_019 [1] sapjoy 2007.02.15 2748
226 REPORT Z17_018. sapjoy 2008.04.15 1860
225 REPORT Z17_014. [1] sapjoy 2007.02.13 2504
224 Report Z15_047 [3] sapjoy 2007.12.06 2798
223 REPORT Z15_044 [1] sapjoy 2008.04.15 2474
222 REPORT Z15_039 sapjoy 2007.02.06 2315
221 REPORT Z15_037. sapjoy 2007.02.06 2472
220 REPORT Z15_033 sapjoy 2007.02.06 2987
219 REPORT z15_032 sapjoy 2007.02.06 2578
» REPORT Z15_028 sapjoy 2007.02.01 2509
217 REPORT Z15_026 [1] sapjoy 2007.09.13 2205
216 REPORT Z15_026 sapjoy 2007.02.01 2758
215 REPORT Z15_025 sapjoy 2008.04.15 1975
214 REPORT z15_023 sapjoy 2007.01.31 2484
213 REPORT Z15_022. sapjoy 2007.01.30 2495
212 REPORT Z15_020 sapjoy 2007.01.30 2524