Skip to Content
avatar image
Former Member

a simple abap code..

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..

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • avatar image
    Former Member
    May 19, 2006 at 04:07 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 19, 2006 at 04:21 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 19, 2006 at 06:52 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 19, 2006 at 06:59 AM

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

    hi all i want some good materials on ABAP reports

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 19, 2006 at 08:08 AM

    Hi,

    I think this Ebook will help you.

    Sams" target="_blank">http://cma.zdnet.com/book/abap/index.htm">Sams Teach Yourself Abab.

    Regards,

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 19, 2006 at 08:38 AM

    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

    Add comment
    10|10000 characters needed characters exceeded