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

selection screen

Former Member
0 Likes
594

how will u delete screen fields in selection screen dynamically in a report program

7 REPLIES 7
Read only

Former Member
0 Likes
569

Hi

Varathraj,

Why cant you hide the fields by looping at screen table?

Reward if useful!

Read only

Former Member
0 Likes
569

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.

Read only

alex_m
Active Contributor
0 Likes
569

You cant delete the fields but you can make invisible.

Read only

Former Member
0 Likes
569

Hi,


at selection-screen.
loop at screen.
if screen-name = 'scrnfldname'. " and <other_condtion>.
screen-inivisble = 0.
modify screen.
endif.

try this code.

Read only

Former Member
0 Likes
569

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.

Read only

Former Member
0 Likes
569

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

Read only

Former Member
0 Likes
569

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