Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

a simple abap code..

Former Member
0 Kudos

i am new to sap..

i need a simple abap code to print a message say hello ...

kindly each and every step along with how to and where to .also mention the various options i have to select...

in short all the process.. in detail..

if possible... explain the concept of drilling through the forms to themax of 9 levels deep...(give the code for this too...)

thanx in advance..

6 REPLIES 6

Former Member
0 Kudos

Hi

Go to SE38 Transaction.

Enter a report name say: ZSWAMI

Click on CREATE button

Enter a title : MY test prog

In Attributes:

Select TYPE as Executable Program

and click on SAVE

Package ...CLICK on Local Object icon below.

In the coding part:

After:

REPORT  ZSWAMI .
Write: 'Hello'.

Click on activate button. (a burning stick) or CTRL+F3

Click enter on the screen which appears next.

Now your program is activated.

Click on EXECUTE button. or press 'F8'

Hope it helps you.

Kindly reward points if ur problem is solved.

Regards,

Anjali

Former Member
0 Kudos

Presuming that you know how to logon to SAP...

Go to tcode SE38..

give one program name starting with z.. for ex ztest

Click on the push button 'Create'..

Give some title/description to the program..

In the Attributes block, you find somethign called 'Type'.. Click on the dropdown box and choose 1(Executable program)..

Click on 'Save'.

it opens an other pop-up window which will ask for the package. as you are not working on real-time objects, give $tmp in the package.. Press Save..

This finally opens up the ABAP editor where you can write your own code..

Write these 2 lines there which will print Hello when you execute it..

REPORT ZTEST.

write:/ 'Hello'.

DO a syntactical check and then activate.. Once the program is active, it's ready for execution..

Press F8 and it will write 'Hello' in the other screen

Former Member
0 Kudos

Hi,

check this link for getting basic knowledge of SAP & ABAP programming.

In one reply I cant explain you in detail.

Try to read the SAP library to get knowledge.

http://help.sap.com/saphelp_47x200/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm

Regards

Srikanth.

Former Member
0 Kudos

also check this forum,which is having couple of links for basic abap stuff

Former Member
0 Kudos

Hi,

I think this Ebook will help you.

<a href="http://cma.zdnet.com/book/abap/index.htm">Sams Teach Yourself Abab.</a>

Regards,

Former Member
0 Kudos

Hai Swaminathan

Goto Transaction Code SE38

give Report name as : ZXXXX

Press F5 or Create Button

Then Give Program Description : Meaningful Description

select Program Type : Executable Program

then Press Enter after that Provide Package or Development Class

After that Write the following Code

&----


*& Report ZSDN *

*& *

&----


*& *

*& *

&----


REPORT ZSDN .

Write 😕 'Hello'.

after that press Ctrl+F2 for any Syntax Errors

After ther press Ctrl+F3 for any Activate your Program

Then Press F8 for Execution

it gives the Out put Like this 'Hello'

Thanks & regards

Sreenivasulu P