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

Dynamic Selection screen

Former Member
0 Likes
565

Hi,

I have a requirement where I need to generate selection screen dynamically with the fields of a table as we get it through SE16.

Could you please let me know if any functional module exists for the above requirement or any logic which can help me in generating selection screen dynamically?

Thanks in advance

1 ACCEPTED SOLUTION
Read only

Former Member
4 REPLIES 4
Read only

Former Member
0 Likes
533

Hi

Try the following code:

DATA L_NAME1(20) TYPE C value  'MARA-MATNR'.
DATA L_NAME2(20) TYPE C value  'BSEG-BUKRS'.
select-options p11 FOR (L_NAME1).
parameters     P22 LIKE (L_NAME2).

Read only

Former Member
0 Likes
533

look also function modules from function group setb.

But be careful when testing that modules.

once I fully rewrote by mistake one of my reports.

Read only

Former Member
0 Likes
533

Hi,

try like this..

tables sscrfields.

parameters: p_carrid type s_carr_id,
            p_cityfr type s_from_cit.

selection-screen: function key 1,
                  function key 2.

initialization.
  sscrfields-functxt_01 = 'LH'.
  sscrfields-functxt_02 = 'UA'.

at selection-screen.
  case sscrfields-ucomm.
      when'FC01'.
      p_carrid = 'LH'.
      p_cityfr = 'Frankfurt'.
    when 'FC02'.
      p_carrid = 'UA'.
      p_cityfr = 'Chicago'.
  endcase.

Regards,

Sathish Reddy.

Read only

Former Member