Online Tutorials & Training Materials | STechies.com
Register Login

SAP ABAP Advance Coockbook

|| || 1 Download

SAP ABAP Advance Coockbook
Stechies

Table of Contents

Preface 1
   
Chapter 1: ABAP Objects 5
Introduction
Creating a shared memory object
Creating a persistent object
Creating classes based on factory methods
Creating classes based on singleton design pattern
Creating classes based on adapter pattern
5
6
12
19
22
24
   
Chapter 2: Dynamic Programming 29
Introduction
Using field symbols and data references to print database table contents
Applying dynamic Open SQL
Dynamic program generation
29
30
35
39
   
Chapter 3: ALV Tricks  
Introduction
Setting ALV columns as key columns and making zero amount appear as blank
Removing columns from display and layout
Enable Adding Layout toolbar buttons
Adding Hotspot to columns
Adding your own buttons to ALV toolbar
Adding checkboxes to columns
45
47
49
51
52
55
62
   
Chapter 4: Regular Expressions 67
Introduction
Using regex as an IF statement
Removal of characters from a string
Converting date into internal date type
Validation of format (telephone number)
Removing repeated words from text string
Inserting commas in an amount string
Removing comments from program code
Interpreting HTML stream
67
70
72
73
74
75
76
78
80
   
Chapter 5: Optimizing Programs 83
Introduction
Using transaction SAT to find problem areas
Creation of secondary indexes in database tables
Adding hints in SELECT clause
Secondary indexes for internal tables
Hashed table for single read access
Replacing for all entries construct with Ranges
83
84
88
91
93
94
96
   
Chapter 6: Doing More with Selection Screens 101
Introduction
Adding tabstrips and listboxes to report selection screens
Adding toolbar buttons on selection screen
Changing screen fields on radio button selection
Taking desktop folder and filename as input
Coding search help exits for creating better F4 helps
101
102
104
106
108
111
   
Chapter 7: Smart Forms – Tips and Tricks 115
Introduction
Toggle on/off the Microsoft Word text editor
Using background pictures and print preview
Using folder options for page protection
Printing several forms in one spool request
Converting Smart Forms to PDF output
Applying sorting and subtotaling to table fields
115
116
117
120
122
124
126
   
Chapter 8: Working with SQL Trace 131
Introduction
Carrying out SQL trace
Generating and interpreting the trace result
Carrying out restricted trace
Filtering unwanted trace result entries
Summarizing a SQL list and viewing table-related information
Quickly finding the data source of a screen field
Finding the data source of a field's hit list
131
132
133
138
140
141
144
145
   
Chapter 9: Code Inspector 149
Introduction
Carrying out quick code inspection
Carrying out a full-fledged inspection
Carrying out database-specific performance checks
Suppressing messages using pseudo comments
Searching for ABAP statement patterns and tokens within code
Creating your own Code Inspector checks
149
150
153
157
159
161
163
   
Chapter 10: Simple Transformations 167
Introduction
Creating simple transformations
Creating transformations for structures and calling them in programs
Creating transformations for internal tables
Generating transformations for dictionary table types
Downloading into Excel made easy using simple transformations
167
169
172
175
177
181
   
Chapter 11: Sending E-mail Using BCS Classes 187
Introduction
Creating a simple e-mail message
Sending e-mail to Internet e-mail addresses
Adding attachments to your message
Creating HTML e-mail
Running a program and sending its output as an e-mail
187
188
192
194
197
199
   
Chapter 12: Creating and Consuming Web Services 203
Introduction
Creating a Web service from a function module
Configuring the created Web service
Consuming a Web service
Creating a consumer proxy's logical port
Calling a Web service from an ABAP program
203
205
211
214
218
220
   
Chapter 13: SAP Interactive Forms by Adobe 223
Introduction
Creating nested tables
Enabling duplex printing in forms
Using form elements and scripting to create interactive forms
Working with Adobe offline infrastructure
Parallel printing of form
Adding error messages for interactive forms
PDF object API
223
224
229
230
233
238
239
240
   
Chapter 14: Web Dynpro for ABAP 243
Introduction
Creating trees
Creating navigation lists
Creating tabstrips
Displaying error messages
Calling dialog boxes of same component
Displaying Adobe forms in Web Dynpros
243
245
248
254
256
259
262
   
Chapter 15: Floorplan Manager 267
Introduction
Creating applications based on OIF Floorplan design
Changing header and ticket area at runtime
Adding list GUIBBs to Floorplan applications
Viewing structure of FPM applications
Creating GAF applications
Creating FPM applications using Application Creation Tool
267
268
274
277
283
286
290
   
Index 293

 


 Download attached file.

You must be Logged in to download this file

Comments

  • 22 Apr 2014 7:52 am

    Hi, i had a little problem trying the examples of persistents obects. I don't know if it's because i did something wrong or the book itslef has an error: 

    I created the classes and they exactly like the screenshots of the book.

    in page 18 it shows: 

        CALL METHOD agent->create_persistent
          EXPORTING
            i_number1 = number

            i_name = name
          RECEIVING
            result    = emp.

     

    that brings an error, because the field name is not a key.

    to solve this what i did is: 

    TRY .
        CALL METHOD agent->create_persistent
          EXPORTING
            i_number1 = number
          RECEIVING
            result    = emp.

        CALL METHOD emp->set_name
          EXPORTING
            i_name = name.

        COMMIT WORK.
      CATCH cx_root.

    ENDTRY.

    Create the persistent object with key number1. 

    then i set the attribute "name" of the object with the method set_name. 

    that worked, and generated the row in the database. 

    Thanks!

     

Related Articles

0.0144 seconds.