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

default desktop directory population in the selection parameter

Former Member
0 Likes
1,019

hi all,

i need to send the output data to desktop(i mean download) who ever executes the progrm.

so i have written the code for this as

DATA: v_file TYPE string value 'C:\Documents and Settings\lkiran\Desktop\test'.

in selection screen default the value is given as below

FILENAME :'C:\Documents and Settings\lkiran\Desktop\test'.

THE PROBLEM IS if any one else executes the report their desktop name should come instead of kiran.

please help

hi all,

i need to send the output data to desktop(i mean download) who ever executes the progrm.

so i have written the code for this as

DATA: v_file TYPE string value 'C:\Documents and Settings\lkiran\Desktop\test'.

in selection screen default the value is given as below

FILENAME :'C:\Documents and Settings\lkiran\Desktop\test'.

THE PROBLEM IS if any one else executes the report their desktop name should come instead of kiran.

please help

2 REPLIES 2
Read only

Former Member
0 Likes
775

you can call the method GET_DESKTOP_DIRECTORY of calss CL_GUI_FRONTEND_SERVICES , to get the desktop directory. and populate accordingly. place the logic in initialization event.

Read only

0 Likes
775

Use FM GUI_GET_DESKTOP_INFO

Pass 12 to TYPE parameter