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

getting multiple flat files from application server in SAP

Former Member
0 Likes
609

Hi

Is there any function module to get multiple flat files from application server. If so please send the FM and required code

regards

mac

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
578

Hi,

Go thru this link.

http://www.sapdevelopment.co.uk/fmodules/fmssap.htm

Thanks

Sunil

5 REPLIES 5
Read only

Former Member
0 Likes
578

chk this EPS_GET_DIRECTORY_LISTING

Read only

Former Member
0 Likes
579

Hi,

Go thru this link.

http://www.sapdevelopment.co.uk/fmodules/fmssap.htm

Thanks

Sunil

Read only

Former Member
0 Likes
578

Hi

Try to use SUBST_GET_FILE_LIST:

CALL FUNCTION 'SUBST_GET_FILE_LIST'

EXPORTING

DIRNAME = PATH

FILENM = '*'

TABLES

FILE_LIST = T_FILE_LIST

EXCEPTIONS

ACCESS_ERROR = 1

OTHERS = 2.

Max

Read only

Former Member
0 Likes
578

hi,

check the FM 'RZL_READ_DIR_LOCAL'

call function 'RZL_READ_DIR_LOCAL'

exporting

name = p_dir

tables

file_tbl = itab

EXCEPTIONS

ARGUMENT_ERROR = 1

NOT_FOUND = 2

OTHERS = 3

.

if sy-subrc <> 0.

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

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

endif.

hope this helps,

do reward if it helps,

priya.

Read only

Former Member
0 Likes
578

hi Madhan,

Check FM <b>RZL_READ_DIR_LOCAL</b>

Regards,

Santosh