09-09-2008 9:42 AM
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
09-10-2008 8:23 AM
09-10-2008 6:07 AM
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).
09-10-2008 6:35 AM
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.
09-10-2008 8:04 AM
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.
09-10-2008 8:23 AM