SAP File, Download Files from AL11;ABAP Program for Application server File;How to zip a file using ABAP

Sample ABAP Program for Application server File

ABAP Program for Application server File is a sample SAP Custom Program to give you an example how file are handled on Application server.  The following ABAP program check if a file exists and create a new file on Application Server .

Sample ABAP Program for Application server File

The main points from this ABAP Sample code are:

Search Help for SAP Folder can be performed with the standard function module /SAPDMC/LSM_F4_SERVER_FILE.

Checking if a file exists on Application server can be do with  OPEN DATASET file FOR INPUT IN BINARY MODE.

A sample OPEN DATASET file for OUTPUT to write file on Back-end.

This ABAP Program will retrieve a list of Customer from KNA1 and create a file on Application server with the SAP Customer List.

Check also   Step by Step Guide how to Debug Popup Screen in SAP ABAP

Find the OPEN DATASET documentation on help.sap.com

Leave a Reply

Your email address will not be published. Required fields are marked *