ABAP OPEN DATASET and CLOSE DATASET: Investigating Missing Files on NFS

A file written by an ABAP job may appear to be missing when another application server or external process tries to read it. Investigate both the ABAP file operation and the NFS mount before concluding that the operating system lost the file.

Start with the application server

Use SM37 to identify the job execution server and job log. Review the ABAP program’s handling of OPEN DATASET, TRANSFER and CLOSE DATASET, including exceptions and return codes where applicable. Confirm the resolved physical path and exact filename. In AL11, compare the directory on the relevant application server; the transaction displays files visible from the current instance.

AL11 directory verification from the existing ITSITI directory guide
AL11 directory verification from the existing ITSITI directory guide

Check the filesystem on both servers

On the producer and consumer Linux hosts, compare the actual mount and file metadata using the real path. Run the checks as the applicable service account where appropriate.

findmnt -T /path/to/interface
ls -ld /path/to/interface
stat /path/to/interface/example.dat
nfsstat -m

Check for mount differences, permissions, NFS errors, concurrent consumers and files that are renamed or removed immediately after processing. If the file is created but intermittently read before it is complete, coordinate an approved producer-consumer handoff design with the ABAP team. Do not remount NFS or change cache settings on a live interface without investigating the impact first.

Reference

SAP Note: 3775527

SAP Help: Documentation

You May Also Like

Leave a Reply?