on 06-09-2022 6:56 PM
I have created a program that uploads data from an excel file to a database table. I am using function modules F4_FILENAME and then TEXT_CONVERT_XLS_TO_SAP. How can I make it so that at the selection screen the user can only input a file that ends in XLSX or XLS?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Quynh Bui Cong, thans to do a lot of job today, just a little remark, if you post ABAP code, copy past the text, and use the button [CODE] to format it
You may use CP (Conforms to Pattern, star character as wildcard). Note that it's case insensitive.
IF p_file CP '*.xlsx' OR p_file CP '*.xls'.
...
ENDIF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
100 | |
12 | |
10 | |
5 | |
4 | |
3 | |
3 | |
3 | |
2 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.