Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to update screen fields dynamically

Former Member
0 Likes
576

Hi,

Can any one help me in updating screen field dynamically using so_expr, so_where,so_flds

2 REPLIES 2
Read only

Former Member
0 Likes
450

Hi,

Use this type of logic. Though this code is for selection-screen, but you can use this type of logic for screens by using screen table and implement this logic in PAI.


REPORT z_sdn.
 
PARAMETERS:
  p_num RADIOBUTTON GROUP rad1 DEFAULT 'X' USER-COMMAND abc,
  p_char RADIOBUTTON GROUP rad1.
 
PARAMETERS:
  p_num1 TYPE i MODIF ID num,
  p_num2 TYPE i MODIF ID num,
  p_char1 TYPE c MODIF ID chr,
  p_char2 TYPE c MODIF ID chr.
 
 
AT SELECTION-SCREEN OUTPUT.
  IF p_num EQ 'X'.
    LOOP AT SCREEN.
      IF screen-group1 EQ 'CHR'.
        screen-active = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ELSE.
    LOOP AT SCREEN.
      IF screen-group1 EQ 'NUM'.
        screen-active = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ENDIF.

Regards

Abhijeet

Read only

Former Member
0 Likes
450

Thanks,

My requirement is to update a customized field of a selection screen.

I found there are two ways

1. Including the field so_where,so_flds,so_expr,

2. SUBMIT.......WITH FREE SELECTIONS AND USE THE FUNCTION MODULE 'FREE_SELECTIONS_RANGE_2_EX'

BUT I DON'T HAVE ANY IDEA HOW TO USE THAT.

CAN ANY ONE HELP ME PROVIDING SAMPLE CODE ON THAT.