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.

Read Also
Mass Idoc Change Corrections

Get help for your ABAP problems
Do you have a ABAP Question?

ABAP Books
ABAP Certification, BAPI, Java, Web Programming, Smart Forms, Sapscripts Reference Books

More ABAP Tips

Main Index
SAP ERP Modules, Basis, ABAP and Other IMG Stuff

All the site contents are Copyright © www.erpgreat.com and the content authors. All rights reserved.
All product names are trademarks of their respective companies.  The site www.erpgreat.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.erpgreat.com or the content authors.