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

Replacement for the obsolate function module 'WS_FILE_ATTRIB'

former_member242255
Active Contributor
0 Likes
344

Hi All,

This is an Upgrade issue.

Can any body help me to find the replacement for the obsolate function module 'WS_FILE_ATTRIB'.

CALL FUNCTION 'WS_FILE_ATTRIB'

EXPORTING

FILE = L_FILENAME

ATTRIB = 'R-'

IMPORTING

RETURN = RETURN

EXCEPTIONS

OTHERS = 1.

Is the method 'CL_GUI_FRONTEND_SERVICES=>FILE_SET_ATTRIBUTES' a suitable one ?

if so what parameters i have to pass it.

CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_SET_ATTRIBUTES

EXPORTING

FILENAME = L_FILENAME

  • READONLY =

  • NORMAL =

  • HIDDEN =

  • ARCHIVE =

  • IMPORTING

  • RC =

  • EXCEPTIONS

  • CNTL_ERROR = 1

  • ERROR_NO_GUI = 2

  • NOT_SUPPORTED_BY_GUI = 3

  • WRONG_PARAMETER = 4

  • others = 5

.

what does it mean by ATTRIB = 'R-'

'WS_FILE_ATTRIB' is allowing only either 'R+' or 'R-'

Also what exactly is the functionality of ''WS_FILE_ATTRIB'' function module

Thanks in advance

NIVAS

1 REPLY 1
Read only

GauthamV
Active Contributor
0 Likes
305

check this.

EPS_GET_FILE_ATTRIBUTES