Skip to Content
0
Former Member
Dec 24, 2012 at 01:25 PM

File name routine in infopackage

115 Views

hi DI gurus

I have written file name routine from data extraction tab of the data source.

the code is as follows

DATA:FILE_TABLE LIKE TABLE OF SDOKPATH WITH HEADER LINE,

WA_TABLE TYPE SDOKPATH.

DATA:DIR_TABLE LIKE TABLE OF SDOKPATH WITH HEADER LINE ,

P_DIR(100) TYPE C VALUE

'C:\Documents and Settings\Administrator\Desktop\New Folder'.

CALL FUNCTION 'TMP_GUI_DIRECTORY_LIST_FILES'

EXPORTING

DIRECTORY = P_DIR

FILTER = '*.CSV'

* IMPORTING

* FILE_COUNT =

* DIR_COUNT =

TABLES

FILE_TABLE = FILE_TABLE

DIR_TABLE = DIR_TABLE

EXCEPTIONS

CNTL_ERROR = 1

OTHERS = 2.

.

LOOP AT FILE_TABLE INTO WA_TABLE.

IF WA_TABLE-PATHNAME CS '.CSV'.

CONCATENATE P_DIR WA_TABLE-PATHNAME INTO P_FILENAME.

ENDIF.

ENDLOOP.

syntax wise program is right

but when I scheduled this is saying 'wrong parameter'.

could u please help me on this issue.