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: 

WS_QUERY

Former Member
0 Kudos

Hey,

What is the equalant FM for WS_QUERY in ECC 5.0 version(My sap ERP)

Regards

1 ACCEPTED SOLUTION

former_member181962
Active Contributor
0 Kudos

Check the Function modules in SFES Function Group.

7 REPLIES 7

former_member181962
Active Contributor
0 Kudos

Check the Function modules in SFES Function Group.

amit_khare
Active Contributor
0 Kudos

Check this link -

Regards,

Amit

Former Member
0 Kudos

Hi,

Same Fun Module

valid in ECC 5.o and ECC 6.o also.

Regards

Anji

Former Member
0 Kudos

hi,

u need to use..

CL_GUI_FRONTEND_SERVICES=>DIRECTORY_EXIST (if the query is 'DE')

or CL_GUI_FRONTEND_SERVICES=>FILE_EXIST (if the query is 'FE')

IF U_QUERY = 'DE'.

CALL METHOD CL_GUI_FRONTEND_SERVICES=>DIRECTORY_EXIST

EXPORTING

DIRECTORY = W_FILENAME

RECEIVING

RESULT = W_RETURN

EXCEPTIONS

CNTL_ERROR = 1

ERROR_NO_GUI = 2

WRONG_PARAMETER = 3

NOT_SUPPORTED_BY_GUI = 4

others = 5.

IF SY-SUBRC <> 0.

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

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

ENDIF.

ELSEIF U_QUERY = 'FE'.

CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_EXIST

EXPORTING

FILE = W_FILENAME

RECEIVING

RESULT = W_RETURN

EXCEPTIONS

CNTL_ERROR = 1

ERROR_NO_GUI = 2

WRONG_PARAMETER = 3

NOT_SUPPORTED_BY_GUI = 4

others = 5.

IF SY-SUBRC <> 0.

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

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

ENDIF.

ENDIF.

IF W_RETURN = 'X'.

C_RETURN = '1'.

ELSE.

C_RETURN = ' '.

ENDIF.

do reward if it helps,

priya.

0 Kudos

Hey

thanks..But

W_RETURN TYPE ABAP_BOOL, MODE TYPE I.

Here how to declare ABAP_BOOL in my pgm?

getting error ABAP_BOOL is un known

0 Kudos

just declare like this

<b>TYPES:

abap_bool TYPE c length 1.</b>

0 Kudos

hi,

declare Return as

DATA: W_RETURN TYPE BOOL.