Tuesday, 14 April 2015

Writing Data to SAP Application Server [ Tx- AL11 ]



----------------------------------------------------------------------------------------------------------------------------------

Step1. Go to Tx- AL11 (SAP Application Server).





Step2. Here Below are the Directories with the path details. Double click on the Directory : DIR_TEMP







Step3. Below are the list of files under the directory.






Step4. Below the details of the table. We will write these data to appliciation server directory.






 Step5. The below program gets the table data in an internal table. 

A new file with name "ALL_FLIGHT_DATA" will be created under DIR_TEMP after the execution of the program.

The internal table data are written in the text mode.

OPEN DATASET- Opens the file.

FOR OUTOUT - Means writing the data to application server.
TRANSFER -> Writes the work area data to the file.
CLOSE DATASET-> Closes the file.

Execute the report.



 The below message appears.




Step6. Go to Tx- AL11 and open directory-> DIR_TEMP (double click).  So here a new file ALL_FLIGHT_DATA has been created. to see its content double click on the file name.



Step7. So here the contents of the file.






Step8. Writing the data can be done in two different ways.

1. Text Mode ( Specifying Encoding is mandatory).
2. Binary Mode( No encoding required).

Lets try the same program to write data on appliciation server with binary mode with a different file name. Execute the program.





  
The below message appears.




Step9. Go to Tx- AL11 and open directory-> DIR_TEMP (double click).  So here a new file ALL_FLIGHT_DATA_BIN has been created. to see its content double click on the file name.





 Step10. So here the fine contents.












-------------------------------------------------------------------------------------------------------------------------------------

No comments:

Comments system

Disqus Shortname