We can create a report from the transaction SE38. We can even navigate from SE80, but mostly its preferred to use SE38 directly.
Go to se38 and give some name and press create.
Provide some description and then Choose program TYPE as executable and then save in local object.
Then the EDITOR will open.
Here we can write down code and click on the activate button to activate the report. We can use the toolbar options to perform many operation as well.
Now we will try to write a simple code t complete the report. You can find lot of code in sap transaction ABAPDOCU only. I will use these examples to explain every points.
The code attached here is taken from ABAPDOCU transaction of SAP Screen.
========================================================
REPORT ZTEST_REPORT.
* Selection Screen
PARAMETERS input(12) TYPE c DEFAULT 'Hello World!'.
* Dynpro
CALL SCREEN 100.
* List
SKIP TO LINE 10.
POSITION 40.
WRITE input.
Here , REPORT ZTEST_REPORT this statement will be automatically created. This will tell SAP at runtime that this is Report. Without this the report cannot be activated.
Statement starting with "*" is a comment line. It will not execute, just consider as description.
Lets execute the report. Press the button in below screen or press f8 button of keyboard.
Now again click on the CLOCK like button.
Now click on the NEXT button.
This might looks strange how so many screens coming in for just 4 lines of code. That we will discuss later on.
My target for this tutorial is to how to use the SE38 transaction and how to execute the report. Hope this make sense.
0 comments:
Post a Comment