2007 Oct 26 8:04 AM
can anyone tell me if changing the line below-->
SERVER_PATH TYPE string VALUE '\bwdevtbwdtemp',
to this will work-->
if sy-sysid = 'BWD'.
server_path TYPE string VALUE '\bwdevtbwdtemp'.
elseif sy-sysid = 'BWP'.
server_path TYPE string VALUE '\bwpsrvbwdtemp'.
endif.
or is there a better way?
2007 Oct 26 8:26 AM
Hi ..
You have to change the code like this.
data : server_path TYPE string .
case sy-sysid
when 'BWD'.
server_path = '
bwdevt\bwdtemp'.
case 'BWP'.
server_path = '
bwpsrv\bwdtemp'.
endcase.
<b>Reward if helpful.</b>
2007 Oct 26 8:07 AM
Hi William,
Yes it will work and there is nothing wrong in this as I told earlier also.
Regards,
Atish
2007 Oct 26 8:11 AM
Hi William,
Path should be of type rlgrap-filename.
Instead of hardcoding the filepath, you can use the FM <b>/SAPDMC/LSM_F4_SERVER_FILE</b> at the event 'AT SELECTION SCREEN ON VALUE-REQUEST'. This will provide an F4 help for the field (for filepath) and the user will be able to select any path in the application server.
Thanks
Vijay
<b>PLZ Reward Points if helpful</b>
2007 Oct 26 8:32 AM
does this force the user to choose the server path? i guess they wont know what to enter
2007 Oct 26 8:26 AM
Hi ..
You have to change the code like this.
data : server_path TYPE string .
case sy-sysid
when 'BWD'.
server_path = '
bwdevt\bwdtemp'.
case 'BWP'.
server_path = '
bwpsrv\bwdtemp'.
endcase.
<b>Reward if helpful.</b>