Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more ➡
Download
Standard view
Full view
of .
Add note
Save to My Library
Sync to mobile
Look up keyword
Like this
4Activity
×
0 of .
Results for:
No results containing your search query
P. 1
ABAP Course - Chapter 5 Dynamic Programs LTR

ABAP Course - Chapter 5 Dynamic Programs LTR

Ratings: (0)|Views: 564|Likes:
Published by VALENTINI400

More info:

Published by: VALENTINI400 on Feb 26, 2013
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, DOC, TXT or read online from Scribd
See More
See less

05/18/2013

pdf

text

original

 
CHAPTER 5 5
ABAP Course
Chapter 5: Dynamic programs
Content
This chapter will show you the structureof more complex programs withintegrated dynpros. You will create anew program which selects and showsflight details from the SAP flightexample. Therefore you will use thedynpro technology.
Prerequisites
You should be familiar with the SAPflight example and SQL statements.
Motivation
 As the major part of the SAPtransactions are still developed using ABAP and dynpros this chapter is oneof the most important ones tounderstand the program logic of SAP.
Lecture notes
Students should be familiar with SQLstatements and the SAP flight examplefrom the previous chapter.Students can go on with their accountfrom chapter 1.
Product
: All
Level
: Beginner 
Focus
: Programming
Version
: 1.0© 2009 SAP UCC TUMPage 1
 
CHAPTER 5 5
Author 
: UCC Technische Universität München© 2009 SAP UCC TUMPage 2
 
CHAPTER 5 5
Task 1: Login into the SAP systemShort description
: Use SAPGui to login into the SAP system with your username andpasswordStart the SAPGui and login into the development system using the provided accountand password. Please refer to chapter 1 for your username and your password.
Task 2: Create your first program with dynprosShort description:
Create a program which uses two dynpros to display flight detailsfrom the SAP flight examplePlease start the Object Navigator from the SAP Easy Access Menu by using the followingpath:
Tools
ABAP Workbench
Overview
Object Navigator 
 You may also use the transaction code
SE80
for direct access.Create a new program called ‘
ZY_##_DYNPRO
’. Please use ’
TOP INCLUDE
‘.Modify the name of your top include to ‘
ZY_##_DYNPRO_TOP
’.Hint:Please note that the SAP system automatically proposed a name for your top includewhich did not start with the obligatory Z to mark it as a customer top include. Later on inthe development you will often face such situations when the SAP system proposes aname which is not in the customer namespace. Pay attention to this!In the next pop-up you see all the programs attributes. You have to adjust thisattributes. Select the status
T Test Program
and the application
* Cross-Application
’. Continue and assign the new program to your existing package ‘
ZY_##
and your transport request. Do not wonder why the SAP system asks you for atransport request twice: first for the new program and the second time for the topinclude.If the system does not jump directly to your new top include, please open it manually bydouble clicking on it. In this step you have to define all global variables. Such variablesare available in the entire program and every screen has access to them. Thesevariables are the table
SPFLI
, the system variable
ok_code
and the work area
wa_flight
.Please define them in the top include:
© 2009 SAP UCC TUMPage 3
 Login Menu pathTOP INCL Hint  Assignattributes Maintainvariables

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->