Query Enhancement
Hello everyone,
I am trying to fetch data from LIKP and LIPS using INNER JOIN. The following are my selection criteria :
1. Shipping point/receiving point - LIKP-VSTEL (Mandatory)
2. Delivery Date - LIKP-LFDAT (Mandatory)
3. Receiving plant for deliveries - LIKP-KUNNR (Optional)
4. Ship-to party - LIKP-KUNNR (Optional)
5. Delivery Doc. No. - LIKP-VBELN (Optional)
The query I have written is as below :
SELECT PVBELN PVSTEL PLFDAT PKUNNR PLIFNR PBLDAT
P~WADAT_IST
FVGBEL FPOSNR FMATNR FLGORT FCHARG FLFIMG
FMEINS FVRKME FBRGEW FGEWEI FLGMNG FARKTX
FSPART FWERKS F~LFIMG
FROM LIKP AS P
INNER JOIN LIPS AS F
ON PVBELN EQ FVBELN
AND PERNAM EQ FERNAM
INTO CORRESPONDING FIELDS OF TABLE I_LIKP_LIPS
WHERE P~LFDAT IN S_DATE
AND P~VSTEL EQ S_VSTEL
AND P~VBELN IN S_DOCNO
AND P~KUNNR IN S_RWERKS
AND P~KUNNR IN S_CUSTNO
AND P~WADAT_IST EQ GIDATE
AND F~LFIMG NE 0.
Now the above query is taking a lot of time because the user does not feeds the primary key data i.e. VBELN as it is not suppose to be mandatory as per our requirement. There is also a secondary index on LFDAT but still the data access is slow.
Can anybody suggest me how to enhance this query performance.
THANX IN ADVANCE.......
HI,
First of all I suggest you to use for all entries..
Say your VBELN is not mandatory, It does not mean you neeed not use this,,
This selection criteria is for the user..
If he need only particular VBELN he gives the Vblen numbers,..
else if he leaves blank then all the VBLEN from database will be as output..
First check whether you are fetching data from LIKP in sequence..
see the LIKP table for seqeunce..
Then use for all entries for LIPS..
Eg:
select VBELN VSTEL ..... (this field should be in sequence as in LIKP table)
into it_likp (define all your fields in it_likp table which you are fetching from LIKP)
from LIKP
where vbeln = s_vbeln and VSTEL = s_VSTEL...
Now
SELECT VBLEN POSNR WGBEL...
into table it_LIPS (define your LIPS fileds in this table)
from lips
for all entries in it_LIKP
where vbeln = it_likp-vbeln.
This will increase your performance
rewards if useful..
regards,
nazeer
Similar Messages
-
How to do query enhancement in my case
BW Expert,
I want to get the number of employees in average. So, in this case I have to add all the number of employees by month, then divide the total number of months.
In this case I have to create variable and provide a popup windows, after I enter the begin month and end month and year information, system will automatically calculate the the number of employees by each month with entry year and add together, then divide the total number of entry months.
The question is how to create customer variable and do query enhancement in my case. Pls info. Thanks!
Edited by: hi ni on May 8, 2008 5:12 AMI haven't done this yet, but soon I'll need to coordinate a laptop and a desktop machine. So don't take my word for anything!
It sounds as though you have Aperture set up so that the laptop machine's library is on the external drive -- not just the images that make up the heart of the library. Is that right? The alternative would be to tell Aperture its library is on the laptop, but have the library reference master images on the external drive. Previews -- if you have Aperture set to create and/or maintain previews in any or all projects -- are in the library, which is on the computer whether or not you have the drive containing the masters with you.
(Am I going wrong yet??)
But I'm still not clear, when master images are referenced, where Aperture stores versions, adjustments, metadata; in the library or with the referenced images?
Anyway, it seems as though this arrangement should allow you to import new images into a project in the laptop's library while on the road. Then I don't think you even have to export and re-import the project -- when you're hooked back up to the external you just "relocate masters" for the new project onto the external drive.
Somebody please straighten me out if I've got all this wrong. -
Portal Query: Enhancing infotype 77(Additional person) with screen control
Here is an interesting one. I am on EP7 and we have a customized infotype 77 development. The population of one of the infotype fields dictates the appearance of sub screens and other fields in the backend.
When i use the web dynpro iview and select edit enhanced fields, i see all the options and can see all the bespoke fields added in R3. However this is not what we need, we want the decision of which fields to appear decided dynamically the way it happens in the backend.
The other option I have is to use PZ56 as sapgui for html, but there is no function group for additional personal info in V_T588M_ESS.
Hence I am stuck, any suggestions or inputs will be granted points.
Regards,
SumeetI forgot to add, it is additional personal data for infotypee 77 in gb we have enhanced, i.e equal opportunities.
The population of military status decides which fields to appear. -
Enhancing dynamic query BTQSlsQuot
I saw several dynamic query enhancements but none of them is what I need..
What I need is, adding PARTNEREXTERNAL of Sold to Party to this query and result.
Does anyone know how can I do this?The range operator is in the generated code:
method IF_EX_CRM_RF_SEARCH_EEW~EXTEND_RF_QUERY.
INCLUDE crm_object_names_con.
DATA: lv_fieldname TYPE name_komp,
ls_qupart LIKE LINE OF ct_quparts,
ls_qupart_and LIKE LINE OF ct_quparts,
ls_range_value TYPE crmt_bsp_range.
READ TABLE it_range_value INDEX 1
INTO ls_range_value.
IF sy-subrc <> 0.
RETURN.
ENDIF.
CHECK NOT ls_range_value-low IS INITIAL.
CALL METHOD cl_crm_report_qupart=>get_qupart_by_token
EXPORTING
iv_token = 'AND'
IMPORTING
ev_qupart = ls_qupart_and-querypart.
lv_fieldname = flt_val.
CALL METHOD cl_crm_report_qupart=>get_qupart_by_token
EXPORTING
iv_entityname = gc_objectname_reporting-ORDERADM_H
iv_fieldname = lv_fieldname
iv_token = 'RAN'
it_rangetab = it_range_value
IMPORTING
ev_qupart = ls_qupart-querypart.
APPEND ls_qupart TO ct_quparts.
APPEND ls_qupart_and TO ct_quparts.
endmethod.
I've put a break in the code which is not being triggered so something may be up with the BADI implementation. -
Launch PDF from HTML and execute search
Is it possible using JavaScript in an HTML doc to launch a PDF and execute a search.query with a passed-in search parameter? TIA
Hello, George, thanks for following up. I went into Advanced->Document Processing->Document JavaScripts and put the code at the top of the file outside of the dummy function declaration I had to insert to activate the edit button. It looks like this:
// Split the file path into an array
var aPath = this.path.split("/");
// Remove the last element, which is the file name
aPath.pop();
// Join the path elements back together and add the index file
var cIdxPath = aPath.join("/") + "/Support Documents/SupDocs.pdx";
search.query ("Enhanced Tactical Automated Security System (eTASS)", "Index", cIdxPath);
function Search()
It runs fine when I launch the PDF directly into the reader by double-clicking in file explorer in the folder above "Support Documents". When I load the PDF from an HTML file in the same folder, however, the script does not run. I set the reader preferences to force loading in the reader even when launched from a browser, and the script still will not execute. I tried adding a button to the PDF and attaching the search script to it. Again, it runs when launching directly but not from the HTML document. Otherwise, the PDF is empty, and I'm using a relative URL and JS to load it from the HTML doc, such as:
document.location = "mySearch.PDF"
or
window.open("mySearch.PDF", "searchwin");
Neither one works. This product has to run from a CD-ROM, so I haven't bothered to test it via http service. Any suggestions? Thanks again!
Jon Camp
Senior Computer Scientist
Applied Research Associates, Inc.
North Florida Division
Training Solutions Group
430 W 5th Street Suite 700
Panama City, FL 32401
comm: 850-914-3188 x203
fax: 850-914-3189
email: [email protected] -
Hi All
I want to put two Queries in BEx into a single workbook.So finally when I am running that workbook ,result of these two Queries with Overwriting the Existing cells can be obtained.
can any one of you please let me know how to use this with Workbook.
Is it possible to do this using workbook.I have not used workbook ever. If poossible can any one of you provide me a document regarding how to use workbook.
Regards
AshishBW 1.2B Report Development Tools 2u20131
&KDSWHU &UHDWLQJ :RUNERRNV
&RQWHQWV
Overview ..................................................................................................................2u20132
Before Getting Started............................................................................................2u20133
Creating a Workbook: An Overview......................................................................2u20135
Step 1: Starting the BEx Analyzer .........................................................................2u20136
Step 2: Creating a Workbook Template................................................................2u20137
Step 3: Saving the Template to the InfoCatalog ................................................2u201312
Step 4: Inserting Queries into the Workbook.....................................................2u201314
Step 5: Adding Visual Basic Functionality to Workbook..................................2u201316
Step 6: Saving the Workbook to the InfoCatalog ..............................................2u201323
Review....................................................................................................................2u201325
In this chapter you will learn:
How to create a workbook
template using the BEx
Analyzer
How to insert a query (or
queries) into a workbook
How to save a workbook
template to the
InfoCatalog
How to add pushbuttons
and textboxes to a
workbook template using
simple Visual Basic
commands
Chapter 2: Creating Workbooks
Overview
Reporting Made Easy 2u20132
2YHUYLHZ
Chapter 1 presented an overview of BWu2019s architecture, concepts, and terminology. In this
chapter you will learn how to use the Business Information Warehouse to create workbooks
(or reports).
As shown in the graphic below, creating a workbook in the BW is essentially a five-step
process:
To help you get started with the Business Information Warehouse, we have organized the
material as follows:
Chapter 2: Creating Workbooks
Chapter 3: Creating Queries
Chapter 4: Working with the BEx Browser
Chapter 5: Special Topics (including tips & tricks)
In this chapter you will be working with the BEx Analyzer and Microsoft Excel. With the
help of a business scenario (see next page), we will show you three guided tours:
< Creating a workbook template
< Inserting an existing query into a workbook
You are here
Enable access to a workbook
through the BEx Browser
Enable access to a workbook
through the BEx Browser
Create a new query or
modify an existing query
Create a new query or
modify an existing query
Enhance workbook layout
and functionality (optional)
Enhance workbook layout
and functionality (optional)
Insert desired query (or queries)
into a workbook
Insert desired query (or queries)
into a workbook
Create a workbook
template (optional)
Create a workbook
template (optional)
Chapter 2
Chapter 3
Chapter 4
1
2
3
4
5
Chapter 2: Creating Workbooks
Before Getting Started
BW 1.2B Report Development Tools
2u20133
< Using Visual Basic to add workbook functionality
In chapter 3 you will learn how to work with queries. In chapter 4 you will see how to
access workbooks through the BEx Browser.
%HIRUH *HWWLQJ 6WDUWHG
Before you start building workbooks, it is useful to understand the following:
< What is the business scenario? (see below)
< What does the finished workbook look like? (see next page)
%XVLQHVV 6FHQDULR
Take a few minutes to familiarize yourself with the business scenario shown below. All the
guided tours in chapters 2 through 4 are built around this business scenario.
Bungee Software, Inc. develops and markets games for personal computers. Best-selling
titles such as Portal Kombat, Barrio Brothers, and Kung Fu Grandma have helped Bungee
Software become a leading supplier of computer games. However, the company is
currently facing increased competition from Pixialated, Inc. To protect its market share,
Bungee Software has formed a task force to explore ways to streamline its sales processes.
The company has discovered that collecting and disseminating sales data to executives
consumes considerable time and resources. The task force believes that easier access to
sales and profit analysis information would save time and help executives with salesplanning
activities.
Some of the key questions the executives typically ask are:
< How does the sales revenue for 1998 compare with 1997 sales?
< What is the annual gross profit?
< What is the sales volume for the top products?
< What is the sales volume for the top customers?
< Which sales representative/manager is responsible for declining sales volume?
After evaluating its information needs, Bungee Software has decided to develop the
following reports in the Business Information Warehouse:
< Sales Analysis Report (in this example, 1998 vs. 1997)
< Gross Profit Analysis Report
1RWH The workbook you are about to develop is based on the SAP-delivered SD
DemoCube Workbook (in the SAP DemoCube channel). To follow the guided tours
covered in chapters 2-4, make sure that the DemoCube is active and loaded with the data
on your BW system. For more information on activating the SAP DemoCube, see chapter
5 or contact your SAP system administrator.
Chapter 2: Creating Workbooks
Before Getting Started
Reporting Made Easy 2u20134
$ 4XLFN /RRN DW WKH 2XWSXW
The SD DemoCube Workbook we are about to build contains two reports (or worksheets):
Sales Analysis Report and Gross Profit Analysis Report.
The screenshots below show what each of these reports looks like. Take a few minutes to
familiarize yourself with the layout and structure of the finished reports.
5HSRUW 6DOHV $QDOVLV 5HSRUW
5HSRUW *URVV 3URILW $QDOVLV 5HSRUW
Sales Revenue for 1997 and 1998
Percent change Gross Profit
Analysis
pushbutton
launches the
second report
Gross Profit
Analysis in the
workbook.
Text area
shows
comments that
explain report
data.
Sales Analysis
pushbutton
returns you to
the first report
Gross Profit Analysis
by Sales Organization.
Text area
shows
comments that
explain report
data.
Right-click the mouse to
drill down by sales
organization, distribution
channel, division, industry,
material, and more.
Pushbuttons to launch
other views of the data.
Chapter 2: Creating Workbooks
Creating a Workbook: An Overview
BW 1.2B Report Development Tools
2u20135
*XLGHG 7RXU
&UHDWLQJ D :RUNERRN $Q 2YHUYLHZ
Now that you are familiar with the sample reports shown in the previous section, you are
ready to create a workbook. If you have access to a Business Information Warehouse
system, you may want to follow along.
Shown below are the steps for creating a workbook (based on the business scenario):
Save the workbook to InfoCatalog Save the workbook to InfoCatalog
Add Visual Basic
functions to the workbook
Add Visual Basic
functions to the workbook
Insert query into the workbook Insert query into the workbook
Save the workbook template
to InfoCatalog
Save the workbook template
to InfoCatalog
Create a workbook template Create a workbook template
Start BEx Analyzer Start BEx Analyzer 1
2
3
6
5
4
If you plan to follow the guided tour on your own system, make sure that the BW
frontend components are properly installed on your computer. If necessary, contact your
system administrator for assistance.
To check if the BW frontend is installed on your computer, choose Start ® Programs ®
SAP BW Front-end.
If you do not find the SAP BW Frontend, try searching for SAP BW components under
other SAP logon menus.
Chapter 2: Creating Workbooks
Step 1: Starting the BEx Analyzer
Reporting Made Easy 2u20136
6WHS 6WDUWLQJ WKH %(HU
1. From your Windows desktop, choose Start ® Programs ® SAP Front-end BW.
2. Choose SAP Business Explorer Analyzer.
3. If you see a warning message about macros in Microsoft Excel, choose Enable Macros to
continue.
Microsoft Excel opens with the add-in SAP Business Explorer toolbar in the main window.
About the BEx Analyzer
The structure of BW workbooks is defined using the Business Explorer (BEx) Analyzer.
You can define queries, graphics and other elements, and insert them into workbooks.
The result of a query is presented in an Excel Worksheet. The BEx Analyzer is
implemented as an u201Cadd-inu201D for Microsoft Excel, and links queries to cells in Excel
workbooks. Thus, you evaluate query data by navigating through the query in an Excel
worksheet.
:KDW ,V WKH %XVLQHVV ([SORUHU 7RROEDU"
The SAP Business Explorer toolbar integrates BW reporting functionality in the Microsoft
Excel environment. The BEx toolbar enables filtering, sorting, drilldown, currency
translation, computation of results, use of attributes and hierarchies, saving and managing
workbooks, and more. In addition to the Toolbar, you can still use the full Excel
functionality.
Business Explorer Toolbar
Chapter 2: Creating Workbooks
Step 2: Creating a Workbook Template
BW 1.2B Report Development Tools
2u20137
New
Select from
InfoCatalog
Save to
InfoCatalog
Refresh
query
Undo OLAP
function
for active
cell
Tools
Change
query
Change
formatting Settings
Help
to create a new workbook
to change the existing query
to select and execute workbooks from the BW
InfoCatalog
to work with active cells to enable
functions such as computation of results,
drilldown, filtering, sorting, currency
translation, etc.
to save the current workbook to either the BW
Enterprise InfoCatalog or the user Favorites
to alter the font properties, background
color, and other formatting options in a
workbook
to refresh/update data in a query from the
source(s).
to insert/delete queries, attach charts,
display the header information of a query,
and set the password in the active Excel
workbook
to undo one navigation step
to make configuration settings for data
refreshing, connection to the BW server,
and more
1RWH As we start building a workbook template, it is important to recognize that a
workbook template is no more than an empty worksheet with some formatting; it does
not include any embedded queries. Creating queries is covered later in chapter 3.
6WHS &UHDWLQJ D :RUNERRN 7HPSODWH
After you have logged on to the BEx Analyzer, you are ready to start building your
workbook template.
1RWH Building a template is not mandatory when you are working with the Business
Information Warehouse. If you do not want to create a template at this time, you can
jump ahead to chapter 3 to learn about building queries.
Chapter 2: Creating Workbooks
Step 2: Creating a Workbook Template
Reporting Made Easy 2u20138
The process of designing your workbook template can be divided into the following
substeps:
1. Format the background
2. Hide the Excel toolbars
3. Insert company logo
4. Save the template to the InfoCatalog
)RUPDWWLQJ WKH :RUNERRN %DFNJURXQG
Start from the BEx Analyzer environment in Microsoft Excel.
1. In Microsoft Excel, choose
New from the standard
Excel toolbar. A new
spreadsheet workbook
appears.
2. Choose Format ® Sheet ®
Background.
3. Choose C:Program
FilesMicrosoft
OfficeClipartBackground
Wheat.
Note: If the BW frontend is
installed on a drive other than
C, use the appropriate drive
letter. You can choose any
background you like.
1
2
3
Chapter 2: Creating Workbooks
Step 2: Creating a Workbook Template
BW 1.2B Report Development Tools
2u20139
+LGLQJ WKH :LQGRZ 9LHZV
To add make your workbook easier to use, you may want to consider hiding some of the
window views.
1. Choose Tools ® Options.
2. In the Options window,
select the View tab.
3. Deselect Gridlines, Row &
column headers, Outline
symbols, Zero values,
horizontal Scroll bar, and
Vertical scroll bar. Do not
deselect the Sheet tabs.
4. Choose OK to save the
new options.
1
2
3
4
Chapter 2: Creating Workbooks
Step 2: Creating a Workbook Template
Reporting Made Easy 2u201310
+LGLQJ WKH 0LFURVRIW ([FHO 7RROEDUV
To make it easier for your users to use the workbook, you may want to consider hiding
some of the Excel toolbars.
1. Choose View ® Toolbars
and deselect Standard and
Formatting toolbars. Do
not deselect the Business
Explorer toolbar.
Your Excel worksheet should
look like the one shown at
right. Notice that the
horizontal and vertical scroll
bars, row and column
headers, formatting toolbar,
and gridlines are now hidden.
,QVHUWLQJ &RPSDQ /RJR
To further customize your workbooks, you can add your company logo (or other graphical
elements) to the workbook template. You have three options:
< Insert the logo in workbook template and save it to the InfoCatalog.
< Insert the logo and save the workbook as a Microsoft Excel template on your local drive.
< Upload the logo file to the BW system to have it appear in the BEx Browser (for more
information see chapter 5).
1
Chapter 2: Creating Workbooks
Step 2: Creating a Workbook Template
BW 1.2B Report Development Tools
2u201311
1. Copy the logo (or other
graphics) to your
clipboard using the copy
command (for example,
Ctrl+C in Windows) in
your graphics application
(for example, Microsoft
Paint, PowerPoint, etc.) .
2. Paste the clipboard
contents into your
workbook template. In
this example, the Bungee
Software logo was created
in PowerPoint and pasted
to the template. Using
drag-and-drop, position
the logo as needed.
6DYLQJ D /RFDO &RS RI WKH 7HPSODWH
In step 3 below you will learn how to save the workbook template to the InfoCatalog. To
reuse the template later, you may also want to save a copy of the template on your local
drive.
1. Choose File ® Save As
2. In Save as type choose
Template (*.xlt)
3. In File name, enter a name
for the template (for
example,
Bungee_Template.xlt)
4. Choose Save.
+LQW To create a new workbook (based on the saved template), simply choose File ® New.
From the popup window, choose Bungee_template.xlt.
2
Chapter 2: Creating Workbooks
Step 3: Saving the Template to the InfoCatalog
Reporting Made Easy 2u201312
6WHS 6DYLQJ WKH 7HPSODWH WR WKH ,QIR&DWDORJ
Saving the template to the InfoCatalog will enable others to use the template for report
creation. Additionally, it helps maintain a uniform "look-and-feelu201D for all reports in a
company.
1. From the template view,
choose Save to save it
to the InfoCatalog button.
2. Choose Add as new
workbook under the General
tab.
3. Enter a New Title (for
example, Bungee
Template).
4. Choose the Access in
InfoCatalog tab.
5. To make the workbook
template available to
others, choose in (public)
enterprise catalog.
6. Choose OK.
5
6
1
2
3
4
Chapter 2: Creating Workbooks
Step 3: Saving the Template to the InfoCatalog
BW 1.2B Report Development Tools
2u201313
7. The SAP Logon window
appears and prompts you
to log on to the BW
system. Choose the
system you want to use.
8. Choose OK.
Note: If you are already
logged on to a BW system,
you will not see the logon
window.
9. Enter the client number,
your user name,
password, and language
key.
10. Choose OK.
Your workbook template has
now been save to the
InfoCatalog.
If you are unsuccessful in logging on to the BW system after following steps 7
through 9 above, go to the SAP logon pad you normally use and log on to the
BW system.
To check if the template is
available in the InfoCatalog,
follow the steps below:
11. Switch to the BW system.
12. Choose .
7
8
9
10
11
12
Chapter 2: Creating Workbooks
Step 4: Inserting Queries into the Workbook
Reporting Made Easy 2u201314
The Bungee Template is now a
part of the Enterprise
InfoCatalog. You can allow
the user community to freely
access the template to build
reports.
The option to save the workbook to the Enterprise InfoCatalog may depend on
the authorization settings in individual user profiles. If you cannot save to the
Enterprise InfoCatalog, please see your system administrator.
6WHS ,QVHUWLQJ 4XHULHV LQWR WKH :RUNERRN
Queries pull together the data needed to build reports. The Business Information
Warehouse delivers many predefined queries. You can also design your own queries or
modify existing queries (see chapter 3).
To insert a query, start from
the BEx Analyzer. Although
you can insert a query into
any Excel spreadsheet, we
will show how to insert a
query into the newly created
Bungee template.
1. Choose the cell where the
query is to be inserted.
2. Choose Tools.
3. Choose Insert Query.
The newly created workbook
template is now available in
the InfoCatalog.
1
2
3
Chapter 2: Creating Workbooks
Step 4: Inserting Queries into the Workbook
BW 1.2B Report Development Tools
2u201315
4. In the SAP BEx: Select
Query window, open the
folder
0D_SAP_DEMOCUB to
view the nested hierarchy,
(for example, 0D_SD ®
0D_DECU for the Sales
Analysis Report).
5. Choose the query you
want to use (for example,
0D_SD_DEMO_Q0001).
6. Choose Open.
After inserting a new query,
your workbook should look
like the one shown at right.
7. Choose Sheet 2 to insert
the second query (Gross
Profit Analysis).
8. Repeat steps 2 through 4
to create the second
worksheet.
9. Repeat step 5 above but
choose
0D_SD_DEMO_Q0002
instead.
1RWH You can insert more than one query into a workbook.
4
6
7
5
Chapter 2: Creating Workbooks
Step 5: Adding Visual Basic Functionality to Workbook
Reporting Made Easy 2u201316
Inserting a Query into the Workbook Template
To insert a query into the workbook template, shown below is another approach:
< Choose Settings from the BEx toolbar and select Select workbook on New.
< Choose New from the BEx toolbar. It will prompt you to choose a previously saved
workbook template from the InfoCatalog.
< Select a query and choose Enter.
The query is inserted into the selected workbook template. Based on the new settings, in
future you will be prompted to choose a workbook template from the InfoCatalog every
time you choose New on the BEx toolbar.
6WHS $GGLQJ 9LVXDO %DVLF )XQFWLRQDOLW WR :RUNERRN
As shown in the business scenario on page 2u20132, Bungee Softwareu2019s workbook design calls
for pushbuttons to allow easy navigation between the two reports. Additionally, the reports
contain a textbox to allow annotations and commentary. To achieve this, you can add Visual
Basic functionality to the workbook template.
&UHDWLQJ 3XVKEXWWRQV
1. To continue working with
the workbook template
(using the SAP-delivered
DemoCube template),
start from the Business
Explorer Analyzer
window.
2. To create a pushbutton,
choose View ® Toolbars
® Control Toolbox.
2
Chapter 2: Creating Workbooks
Step 5: Adding Visual Basic Functionality to Workbook
BW 1.2B Report Development Tools
2u201317
3. From the Control Toolbox,
choose Command
Button.
4. Click to select an area
where you want to
position the first
pushbutton.
5. To edit the title of the
command button, choose
the Command Button,
right-click the mouse, and
choose Command Button
Object ® Edit.
6. Enter a name for the
pushbutton. In our
example, since we plan to
use this pushbutton to
launch the Sales Analysis
report, we call it Sales
Analysis.
7. Drag it to the lower left
corner of the spreadsheet
(or other desired
location).
8. Repeat steps 2 through 7
to create the second
pushbutton (Gross Profit
Analysis).
4
3
5
6
7
Chapter 2: Creating Workbooks
Step 5: Adding Visual Basic Functionality to Workbook
Reporting Made Easy 2u201318
9. Choose Sheet1 of the
workbook, right-click the
mouse, and choose
Rename.
10. Rename Sheet1. In this
example, it has been
named Sales Analysis.
11. Repeat steps 9 through 10
to rename the second
worksheet (Gross Profit
Analysis).
12. To delete the extra
worksheet, Sheet3, choose
Sheet 3, right-click the
mouse, and select Delete.
13. To define an action for the
pushbutton, double-click
the Sales Analysis
pushbutton (or choose the
Sales Analysis pushbutton,
right-click the mouse, and
choose View Code).
9
13
Chapter 2: Creating Workbooks
Step 5: Adding Visual Basic Functionality to Workbook
BW 1.2B Report Development Tools
2u201319
14. To link the Sales Analysis
pushbutton to the Sales
Analysis worksheet and
specify that the Sales
Analysis worksheet is to
be activated when the
pushbutton is clicked,
insert
Worksheets(u201CSales
Analysisu201D). Activate
15. Choose View Microsoft
Excel to return to the BEx
Analyzer.
16. Repeat steps 12 through
14 to define the action for
the second pushbutton
(Gross Profit Analysis) to
the second worksheet
(Gross Profit Analysis).
17. Position the cursor and
create a report title (for
example, Sales
Analysis Report).
18. To change the font
properties (font color
etc.), choose the Sales
Analysis pushbutton,
right-click the mouse and
choose Properties.
14
15
17
16
18
Chapter 2: Creating Workbooks
Step 5: Adding Visual Basic Functionality to Workbook
Reporting Made Easy 2u201320
19. From the Alphabetic tab,
choose BackColor, then
click the selection button
and choose ToolTip.
20. To change the font color,
go to ForeColor, click the
selection button, and
choose the Highlight
option.
21. Choose Close to exit
the Properties screen.
22. Repeat steps 18 through
21 to set the font color in
Properties for the second
pushbutton (Gross Profit
Analysis).
23. To test the action of the
Sales Analysis and Gross
Profit Analysis
pushbuttons, choose
Exit Design Mode from the
Control Toolbox.
Optional: You may want to
hide the sheet tabs at the
bottom of the screen.
24. To hide the sheet tabs,
choose Tools ® Options
from the Excel menu bar.
19
23
24
20
21
22
Chapter 2: Creating Workbooks
Step 5: Adding Visual Basic Functionality to Workbook
BW 1.2B Report Development Tools
2u201321
25. Choose the View tab.
26. Deselect Sheet tabs.
27. Choose OK.
The pushbuttons in the
workbook template for
Bungee Software are now
operational.
&UHDWLQJ D 7H[WER[
1. To create a textbox,
choose in the Control
Toolbox.
2. Position the cursor in a
cell. Then, click the
mouse, hold it, and drag
it to create the area of the
textbox.
3. Choose the textbox, rightclick
the mouse and
choose Properties.
2 3
25
26
1
27
Chapter 2: Creating Workbooks
Step 5: Adding Visual Basic Functionality to Workbook
Reporting Made Easy 2u201322
4. Choose the Alphabetic tab.
5. Choose MultiLine and
change the option to True.
6. Choose ScrollBars and
change the option to 3 u2013
fmScrollBarsBoth.
7. Close the Properties
screen.
8. To add (or edit) text,
choose the textbox, rightclick
the mouse, and
choose TextBox Object ®
Edit.
7
5
6
4
8
Chapter 2: Creating Workbooks
Step 6: Saving the Workbook to the InfoCatalog
BW 1.2B Report Development Tools
2u201323
9. In the textbox, enter the
explanatory text to
support report data.
10. Choose Exit Design
Mode in the Control
Toolbox to end design
changes.
11. Close the Control Toolbox.
12. From the BEx Toolbar,
choose Save.
13. Enter a new workbook
name and save it to the
InfoCatalog.
The Sales workbook for Bungee Software is now ready for use. We have added the functions
needed to build a sample workbook (based on the business scenario on page 2u20132).
6WHS 6DYLQJ WKH :RUNERRN WR WKH ,QIR&DWDORJ
1. To save the workbook to
the InfoCatalog, choose
Save to InfoCatalog.
1
11
10
12
9
Chapter 2: Creating Workbooks
Step 6: Saving the Workbook to the InfoCatalog
Reporting Made Easy 2u201324
2. You can either save your
workbook as a new
workbook or overwrite an
existing workbook. For
this example, choose Add
as new workbook.
3. Enter a title for the new
workbook, for example
Bungee Sales
Workbook.
4. Choose OK.
5. To give other users access
to this workbook, choose
in (public) enterprise catalog
from the Access in
InfoCatalog tab.
6. Choose OK.
2
3
5
4
6
Chapter 2: Creating Workbooks
Review
BW 1.2B Report Development Tools
2u201325
5HYLHZ
< Creating a workbook in BW is a five-step process:
Step 1: Create a workbook template (optional).
Step 2: Insert desired query (or queries) into a workbook.
Step 3: Enhance workbook layout and functionality using Visual Basic commands
(optional).
Step 4: Create a new query (or modify an existing query).
Step 5: Enable access to the workbook through the BEx Browser.
< The sample workbook covered in this guidebook is based on the SAP-delivered SD
DemoCube Workbook.
< A workbook can contain more than one query.
< The Business Explorer toolbar integrates BW reporting functionality in the Microsoft
Excel environment.
< To create a workbook, follow these steps:
Step 1: Start BEx Analyzer.
Step 2: Create a workbook template (optional).
Step 3: Save the workbook template to the InfoCatalog.
Step 4: Insert a query (or queries) into a new workbook.
Step 5: Add Visual Basic functions (optional).
Step 6: Save the new workbook to the InfoCatalog.
< When designing the workbook template, you can easily:
Format the background
Hide Excel toolbars
Insert company logo
< You can use Visual Basic commands to add pushbuttons, textboxes, and other functions
to enhance your workbook.
Chapter 2: Creating Workbooks
Review
Reporting Made Easy 2u201326 -
How do you take care of performance issues in your ABAP programs?
HI,
SEND ME REPLAYhi,
This topic has been discussed often in these forums.Check these links:
Re: Monitoring & Performance Tuning
Re: Query Enhancement and performance
Re: performance tuning related issues
Re: Performance analysis
Re: BW performance
In specific check this:
take a look
Business Intelligence Performance Tuning [original link is broken] [original link is broken] [original link is broken]
and e-learning
https://www.sdn.sap.com/irj/sdn/developerareas/bi?rid=/webcontent/uuid/fe5b0b5e-0501-0010-cd88-c871915ec3bf [original link is broken]
'intermediate course'
also take a look
Prakash's weblog
/people/prakash.darji/blog/2006/01/27/query-creation-checklist
/people/prakash.darji/blog/2006/01/26/query-optimization
BW Performance Tuning Knowledge Center - SAP Developer Network (SDN)
Business Intelligence Performance Tuning [original link is broken] [original link is broken] [original link is broken]
performance docs on query
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3f66ba90-0201-0010-ac8d-b61d8fd9abe9
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cccad390-0201-0010-5093-fd9ec8157802
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ce7fb368-0601-0010-64ba-fadc985a1f94
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c8c4d794-0501-0010-a693-918a17e663cc
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/064fed90-0201-0010-13ae-b16fa4dab695
oss note
557870 'FAQ BW Query Performance'
and 567746 'Composite note BW 3.x performance Query and Web'.
Also take a look sdn forum performance center
Business Intelligence Performance Tuning [original link is broken] [original link is broken] [original link is broken]
there are lots of docs
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5ee957e5-0201-0010-9c83-fe14a43cd04a
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cccad390-0201-0010-5093-fd9ec8157802
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ce7fb368-0601-0010-64ba-fadc985a1f94
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3f66ba90-0201-0010-ac8d-b61d8fd9abe9
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/4c0ab590-0201-0010-bd9a-8332d8b4f09c
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1955ba90-0201-0010-d3aa-8b2a4ef6bbb2
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c8c4d794-0501-0010-a693-918a17e663cc
and check oss note
557870 'FAQ BW Query Performance' and 567746 'Composite note BW 3.x performance Query and Web'
417307, 409641 etc (search with 'bw performance')
Regards,
Jayant -
How to enhance the following query?
Hi all,
I am using the following piece of code to some fields from table STAS.However this query is taking a long time to execute.
Can anyone please tell me how can i enhance it so that it may execute faster?Thnx in advance.
LOOP AT IT_FG WHERE STLAL = ' '.
SELECT STLAL FROM STAS
INTO IT_FG-STLAL
WHERE STLNR = IT_FG-STLNR
AND STLKN = IT_FG-STLKN.
MODIFY IT_FG.
ENDSELECT.
ENDLOOP.
Regards,
S.choudhury.
Edited by: Rob Burbank on Dec 23, 2009 12:02 PMThe above recommendation are only o.k., if you use sorted tables. However, maybe people don't mention because you should always use sorted tables. I am joking, but the recommendation is true!
Otherwise use binary search, but better use sorted tables!
And for the loop you should use ASSIGNING which speeds up the modify.
field-symbols: <fs> type it_fg.
SELECT STLAL STLNR STLKN
INTO table IT_new
FROM STAS
for all entries in IT_FG
WHERE STLNR = IT_FG-STLNR
AND STLKN = IT_FG-STLKN.
SORT it_new BY stlnr stlkn.
LOOP AT IT_FG ASSIGNING <fs>
WHERE STLAL = ' '.
read table IT_new
into wa_new
WITH KEY STLNR = IT_FG-STLNR
AND STLKN = IT_FG-STLKN
BINARY SEARCH.
* type ???.
<fs> = wa_new-STLAL.
ENDLOOP. -
How to enhance Dynamic Query Object TerrSearch (Territory Management)?
Hello Friends,
In the TerrSearch dynamic query object, There are 2 fields Territory_ID and Level_ID. Now i have a requirement to Enhance the Search object using the new field called TERRITORY PATH ID. using which we can search all the entities not only for the terrritory level which we have selected (for example we have assigned the value '01' to LEVEL_ID) but also all the below territory levels of selected territory level.
If we enhance the search object structure CRMST_TMIL_SEARCH (structure of TerrSearch object) using AET to add the Z field called TERRITORY_PATH_ID then which is the suitable BADI where we can add the necessary code to select all the entities based on all the territory levels below the selected territory level.
Please guide me friends how to enhance the TerrSearch object.Hi friend,
Try using MACRO and dynamic WHERE condition.
Group simialr Select statements under a Macro.
Build a dynamic where by checking conditions
Call macro passing dynamic where condition.
TABLES afpo.
DATA: str TYPE string.
*Macro definition
DEFINE operation.
select single *
from afpo into afpo
where (&1). " Dynamic condition
END-OF-DEFINITION.
*Build dynamic WHERE by checking some conditions
*If conditon
CONCATENATE 'AUFNR = ''000000700008''' 'AND POSNR = ''0001''' INTO str SEPARATED BY space.
*Else
CONCATENATE 'AUFNR = ''000000700008''' 'AND POSNR = ''0002''' INTO str SEPARATED BY space.
*Endif.
*Call Macro passing dynamic WHERE condition
operation str. -
Data Type enhancement Query.
Hi All ,
I have a query regarding Data type enhancement . We can create a Data Type enhancement based on a standrd Data Type and give a new name to this DataTypeEnhancement (DTE_Test). This is clear . My question is how do we actually use this newly created DataTypeEnhancement .
In my case I do not want to change the Orignal Standard Objects. I want to create Objects in a separate Custom SWCV . Can we create a new DataType / MessageType based on this DataTypeEnhancement and Use it.
Thanks
Nilesh.Nilesh,
Check this document 3.3 and its usage:
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0bb5687-00b2-2a10-ed8f-c9af69942e5d?overridelayout=true
Regards,
---Satish -
Enhancement Req (v4.0): Report Query- Output Format- Derive from Item
Brief Introduction
I have 1 major request I would like to make (and 2 lesser ones). The first, I would like to specify custom available output formats for 'Report Query' objects, as well as Reports Regions, Interactive Reports, etc. I believe that this could easily be an instance setting in the Report Server region of the internal workspace, or per workspace / application. Even if not supported on the system wide level, I would recommend that the "Derived from Item" output format "Return Value" be allowed to be returned unaltered to the Report Server. I know that the type is returned as "_xf", and for my purposes I would REALLY like to be able to get something other than the defaults.
Use Case
I am creating a custom JasperReports integration (for which I will be launching a public SaaS beta extremely soon). It uses the standard Apex reporting objects (Queries, Layouts, Print Buttons, etc). JasperReports templates are uploaded as Report Layouts and everything works fine. I am, however, wanting to implement as many output formats as are available to me in Jasper...that means Word 07, Excel 07, ODS, ODT, etc. For the items that take a print server override I can handle this in other ways (even though this appears broken [see below]), but for the standard report queries this isn't available. I would basically like the option to define the set of available output formats for the report server, and what the "_xf" returned for each one is.
Minor Requests
- Replace Uploaded Templates: If a template is used often and updated, then it has to be changed everywhere...minor irritation.
- Customize Report Server URL for the Workspace or Application: For SaaS instances, workspace developers may license or have access to reporting solutions that are not (and should not be) available to all of the Oracle instance's workspaces, or may conflict with a service that is already provided by the instance administrators.
Broken
When I use the print server override, with the "Use Headers From" option, it appears that neither my content type, nor my content disposition headers are being sent back to the client. This is the work around solution for the non-standard types issue I am requesting enhancement on, so I would like to know what I can do to get this working immediately.
Additional Info
As it stands, if the site is available, feel free to sign up for the beta. The beta keys will be exported soon to the instance and made available. Instructions on setup will also follow:
https://apex.vendelinc.com/apex/f?p=homeHi, please did you get any solution to this issue? I am having similar challenge right now.
select EMP.DEPTNO as DEPTNO,
DEPT.DNAME as DNAME,
EMP.EMPNO as EMPNO,
EMP.ENAME as ENAME,
EMP.JOB as JOB,
EMP.MGR as MGR,
EMP.HIREDATE as HIREDATE,
EMP.SAL as SAL
from SCOTT.DEPT DEPT,
SCOTT.EMP EMP
where EMP.DEPTNO=DEPT.DEPTNO
and DEPT.DNAME =upper(:dname)
This run perfectly in sql developer, toad, and even inside publisher if I login directly to publisher to create report.
Generating this same query in shared component query builder and testing it returns no data found. If I remove the last line, it works. but with the last line, it return no data found. It seems no one has been able to provide solution to this issue -
Hi all ,
I'm DBA our database RAC 3 nodes (10.2.0.4) this query making performance issue and causing high CPU Time please assist me to enhance it
SELECT DISTINCT PP.PARTICIPANT_ID PARTICIPANTID, PP.PARTICIPANT_NUMBER
OWENRNO, NVL( PP.NAME_EN , PP.NAME_AR) OWNERNAMEEN, PP.NAME_AR OWNERNAMEAR,
PP.PARTICIPANT_TYPE OWNERTYPE, PP.EMAIL OWNEREMAIL, PP.PO_BOX OWNERPOBOX,
PP.ADDRESS OWNERADDRESS, PP.PHONE OWNERPHONE, PP.FAX OWNERFAX,
ROUND(NVL(R.NOMINATOR,0)*100/NVL(R.DENOMINATOR,1)) PERCENTAGE,
NVL(PO.PARTICIPANT_ID,0) ISPRIMARY, PN.ID_NUMBER OWNERPASSPORTNO, PN.MOBILE
OWNERMOBILE, PN.PASSPORT_EXPIRY_DATE OWNERPASSPORTEXPDATE, C.NAME_EN
OWNERNATIONALITY, ATH.LICENSE_NUMBER OWNERLICENSENO, RE.LICENSE_EXPIRY_DATE
OWNERLICEXPIRYDATE
FROM
PROPERTIES P INNER JOIN RELATIONS R ON R.PROPERTY_ID=P.PROPERTY_ID INNER
JOIN PARTICIPANTS PP ON PP.PARTICIPANT_ID=R.PARTICIPANT_ID LEFT OUTER JOIN
AUTHORITIES ATH ON ATH.PARTICIPANT_ID=PP.PARTICIPANT_ID LEFT OUTER JOIN
REAL_ESTATES RE ON RE.AUTHORITY_ID=ATH.AUTHORITY_ID LEFT OUTER JOIN
PRIMARY_OWNER PO ON PO.PARTICIPANT_ID=PP.PARTICIPANT_ID LEFT OUTER JOIN
PERSONS PN ON PN.PARTICIPANT_ID=PP.PARTICIPANT_ID LEFT OUTER JOIN COUNTRIES
C ON C.COUNTRY_ID=PN.COUNTRY_ID WHERE VALIDATE_RELATION( R.RELATION_TYPE_ID,
R.START_DATE, R.END_DATE, R.PROPERTY_STATUS) = 1 AND P.PROPERTY_ID
IN(SELECT * FROM TABLE(IN_LIST(:B1 )))i did trace session and got this information
call count cpu elapsed disk query current rows
Parse 2 0.00 0.00 0 0 0 0
Execute 2 0.00 0.00 0 2 54 0
Fetch 2 3.69 3.73 3 12103 0 5
total 6 3.69 3.74 3 12105 54 5
Misses in library cache during parse: 0
Optimizer mode: ALL_ROWS
Parsing user id: 91 (EJARIN)
Rows Row Source Operation
2 HASH UNIQUE (cr=6047 pr=3 pw=0 time=2109489 us)
27 HASH JOIN OUTER (cr=6047 pr=3 pw=0 time=2061333 us)
2 HASH JOIN RIGHT OUTER (cr=5164 pr=3 pw=0 time=2055052 us)
214 TABLE ACCESS FULL COUNTRIES (cr=4 pr=0 pw=0 time=250 us)
2 NESTED LOOPS OUTER (cr=5160 pr=3 pw=0 time=2054539 us)
2 HASH JOIN OUTER (cr=5155 pr=3 pw=0 time=2054458 us)
2 HASH JOIN OUTER (cr=5079 pr=3 pw=0 time=2052289 us)
2 NESTED LOOPS (cr=4960 pr=3 pw=0 time=1713970 us)
2 HASH JOIN (cr=4954 pr=3 pw=0 time=1713896 us)
1 NESTED LOOPS (cr=2 pr=0 pw=0 time=219 us)
1 COLLECTION ITERATOR PICKLER FETCH IN_LIST (cr=0 pr=0 pw=0 time=185 us)
1 INDEX UNIQUE SCAN PROPERTIES_PK (cr=2 pr=0 pw=0 time=24 us)(object id 106424)
377258 TABLE ACCESS FULL RELATIONS (cr=4952 pr=3 pw=0 time=2263627 us)
2 TABLE ACCESS BY INDEX ROWID PARTICIPANTS (cr=6 pr=0 pw=0 time=67 us)
2 INDEX UNIQUE SCAN PK_PARTICIPANTS (cr=4 pr=0 pw=0 time=41 us)(object id 106434)
11283 TABLE ACCESS FULL AUTHORITIES (cr=119 pr=0 pw=0 time=11316 us)
3757 TABLE ACCESS FULL REAL_ESTATES (cr=76 pr=0 pw=0 time=3786 us)
1 TABLE ACCESS BY INDEX ROWID PERSONS (cr=5 pr=0 pw=0 time=67 us)
1 INDEX RANGE SCAN IDX26518_3F690002 (cr=4 pr=0 pw=0 time=46 us)(object id 106426)
234752 TABLE ACCESS FULL PRIMARY_OWNER (cr=883 pr=0 pw=0 time=234783 us)
Rows Execution Plan
0 SELECT STATEMENT MODE: ALL_ROWS
2 HASH (UNIQUE)
27 HASH JOIN (OUTER)
2 HASH JOIN (RIGHT OUTER)
214 TABLE ACCESS MODE: ANALYZED (FULL) OF 'COUNTRIES' (TABLE)
2 NESTED LOOPS (OUTER)
2 HASH JOIN (OUTER)
2 HASH JOIN (OUTER)
2 NESTED LOOPS
2 HASH JOIN
1 NESTED LOOPS
1 COLLECTION ITERATOR (PICKLER FETCH) OF
'IN_LIST' (PROCEDURE)
1 INDEX MODE: ANALYZED (UNIQUE SCAN) OF
'PROPERTIES_PK' (INDEX (UNIQUE))
377258 TABLE ACCESS MODE: ANALYZED (FULL) OF
'RELATIONS' (TABLE)
2 TABLE ACCESS MODE: ANALYZED (BY INDEX ROWID) OF
'PARTICIPANTS' (TABLE)
2 INDEX MODE: ANALYZED (UNIQUE SCAN) OF
'PK_PARTICIPANTS' (INDEX (UNIQUE))
11283 TABLE ACCESS MODE: ANALYZED (FULL) OF
'AUTHORITIES' (TABLE)
3757 TABLE ACCESS MODE: ANALYZED (FULL) OF 'REAL_ESTATES'
(TABLE)
1 TABLE ACCESS MODE: ANALYZED (BY INDEX ROWID) OF
'PERSONS' (TABLE)
1 INDEX MODE: ANALYZED (RANGE SCAN) OF
'IDX26518_3F690002' (INDEX)
234752 TABLE ACCESS MODE: ANALYZED (FULL) OF 'PRIMARY_OWNER'
(TABLE)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
gc current block 2-way 326 0.00 0.09
gc cr multi block request 266 0.00 0.03
db file sequential read 3 0.00 0.00
gc cr block 2-way 4 0.00 0.00
SQL*Net message to client 2 0.00 0.00
SQL*Net message from client 2 0.00 0.00
******************************************************************************** please if you have any suggestion to enhance it tell me
RegardsThis is a Duplicate Post. [url https://forums.oracle.com/forums/thread.jspa?threadID=2401881&tstart=0]Original Post Can be found here.
-
Dear Experts,
I have 2 queries
1) I need to know the table which actually contains the "EEWB Bus object" which is displayed in EEWB for enhancement(when i select .Please indicate the table name.
2) Also EEWb generally enhances the Attribute structure. Hence i need to know which table holds the relation between the
EEWb Bus object and the attribute structure. Where is this mapping maintained(on what is the attr structure of the selected EEW
bus object)
Anwsers will be appreciated.
Thanks
AbishekHi chandrakanth and Ruby,
Firstly thanks for taking your time to post.
On the query as such I know that when i select 'BUPA' or any other object from the list it enhances the DDIC structure, BOL attribute strucure and all.
1)What is i want to know is which tables houses this 'BUPA' object. We select 'BUPA' for enhancment from the pop up. the entries in this pop up come from which table???
I need to know this table name so that i can directly enter the new objects that i need to enhance into this table.
2) Also when we select 'BUPA' we essentially enhance the 'attribute structure' of BUPA(where the new field that we add gets added). Hence my next question which table holds the mapping between attribute structure and BUPA. How does the system find the attribute structure corresponding to 'BUPA'.
There has to be a table which says this is the attribute structure and this attribute structure corresponds to this EEw bus object(BUPA).Where is this mapping maintained?
Thanks
Abishek -
Hello experts,
I have a query related to enhancing a function module. I am doing phase confirmation of process orders using the BAPI 'BAPI_PROCORDCONF_CREATE_TT' in a module pool program(Z program). I have added few z fields to AFRU. Now i need to enhance the bapi 'BAPI_PROCORDCONF_CREATE_TT' so that the z fields are updated in AFRU. In this bapi i see a function module MAP2I_PI_TIMETICKET_TO_AFRUD in which the z fields can be moved to afrud using an implicit enhancement. But the problem is that the function module MAP2I_PI_TIMETICKET_TO_AFRUD is auto generated and there is a comment in the fm saying 'Dont Change it Manually!!'. Now i need to know how is this function module generated or is there any other way to do phase confirmation of process orders. Pls Help.
Regards,
Ramanan R.S.Hi Ramanan R.S.,
Function modules MAP2I* and MAP2E* are generated via BDBS transaction.
As your function module is named MAP2I_PI_TIMETICKET_TO_AFRUD, it means that there's a transfer from external to internal (because of MAP2I), and from PI_TIMETICKET structure to AFRUD structure.
But I don't recommend that you work with this one. Create your own MAP2I function module. From BAPIRET2 to BAPIRETURN for instance if you're lazy like me. Store it in your own Z function group, local package.
Before regenerating, you have to look at what was the initial mapping, as it is not stored in a database table, only in the source code. Moreover, it's possible that there were some manual changes before, so they have to be applied manually, so that means a modification of standard if you had worked on a standard one. Copying the MAP2I function module to a Z one before deleting is a very good idea!
- Create your implicit enhancement. Test it.
- In BDBS, you enter transfer from external to internal, plus these 2 names in BDBS, click Generate button.
- It says "already exists", so you have to click the Delete button
- There could be a popup "is still used", click Delete to confirm
- It proposes a default mapping between fields, that can be different from what was previously done.
- That will regenerate the function module (you can make sure by looking at its timestamp).
- Test it again, you'll see that your implicit enhancement is still there.
I admit it doesn't test the situation of a true upgrade, and I don't know any documentation that confirms that the deletion of generated repository object doesn't impact its implicit enhancement. Feedbacks welcome...
BR
Sandra -
Query on Web , Enhanced menu- Query properties- Transfer button not working
Hello to all experts,
When We execute a query from query designer on to the web, if a user wants to go to Enhanced menu->Query properties and select any of the options existing there example "Tabular view, supress zeros ect ect " when he clicks on the button "TRANSFER at the bottom " to transfer his selected options , nothing happens... I have never seen this ? Bw netweaver platform 3.5 highest running patch is SAPKW35012
Does this have to do with any global query settings where tto look in for these settings? Also if this may help When we open query designer in local view I see that many buttons are inactive "Cell view" "Switch to global " ect and in Web application designer the "VIEW" option is grayed out as well ... Were are these settings maintained? Does anyone have any input , the most inportant being why iis the query properties "TRANSFER" button in Enhanced menu not working, i have seen no note on this
Thank you
AymanHi Andy,
Nothing happened, meaning that the screen did not move, or the scaling factor was not set? Did you try to do it again?
Maybe you are looking for
-
I was wondering if it was possible to insert an image in a chart label. What I am looking to do is insert a small icon (like a question mark for more info) in the label that encourages the user to mouse over to read the tool tip for more information.
-
Search site on office 365 ?
search site on office 365
-
Idk what to do to fix this.
-
Airport Express not visible to OS X (iOS is fine, though)
I'm having fairly bizarre trouble with my home networking set-up. Specifically, the WLAN provided by an Airport Express base station. The whole set-up has been working flawlessly for some years, and on the network side, nothing has been altered recen
-
Network Disconnecting issue with Windows 8
We are getting RTO to gateway at regular interval on windows 8 laptop.at same time we are able to ping system from same subnet. we have installed windows 8 in different make and model of laptop also Ethernet driver is updated with latest version, Win