*&---------------------------------------------------------------------*
*& Report ZTABLE_ENTRY_INSERT *
*& *
*&---------------------------------------------------------------------*
*& *
*& *
*&---------------------------------------------------------------------*
REPORT ztable_entry_insert.
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'.
SELECTION-SCREEN: SKIP.
PARAMETERS: tabname LIKE databrowse-tablename MEMORY ID dtb.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR tabname.
PERFORM f4_objname.
AT SELECTION-SCREEN.
IF tabname(1) <> 'Y' AND tabname(1) <> 'Z'.
* MESSAGE e416(mo) WITH tabname.
ENDIF.
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.
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 F4_OBJNAME
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
FORM f4_objname.
DATA: dnum LIKE d020s-dnum,
repid LIKE sy-repid.
dnum = sy-dynnr. repid = sy-repid.
CALL FUNCTION 'RS_HELP_HANDLING'
EXPORTING
dynpfield = 'TABNAME'
dynpname = dnum
object = 'TB '
progname = repid
suppress_selection_screen = 'X'.
ENDFORM. " F4_OBJNAME
* 無念군님에 의해서 게시물 이동되었습니다 (2009-05-19 18:30)
댓글 8
-
無念군
2009.05.20 03:31
내용상 이쪽이 맞는듯 합니다만.. 내용이 틀리시면 쪽지 주시기 바랍니다 .. -
icarus
2009.06.15 17:03
유용한 샘플 감사합니다.~~ -
icarus
2009.11.13 20:13
좋은 정보 항상 감사합니다.
-
토종붕어
2010.01.22 17:42
감사합니다... -
고담
2011.04.04 18:09
테스트 해 봤는데... 잘 되네요!! ^^
-
kkss
2011.08.01 18:46
감사합니다~
-
지구별원숭이
2012.09.18 18:26
유용하게 사용하겠습니다. 감사합니다^^
-
DW
2012.10.16 22:02
감사합니다.