Dialog Programming 整合實例

Slides:



Advertisements
Similar presentations
ABAP Data/Internal Tables ITP 321 Anthony Borquez & Jim Graver.
Advertisements

ABAP Chapter 5 Modularization Catch Statement.
How To: Insert Headers and Footers
1 ABAP Basics III Northern Arizona University College of Business.
ABAP/4 PROGRAMMING Internal Table 講 師:呂 昇 燦 2000 年 9 月 26 日.
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Extended Learning Module J (Office 2010 Version) Implementing.
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Extended Learning Module J (Office 2010 Version) Implementing.
Scheduling Discoverer Reports Scheduling Standard Reports Printing & Re-printing Standard Reports Focus on Reports Session 2 To print: Right click Choose.
Lecture 1 Introduction to the ABAP Workbench
Compliance Assist! Refresher Instruction Guide Accreditation Module.
ABAP Chapter 6 Message Debugging File Transfer Type Group.
Exporting Data and Creating Financial Reports with Excel and Crystal Slide 1 Exporting Data and Creating Financial Reports with Excel and Crystal By Peter.
Graphical User Interfaces A Quick Outlook. Interface Many methods to create and “interface” with the user 2 most common interface methods: – Console –
Chapter 2 Querying a Database
ABAP 楊子青 List2-1 Interactive List Techniques n Detail Lists –Program Flow in Detail Lists –Events –Page Headings –SET TITLEBAR n Data Transport n Selecting.
Control Break Report ALV Report
ABAP/4 PROGRAMMING Menu Painter Modularization 講 師:呂 昇 燦 2000 年 9 月 28 日.
First Screen : First window form will always remain open, for the user to select menu options. 1.
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.
Creating Dialog (ABAP Dynpro) Programs. Slide 2 Introduction All of the ERP systems operate similarly with regard to transactional integrity They all.
0 UMN 2011 ERP Terapan Dialogs Programming Session # 11.
User Dialog Overview. Update Statement TABLES customers. SELECT SINGLE * FROM customers WHERE id = 1. IF sy-subrc = 0. customers-name = ‘John’. UPDATE.
ITEC3612 Enterprise Architecture and Resource Planning (Lab) ABAP Programming (2)
Requirements – GUI TEAM B Undockable menus Drag away from edge to undock Menu undocks into a separate window.
SELECT-OPTIONS. SELECT-OPTIONS Syntax TABLES customers. SELECT-OPTIONS id FOR customers-id. START-OF-SELECTION.
Producing a Mail Merged Letter Step 1 Create an Access database for Names and Addresses you can use the ‘Customers’ template in Group Work. Enter the necessary.
SAP DEVELOPMENT BASICS Bohuslav Tesar. TRAINING OVERVIEW Amazing life of ABAP developer ;) SAP introduction ABAP basics ABAP Reporting.
CRIBMASTER 101. WHAT’S INSIDE  Application Roles  Ribbons and Explorer  Heading and Grid Clicks  Standard Icons  Applying changes  Cool Features.
ERP I1, Session 7 dynpro. SAP GUI SAP has many GUI solutions: – Lists (ALV) – dynpro (Dynamic Program) – Business Server Pages – Web dynpro – More?
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Extended Learning Module J (Office 2007 Version) Implementing.
Techniques for List Creation (2) Data formatting and control level processing Basics for Interactive Lists Detail lists The Program Interface Interactive.
ABAP 楊子青 Dialog2-1 Screen Element for Output n Text Fields –Dynamic Screen Modifications n Status Icons n Group Boxes n 實例.
Order Inquiry by Entry Date RLM System. Page 2 What is Order Inquiry? Customer Orders that arrive in RLM (either via EDI or Data Entry) can be viewed.
ABAP Workbench Fundamentals
Presentation 4 Creating Databases Part III (Creating Reports)
Exporting Data from PowerSchool
Access Chapter 2 Querying a Database.
Analyzing Data Using Access
ABAP EVENTS & Interaction
Chapter 2 – Introduction to the Visual Studio .NET IDE
Access Creating Forms and Reports
ABAP/4程序员之路——第3天 上海华和得易信息技术有限公司 王勇.
Objectives Learn about Function procedures (functions), Sub procedures (subroutines), and modules Review and modify an existing subroutine in an event.
Chapter 7 Advanced Form Techniques
Directions for creating a PowerPoint
To submit invoices; select
FirstNet Leaning Statements & Competency
Siebel Open UI Features & Updates
Introduction to ABAP/4..
This presentation document has been prepared by Vault Intelligence Limited (“Vault") and is intended for off line demonstration, presentation and educational.
ABAP List Viewer 12/30/2018 7:06 PM.
P2P Req to Receive Receive an Order
What’s Different in Blackboard 9?
Interactive List Techniques
JHARKHAND BIJLI VITRAN NIGAM LIMITED (JBVNL) ABAP Training
Accessing Databases with ADO.NET, Handling Exceptions, and Printing
Printing a Purchase Order or Requisition Report
This presentation document has been prepared by Vault Intelligence Limited (“Vault") and is intended for off line demonstration, presentation and educational.
Enable an activity in The Control Tower
Under Search for Cont. Ed. Courses, click on Search for Cont
Dartmouth-Hitchcock Medical Center
Lesson 4 Finding a Requisition.
Quick Start Lab February 2006 Colby College ITS.
ABAP Training Function Builder.
Subscreens and Tabstrip Controls
Adjust The Document Style in MS word
Deleting an Incomplete Requisition or Requisition Line
Formatting.
Interactive List Techniques
Screen Elements for Input/Output
Presentation transcript:

Dialog Programming 整合實例

報表程式1:ZPU105_301_PROG1 write:/ 'ABAP程式設計課程'. write:/ '程式設計:楊子青'.

報表程式2:ZPU105_301_PROG2 PARAMETERS ANO TYPE zpu105_301_show-team. START-OF-SELECTION. data itab TYPE STANDARD TABLE OF ZPU105_301_show WITH HEADER LINE. SELECT * FROM ZPU105_301_show INTO TABLE ITAB WHERE TEAM = ANO. IF SY-SUBRC = 0. LOOP AT ITAB. WRITE:/ itab-SHOWNAME, ITAB-SHOWYEAR. ENDLOOP. ELSE. WRITE:/ '查無此劇團之演出節目'. ENDIF.

報表程式3:ZPU105_301_PROG3 select-OPTIONS A FOR zpu105_301_show-team. INITIALIZATION. set TITLEBAR 'T00'. top-of-page. set TITLEBAR 'T02'. START-OF-SELECTION. DATA wa type zpu105_301_art. select * from zpu105_301_art into wa WHERE artid in a. write:/ wa-artid COLOR 4, 11(20) wa-artname color 5, 41(10) wa-arttel COLOR 6, wa-arturl COLOR 7. HIDE: wa-artid, wa-artname. ENDSELECT. if sy-subrc <> 0. write:/ 'No Data'(101). endif.

報表程式3:ZPU105_301_PROG3 (續) at LINE-SELECTION. * write:/ sy-lsind, wa-artid, wa-artname. if sy-lsind = 1. set TITLEBAR 'T03' with wa-artname '推出節目'. DATA wa2 TYPE zpu105_301_show. SELECT * from zpu105_301_show into wa2 where team = wa-artid. write:/ wa2-showname, wa2-showyear. hide: wa2-showname. ENDSELECT. if sy-subrc <> 0. write:/ '目前這個劇團沒有演出節目'. endif. ENDIF.

報表程式3:ZPU105_301_PROG3 (續) if sy-lsind = 2. set TITLEBAR 'T03' with wa2-showname '各場次觀眾人數'. DATA wa3 TYPE zpu105_301_look. SELECT * from zpu105_301_look into wa3 where showname = wa2-showname. write:/ wa3-lookdate, wa3-lookpeople. ENDSELECT. if sy-subrc <> 0. write:/ '查無資料'. endif. ENDIF.

1. 主程式 DATA OK_CODE LIKE SY-UCOMM. TABLES: ZPU105_301_ART, ZPU105_301_SHOW. DATA: TEAMTO TYPE ZPU105_301_SHOW-TEAM. CALL SCREEN 9000.

SCREEN 9000 PROG1 PROG2 PROG3 JUMP9100 BYE

SCREEN 9000 (續) 執行,呼叫程式1,2,3看看 MODULE USER_COMMAND_9000 INPUT. CASE OK_CODE. WHEN 'PROG1'. SUBMIT ZPU105_301_PROG1 AND RETURN. WHEN 'PROG2'. SUBMIT ZPU105_301_PROG2 VIA SELECTION-SCREEN AND RETURN. WHEN 'PROG3'. SUBMIT ZPU105_301_PROG3 VIA SELECTION-SCREEN AND RETURN. WHEN 'JUMP9100'. CALL SCREEN 9100. WHEN 'BYE'. LEAVE PROGRAM. ENDCASE. ENDMODULE. 執行,呼叫程式1,2,3看看

SCREEN 9100 ZPU105_301_SHOW-TEAM TEAMTO PROG2COND PROG3COND BACKMAIN QUERY TEAMTO

SCREEN 9100 (續) MODULE USER_COMMAND_9100 INPUT. CASE OK_CODE.   WHEN 'PROG2COND'.     SUBMIT ZPU105_301_PROG2 WITH ANO = ZPU105_301_SHOW-TEAM  AND RETURN.   WHEN 'BACKMAIN'.     CALL SCREEN 9000.   WHEN 'PROG3COND'.     DATA WA TYPE rsparams.     WA-SELNAME = 'A'.     WA-SIGN = 'I'.     WA-OPTION = 'BT'.     WA-LOW = ZPU105_301_SHOW-TEAM.     WA-HIGH = TEAMTO.     DATA ITAB TYPE STANDARD TABLE OF rsparams.     APPEND WA TO ITAB.     SUBMIT ZPU105_301_PROG3 WITH SELECTION-TABLE ITAB AND RETURN.     CLEAR ITAB.   WHEN 'QUERY'.     SELECT SINGLE * FROM ZPU105_301_ART       WHERE ARTID = ZPU105_301_SHOW-TEAM. ENDCASE. ENDMODULE.  執行看看

SCREEN 9100 (續): 用TableControl顯示多筆資料

SCREEN 9100 (續): 用TableControl顯示多筆資料

SCREEN 9100 (續): 用TableControl顯示多筆資料 註解掉,否則 只有執行一次 MODULE SHOW_INIT OUTPUT. * IF G_SHOW_COPIED IS INITIAL. *&SPWIZARD: COPY DDIC-TABLE 'ZPU105_301_SHOW' *&SPWIZARD: INTO INTERNAL TABLE 'g_SHOW_itab' SELECT * FROM ZPU105_301_SHOW INTO CORRESPONDING FIELDS OF TABLE G_SHOW_ITAB WHERE TEAM = ZPU105_301_SHOW-TEAM. G_SHOW_COPIED = 'X'. REFRESH CONTROL 'SHOW' FROM SCREEN '9100'. * ENDIF. ENDMODULE.

執行結果

2. PROCESS BEFORE OUTPUT 設定GUI Title 執行

3. PROCESS BEFORE OUTPUT 設定GUI Status (快速鍵) Function Keys (快速鍵) FctCode 描述 執行

4. PROCESS BEFORE OUTPUT 設定GUI Status (標準工具列) 執行

5. PROCESS BEFORE OUTPUT 設定GUI Status (應用程式工具列) 展開 按F4

PROCESS BEFORE OUTPUT 設定GUI Status (應用程式工具列) 執行

PROCESS BEFORE OUTPUT 設定GUI Status (應用程式工具列圖示) 執行

6. PROCESS BEFORE OUTPUT 設定GUI Status (功能表) double click 執行結果 可以按F4選擇

Disable部份Menu Bar: 以Screen 9100為例 MODULE STATUS_9100 OUTPUT. DATA FCode TYPE TABLE OF SY-UCOMM. APPEND 'PROG2' TO FCode. APPEND 'PROG3' TO FCode. SET PF-STATUS 'STATUS1' EXCLUDING FCODE. * SET TITLEBAR 'xxx'. ENDMODULE.

執行結果