Вы находитесь на странице: 1из 24

10/30/2016

ABAPonSAPHANA.PartI.FirstPrograminABAPHANASAPYard

SAP YARD

YOUR BACKYARD FOR SAP TECHNICAL TIPS AND SOLUTIONS


HOME

SEE ALL POSTS

TUTORIALS

CODE SNIPPETS

KNOW THY YARD MEN

HELP FORUM

BOOKS & JOBS

SAP QUIZ
148
Shares

ABAP on SAP HANA. Part I. First


Program in ABAP HANA
TOPICS: ABAP For SAP HANA
SAP ABAP On HANA

ADT

Beginners SAP

SAP HANA For Free

CDS Views

Enteremail

Subscribe

We Respect Your Privacy !

HANA Studio

SEARCH

SAP Technical
Follow@sapyard

http://www.sapyard.com/abaponsaphanaparti/

1/24

10/30/2016

ABAPonSAPHANA.PartI.FirstPrograminABAPHANASAPYard

POSTED BY: SAP YARD

MAY 19, 2016

SAPYard

Introduction to SAP ABAP on HANA


We have heard enough about SAP HANA, in-memory concept,
software/hardware innovation etc. In this article, we do not want to beat
around the theories. As an ABAP developer, we would like to know how we can
view ABAP objects (programs/FMs/tables) in HANA Studio and how we can
create/change those objects there. This is the rst part in the series of posts
which would speci cally target our SAP Technical folks, our ABAPer
148
Shares community.
As an ABAPer, I had these queries. I am sure, many of my ABAPer friends
would have similar if not same questions. Hope these answers would provide
some light to your existing knowledge about ABAP on SAP HANA. At the
end of the last question of this article, you will learn and create your rst ABAP
program from HANA Studio and also execute it successfully to view the output.

656likes

Liked

Youand2otherfriendslikethis

SAP ABAP LINKS

Read more SAP HANA from space level.


Lets move on.
Questions:
1. What is HANA Studio and what is the need of HANA Studio?
2. What is ADT and what is the need of ADT?
3. Seems ADT does the same thing like SE80 T-code. Then why do we really
need ADT?

Abapinho

7MostPopular&FeaturedArticles

SAP HANA from Space


Level
Lazy and Smart ABAPers

4. What are perspective in HANA Studio?


5. In which perspective can we create/change/display ABAP programs?
http://www.sapyard.com/abaponsaphanaparti/

DELETING rows of the internal


table within the LOOP. Is it a
2/24

10/30/2016

ABAPonSAPHANA.PartI.FirstPrograminABAPHANASAPYard

6. How do we view ABAP programs in HANA Studio?

Taboo? A big NO NO?

7. Can we edit the same program in GUI and in HANA Studio?


8. How can we write ABAP programs using ADT?

Fiori App - An

Also Read: SAP HANA at Ground Zero

ABAPer

Introduction from an

The below explanations are as per our understanding. We would like to


148 appeal our experienced ABAPers to throw some more light to the below answers
Shares
if they know more about it.

SAP HANA at Ground

Q: What is HANA Studio and what is the need of HANA Studio?


1. HANA as a database has evolved manifold in the last few years. In order to
keep pace with these hardware and software innovations, HANA Studio is
introduced. HANAStudio provides the right environment for HANA
administration, modeling and data provisioning.

ABAP on SAP HANA.

Studio is needed so that the developers can create models, proceduresetc


using the Eclipse-based tool in HANA. Studio is also utilized to develop SQL
Script whichwrites Application logic that would push down data-intensive
queries and logic to HANA database and improves the overall performance
of the system.

using Google Map API in

Studio also provides monitoring and other tracing facilities.


Also, the Studio gives freshness to developers who were bored with the blue GUI
screen editor.
(on a lighter note)

Zero

Part I. First Program in


ABAP HANA
Get Latitude and
Longitude of any place
SAP

NetworkedBlogs

Blog:
SAPYard
Topics:
Abap,Sap,Hana

Followourblog

Hopefully, you have some idea of HANA Studio and its need.
Q: What is ADT and what is the need of ADT?
2. ABAP Development Tool is the full form of ADT. ADT provides eclipse
http://www.sapyard.com/abaponsaphanaparti/

3/24

10/30/2016

ABAPonSAPHANA.PartI.FirstPrograminABAPHANASAPYard

base ABAP Integrated Development Environment (IDE).


ADT does not come by default. It has to be installed as a plugin on Eclipse
(in Studio -> Help -> Add New Software).

148
Shares

We need ADT because with ADT in Eclipse, the HANA Studio becomes super
powerful. You can connect to different ABAP systems from single Eclipse
User Interface. Isnt it cool? With ABAP perspective in the studio, you can
implement end-to-end in-memory solutions in Studio with the same UI.
One entry point and multiple bene ts. Dont you like it?
Q: Seems ADT does the same thing like SE80 T-code. Then why do we
really need ADT?
3. You are right. Both ADT and SE80 have same source code repository and
locking mechanism and thus both compliment each other. But ADT is more
powerful than SE80. Some advanced features like creating external views for
exposing HANA view to ABAP DDIC* (external views), creating Database proxy
procedures* are available only when using ADT.
SE80 has been with SAP from birth. ADT is new and still has some enhanced
features. SAP is continuously working on more exclusive features which would
be possible only from ADT in future. So, ADT is the future
Also Read : View the HANA Views from different angles
Q: What are perspective in HANA Studio?
4. In laymans term, perspectives are prede ned layouts for different roles.
For example, we have ABAP perspective for ABAP developers. Java
perspective for Java developers. Debug perspective for debugging. Modeler
for modeling in SAP HANA. Administration console for Admin tasks etc. So,
every member of the team would use the perspective as per his job role,
responsibilities and activities they need to perform.

http://www.sapyard.com/abaponsaphanaparti/

WEB DYNPRO ABAP TUTORIALS

DECEMBER 26, 2014

Lets Web Dynpro.


Part V

NOVEMBER 24, 2014

Lets Web Dynpro.


Part IV

NOVEMBER 11, 2014

Lets Web Dynpro.


Part III

NOVEMBER 5, 2014

Lets Web Dynpro.


Part ZZ

NOVEMBER 3, 2014

Lets Web Dynpro.


Part II

4/24

10/30/2016

ABAPonSAPHANA.PartI.FirstPrograminABAPHANASAPYard

Q: In which perspective can we create/change/display ABAP programs?


5. You guessed it right!! ABAP perspective. So obvious, right?
Bonus question
HANA studio?

. Can we directly write and execute ABAP program in

No, it has to be connected to an ABAP system rst. So, what helps Eclipse to
connect to ABAP system? The answer is ABAP Project. Did you expect this
answer?
ABAP project helps to connect the Eclipse base IDE to ABAP
148
Shares backend system. The project provides eclipse based frameworks for creating,
processing and testing development objects.

In short, ABAP project represents a system logon and contains all ABAP
development objects of the related system.

http://www.sapyard.com/abaponsaphanaparti/

5/24

10/30/2016

ABAPonSAPHANA.PartI.FirstPrograminABAPHANASAPYard

148
Shares

Check this image below. Project S4H_800_SIMPLE3_SAPYARD is our


project which is connected to our S4H system.

http://www.sapyard.com/abaponsaphanaparti/

6/24

10/30/2016

ABAPonSAPHANA.PartI.FirstPrograminABAPHANASAPYard

148
Shares

Similarly, we can have multiple projects pointed to multiple systems from


one HANA Studio UI.
Q: How do we view ABAP programs in HANA Studio?
6. Check there is an ABAP program YSAPYard in ABAP system (Left side).We
can see the same program from our Project which is connected to the same
ABAP system. Expand the System Library and go to your custom package and
program.

http://www.sapyard.com/abaponsaphanaparti/

7/24

10/30/2016

ABAPonSAPHANA.PartI.FirstPrograminABAPHANASAPYard

148
Shares

Check, we can view the same program in GUI and HANA Studio.
Q: Can we edit the same program in GUI and in HANA Studio
simultaneously?
7. No, we cannot edit the same program simultaneously. Both ADT and SE80
have same source code repository and locking mechanism (as mentioned in
answer 3), therefore, we cannot interfere when other is editing it at the same
time.
You get the below error in ADT if you try to edit the already opened program
(in GUI).

http://www.sapyard.com/abaponsaphanaparti/

8/24

10/30/2016

148
Shares

ABAPonSAPHANA.PartI.FirstPrograminABAPHANASAPYard

Finally, the much-awaited question by the ABAPer..


Q. How can we write ABAP programs using ADT and execute it?
8. Select the Package where you want to save your program. Right-click on it
and select ABAP Program.

http://www.sapyard.com/abaponsaphanaparti/

9/24

10/30/2016

ABAPonSAPHANA.PartI.FirstPrograminABAPHANASAPYard

Give the name and description of the program. Do not forget, the Z* or Y*
naming convention holds good even while creating custom objects from
ADT.

148
Shares

You need to choose the transport where you want to save your program.
Write your program and check the syntax and activate it. Most of the icon
are similar to GUI. Done, your program is ready in Studio. Actually, you
created the program just like in SE38/SE80, just the front end was different.
You can go to your ABAP system and check, the new program exists there.

http://www.sapyard.com/abaponsaphanaparti/

10/24

10/30/2016

ABAPonSAPHANA.PartI.FirstPrograminABAPHANASAPYard

Execute the RUN icon in HANA studio and your program would show the
output.

148
Shares

Congrats, you created your rst program in SAP HANA and executed it
successfully. Although this was a dummy program, in actual projects as well,
the process remains the same.
In subsequent posts, we would build real-time programs, learn about ABAP
trace in SAP HANA Studio, Debugging in ADT, Optimized access on
http://www.sapyard.com/abaponsaphanaparti/

11/24

10/30/2016

ABAPonSAPHANA.PartI.FirstPrograminABAPHANASAPYard

internal tables, Code Inspector, SQL Monitoring, ADBC, AMDP, CDS etc.
Also Read:SAP HANA ; S/4 HANA and S/4 HANA Finance in Nutshell
Please stay tuned for more ABAP on SAP HANA technical stuff.
Do you want SAP HANA Studio and HANA Database to practice?
If you want to explore a fully set-up SAP HANA Studio and database, please hit
148 the Subscribe button on the top right side (and activate it) and drop us a note at
Shares
mailsapyard@gmail.com. We are planning to allow our subscribers free
access to SAP HANA system for couple of hours to get the look and feel of
the system for free (for couple of hours only). After we get the list of
interested users, we would provide the credentials and date/time when they
can access it.
Happy Learning.
If you want to get such useful articles directly to your inbox, please
SUBSCRIBE. We respect your privacy and take protecting it seriously.
If you liked this post, please hit the share buttons.
Thank you very much for your time!!
Check our series on SAP ABAP on HANA
1. ABAP on SAP HANA. Part I
2. ABAP on SAP HANA. Part II
3. ABAP for SAP HANA Points to remember

http://www.sapyard.com/abaponsaphanaparti/

12/24

10/30/2016

ABAPonSAPHANA.PartI.FirstPrograminABAPHANASAPYard

Other articles on HANA


1. SAP HANA from Space Level
2. SAP HANA at Ground Zero
3.View the HANA Views from different angles
148
Shares

4. SAP HANA ; S/4 HANA and S/4 HANA Finance in Nutshell


5.Smart Data Integrator & Data Load In SAP HANA
to be update

74

Isn't it Fair to Share??


Related Posts:

http://www.sapyard.com/abaponsaphanaparti/

13/24

10/30/2016

ABAPonSAPHANA.PartI.FirstPrograminABAPHANASAPYard

Real Time Analytics

148
Shares

Previous post

28 COMMENTS

Next post

ON "ABAP ON SAP HANA. PART I. FIRST PROGRAM IN ABAP HANA"

ermal lushi | May 19, 2016 at 2:27 pm | Reply


Great job.this was good

SAP Yard | May 19, 2016 at 2:39 pm | Reply


http://www.sapyard.com/abaponsaphanaparti/

14/24

10/30/2016

ABAPonSAPHANA.PartI.FirstPrograminABAPHANASAPYard

Thank you Ermal. Glad you liked it.


You might also like to check our other popular
post on HANA. http://www.sapyard.com/saphana-from-space-level/
Keep visiting.
148
Shares

Regards,
Team SAPYard.

William | May 21, 2016 at 5:25 am | Reply


Wow thats great staff. Thank you so kufh for sharing
such important information about Sap Hana

SAP Yard | May 22, 2016 at 8:10 pm | Reply


Thank you William. Happy you liked our article.
Regards,
Raju.

http://www.sapyard.com/abaponsaphanaparti/

15/24

10/30/2016

ABAPonSAPHANA.PartI.FirstPrograminABAPHANASAPYard

Mohamed Haarish | May 23, 2016 at 3:37 am | Reply


Hey Raju!
Thanks Great work! I love to explore the HANA system! I subscribed
as you said.
148

Let me know when we can experience it.

Shares

Regards,
Haarish
Fujitsu

SAP Yard | May 23, 2016 at 4:28 am | Reply


Thanks Haarish for your feedback. We will let you
know in couple of weeks.
Regards,
Team SAPYard.

Sasi Kumar | May 23, 2016 at 10:20 am | Reply


Hi Raju,

http://www.sapyard.com/abaponsaphanaparti/

16/24

10/30/2016

ABAPonSAPHANA.PartI.FirstPrograminABAPHANASAPYard

Thanks for sharing , Im interested to explore HANA system. I have


subscribed few back and following your articles

SAP Yard | May 23, 2016 at 1:47 pm | Reply


Dear Sasi Thank you very much for showing your
interest. We will let you know in couple of weeks.
148
Shares

Regards,
Team SAPYard.

Mudassar Ali | May 24, 2016 at 6:54 am | Reply


Thanks Alot for sharing this important information. I
have subscribed it & waiting for next part of this.
Thanks,
Mudassar Ali

SAP Yard | May 24, 2016 at 1:34 pm | Reply


Pleasure is all ours, dear Mudassar. Thank you
very much for subscribing. You would nd the
next part even more interesting and informative.
Please stay tuned.
http://www.sapyard.com/abaponsaphanaparti/

17/24

10/30/2016

ABAPonSAPHANA.PartI.FirstPrograminABAPHANASAPYard

Regards,
Team SAPYard.

Brahmaiah | May 24, 2016 at 12:29 pm | Reply


148

Thanks for sharing, It was good. It is so helpful to get to

Shares

know what SAP HANA is? and how it differs to normal ABAP.

SAP Yard | May 24, 2016 at 1:35 pm | Reply


You are welcome, dear Brahmaiah. We would
share more parts on ABAP on SAP HANA. You
would surely like and learn from it.
Regards,
Team SAPYard.

Rajeev | May 25, 2016 at 7:05 am | Reply


Hi Raju da,
Good one!! How are we calling FM/Class in studio? Is there any
button/path available for that ?
http://www.sapyard.com/abaponsaphanaparti/

18/24

10/30/2016

ABAPonSAPHANA.PartI.FirstPrograminABAPHANASAPYard

Regards,
Rajeev

SAP Yard | May 25, 2016 at 1:41 pm | Reply


Thanks Rajeev. I did not nd the Pattern like
button in Studio. But the keyword
148
Shares

completion/suggestion using Ctrl +Space and then using Shift +


Enter does the trick. Shift + Enter inserts the full signature (e.g.
for function module / method selected).
We have this details in the next post on the same topic.
Regards,
Raju.

satyasri | May 25, 2016 at 4:40 pm | Reply


Thanks a lot for sharing a very informative information. i
have subscribed and waiting for next part.

SAP Yard | May 25, 2016 at 6:23 pm | Reply


You are welcome Satyasri. We will ready with the
next part. It would be published soon. We will also
let you know about the system in couple of weeks.
http://www.sapyard.com/abaponsaphanaparti/

19/24

10/30/2016

ABAPonSAPHANA.PartI.FirstPrograminABAPHANASAPYard

Please stay tuned.


Regards,
Team SAPYard.

148

Satish | May 27, 2016 at 9:30 am | Reply

Shares

Dear Raju,
All your articles are really helpful. Thanks for sharing.

SAP Yard | May 27, 2016 at 2:45 pm | Reply


Thanks Satish.
We are happy that you found our articles useful. Please keep
visiting.
Regards,
Team SAPYard.

Pradipta K Mishra | June 13, 2016 at 5:07 pm | Reply

http://www.sapyard.com/abaponsaphanaparti/

20/24

10/30/2016

ABAPonSAPHANA.PartI.FirstPrograminABAPHANASAPYard

Good article. Straight to the point and no bunch of unnecessary


jargon.

SAP Yard | June 13, 2016 at 9:29 pm | Reply


Dear Pradipta Thank you very much for your
feedback. We try to be as precise as possible and
148

glad that you liked it.

Shares

Please keep visiting.


Regards,
Team SAPYard.

Jogeswararao Mutyala | June 29, 2016 at 5:34 pm | Reply


Thank You so much for the valuable articles which are
enhancing knowledge on HANA.

SAP Yard | June 29, 2016 at 6:47 pm | Reply


Dear Jogeswara Thank you!! for going through
our posts. Our effort is successful when someone
gains something out of our articles.
Thanks again for the feedback.
http://www.sapyard.com/abaponsaphanaparti/

21/24

10/30/2016

ABAPonSAPHANA.PartI.FirstPrograminABAPHANASAPYard

Regards,
Team SAPYard.

prakash | August 19, 2016 at 4:32 am | Reply


148

tahnk you very much it is very nicedone a greate job .

Shares

SAP Yard | August 19, 2016 at 9:29 pm | Reply


Dear Prakash Thank you very much for the
feedback.
Welcome to our blog. Hope you will nd it useful and educative.
Regards,
Team SAPYard.

Ladislav Rydzyk | September 12, 2016 at 4:48 am | Reply


Great article and whole blog as well. It is valuable source
of information to anybody who wants to learn about SAP HANA.

SAP Yard | September 12, 2016 at 1:32 pm | Reply


http://www.sapyard.com/abaponsaphanaparti/

22/24

10/30/2016

ABAPonSAPHANA.PartI.FirstPrograminABAPHANASAPYard

Thank you Ladislav. Appreciation from experts


motivate our team.
Regards,
Team SAPYard.

148
Shares

Feleciano Buenavista | October 14, 2016 at 4:39 am | Reply


Great introduction article about SAP HANA. SAP Yard
team really rocks!

SAP Yard | October 14, 2016 at 1:57 pm | Reply


Dear Feleciano Thank you so much for your
wonderful feedback. We are happy, you nd
SAPYard posts useful.
Please keep visiting and keep sharing your thoughts. Your words
encourage and motivates us.
Regards,
Team SAPYard.

http://www.sapyard.com/abaponsaphanaparti/

23/24

10/30/2016

ABAPonSAPHANA.PartI.FirstPrograminABAPHANASAPYard

Comment, Criticism, Opinion, Feedback. Please do not


hold back. Share your Thoughts!!
Enteryourcommenthere...

148
Shares

COPYRIGHT 2016 | MH NEWSDESK LITE BY MH THEMES

http://www.sapyard.com/abaponsaphanaparti/

24/24

Вам также может понравиться