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

Run time selection data at selection screen

Former Member
0 Likes
719

Hi,

I have one requirement like I have to give selection filelds at selection screen based on the values in Z table.

For example I have 4 license type eg L1, L2, L3, L4. Then at selection screen L1, L2, L3,L4 will be displayed and user can fill the values for these license type.

But in the future L5 license type can be added or L3 can be deleted. So based on addition or deletion the values form the Z table the existing value should be shown at selection screen.

Please suggest me for the procedure.

Thanks,

Sandeep Garg

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
657

Hi,

Declare the Field for the license type on the selection screen and provide the F4 help for this.

The data shown in this table is fetch from the Ztable. So that what ever entries exists in the table are displayed in F4 help.

Use this FM F4IF_INT_TABLE_VALUE_REQUEST for F4 help.

4 REPLIES 4
Read only

Former Member
0 Likes
658

Hi,

Declare the Field for the license type on the selection screen and provide the F4 help for this.

The data shown in this table is fetch from the Ztable. So that what ever entries exists in the table are displayed in F4 help.

Use this FM F4IF_INT_TABLE_VALUE_REQUEST for F4 help.

Read only

Former Member
0 Likes
657

Are you talking about dynamic select screen fields ? or Dropdown facility ? or F4 functionality?

Read only

0 Likes
657

Dynamic selection sctreen fields

Read only

0 Likes
657

Hi Sandeep,

For Dynamic selection screen you can use ...


    AT SELECTION-SCREEN OUTPUT. 
    loop at screen. 

    endloop. 
    

Let me know if you need sample code.

report ysat_at_ss_output .

parameters: male radiobutton group rb1 user-command ucomm,
            female radiobutton group rb1 default 'X' .

selection-screen skip 2.
selection-screen: begin of block blk1 with frame title  text-001.
parameters: male1(20) modif id sc1 .
selection-screen: end of block blk1.

selection-screen: begin of block blk2 with frame title  text-002.
parameters: female1(20) modif id sc2.
selection-screen: end of block blk2.

at selection-screen output.
loop at screen.
  if male = 'X'.
  if screen-group1 = 'SC1'.
   screen-invisible = '0'.
   screen-input = '1'.
   modify screen.
  endif.
  if screen-group1 = 'SC2'.
   screen-invisible = '1'.
   screen-input = '0'.
   modify screen.
  endif.

else.
  if screen-group1 = 'SC1'.
   screen-invisible = '1'.
   screen-input = '0'.
   modify screen.
  endif.
  if screen-group1 = 'SC2'.
   screen-invisible = '0'.
   screen-input = '1'.
   modify screen.
  endif.
endif.
endloop.
 

Edited by: Satya suresh Donepudi on Mar 20, 2009 1:57 PM