Professional Documents
Culture Documents
* TYPES Declarations
TYPES: BEGIN OF ty_bsid,
kunnr TYPE bsid-kunnr, " Customer Number
sel TYPE c, " Selection field in list display
belnr TYPE bsid-belnr, " Accounting Document Number
blart TYPE bsid-blart, " Document Type
budat TYPE bsid-budat, " Posting Date
dmbtr TYPE bsid-dmbtr, " AMOUNT IN LOCAL CUR
waers TYPE bsid-waers, " Local Currency
END OF ty_bsid.
* ALV Declarations
TYPE-POOLS : slis.
* Constant Declarations
INITIALIZATION.
wa_repid = sy-repid.
*----------------------------------------------------------------------*
* AT SELECTION SCREEN *
*----------------------------------------------------------------------*
AT SELECTION-SCREEN.
*----------------------------------------------------------------------*
* START OF SELECTION *
*----------------------------------------------------------------------*
START-OF-SELECTION.
* Data Extraction
PERFORM data_extraction.
IF w_flg NE c_x.
* Display Fieldcatlog infomration
PERFORM build_fieldcatlog.
* Build Layout
PERFORM build_layout.
ELSE.
w_flg = c_x.
ENDIF.
*&---------------------------------------------------------------------*
*& Form ALV_DISPLAY
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
* --> p1 text
* <-- p2 text
*----------------------------------------------------------------------*
FORM alv_display .
ENDFORM. "set_pf_status
*&---------------------------------------------------------------------*
*& Form user_command
*----------------------------------------------------------------------*
* -->R_UCOMM text
* -->RS_SELFIELD text
*----------------------------------------------------------------------*
FORM user_command USING r_ucomm TYPE sy-ucomm
rs_selfield TYPE slis_selfield.
CASE r_ucomm.