When you attempt to copy the bank master data, the error message FU810 "File ... cannot be processed" is issued.
Key words: RFBVD__1 RFBVD__0 BNKA
Incorrect data format of the import file.
SolutionUse the following ABAP program to check the sorted file:
PROGRAM ZZTEST01.
DATA: XEOR.
DATA: BEGIN OF WA,
CHAR1(189) TYPE C,
END OF WA.
PARAMETERS: DS_NAME LIKE RFPDO-F160DSN1.
PARAMETERS: ANZAHL(4) TYPE N.
* ------ Satzendekennzeichen?
OPEN DATASET DS_NAME FOR INPUT IN TEXT MODE.
READ DATASET DS_NAME INTO WA.
READ DATASET DS_NAME INTO WA.
IF SY-SUBRC = 0.
XEOR = 'X'.
WRITE: / 'File has end-of-file indicator'.
ELSE.
WRITE: / 'File has no end-of-file indicator'.
ENDIF.
CLOSE DATASET DS_NAME.
* ------ Die ersten N Sätze ausgeben
IF XEOR = SPACE.
OPEN DATASET DS_NAME FOR INPUT IN BINARY MODE.
ELSE.
OPEN DATASET DS_NAME FOR INPUT IN TEXT MODE.
ENDIF.
DO ANZAHL TIMES.
READ DATASET DS_NAME INTO WA.
WRITE: / WA(8), 9 WA+26(58).
ENDDO.
The result will show whether the file has an end-of-file indicator or not and whether the data has been shifted.
The bank code appears in WA(8).
WA+26(58) contains the bank address when the file could not be created from the disk.
WA+27(58) contains the bank address when the file was created from a disk).
That means: A SPACE between bank code and bank address shows that the file was created from the diskette.
No comments:
Post a Comment