SAP Crystal Reports 2011, Win User's Guide Page 600

  • Download
  • Add to my manuals
  • Print
  • Page
    / 718
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 599
SQL driver provides the ability to call ABAP functions that have defined return types and to display their
results. ABAP functions are also useful in situations where complex pre-processing of the data must
occur before viewing, or in circumstances where you may want to further optimize the performance of
a query.
How it works
Using the steps listed in Selecting tables, views, functions, and clusters, select a function. In the Database
Expert's Available Data Sources area, right-click ABAP Function modules and select Options. Then,
type the full or partial function name in the Table name LIKE field. When you add it to the report, the
function appears on the Links tab of the Database Expert just like a table (assuming there is more than
one table or function already added to the report). All the input and output parameters are displayed
as fields in the table.
Specify the input parameters either by linking them to another table's fields or by adding them to a
record selection formula. If the output of the function is one or more tables, the "virtual table" consists
of rows that are the cross-product of the values in all the tables. If the output of the function is one or
more values or structure instances, the "virtual table" consists of a single row that contains all the
values/structure values.
Limitations
For functions to be used in a report, they must meet two conditions:
Functions must have defined return types for each of the output parameters.
Functions must not have whole tables as input parameters.
Note:
If a function does not meet the first condition, you can write a "wrapper" function with defined return
types, and then call the original function from within the wrapper function.
Finally, the ability to call entire programs is not supported—you may call individual functions only.
Examples
The following examples illustrate the different types of ABAP functions that can be called by the Open
SQL driver and show how they appear in Crystal Reports.
Functions with values as inputs and outputs and in/out (CHANGING) parameters
Function F
IMPORTING
VALUE(NAME) TYPE C
VALUE(DEPARTMENT) TYPE C
EXPORTING
VALUE(Years_of_service) TYPE I
VALUE(Age) TYPE I
CHANGING
DATEFIELD TYPE D
This function would appear as a table called "F" with the following schema:
2012-03-14600
Integrating Business Applications with Crystal Reports
Page view 599
1 2 ... 595 596 597 598 599 600 601 602 603 604 605 ... 717 718

Comments to this Manuals

Edwinfet 29 Feb 2024 | 09:13:09

What are the upsides of contracting skilled web optimization organizations? Expert search marketing companies utilize teams of experts focused on elevating your site's content for browsing engines. This encompasses researchingsearch phrases, adjusting on site characteristics, and managing off-domain enhancements. Moreover, these firms monitor adjustment in from Google parameters and refresh the text on your website as needed. This saves both you your time and your workers from unwanted a

KarenSkaky 17 Apr 2024 | 12:11:41

Securing the security of your home is essential in today's unsettled times. Among the best ways to safeguard your belongings and peace of mind is by committing in a trustworthy safe. Regardless of whether you're securing money, important documents, or precious heirlooms, a safe gives a protected repository solution. Regarding selecting the right safe for your house, there are several elements to consider. Above all, assess your safety requirements. Determine what items you plan to store in

Helenlal 18 Apr 2024 | 10:19:10

Arranging an open-air wedding in Phenix and anxious about the unpredictable weather? Don't let Mother Nature rain on your parade – truly! At [Event Rentals Phoenix], we provide stunning wedding tent rentals that will ensure your distinctive day goes off without an hitch. Our wedding tent rentals are created to supply both charm and functionality. Say "I do" under tha elegant canopy of one of our tents, surrounded by your loved ones and tha breathtaking scenery of Pheonix. With one assortmen

Helenlal 29 Apr 2024 | 07:23:21

In both personal and professional situations, encountering issues is unavoidable. However, mastering productive trouble-shooting techniques is key for triumphing over hurdles and accomplishing success. In this piece, we delve into the strategies and methods for efficiently addressing dilemmas. From analytical thinking to creative brainstorming, we look into various approaches that can help individuals tackle challenges with certainty and accuracy. Effective challenge solving begins wit

Chrisnug 29 Apr 2024 | 16:39:54

Hello, im noob :)