메뉴 건너뛰기

SAP 한국 커뮤니티

report zsaptip_009

sapjoy 2010.12.10 21:15 조회 수 : 3852

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

번호 제목 글쓴이 날짜 조회 수
» report zsaptip_009 [1] sapjoy 2010.12.10 3852
390 REPORT Z_3DGRAPH. [1] sapjoy 2010.10.18 3666
389 REPORT zsmw0010 sapjoy 2010.10.12 4315
388 z_exception_test sapjoy 2010.10.11 3521
387 REPORT zmacro_01. sapjoy 2010.10.10 2582
386 REPORT ZTEST_ABAPTPDF sapjoy 2010.10.10 3693
385 REPORT ZALVCOLOR sapjoy 2010.10.10 3212
384 REPORT ZTABLE_UTIL sapjoy 2010.10.10 4012
383 REPORT Z_DYNAMIC_SCREEN [1] sapjoy 2010.10.08 3035
382 report zsalv_045 . sapjoy 2010.08.20 4264
381 report zsalv_043 . sapjoy 2010.08.20 2978
380 report zsalv_042 . sapjoy 2010.08.20 3135
379 report zsalv_041 . sapjoy 2010.08.20 2998
378 report zsalv_040 . sapjoy 2010.08.20 2608
377 report zsalv_036 . sapjoy 2010.08.20 3473
376 report zsalv_035 . sapjoy 2010.08.20 2505
375 report zsalv_032 . sapjoy 2010.08.20 2976
374 report zsalv_031 . sapjoy 2010.08.20 2427
373 report zsalv_030 . sapjoy 2010.08.20 2331
372 report zsalv_023 . sapjoy 2010.08.20 2347