| Use SAP code to list how many
documents in the folder on your PC
PC Folder List with ABAP
Use function module TMP_GUI_DIRECTORY_LIST_FILES to get a list of files
on any given path on the presentation server.
Sample Code:
data : file_table like table of SDOKPATH.
data : dir_table like table of SDOKPATH.
CALL FUNCTION 'TMP_GUI_DIRECTORY_LIST_FILES'
EXPORTING
DIRECTORY = 'C:\export\'
FILTER = '*.TXT'
* IMPORTING
* FILE_COUNT =
* DIR_COUNT =
TABLES
FILE_TABLE = file_table
DIR_TABLE = dir_table
* EXCEPTIONS
* CNTL_ERROR = 1
* OTHERS = 2.
Do you have a ABAP Question?
Best regards,
SAP Basis, ABAP Programming and Other IMG Stuff
http://www.sap-img.com
All the site contents are Copyright © www.sap-img.com
and the content authors. All rights reserved.
All product names are trademarks of their respective
companies. The site www.sap-img.com is in no way affiliated with
SAP AG.
Every effort is made to ensure the content integrity.
Information used on this site is at your own risk.
The content on this site may not be reproduced
or redistributed without the express written permission of
www.sap-img.com or the content authors.
|