In the next step you will enter some data records into the table. This can be done easily using the ‘Data Browser’. The data browser can be accessed via.

Slides:



Advertisements
Similar presentations
Microsoft Expression Web-Illustrated Unit K: Working with Behaviors.
Advertisements

MICS Data Processing Workshop
This demonstration will be taking you through the new look ‘Fees’ tab in SMT.
0 UMN 2011 ERP Terapan SAP BASIS General Concept Session # 3.
Using Macros and Visual Basic for Applications (VBA) with Excel
MEPO Training MEPO Database Access Training Presentation Copyright 2011 Rodger B. Fluke, MPA.
Microsoft Word 2010 Lesson 1: Introduction to Word.
Lecture 1 Introduction to the ABAP Workbench
Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
Technical Support: (989) GIS and Mapping Procedures in ArcMap 9.x Creating an ArcMap Project Editing an ArcMap Project Printing an ArcMap Project.
A Guide to Oracle9i1 Creating an Integrated Database Application Chapter 8.
Creating And Maintaining A Database. 2 Learn the guidelines for designing databases When designing a database, first try to think of all the fields of.
WebDynpro for ABAP Short introduction.
Introduction To Form Builder
6 th Annual Focus Users’ Conference Custom Reports and Dashboards Presented by: Mike Morris.
Inventory Throughout this slide show there will be hyperlinks (highlighted in blue) follow the hyperlinks to navigate to the specified Topic or Figure.
Creating FrontPage Tasks The task view allows you to add information about what you want to accomplish when creating your Web site.
Access Ch 5 Review.
Access Tutorial 10 Automating Tasks with Macros
Chapter 9 Introduction to ActionScript 3.0. Chapter 9 Lessons 1.Understand ActionScript Work with instances of movie clip symbols 3.Use code snippets.
WORKING WITH MACROS CHAPTER 10 WORKING WITH MACROS.
8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.
ACCESS CHAPTER 1. OBJECTIVES Tables Queries Forms Reports Primary and Foreign Keys Relationship.
Defining Styles and Automatically Creating Table of Contents and Indexes Word Processing 4.03.
0 UMN 2011 ERP Terapan ABAP Introduction Session # 8.
Advanced Forms Lesson 10.
Working with a Database
What is Sure BDCs? BDC stands for Batch Data Communication and is also known as Batch Input. It is a technique for mass input of data into SAP by simulating.
1 State Records Center Entering New Inventory  Versatile web address:  Look for any new ‘Special Updates’ each.
Form printing with SAP Smart Forms Instructor: Dylan Liu
Creating a Web Site to Gather Data and Conduct Research.
Copyright © 2007, Oracle. All rights reserved. Managing Concurrent Requests.
XP 1 Microsoft Word 2002 Tutorial 1 – Creating a Document.
Management Information Systems MS Access MS Access is an application software that facilitates us to create Database Management Systems (DBMS)
1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit.
Creating Dialog (ABAP Dynpro) Programs. Slide 2 Introduction All of the ERP systems operate similarly with regard to transactional integrity They all.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 1 Microsoft Office Access 2003 Tutorial 2 – Creating And Maintaining A.
Key Applications Module Lesson 21 — Access Essentials
User Dialog Overview. Update Statement TABLES customers. SELECT SINGLE * FROM customers WHERE id = 1. IF sy-subrc = 0. customers-name = ‘John’. UPDATE.
 Whether using paper forms or forms on the web, forms are used for gathering information. User enter information into designated areas, or fields. Forms.
MS Access 2007 Management Information Systems 1. Overview 2  What is MS Access?  Access Terminology  Access Window  Database Window  Create New Database.
Microsoft Access 2010 Chapter 10 Administering a Database System.
® Microsoft Office 2013 Access Creating a Database.
Microsoft Access 2010 Chapter 8 Advanced Form Techniques.
Microsoft Access 4 Database Creation and Management.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
Copyright © Curt Hill More Components Varying the input of Dev-C++ Windows Programs.
Creating a Dynamic Web Page Template Module 5: Beyond the Basics with Expression Web LESSON 10.
Class Builder Tutorial Presented By- Amit Singh & Sylendra Prasad.
Visual Basic for Application - Microsoft Access 2003 Programming applications using Objects.
Chapter 3 Automating Your Work. It is frustrating when you have to type the same passage of text repeatedly. For example your name and address. Word includes.
Chapter 5 Introduction To Form Builder. Lesson A Objectives  Display Forms Builder forms in a Web browser  Use a data block form to view, insert, update,
ERP I1, Session 7 dynpro. SAP GUI SAP has many GUI solutions: – Lists (ALV) – dynpro (Dynamic Program) – Business Server Pages – Web dynpro – More?
Excel part 5 Working with Excel Tables, PivotTables, and PivotCharts.
Creating and Editing a Web Page
SkanPoint™ Data-Entry Workflows. SkanPoint v5.5.1.
Quick Test Professional 9.2. Testing Process Preparing to Record Recording Enhancing a Test Debugging Running the Test and Analyzing the Results Reporting.
Techniques for List Creation (2) Data formatting and control level processing Basics for Interactive Lists Detail lists The Program Interface Interactive.
Chapter 5 Introduction To Form Builder. Lesson C Objectives  Use sequences to automatically generate primary key values in a form  Create lists of values.
Mail Merge Introduction to Word Processing ITSW 1401 Instructor: Glenda H. Easter Introduction to Word Processing ITSW 1401 Instructor: Glenda H. Easter.
June 17, 2009 Office 2007 Tips & Tricks.
SAP ERP Basic System Navigation
Working in the Forms Developer Environment
Developer 2000 CSE 4504/6504 Lab.
ABAP/4程序员之路——第3天 上海华和得易信息技术有限公司 王勇.
HP ALM Defects Module To protect the confidential and proprietary information included in this material, it may not be disclosed or provided to any third.
Creating Additional Input Items
Screen Elements for Input/Output
Presentation transcript:

In the next step you will enter some data records into the table. This can be done easily using the ‘Data Browser’. The data browser can be accessed via the menu path – Utilities -> table Contents -> create Entries. To add a new entry into the table, type in the title field and then press the ‘Save’ button.

 Now we want to create a new table named ‘ZY**_EMP’. The table will contain data about employees. We will integrate the previous generated table into the new table by using a foreign key.  Create the table using the following fields- empid, name, father_name, and title.  You can define your table fields using predefined data types or data elements.  The best way to define table fields is to define all fields using predefined data types at first and then define table fields using data elements.  Use Predefined Type/ Data Elements to switch the modus.

 Now we want to define the foreign key connection between both tables whereas title field should be linked to ZY**_title table.  Select Title and press ‘Foreign Key’ button in the toolbar.  SAP system comes up with a pop-up and asks for the check table.  Select your table and press ‘Enter’.  Save and activate your new table after maintain the technical setting.

 Dynpro = dynamic programs  Programs using dynpros can be accessed by transaction code only.  Programs using dynpros are so called module pools.  Every dynpro has a unique ID in a program.

 Text - Display elements, which cannot be changed either by the user or by the ABAP program.  Input fields - Used to display data from the ABAP program or for entering data on the screen. Linked to screen fields.  Check Boxes - Special input/output fields which the user can select (value ‘X’) or deselect (value SPACE).  Radio Buttons - Special input/output fields that are combined into groups. Within a radio button group, only a single button can be selected at any one time. When the user selects one button, all of the others are automatically deselected.

 Buttons - Elements on the screen that trigger the PAI event of the screen flow logic when chosen by the user. There is a function code attached to each pushbutton, which is passed to the ABAP program when it is chosen.  Tabs - Areas on the screen in which you can switch between various pages  Table controls - Tabular input/output fields

 OK_Code - Every screen has a OK_CODE field (also known as the function code field), which is not displayed on the screen. User actions that trigger the PAI (Process After Input) event also place the corresponding function code into this field, from where it is passed to the ABAP program.

Include Programs  In contrast to all other program types, include programs do not represent stand-alone compilation units with a memory area of their own.  Include programs cannot be executed. They merely serve as a library for ABAP source code.  They are exclusively used to organize program texts into small editable units which can be inserted at any place in other ABAP programs using the INCLUDE statement.

Include Programs  Includes are more suitable for logical programming units, such as data declarations, or sets of similar processing blocks.  You can create your own include programs using the ABAP Editor.

Screens Each screen contains an input mask that you can use for data input and output. You can design the mask yourself. When the screen mask is displayed by the SAP GUI, two events are triggered: PBO and PAI. Before the screen is displayed, the PBO (Process Before Output) event is processed. When the user interacts with the screen, the PAI (Process After Input) event is processed. Each screen is linked to a single PBO processing block and a single PAI processing block of the screen flow logic which react to these events. The PAI of a screen and the PBO of the subsequent screen together form a dialog step in the application program.

Create a program using two dynpros –  Create a new program. Use ‘Top Include’.  Modify the name of your top.  In the next pop up, you see all the program attributes. You have to adjust these attributes. Select the status ‘Test Program’ and the application ‘Cross Application’.  Assign your new program to your existing package and your transport request.  Open the top include. In this step you have to define all global variables. Such variables are available in the entire program and every screen has access to them.  These variables are the table spfli, the system variable ok_code and the work area wa_flight

*& * *& Include ZY_100_DYNPRO_TOP Module Pool ZY_100_DYNPRO *& *& * PROGRAM ZY_100_DYNPRO. tables spfli. data: ok_code like sy-ucomm, wa_flight type spfli.

 Next step is the creation of the first dynpro. Right click on your program name in the navigation tree and create a new dynpro with the screen number 100.  Now you have to specify the attributes of your new dynpro. Maintain the short text and fill in the dynpro 200 as the ‘Next Screen’. This will let the dynpro jump to the dynpro 200 after the module of dynpro 100 was processed.  Next step is the creation of the layout of your first dynpro. For this call the Graphical Screen Painter by pressing the Layout button.  Select the text field button and draw a text field on your new screen. Give a name to this text field.

 The user of your new program should choose an airline and a flight number in this screen. This information is stored in the table spfli.  To create two input fields, press the button ‘Dictionary/ Program fields window’ in the toolbar.  Type in the name spfli and press the ‘get from Dictionary’, button. SAP system reads the information from the dictionary.  Select the ‘CARRID’ and ‘CONNID’ row from the pop- up and press enter.  In the last step, we need a button to go on to our second dynpro. So add a button to your screen and name it ‘btn-select’ and choose a button text. After your enter the information you will notice that the button is red. This means that SAP is missing information.

 The needed information is the function code. Double click on your button. This opens the attributes view and enter the function ‘SELECT’ in the red input field and press enter.  Later in your program pressing this button should automatically assign the value ‘SELECT’ to your variable ok_code. But still, the link between the function code and ok_code is missing.  To establish the link click on the ‘Element List’ button in the toolbar. This will open a new window with all the elements from your current screen.  Once again you see a red field indicating that there is still something missing.

 Next to the red field there is a little OK- symbol which represents the variable ok_code. Please type in ok_code which will enable the link to the global variable ok_code.  Please save your new dynpro and return to the Object Navigator.  Now create a transaction code. For this, right click on your program in the navigation tree and choose the menu point ‘create -> Transaction’.  Specify the transaction code, program name and screen number.  Check and save your transaction and activate it.

 To test your new transaction code and new program, create a new session and call the program using transaction code. (system -> create session)

 Go back to your dynpro program and switch to the ‘Flow Logic’ tab. The flow logic of the program is divided into two parts process before output (PBO) process after input (PAI)  Insert the following source code after the process after input line PROCESS AFTER INPUT. FIELD spfli-connid select * from spfli where carrid = spfli-carrid and connid = spfli-connid.

 Before completion of flow logic, we shall focus on the status bar and the title of new program now. Therefore uncomment the MODULE STATUS_0100 line in the flow logic by removing the * and double clicking on ‘status_0100’. You will be asked if you want to create the new module. Select yes and go on with the creation.  The system automatically proposes a name for your new status module. The name of your new PBO module is fine, but the name for PBO module include is not. Change the name and add a zy_ at the beginning of the include name.  After you hit enter, the system comes up with a short message telling you that an additional include- statement is inserted into your program.

 Double click on the new module STATUS_0100 to navigate forward to the source code of the module.  Uncomment both SET lines and replace the placeholder ‘XXX’ with the number 100.  Now you can set the statue bar and title bar for your screen. This is done by double clicking on the ‘100’ after PF-STATUS. You are asked if you want to create the status. Answer yes and maintain the short text in the next pop up.  In this pop up you can create, edit and delete the status bar for your screen. Maintain the code for the back button by adding ‘BACK’. Save your status bar and return to the program code of your module.  Double click on the ‘100’ after ‘TITLEBAR’.

 Maintain the title of your new title bar. Save, and activate all of your new objects.  Go to screen ‘100’ and switch to the tab ‘Flow Logic’. Uncomment the line ‘USER_COMMAND_0100’ and double click on it. You are asked by the system if you want to create the object. Answer yes and add zy_ with the name of include.  In the next step, you have to add the flow logic to your new module. The flow logic has to handle the ok_code in your program. Depending on the value of ok_code the program either should leave the execution (‘BACK’) or read some data from table spfli. Insert a case instruction:

MODULE USER_COMMAND_0100 INPUT. case ok_code. when 'LEAVE'. LEAVE PROGRAM. WHEN 'SELECT'. SELECT * FROM SPFLI INTO WA_FLIGHT WHERE CARRID = SPFLI-CARRID AND CONNID = SPLFI- CONNID. endcase. clear ok_code. ENDMODULE. " USER_COMMAND_0200 INPUT

 Save, check and activate all of your objects.  Note that case instruction is case sensitive. This means that it makes a difference if you use ‘back’ or ‘BACK’ in you case statement.

Creation of Next Screen  Create a new screen in your program with the number ‘200’. Use screen ‘100’ as the next screen.  Switch to the layout in the Graphical Screen Painter to add some input fields to your screen as you want to display the connection details.  You want to ensure nobody makes any changes to the airline and flight number. This can be done easily by changing the attributes of these input fields. Double click on these input fields and change the input attribute to ‘not possible’.

Creation of Next Screen – cuntinued  Next step is to assign the OK_CODE element to the variable ok_code.  Save and activate your new screen.  Go back to the flow logic now and uncomment the ‘MODULE STATUS_0200’. Double click on the ‘STATUS_0200’ to create the new status bar. Do not forget to change the include name.  Uncomment the lines ‘PF_STATUS’ and ‘TITLEBAR’ in your module and replace the placeholder with ‘200’. Then double click on the first ‘200’ to create the status bar.  Similarly you can create the title bar.

MODULE status_0200 output. set PF-STATUS ‘200’. SET TITLEBAR ‘200’. spfli = wa_flight. ENDMODULE. Now save, check and activate your new screen and go back to the flow logic of your screen 200.

MODULE USER_COMMAND_0200 INPUT. case ok_code. when 'LEAVE'. LEAVE PROGRAM. WHEN 'BACK'. WHEN 'SAVE'. IF spfli <> wa_flight. modify spfli from spfli. endif. endcase. clear ok_code. ENDMODULE. " USER_COMMAND_0200 INPUT