Application Development 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: 

what is the use of homeshare in ABAP?

Former Member
0 Kudos

form GET_PATH . DATA s_path TYPE string. DATA s_path1 TYPE string. DATA s_NAME TYPE string VALUE 'HOMESHARE'

previously it was taking server path but now want to direct local drive

3 REPLIES 3

bertrand_delvallee
Active Participant

Hello,

Without knowing where this code come from, I fear nobody can help you.

DATA s_NAME TYPE string VALUE 'HOMESHARE'.

This line just means "There is now a variable named S_NAME containing the value 'HOMESHARE'. But maybe this variable is not used after that. Or maybe the line just after change the value for 'GORATRIX'.

You have to explain a lot more what you are trying to do or understand. For example you say "previously it was taking" but what is "IT"? And what is the program containing this line?

Best regards

Former Member
0 Kudos

form GET_PATH .

DATA s_path TYPE string.
DATA s_path1 TYPE string.

DATA s_NAME TYPE string VALUE 'HOMESHARE'.

CALL METHOD cl_gui_frontend_services=>environment_get_variable

EXPORTING variable = S_NAME

CHANGING value = s_path

EXCEPTIONS cntl_error = 1

error_no_gui = 2

not_supported_by_gui = 3

OTHERS = 4.

IF sy-subrc <> 0.

* MESSAGE ID sy-msgid TYPE 'E' NUMBER sy-msgno

* WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

CALL METHOD cl_gui_cfw=>flush EXCEPTIONS cntl_system_error = 1 cntl_error = 2 OTHERS = 3.

IF sy-subrc <> 0.

ENDIF.

s_NAME = 'HOMEPATH'.

CALL METHOD cl_gui_frontend_services=>environment_get_variable

EXPORTING variable = S_NAME

CHANGING value = s_path1 EXCEPTIONS cntl_error = 1 error_no_gui = 2 not_supported_by_gui = 3 OTHERS = 4.

IF sy-subrc <> 0.

* MESSAGE ID sy-msgid TYPE 'E' NUMBER sy-msgno * WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

CALL METHOD cl_gui_cfw=>flush EXCEPTIONS cntl_system_error = 1 cntl_error = 2 OTHERS = 3.

IF sy-subrc <> 0.

ENDIF.

CONCATENATE S_PATH S_PATH1 INTO GC_PATH_PC. endform. " GET_PATH

Former Member
0 Kudos

this code is created for transaction used in MM.

which is used for exporting file . but now that file is on local drive before it was on server.

user want to export it how can i direct local drive?