‎2009 Mar 20 6:03 PM
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
‎2009 Mar 20 6:08 PM
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.
‎2009 Mar 20 6:08 PM
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.
‎2009 Mar 20 6:43 PM
Are you talking about dynamic select screen fields ? or Dropdown facility ? or F4 functionality?
‎2009 Mar 20 6:48 PM
‎2009 Mar 20 6:53 PM
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