‎2007 Jun 28 12:31 PM
how will u delete screen fields in selection screen dynamically in a report program
‎2007 Jun 28 12:32 PM
Hi
Varathraj,
Why cant you hide the fields by looping at screen table?
Reward if useful!
‎2007 Jun 28 12:35 PM
Hi,
You can modify the screen attributes of the field.
Loop at screen.
check if screeen-field = 'MATNR'.
Set Invisible = 'X'
Reward if helpful.
Regards,
Umasankar.
‎2007 Jun 28 12:37 PM
‎2007 Jun 28 12:42 PM
Hi,
at selection-screen.
loop at screen.
if screen-name = 'scrnfldname'. " and <other_condtion>.
screen-inivisble = 0.
modify screen.
endif.try this code.
‎2007 Jun 28 1:43 PM
hi,
selection-screen : begin of block blk1 with frame title text-001.
select-options : s_matnr like mara-matnr no-display.
selection-screen : end of block blk1.
Reward with points if helpful.
‎2007 Jun 28 1:50 PM
hi,
i dont know ur actual requirement but we cant delete screen fileds and input parameters but we can hide them.
for hiding input parameters we can do like this
ex:
selection-screen : begin of block blk1 with frame title text-001.
select-options : s_matnr like mara-matnr no-display.
selection-screen : end of block blk1.
or for hiding all input parameters we can do as
in PBO module
LOOP AT SCREEN.
CASE SCREEN-NAME.
WHEN 'P1'. OR IF SCREEN-NAME EQ 'P1'.
SCREEN-VISIBLE = 0.
MODIFY SCREEN.
ENDIF.
WHEN 'P2'.
SCREEN-VISIBLE = 0.
MODIFY SCREEN.
WHEN 'PN'.
...............
..................
............
...............
ENDCASE.
ENDLOOP.
if helpful reward some points.
with regards,
Suresh.A
‎2007 Jun 28 1:56 PM
You can do this way...., isntead of deleting you can build the selection screen dynamically using subroutine pool which ever you want.
or else use modif id and then loop at screen and make them invisible in the event
at selection-screen output.
Best Regards
Vijay