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

obsolete function module : ws_uldl_path

Former Member
0 Likes
779

Hi,,

can any one help me regarding this Function module.?

which Function module is used as replacement of ws_uldl_path FM in newer versions?

regards

vineela

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
636

Hi,

Here i am giving the replaced code.

  • CALL FUNCTION 'WS_ULDL_PATH'

  • IMPORTING

  • download_path = pa_file1

  • EXCEPTIONS

  • OTHERS = 1.

data: pa_file01 type string.

data: pu_file1 type string.

pa_file01 = pa_file1.

CALL METHOD CL_GUI_FRONTEND_SERVICES=>GET_UPLOAD_DOWNLOAD_PATH

CHANGING

UPLOAD_PATH = pu_file1

DOWNLOAD_PATH = pa_file01

EXCEPTIONS

  • CNTL_ERROR = 1

  • ERROR_NO_GUI = 2

  • NOT_SUPPORTED_BY_GUI = 3

  • GUI_UPLOAD_DOWNLOAD_PATH = 4

  • UPLOAD_DOWNLOAD_PATH_FAILED = 5

others = 6

.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

pa_file1 = pa_file01.

If useful reward points...

Regards

Sandeep Reddy

2 REPLIES 2
Read only

Former Member
0 Likes
636

Hello,

Symptom

The ws_uldl_path function module is obsolete.

Other terms

Gmux

Reason and Prerequisites

The module restarts with a communications system that is not Unicode-enabled.

Solution

The new file_open_dialog und file_save_dialog Unicode-enabled methods of the cl_gui_frontend_services class have been extended and now contain the ws_uldl_path functions.

New applications should restart on these methods instead of the function module. The function module is extended using a Support Package so that it diverts calls to the cl_gui_frontend_services class without the application having to be changed.

Regards.

Read only

Former Member
0 Likes
637

Hi,

Here i am giving the replaced code.

  • CALL FUNCTION 'WS_ULDL_PATH'

  • IMPORTING

  • download_path = pa_file1

  • EXCEPTIONS

  • OTHERS = 1.

data: pa_file01 type string.

data: pu_file1 type string.

pa_file01 = pa_file1.

CALL METHOD CL_GUI_FRONTEND_SERVICES=>GET_UPLOAD_DOWNLOAD_PATH

CHANGING

UPLOAD_PATH = pu_file1

DOWNLOAD_PATH = pa_file01

EXCEPTIONS

  • CNTL_ERROR = 1

  • ERROR_NO_GUI = 2

  • NOT_SUPPORTED_BY_GUI = 3

  • GUI_UPLOAD_DOWNLOAD_PATH = 4

  • UPLOAD_DOWNLOAD_PATH_FAILED = 5

others = 6

.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

pa_file1 = pa_file01.

If useful reward points...

Regards

Sandeep Reddy