2007 Aug 06 1:18 PM
Good Morning,
I'm using the exit <b>EXIT_RFEKA400_001</b> (Include <b>ZXF01U06</b>) to validate Electronic Bank statements files before posting them.
When i use the frontend to download the file (Windows -> Windows), there's no problem, but when i'm downloading the file directly from my application server (UNIX -> Windows) the data file to validate contains special characters that are seen as <b>#</b>.
How can i strip the special characters from these files in order to work with them as i do when downloading from the frontend?
Best Regards,
Pedro Gaspar
Good Morning,
I'm using the exit <b>EXIT_RFEKA400_001</b> (Include <b>ZXF01U06</b>) to validate Electronic Bank statements files before posting them.
When i use the frontend to download the file (Windows -> Windows), there's no problem, but when i'm downloading the file directly from my application server (UNIX -> Windows) the data file to validate contains special characters that are seen as <b>#</b>.
How can i strip the special characters from these files in order to work with them as i do when downloading from the frontend?
Best Regards,
Pedro Gaspar
2007 Aug 06 1:33 PM
Hi
How you are downloading the file from Application server?
Use the Transaction code <b>CG3Y</b> and download and see
<b>Reward points for useful Answers</b>
Regards
Anji
2007 Aug 06 2:46 PM
Hello Anji,
My code doesn't download the file, the standard program is doing that.
My code is on a exit immediately after the download from the standard program.
This is the standard program code to upload the file:
*---------------------------------------------------------------*
* FORM UPLOAD_FROM_UNIX. *
*---------------------------------------------------------------*
* Dateien vom UNIX-Datei-System lesen und in internen Tabellen *
* UMSATZ und AUSZUG speichern. *
*---------------------------------------------------------------*
FORM UPLOAD_FROM_UNIX.
data: l_upload_codepage type ABAP_ENCODING. "n928965
GET PARAMETER ID 'UCP' FIELD l_upload_codepage. "n928965
* Auszug-Datei öffnen / lesen
IF l_upload_codepage IS INITIAL. "n928965
OPEN DATASET AUSZUG-FILE IN TEXT MODE encoding default FOR INPUT. "UC
ELSE. "n928965
OPEN DATASET AUSZUG-FILE IN LEGACY TEXT MODE CODE PAGE "n928965
l_upload_codepage FOR INPUT. "n928965
ENDIF. "n928965
IF SY-SUBRC NE 0.
MESSAGE E002 WITH AUSZUG-FILE.
ENDIF.
*------- Auszüge in interner Tabelle speichern -----------------
DO.
CLEAR SWIFT-ZEILE.
READ DATASET AUSZUG-FILE INTO SWIFT-ZEILE.
IF SY-SUBRC NE 0.
EXIT.
ENDIF.
APPEND SWIFT.
ENDDO.
CLOSE DATASET AUSZUG-FILE.
ENDFORM. "UPLOAD_FROM_UNIX
It looks a conversion "problem" to me...
Anyone with a past experience on this in order to help me?
Regards,
Pedro Gaspar
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |