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
573

Hi,

I have to give system id as default in selection screen

p_appfn type salfile-longname default '/interface/' syst-SYSID '/sd/IN/to10/test.TXT',

syst-sysid should be read from table syst.

but its giving an error.

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
544

try this :

parameters : p_appfn type salfile-longname.

initialization.

concatenate '/interface/' sy-SYSID '/sd/IN/to10/test.TXT' into p_appfn.

6 REPLIES 6
Read only

Former Member
0 Likes
544

hI,

Instead of making it default, write the same code in INITIALIZATION event.

concatenate '/interface/'

syst-SYSID

'/sd/IN/to10/test.TXT'

into p_appfn.

Thanks,

Rajinikanth

Read only

naimesh_patel
Active Contributor
0 Likes
544

You can only give one value with the default addition. To have this type of dynamic default value, you need to set it in the INITILIZATION.

Like:


parameters: p_appfn type salfile-longname default '/interface/' syst-SYSID '/sd/IN/to10/test.TXT',

INITILIZATION.
  CONCATENATE  '/interface/' syst-SYSID '/sd/IN/to10/test.TXT' INTO P_APPFN.

Regards,

Naimesh Patel

Read only

Former Member
0 Likes
544

hi,

do concatenate in to one variable and place that variable as default.

data : v_var(40).

v_var1 = '/interface/'.

v_var2 = '/sd/IN/to10/test.TXT',

concatenate v_var1 syst-sysid v_var2 into v_var.

p_appfn type salfile-longname default v_var.

regards

Sandeep REddy

Read only

Former Member
0 Likes
545

try this :

parameters : p_appfn type salfile-longname.

initialization.

concatenate '/interface/' sy-SYSID '/sd/IN/to10/test.TXT' into p_appfn.

Read only

Former Member
0 Likes
544

I tried that friends but its not displaying. when i debug after initialization it goes to

CONVERSION_EXIT_ISOLA_OUTPUT function module and makes it empty.

Thanks.

Read only

Former Member
0 Likes
544

Hi,

until or unless you clear the value in event at selection screen output, It wont get cleared.

check your code, there might be some problem.

sure it works.

Thanks,

Rajinikanth