report zsaptip_009 message-id test.
tables: dd02l.
data: g_tabname(30) type c value '/1BCDWB/DB',
action type sy-ucomm value 'ANZE',
global_auth(4) type c,
g_data_exit like rs38l-name value 'UPDA'.
data: mem_id(16) value 'TABELLENANZEIGER'.
*----------------------------------------------------------------------*
* INITIALIZATION *
*----------------------------------------------------------------------*
initialization.
perform check_password.
*----------------------------------------------------------------------*
* SELECTION-SCREEN *
*----------------------------------------------------------------------*
selection-screen begin of block frm1 with frame title text-001.
parameters: tabname like databrowse-tablename memory id dtb.
selection-screen skip.
selection-screen end of block frm1.
*----------------------------------------------------------------------*
* AT SELECTION-SCREEN *
*----------------------------------------------------------------------*
at selection-screen on value-request for tabname.
perform f4_objname.
at selection-screen.
select * from dd02l
where tabname = tabname
and as4local = 'A'
and ( tabclass <> 'INTTAB' and tabname <> 'APPEND' and
tabclass <> 'VIEW' ).
exit.
endselect.
if sy-subrc <> 0.
message e402(mo) with tabname.
endif.
*----------------------------------------------------------------------*
* START-OF-SELECTION *
*----------------------------------------------------------------------*
start-of-selection.
IF tabname(1) <> 'Z'. "OR tabname(1) <> 'P'.
message e000 with '당신은 권한이 없습니다'.
EXIT.
ENDIF.
concatenate g_tabname tabname into g_tabname.
dd02l-mainflag = 'X'.
export action dd02l-mainflag global_auth
to memory id mem_id.
submit (g_tabname) via selection-screen and return.
*&---------------------------------------------------------------------*
*& Form CHECK_PASSWORD
*&---------------------------------------------------------------------*
* 패스워드 확인
*----------------------------------------------------------------------*
form check_password .
* if not ( sy-uname = 'aaa01' )
* message e000 with '당신은 권한이 없습니다'.
* endif.
endform. " CHECK_PASSWORD
*&---------------------------------------------------------------------*
*& Form F4_OBJNAME
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
form f4_objname.
data: l_dnum like d020s-dnum,
l_repid like sy-repid.
l_dnum = sy-dynnr. l_repid = sy-repid.
call function 'RS_HELP_HANDLING'
exporting
dynpfield = 'TABNAME'
dynpname = l_dnum
object = 'TB '
progname = l_repid
suppress_selection_screen = 'X'.
endform. " F4_OBJNAME
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
670 | Z01_012 [9] | sapjoy | 2006.12.02 | 4546 |
669 | REPORT Z03_005 [1] | sapjoy | 2006.12.02 | 2735 |
668 | REPORT Z03_006 [5] | sapjoy | 2006.12.02 | 2812 |
667 | Z01_018 [2] | sapjoy | 2006.12.02 | 3042 |
666 | Z01_019 [2] | sapjoy | 2006.12.02 | 2688 |
665 | Z01_020 [2] | sapjoy | 2006.12.02 | 3008 |
664 | Z01_021 [1] | sapjoy | 2006.12.02 | 2771 |
663 | REPORT Z03_018 [3] | sapjoy | 2006.12.02 | 2605 |
662 | Z02_003 [2] | sapjoy | 2006.12.02 | 3042 |
661 | REPORT Z02_005 . | sapjoy | 2006.12.02 | 2375 |
660 | REPORT Z04_005 . | sapjoy | 2006.12.02 | 2595 |
659 | <b>ABAP SOURCE는 교재에 사용된 소스들입니다.</b> [1] | sapjoy | 2006.12.02 | 3618 |
658 | Dynamic Table Maintenance [1] | sapjoy | 2006.12.04 | 4094 |
657 | REPORT Z06_001 MESSAGE-ID ZTEST . [1] | sapjoy | 2006.12.05 | 3205 |
656 | REPORT Z07_002 . | sapjoy | 2006.12.06 | 2755 |
655 | Z07_001 | sapjoy | 2006.12.06 | 2396 |
654 | Z07_005 | sapjoy | 2006.12.06 | 2353 |
653 | REPORT Z07_007 | sapjoy | 2006.12.07 | 2698 |
652 | REPORT Z07_008 | sapjoy | 2006.12.07 | 2462 |
651 | REPORT Z07_009 | sapjoy | 2006.12.07 | 2258 |
이프로그램은 권한때문에(운영에서는 db조회권한도없담니다. 큭~) 저희도 만들어서 쓰고있습니다.
좋은 프로그램 게재 감사합니다 ^^