Tag Archive Selection-screen

Insert an image in Selection-screen

Have a look on program : RSDEMO_CUSTOM_CONTROL. to insert an image in Dynpro (not selection screen)

To add image on selection-screen

check the code below :

Read More

Check range values from a domain

⚠️ This code works only if range values are restricted to Include Equal (I EQ) and domain values are not range of values.

Example of calling code :


  DATA : lv_wrong_value TYPE domvalue_l.
  
  PERFORM f_check_range_val_from_domain USING 'MTART'
                                              s_mtart[]
                                              CHANGING lv_wrong_value.
  IF lv_wrong_value IS NOT INITIAL.
    SET CURSOR FIELD 'S_MTART-LOW' ##NO_TEXT.
    MESSAGE i001(zz) WITH lv_wrong_value DISPLAY LIKE 'E'.
    " Material type &1 is not valid
  ENDIF.

Read More

Dropdown list in selection-screen

Sample code :


  PARAMETERS : p_field TYPE ztype AS LISTBOX VISIBLE LENGTH 25.
* If the  ZTYPE has a domain with values, values will be autmatically
* displayed.

If your type has no values in domain or if you want to change the dropdown list values use FM VRM_SET_VALUES in initialization:

Read More

Display right HTML docker container in selection screen

Code example to display a HTML docker container on the right of a selection screen (to display help for instance).

Read More

Create tabs on selection screen

Check program DEMO_SEL_SCREEN_WITH_TABSTRIP.

Read More

Restrict select-options

Use FM SELECT_OPTIONS_RESTRICT.

Read More

Add button on selection screen in toolbar

Check program DEMO_SEL_SCREEN_FUNCTION_KEY.

Read More

Open popup window to choose a diretory

Use method : cl_gui_frontend_services=>directory_browse.

Read More