메뉴 건너뛰기

SAP 한국 커뮤니티

REPORT zBADI_FIND

sapjoy 2009.01.16 07:37 조회 수 : 2732

REPORT zBADI_FIND NO STANDARD PAGE HEADING.
TABLES : tstc, tadir, trdir, tfdir, enlfdir, sxs_attrt.
TABLES : tstct.
DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
DATA : field1(30).
DATA : v_devclass LIKE tadir-devclass.
PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.


SELECT SINGLE * FROM tstc WHERE tcode EQ p_tcode.
IF sy-subrc EQ 0.
  SELECT SINGLE * FROM tadir WHERE pgmid = 'R3TR'
                   AND object = 'PROG'
                   AND obj_name = tstc-pgmna.
  MOVE : tadir-devclass TO v_devclass.
  IF sy-subrc NE 0.
    SELECT SINGLE * FROM trdir WHERE name = tstc-pgmna.
    IF trdir-subc EQ 'F'.
      SELECT SINGLE * FROM tfdir WHERE pname = tstc-pgmna.
      SELECT SINGLE * FROM enlfdir WHERE funcname =
      tfdir-funcname.
      SELECT SINGLE * FROM tadir WHERE pgmid = 'R3TR'
                         AND object = 'FUGR'
                         AND obj_name EQ enlfdir-area.


      MOVE : tadir-devclass TO v_devclass.
    ENDIF.
  ENDIF.
  SELECT * FROM tadir INTO TABLE jtab
                WHERE pgmid = 'R3TR'
                  AND object = 'SXSD'
                  AND devclass = v_devclass.
  SELECT SINGLE * FROM tstct WHERE sprsl EQ sy-langu AND
                                   tcode EQ p_tcode.
  FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
  WRITE:/(19) 'Transaction Code - ',
       20(20) p_tcode,
       45(50) tstct-ttext.
  SKIP.
  IF NOT jtab[] IS INITIAL.
    WRITE:/(95) sy-uline.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    WRITE:/1 sy-vline,
           2 'Exit Name',
          21 sy-vline ,
          22 'Description',
          95 sy-vline.
    WRITE:/(95) sy-uline.
    LOOP AT jtab.
      SELECT SINGLE * FROM sxs_attrt
             WHERE sprsl = sy-langu AND
                    exit_name = jtab-obj_name.
      FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
      WRITE:/1 sy-vline,
             2 jtab-obj_name,
            21 sy-vline ,
            22 sxs_attrt-text,
            95 sy-vline.
    ENDLOOP.
    WRITE:/(95) sy-uline.
    DESCRIBE TABLE jtab.
    SKIP.
    FORMAT COLOR COL_TOTAL INTENSIFIED ON.
    WRITE:/ 'No of Exit:' , sy-tfill.
  ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(95) 'No User Exit exists'.
  ENDIF.
ELSE.
  FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
  WRITE:/(95) 'Transaction Code Does Not Exist'.
ENDIF.

번호 제목 글쓴이 날짜 조회 수
331 REPORT zsapgos_002. sapjoy 2009.02.12 2458
330 REPORT ZSAPGOS_001. sapjoy 2009.02.12 2477
329 FUNCTION Z_BAPIALE_SEND. sapjoy 2009.02.10 2420
328 REPORT zale_001 . sapjoy 2009.02.10 2471
327 REPORT ZBAPI_002. sapjoy 2009.02.10 2590
326 FUNCTION Z_BAPI_REQ_FUNCLOC. sapjoy 2009.02.05 2421
325 REPORT ZBAPI_ALE sapjoy 2009.02.05 2334
324 zbapi_java sapjoy 2009.02.02 2699
323 FUNCTION Z_BAPI_ASSETNAME_SEARCH sapjoy 2009.01.31 2898
322 REPORT z18_003 sapjoy 2007.03.06 3281
321 REPORT ZSMARTFORMS_07. sapjoy 2009.01.22 2389
» REPORT zBADI_FIND sapjoy 2009.01.16 2732
319 REPORT ZBADI_003. sapjoy 2009.01.15 2403
318 REPORT zbadi_002. sapjoy 2009.01.10 2545
317 REPORT zbadi_001 sapjoy 2009.01.07 2527
316 doi_excel.xls file sapjoy 2008.12.26 2177
315 report zsapdoi_005. sapjoy 2008.12.26 2978
314 report zsapdoi_004. sapjoy 2008.12.26 2932
313 report zsapdoi_003. sapjoy 2008.12.26 2570
312 report zsapdoi_002. sapjoy 2008.12.26 4405