You are on page 1of 20

Reading Data from SAP Application Server [ Tx- AL11 ]

--------------------------------------------------------------------------------------------------------------------------------------------Step1. Go to Tx- AL11

Step2. Need to read data from DIR_TEMP directory.


Double click on it.

Step3. So here we have the files.


Double click on the file : ALL_FLIGHT_DATA & ALL_FLIGHT_DATA_BIN

Step4. here are the file contents.


.

Step5. Execute the report which reads the file : ALL_FLIGHT_DATA and puts it in an internal
table and then displays it.
OPEN DATASET- Opens the file for certain operation
FOR INPUT- Means to read the data from the file of the application server
READ DATASET- Reads the file content line by line .
CLOSE DATASET- Closes the file.

Step6. So here we have the report output.

Step6.. Also we can read the file ALL_FLIGHT_DATA_BIN & display its data.

Step7. So here is the below output.

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

Posted 15th April by S Prasad

View comments

TECHSAP

[visit www.marathustech.net for


classroom or online training or contact
+91 89708 40880]
Sidebar

Home

Topic Tutorials

FPM Tutorials

Topic Wise Questions for Interview?

SAP ABAP Short Questions for written interview

Need SAP Training?

Want to Call any URL from ABAP Program?

Calling Calculator in ABAP Program!

Reading program text pool!

How to create a Single Quote ?

Conversion: Raw to String

Conversions (2) : XSTRING to STRING

Conversions : XSTRING to STRING

Conversions : STRING to XSTRING


SAP Script Important Standard Programs!

How to use User Parameter ID ?

How to call Maintenance View Programatically?

How get to know SAP_JAVA engine is active or not?

How to Check Different Languages Installed in SAP System?

Maximum allowed sessions in SAP?

How to Create Number Range Object [Tx- SNRO]

Editable ALV with save functionality uisng OOABAP

Creating a dynamic variant for a report

Running background job by triggering an event

13.Smartfrom : How to debug a smartform?

12.Smartform : Passing data from driver program to Smartform interface

11.Smartform: Use of Copy Window in Smartform

Writing to or Reading from Application Server By ABAP Classes

Downloading File from SAP Appliciation Server Directory

Uploading File to SAP Appliciation Server Directory

Reading Data from SAP Application Server [ Tx- AL11 ]

Writing Data to SAP Application Server [ Tx- AL11 ]

10. Smartform :Designing a template in Smartform

9. Smartform : Designing a table in smartform

8. Smartform : Displaying address on a Smartform Window

7. Smartform : Displaying a logo on a Smartform Window

6.Smartfrom: How to call a Smartform progrmatically that works in development, quality & production?

5.Smartfrom : How to call a Smartform Progrmatically?

4.Smartform- Using Dynamic Text in window

3.Smartform- Using Standard Text in window

2.Smartform- Using Text module in window

1.Smartform - Using a text element in window

Benefits of use of text elements and its translation

Use of SAP OTR [OnlineText Repository] Text

Part4 : FPM OVP Application -Integrating Search UIBB and List UIBB: Displaying POPUP Screen

Part3 : FPM OVP Application -Integrating Search UIBB and List UIBB: Message Display

Part2 : FPM Integrating Search UIBB and List UIBB into FPM OVP Application : Link to action

Part1 : FPM Integrating Search UIBB and List UIBB into FPM OVP Application

Creating Range Table Type in Data Dictionary

Converting Script OTF data to PDF

Need to Convert Spool Request(Generated Background Job ) Into PDF!

Need to Convert Spool Request(OTF Script) Into PDF!

Tabbed Block at Selection-screen

qRFC with Outbound Queue & Inbound Queue between two different SAP systems - One LUW per mixed part of the Queues

qRFC with Outbound Queue & Inbound Queue between two different SAP systems - One LUW per Queue Call

qRFC with Outbound Queue & Inbound Queue between two different SAP systems - One LUW for Multiple QUEUE Calls

Want to Call any URL from ABAP Program?


-----------------------------------------------------------------------------------------------------------------------------Code:
--------------------------------------------------------------------------------------------------------------CALL METHOD cl_gui_frontend_services=>execute
EXPORTING
* document
=
" Path+Name to Document
application
= 'www.google.com' " Path and Name of Application
* parameter
=
" Parameter for Application
* default_directory
=
" Default Directory
* maximized
=
" Show Window Maximized
* minimized
=
" Show Window Minimized
* synchronous
=
" When 'X': Runs the Application in Synchronous Mode
* operation
= 'OPEN' " Reserved: Verb fr ShellExecute
EXCEPTIONS
cntl_error
=1
error_no_gui
=2
bad_parameter
=3
file_not_found
=4
path_not_found
=5
file_extension_unknown = 6
error_execute_failed = 7
synchronous_failed
=8
not_supported_by_gui = 9
OTHERS
= 10.
IF sy-subrc <> 0.
* MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
*
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
--------------------------------------------------------------------------------------------------------------Step1. cl_gui_frontend_services=>execute method can be used to call any URL. It can be used
to call any webdynpro/fpm application from the program as every webdynpro/fpm application
have an uniuqe URL.

Step2. Here it calls the URL.

Step3. Still we can open any document by specifying the appropriate executable file, location
of the directory of the file and providing the file name.

Step4. Here is one example how we can open a PDF file by the method
cl_gui_frontend_services=>execute.

-----------------------------------------------------------------------------------------------------------------------------Posted 2 days ago by S Prasad

View comments

Loading

You might also like