Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

FF_5 User-Exit

Former Member
0 Likes
1,731

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

2 REPLIES 2
Read only

Former Member
0 Likes
1,109

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

Read only

0 Likes
1,109

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