Brian McKellar, Thomas Jung Advanced
BSP Programming
Contents
Introduction15
Target Audience (15)
On What Releases Can You Use BSP? (16)
BSP vs. Web Dynpro ABAP (16)
Acknowledgements (17)
1What is BSP?21
1.1Internet Communication Manager (21)
1.2Internet Communication Framework (24)
1.3BSP Development Environment (25)
1.4HTMLB Rendering Family (26)
1.5BSP Compiler (27)
1.6BSP Runtime (28)
1.7BSP Debugger (29)
1.8MIME Repository (30)
1.9Summary (30)
2HTTP and HTML31
2.1Viewing the HTTP Traffic (32)
2.2Structure of HTTP (32)
2.2.1The HTTP Request Status Line (35)
2.2.2HTTP Request Headers (35)
2.2.3HTTP Header/Body Separator (37)
2.2.4HTTP Request Body (37)
2.2.5The HTTP Response Status Line (37)
2.2.6HTTP Response Headers (38)
2.2.7HTTP Response Body (39)
2.3Server Objects for HTTP Request and Response (39)
2.4HTML Forms and Data Handling (41)
2.5Mapping of HTML onto HTTP Requests (46)
2.5.1Input Fields (46)
2.5.2Checkboxes, Radio Buttons and Dropdown List Boxes (48)
2.5.3File Upload and Download (49)
5
Contents
2.6Cookies (54)
2.7HTTP Redirects (58)
2.8Handling of HTML Resources in HTTP (59)
2.9Troubleshooting Examples (62)
2.9.1Missing Resource (62)
2.9.2Non-Secure Warnings (63)
2.9.3Relative URLs That Become Invalid (63)
2.9.4Estimating Performance (65)
3HTTP Handler67
3.1URL Handling in the ICF Tree (67)
3.2URL Mapping (68)
3.3Sample Handler for Reading Images (69)
3.3.1URL Syntax (71)
3.3.2Handler Coding (72)
3.4Alias Handling (74)
3.5Handler Example—Table Query (77)
3.5.1Table Query Handler Implementation (78)
4URLs in BSP83
4.1URL Mangling (83)
4.1.1What is URL Mangling? (83)
4.1.2How is URL Mangling Done? (84)
4.1.3Attempting to Hide the URL Mangling (85)
4.2Fully Qualified Domain Names (89)
4.2.1Motivation for FQDN (90)
4.2.2ICM Configuration (91)
4.2.3Browser Requirements (91)
4.3Namespace Mapping (92)
4.4URL Parameters (93)
4.5URL Escaping (95)
5Authentication97
5.1Basic Authentication (98)
5.2Single Sign-On (102)
5.3Digital Certificates (105)
5.4Anonymous Services (108)
5.5Form-Based Authentication (109)
6
Contents
5.6Implementing a Simple Logon Application (110)
5.7De-Authentication (113)
6Session Management115
6.1Session Identification (115)
6.2Session Timeout (118)
6.2.1Catching and Handling a Session Timeout (119)
6.2.2Session Timeout in Browser (120)
6.3Confusion with Processing Timeout (121)
6.4Catching and Handling a Restart after Timeout (123)
6.5Session Management from the Browser (125)
6.6Warning the User of a Pending Timeout (128)
6.7Summary (131)
7Using BSP Applications in SAP GUI133
7.1Using a BSP Application in a Dynpro (133)
7.2Pitfalls when Using BSP Applications with SAP GUI (136)
7.2.1Communication Path (136)
7.2.2The Second Authentication (137)
7.2.3The Second Session (138)
7.2.4Window Open Behavior (139)
7.2.5Effects of SAP’s New Visual Design (141)
7.2.6Loading HTML Pages Directly (142)
7.3Interaction between SAP GUI and BSP Applications (144)
7.3.1BSP Application Event to SAP GUI (144)
7.3.2SAP GUI Event to BSP Application (147)
7.4Starting a New Browser Outside the SAP GUI (149)
8Performance Measurements151
8.1Test Applications (152)
8.2Quick Sizing with HTTP Trace Tool (153)
8.3Network Latency (154)
8.4Server Processing Time (155)
8.5Browser Rendering Time (157)
8.6Determining Hotspots (159)
8.7Load Testing (161)
8.8SQL Traces (165)
7
Contents
9BSP Extensions167
9.1Extension Overview (167)
9.1.1Extension Technology (168)
9.1.2Using BSP Extensions (168)
9.1.3Finding Details about the Extensions (169)
9.1.4Available Extensions (172)
9.1.5Extensions Designs (172)
9.1.6High Level Elements (174)
9.2HTMLB Event System (180)
9.2.1Event Dispatching (180)
9.2.2Manually Handling Events (181)
9.3Common Extension Elements (186)
9.3.1<htmlb:tableView> (187)
9.3.2<htmlb:tree> (192)
9.3.3<phtmlb:matrix> (194)
9.3.4<xhtmlb:protectDoubleSubmit> (196)
9.3.5<phtmlb:containerTabStrip> (197)
9.3.6<phtmlb:formLayout> (200)
10BSP Element Expressions and Iterators205
10.1BSP Element Expressions (205)
10.1.1What is a BEE? (205)
10.1.2N=1, Using Any BSP Element as BEE (206)
10.1.3HTML BEE (209)
10.1.4Table BEE (211)
10.1.5XML BEE (212)
10.1.6Errors and Error Handling (215)
10.2Table View Iterators (215)
10.2.1What is a Table View Iterator? (217)
10.2.2Method GET_COLUMN_DEFINITIONS (218)
10.2.3Method RENDER_ROW_START (220)
10.2.4Method RENDER_CELL_START (222)
10.2.5Finished Output (225)
11Creating your own BSP Extension Element227
session下载11.1Creating a BSP Extension Element (227)
11.1.1Extension Framework Hierarchy (227)
11.1.2User-Defined Validation (228)
11.1.3Element Content (230)
11.2Writing a Composite Element (231)
11.2.1Designing a New Composite Element (231)
11.2.2Processing Other BSP Elements (233)
8
Contents
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论