Posts

Showing posts with the label Simple Popup

ABAP Tips - 1 : How to Display a Popup and Get Values from User ?

Image
How to Display a Popup and Get Values from User ? Function Module POPUP_GET_VALUES can be used to display a popup to get inputs from user. The speciality of this function module is we can add as many number of fields as we want. The fields can be of any data type. REPORT ztest9910. DATA : t_fields LIKE sval OCCURS 0 WITH HEADER LINE . START- OF -SELECTION. *--- Prepare Parameters for FM -------------* t_fields-tabname = ’BKPF’ . t_fields-fieldname = ’BUDAT’ . APPEND t_fields. t_fields-tabname = ’BKPF’ . t_fields-fieldname = ’BLART’ . APPEND t_fields. *---- Function Module Call -----------------* CALL FUNCTION ’ POPUP_GET_VALUES’ EXPORTING *  NO_VALUE_CHECK = ’ ’    popup_title = ’Test Popup’ *  START_COLUMN = ’5’ *  START_ROW = ’5’ *  IMPORTING *  RETURNCODE = TABLES    fields = t_fields EXCEPTIONS    error_in_fields = 1    OTHERS ...