메뉴 건너뛰기

SAP 한국 커뮤니티

REPORT zsapgos_002.

sapjoy 2009.02.12 01:26 조회 수 : 2458

REPORT  zsapgos_002.


TABLES: scarr.


DATA: ok_code LIKE sy-ucomm,
      save_ok LIKE ok_code.


DATA: gv_attfile.


PARAMETERS: p_carrid LIKE scarr-carrid.


START-OF-SELECTION.


  CLEAR: scarr.
  SELECT SINGLE *
         FROM scarr
        WHERE carrid = p_carrid.


  IF sy-subrc NE 0.
    LEAVE LIST-PROCESSING.
  ENDIF.


  CALL SCREEN 100.


*&-------------------------------------------------------------*
*&      Module  STATUS_0100  OUTPUT
*&-------------------------------------------------------------*
module STATUS_0100 output.


  SET PF-STATUS '0100'.
*  SET TITLEBAR  '0100'.


endmodule.                 " STATUS_0100  OUTPUT
*&-------------------------------------------------------------*
*&      Module  EXIT  INPUT
*&-------------------------------------------------------------*
module EXIT input.


  CASE ok_code.
    WHEN 'EXIT'.
      LEAVE TO SCREEN 0.
  ENDCASE.


endmodule.                 " EXIT  INPUT
*&---------------------------------------------------------------------*
*&      Module  CREATE_GOS  OUTPUT
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE create_gos OUTPUT.


  CALL FUNCTION 'SWU_OBJECT_PUBLISH'
    EXPORTING
      objtype = 'ZSAPGOS'
      objkey  = p_carrid.


ENDMODULE.                 " CREATE_GOS  OUTPUT
*&---------------------------------------------------------------------*
*&      Module  CHECK_ATTA_FILE  OUTPUT
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE check_atta_file OUTPUT.


  TABLES: srgbtbrel.
  CLEAR : srgbtbrel, gv_attfile.
  SELECT SINGLE *
           FROM srgbtbrel
          WHERE reltype  = 'ATTA'
            AND instid_a = p_carrid.


  IF sy-subrc = 0.
    gv_attfile = 'X'.
  ENDIF.


ENDMODULE.                 " CHECK_ATTA_FILE  OUTPUT

번호 제목 글쓴이 날짜 조회 수
» 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
320 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