‎2008 Aug 25 10:36 AM
Hi,
Can any one help me in updating screen field dynamically using so_expr, so_where,so_flds
‎2008 Aug 25 10:41 AM
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
‎2008 Aug 25 10:47 AM
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.