Skip to Content
avatar image
-1
Former Member

what is the use of homeshare in ABAP?

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

Add comment
10|10000 characters needed characters exceeded

  • Former Member

    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

    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?

  • Get RSS Feed

1 Answer

  • Jul 11, 2017 at 08:20 AM

    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

    Add comment
    10|10000 characters needed characters exceeded