Report with merged table cells?
I would like to merge cells vertically on break columns in a report.
Something like:
| John | 123 Main |
| |------------------------------|
| | 456 First |
|-----------------------------------------|
| Jane | 789 Sycamore |
(you'll have to paste this and use a fixed font to see it properly)
Currently, by just setting break formating, I get an empty cell as the second row for John. I would like that cell below John to be merged with John (no border between).
How can I accomplish this?
Van
Sound like what youre looking for is a master-detail form. You can just use the wizard to create this. You will be asked for table names, columns to display etc., and everything will be generated for you. If you dont want to have the detail report or master record updateable, you can just change the display types to display-only.
Regards,
Marc
Similar Messages
-
BOXIR2 FP4.6 -WebI report with merged dimensions: Incorrect data
Issue: BOXIR2 FP 4.6 -WebI report with merged dimensions: Max value of an object from second query is displayed in the report even when the formula is based on the object from the first Query.
Data displays properly on BOXIR2 SP2.
Steps to reproduce.
1.Use u2018Island Resort Marketingu2019 Universe to create a WebI report.
2. Create a Query with objects u2018Reservation Dateu2019 and u2018Future guestsu2019 and apply a query filter where the u2018Reservation Dateu2019 is between 1/1/2001 and 31/1/2001 an Run the query.
3. Add a second Query with the same objects i.e. u2018Reservation Dateu2019 and u2018Future guestsu2019 and apply a query filter where the u2018Reservation Dateu2019 is between 1/1/2001 and 31/12/2001.
4. Create a report variable MaxDate using the syntax "=Max([Query 1].[Reservation Date]) In Report"
5. Use the objects u2018Reservation Date Query 2u2019, u2018Future guests Query 2u2019 and u2018MaxDateu2019 variable to create a table in the report.
You will find the Maxdate column displays Max date values of u2018Reservation Date Query 2u2019 instead of u2018Reservation Date Query 1u2019.
Could you please advice me on this issue.Hi Hiteshwar,
MaxDate variable returns a maximum of Reservation date from Query 1 i.e. 1/15/01 which is correct. If you put that variable separately it will display that date correctly but you are grouping it along with objects from the query2 thatu2019s why it is displaying correct value for Query 2 where it finds 1/15/01, but for other values WEBI canu2019t group this value as it refers its formula which contains Query 1 reservation date.
Hence we canu2019t say it is displaying values from Query 2 it is taking values from Query1 itself for 1/15/2001 and for remaining values it is taking non matching values from Query 2 with which it is grouping.
If you put that variable with objects from Query1 it wonu2019t display 1/15/01 but all values reservation date from query 1 contains because it is grouping based on reservation date though it is single max value.
Even when you write "=Max(Query 2.Reservation Date) formula and use it with objects from query 1 though it contains so many values it matches (Groups) only the values from reservation date from Query 1.and displays only those values i.e. 1/1/2001 and 1/15/01.
MaxDate returns 1/15/01 as Maximum Date value from Query 1 but Query 2 contains value far more greater than 1/15/01 hense that will be more incorrect data if WEBI displays maxdate as 1/15/01 along with Query 2 objects.
Here we can avoid this behavior by Custom SQL but MaxDate is a report level variable hence we canu2019t edit SQL.
If your data contains some duplicate values WEBI will repeat MaxDate value like
Reservation date Restaurant Future_Guests Total Guests
1/1/01 ABC 3 3
1/15/01 XYZ 4 8
1/16/01 XYZ 4 8
By default, WEBI Groups Total Guests based on the Restaurant and Reservation Date, but if we want we can group those values based only on Restaurant which will duplicate Total Guest values for Restaurant XYZ. But you report contains only one dimension with all unique Values we canu2019t group those.
I hope this is clear.
Thanksu2026
Pratik -
Refresh Webi report with merged cells in crosstab in PowerPoint
Hello,
I have created a Webi report with a crosstab. In this crosstab I have merged some cells in the top left corner and inserted a title for the crosstab. Now I want to import the crosstab in PowerPoint with Live Office. The problem is, that after the import in PowerPoint the cells are not merged anymore. So I merged them manually. When I refresh the crosstab, the cells are still merged in PowerPoint, but they are empty.
Any ideas how to solve this issue?
UweHello,
I have created a Webi report with a crosstab. In this crosstab I have merged some cells in the top left corner and inserted a title for the crosstab. Now I want to import the crosstab in PowerPoint with Live Office. The problem is, that after the import in PowerPoint the cells are not merged anymore. So I merged them manually. When I refresh the crosstab, the cells are still merged in PowerPoint, but they are empty.
Any ideas how to solve this issue?
Uwe -
Problem with SUBMIT report [ WITH SELECTION-TABLE ] or [ IN range ]
Hello Everybody,
I am trying to call transaction F.80 for mass reversal of FI documents by using SUBMIT sentence and its parameters like this:
LOOP AT i_zfi013 INTO wa_zfi013.
PERFORM llena_params USING 'BR_BELNR' 'S' 'I' 'EQ' wa_zfi013-num_doc ''.
range_line-sign = 'I'.
range_line-option = 'EQ'.
range_line-low = wa_zfi013-num_doc.
APPEND range_line TO range_tab.
endloop.
Line: -
SUBMIT sapf080
WITH br_bukrs-low = p_bukrs
WITH SELECTION-TABLE it_params [ same problem with - WITH BR_BELNR IN range_tab]
WITH br_gjahr-low = p_an1
WITH stogrd = '05'
WITH testlauf = ''
AND RETURN.
My problem is that when the report is executed the BR_BELNR only delete one document of the all the inputs in the selection criteria from the loop. if I add the statement [ VIA SELECTION-SCREEN] in the SUBMIT if open the multiple selection criteria in the screen I can check that all the documents are set in it from the ABAP code in the loop from it I just need to push F8 to copy them and run the program processing all the documents normally .
Can some one help me with this? is there a way to execute the transaction BY the SUBMIT with the multiple selection criteria for the Document Number working well?
Thank for you time and help.This is my code:
TYPES: BEGIN OF T_ZFI013,
BUKRS TYPE BUKRS,
GJAHR TYPE GJAHR,
MONAT TYPE MONAT,
ANLN1 TYPE ANLN1,
ANLN2 TYPE ANLN2,
NUM_DOC TYPE BELNR_D,
DATE TYPE DATUM,
TIME TYPE UZEIT,
USER TYPE SYUNAME,
END OF T_ZFI013.
DATA: I_ZFI013 TYPE STANDARD TABLE OF T_ZFI013,
WA_ZFI013 TYPE T_ZFI013,
DATA: br_belnr TYPE BELNR_D,
rspar_tab TYPE TABLE OF rsparams,
rspar_line LIKE LINE OF rspar_tab,
range_tab LIKE RANGE OF br_belnr,
range_line LIKE LINE OF range_tab."range_tab.
LOOP AT i_zfi013 INTO wa_zfi013.
range_line-sign = 'I'.
range_line-option = 'EQ'.
range_line-low = wa_zfi013-num_doc.
APPEND range_line TO range_tab.
ENDLOOP.
SUBMIT sapf080
WITH br_bukrs-low = p_bukrs
WITH br_belnr IN range_tab
WITH br_gjahr-low = p_an1
WITH stogrd = '05'
WITH testlauf = ''.
This is the RANGE_TAB table before submit:
1 I EQ 1001xxxxxx
2 I EQ 1002xxxxxx
3 I EQ 1003xxxxxx
4 I EQ 1004xxxxxx
5 I EQ 1005xxxxxx
6 I EQ 1006xxxxxx
7 I EQ 1007xxxxxx
8 I EQ 1008xxxxxx
I think this wont work for some reason so I will start to do this by a BDC.
Many thanks for your help. -
Report with long column cell value
Hi,
we have report with some number of columns and some columns cells have value with a lot of chars (more than 100). We would like to trim this column cell value to for example 20 chars and put all chars of column cell value to HTML TD title value as "hint". Something like this:
<code>
<td #ALIGNMENT# headers="#COLUMN_HEADER_NAME#" title="#FULL_COLUMN_VALUE#" class="data">#TRIMED_COLUMN_VALUE#</td>
</code>
It is possible do this by template? Do you have any idea?
I have one idea that use JavaScript and full column value in hidden column, but I thing that there could be some better way to do this:-)
With regards.
David
Edited by: user4893970 on Nov 23, 2010 4:11 PMWhile I don't think there's any way to do this with a normal reportIf it is a standard report and not an interactive report, then it can be done using the column HTML Expression:
<span title="#FULL_COLUMN_VALUE#">#TRIMMED_COLUMN_VALUE#</span> -
Small issue with custom table cell editor and unwanted table row selection
I'm using a custom table cell editor to display a JTree. Thing i notice is that when i select a value in the tree pop-up, the pop-up closes (as it should) but then every table row, from the editing row to the row behind the pop-up when i selected the value becomes highlighted. I'm thinking this is a focus issue, but it thought i took care of that. To clairfy, look at this: Before . Notice how the "Straightening" tree item is roughly above the "Stock Thickness" table row? When i select Straightening, this is what happens to my table: After .
My TreeComboBox component:
public class TreeComboBox extends JPanel implements MouseListener {
private JTextField itemField;
private TreeModel treeModel;
private ArrayList<ActionListener> actionListeners = new ArrayList<ActionListener>();
private Object selectedItem;
* Creates a new <code>TreeComboBox</code> instance.
* @param treeModel the tree model to be used in the drop-down selector.
public TreeComboBox(TreeModel treeModel) {
this(treeModel, null);
* Creates a new <code>TreeComboBox</code> instance.
* @param treeModel the tree model to be used in the drop-down selector.
* @param selectedItem tree will expand and highlight this item.
public TreeComboBox(TreeModel treeModel, Object selectedItem) {
this.treeModel = treeModel;
this.selectedItem = selectedItem;
initComponents();
* Returns the current drop-down tree model.
* @return the current <code>TreeModel</code> instance.
public TreeModel getTreeModel() {
return treeModel;
* Sets the tree model.
* @param treeModel a <code>TreeModel</code> instance.
public void setTreeModel(TreeModel treeModel) {
this.treeModel = treeModel;
* Returns the selected item from the drop-down selector.
* @return the selected tree object.
public Object getSelectedItem() {
return selectedItem;
* Sets the selected item in the drop-down selector.
* @param selectedItem tree will expand and highlight this item.
public void setSelectedItem(Object selectedItem) {
this.selectedItem = selectedItem;
String text = selectedItem != null ? selectedItem.toString() : "";
itemField.setText(text);
setToolTipText(text);
* Overridden to enable/disable all child components.
* @param enabled flat to enable or disable this component.
public void setEnabled(boolean enabled) {
itemField.setEnabled(enabled);
super.setEnabled(enabled);
public void addActionListener(ActionListener listener) {
actionListeners.add(listener);
public void removeActionListener(ActionListener listener) {
actionListeners.remove(listener);
// MouseListener implementation
public void mouseClicked(MouseEvent e) {
public void mouseEntered(MouseEvent e) {
public void mouseExited(MouseEvent e) {
public void mousePressed(MouseEvent e) {
public void mouseReleased(MouseEvent e) {
showPopup();
private void initComponents() {
setLayout(new GridBagLayout());
itemField = new JTextField();
itemField.setEditable(false);
itemField.setText(selectedItem != null ? selectedItem.toString() : "");
itemField.addMouseListener(this);
add(itemField, new GridBagConstraints(0, 0, 1, 1, 1.0, 0.0,
GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 0, 0), 0, 0));
private void showPopup() {
final TreePopup popup = new TreePopup();
final TreeComboBox tcb = this;
final int x = itemField.getX();
final int y = itemField.getY() + itemField.getHeight();
int width = itemField.getWidth() + popupButton.getWidth();
Dimension prefSize = popup.getPreferredSize();
prefSize.width = width;
popup.setPreferredSize(prefSize);
SwingUtilities.invokeLater(new Runnable() {
public void run() {
popup.show(tcb, x, y);
popup.requestFocusInWindow();
private void fireActionPerformed() {
ActionEvent e = new ActionEvent(this, ActionEvent.ACTION_PERFORMED, "TreeComboBoxSelection");
for (ActionListener listener : actionListeners) {
listener.actionPerformed(e);
private class TreePopup extends JPopupMenu {
private JTree tree;
private JScrollPane scrollPane;
public TreePopup() {
initComponents();
initData();
private void initData() {
if (treeModel != null) {
tree.setModel(treeModel);
private void initComponents() {
setFocusable(true);
setFocusCycleRoot(true);
tree = new JTree();
tree.setRootVisible(false);
tree.setShowsRootHandles(true);
tree.setFocusable(true);
tree.setFocusCycleRoot(true);
tree.addTreeSelectionListener(new TreeSelectionListener() {
public void valueChanged(TreeSelectionEvent e) {
tree_valueChanged(e);
scrollPane = new JScrollPane(tree);
add(scrollPane);
private void tree_valueChanged(TreeSelectionEvent e) {
DefaultMutableTreeNode node = (DefaultMutableTreeNode) tree.getLastSelectedPathComponent();
setSelectedItem(node.getUserObject());
fireActionPerformed();
this.setVisible(false);
}My TreeComboBoxTableCellEditor:
public class TreeComboBoxTableCellEditor extends AbstractCellEditor implements TableCellEditor, ActionListener {
protected TreeComboBox treeComboBox;
protected ArrayList<CellEditorListener> cellEditorListeners = new ArrayList<CellEditorListener>();
public TreeComboBoxTableCellEditor(TreeComboBox treeComboBox) {
this.treeComboBox = treeComboBox;
treeComboBox.addActionListener(this);
public Object getCellEditorValue() {
return treeComboBox.getSelectedItem();
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {
treeComboBox.setSelectedItem(value);
return treeComboBox;
public void actionPerformed(ActionEvent e) {
stopCellEditing();
}Any thoughts?
Edited by: MiseryMachine on Apr 3, 2008 1:21 PM
Edited by: MiseryMachine on Apr 3, 2008 1:27 PMAs I said, you have to have empty context elements before additional rows will be open for input.
For instance if you want to start with 5 rows available for input do the following to your internal table that you will bind:
data itab type standard table of sflight.
do 5 times.
append initial line to itab.
enddo.
context_node->bind_table( itab ).
The other option if you need n number of rows is to add a button to the table toolbar for adding more rows. When this button is pressed, you add a new context element to the node - thereby creating a new empty row in the table. -
CRVS2010 Beta - Report with many tables
Hi,
I was developing my application first with a test Database with few tables. Now that I am changing to the actual database (with about 200 tables) I noticed that the ReportDocument takes a really long time to load when I tried to access the DataDefinition for the first time.
Is there one way to avoid this?? The tables are all there because I need to have the option the select the table that I wanna use in the application, but after this I just use the table chosen and the linked tables in the Report.
thanksOK where to start...
First the act of adding 200 tables, and I assume none of them are linked is the first problem you are going to have. CR is a relational database reporting tool. Not linking tables generates multiple SELECT statements.
If you only need one or two then use RAS to add the tables and then the fields, Bascially you are creating the report designer for your users. All of the user interface needs to be created by you.
There may be one option that could help but what you are doing is likely never going to be fast....
Open regedit32.exe and go to:
HKEY_CURRENT_USER\Software\SAP BusinessObjects\Suite XI 4.0\Crystal Reports Designer Component\DatabaseOptions
In there you'll find a key called - DoAutoSmartLinking
Set the value to No
What that key does is when a report is open CR tries to link all tables and all fields.
Good luck
Don -
Need to create form on a table with report with a table has NO primary key
Hi, I tried to created some insert/update/delete form+report in an application, it works fine only if the table has primary key. Does anyone know how to create the same functionality with a table with no primary key? I saw an application is built on older version of htmldb that is using tables with no primary keys at all.
Here are the specific issues that I am facing:
- I am building some Form on a table with Report, it requires the table with primary key for form to update. Is there a workaround that I can use tables that has no primary keys at all?
- Say if primary key is necessary in the previous report+form, but the maximum number of columns that I can use to composed a primary is only 2 for that Form-Report, I cannot find anything handling > 2 primary key. Do you know if there are some ways to composite a primary key from many columns together?
Your help is really appreciated.
Thanks,
AngelaSorry to ask response so late. I had no time to get back to that issue before.
Regarding the triggers, I can make it work for the update, but not the insert.
Here is my trigger:
create or replace trigger STATUS_T1
instead of insert on STATUS
begin
insert into STATUS ("LABEL", "AREA", "OWNER", "TEST_NAME", "STATUS", "REMARKS", "BUGS", "DEV_MGR", "TEST_BY_DATE")
values(:new.LABEL, :new.AREA, :new.OWNER, :new.TEST_NAME, :new.STATUS, :new.REMARKS, :new.BUGS, :new.DEV_MGR, :new.TEST_BY_DATE);
end;
by any chance, you can notify what is wrong?
I already skip the ROWID when inserting to the view STATUS, but I cannot figure out what is wrong when inserting a new record to that view.
It gave me the following errors:
ORA-06550: line 1, column 38: PL/SQL: ORA-00904: "ID": invalid identifier ORA-06550: line 1, column 7: PL/SQL: SQL Statement ignored
Error Unable to process row of table STATUS
Then, I turned to debug mode, I am thinking that maybe because I use a HIDDEN item to hold the value of ROW_ID as I use the rowid (called ID in the view) to retrieve the record as a column link from previous page. What do you think?
Thanks again,
Angela -
Creating new Layout problem with merged table within std_resources.htm
Dear All,
i am relatively new to oracle ucm and i am trying to add new comonent to create new layout from oracle Create and Modify Layout Sample Component* example under http://www.oracle.com/technetwork/middleware/content-management/index-092832.html .
i want to ask about the following
in this component i have CreateLayout_Layouts Table, CreateLayout_PublishedWeblayoutFiles Table and CreateLayout_PublishedStaticFiles Table. These tables should be merged with LmLayouts table, PublishedWeblayoutFiles table and PublishedStaticFiles table respectively in the std_resources.htm file in the <install_dir>/shared/config/resources directory.
The problem is in my std_resources.htm file i have the following :
<tr>
<td>LmLayouts</td><td>LmLayouts</td><td>LmLayouts</td><td>id</td><td>label</td>
<td></td><td>7.3</td><td>1</td>
</tr>
how can i add (merge) the CreateLayout_Layouts Table in LmLayouts table? what is should fill the <td>s ?
for PublishedWeblayoutFiles table and PublishedStaticFiles table they are not exist in my std_resources.htm file. are there names changed? or shall i add them(if yes, what is the <td>s had inside).
note: i will be greatfull if someone have the std_resources.htm that have the above tables merged with the specified ones.I believe that sample is old. i have been pushing to get an updated version out also. Hopefully the fragmentary information I will give here will help.
The main changes are dynamic data tables which replace the includes to control the menu items and relationships. The old things should work still but good to use the new. At the end is an example of merge rules.
See 3.5.2 Dynamic Data Tables
http://docs.oracle.com/cd/E21764_01/doc.1111/e10807/c03_components.htm
==============================
CoreMenuItemRelationships table example
<?commatable mergeKey="primaryKey" derivedColumns="primaryKey:parentId+id"?>
parentId, id, loadOrder
MY_CONTENT, NEW_PAGE, 9000
================================
CoreMenuItems table example
<?commatable mergeKey="primaryKey" derivedColumns="primaryKey:parentId+id"?>
id, label, linkType, linkData
NEW_PAGE, wwNewPage, cgi, IdcService=GET_DOC_PAGE&Action=GetTemplatePage&Page=NEW_PAGE
============================
CoreMenuItemsFlags table example
<?commatable indexedColumns="id"?>
id, flags
WORK_IN_PROGRESS, isSubAdmin
=======================
CoreMenuItemsImages table example
<?commatable indexedColumns="id"?>
id, image, imageOpen
ACTIVE_WORKFLOWS, ReviewContent.gif,
Glue file example: (note I am not willing to upload a zip file of a full component sorry)
<?hda version="11gR1-dev" jcharset="UTF8" encoding="utf-8"?>
@Properties LocalData
ComponentName=NewLayout
blDateFormat=M/d/yyyy {h:mm[:ss] {aa}[zzz]}!mAM,PM!tAmerica/Chicago
hasPreferenceData=0
preventAdditionalComponentDowngrade=0
serverVersion=7.1
version=2011_11_13-dev
@end
@ResultSet ResourceDefinition
4
type
filename
tables
loadOrder
resource
resources/newlayout_resource.htm
null
10
template
templates/newlayout_template.hda
null
10
resource
resources/newlayout_strings.htm
null
10
@end
@ResultSet Filters
4
type
location
parameter
loadOrder
@end
@ResultSet MergeRules
4
fromTable
toTable
column
loadOrder
NewLayout_Layouts
LmLayouts
id
10
NewLayout_PublishedWeblayoutFiles
PublishedWeblayoutFiles
path
10
NewLayout_PublishedStaticFiles
PublishedStaticFiles
null
10
NewLayout_LayoutSkinPairs
LmLayoutSkinPairs
null
10
NewLayout_Templates
IntradocTemplates
name
10
@end
@ResultSet ClassAliases
3
classname
location
loadOrder
@end -
Submit report with internal table
Hi Experts !
I have a requirement where report is showing output in ALV1. Based user action I need to process further in background mode.
I have developed a report which I am submitting for this background mode.
I am opening a Job sumbitting created report with return. Job close.
This created report is in scheduled status in SM37. I have to go there and release it.
To pass parameters to newly created report I have used WITH field names with developed report name. But I am not getting parameters at new report. Similarly used import/export --- set/get but still not getting parameters at submitted report.
Is it because it is in background mode? If so how can I achieve this functionality. Can anybody suggest me something ?Hi,
IMPORT and EXPORT from memory doesn't work here.
Have a look into the SAP documentation:
When the program is scheduled in the background task, the selections specified by the user or in the additions for filling the selection screen are stored in an internal variant. When the program is executed in the background request, it is processed fully but the selection screen is processed in the background. The system triggers all events, including that for selection screen processing. The variant stored internally is transferred to the selection screen between the INITIALIZATION and AT SELECTION SCREEN OUTPUT events.
The transfer of the parameters should work, if you don't have any statements that clear those parameters. Maybe parameters with SET/GET parameters also will cause a problem. But it should work with this internal variants. Before you start the jov, please have a look in those generated variants, whether the parameters have the right values.
Regards,
Klaus
Edited by: Klaus Babl on Feb 8, 2011 6:58 AM -
Can we merge two cells of JTable, the way we do it in html using rowspan and colspan?
no, that's unsupported. There are some (partly oldish, google should help) experiments out there - but beware: they all require tweaks on the level of the ui-delegates which isn't a real option most of the time.
Cheers
Jeanette -
How to design a report with "merged" cells?
Post Author: Yuri
CA Forum: General
Hello,I need to get rid of empty space in details section of my report.The width of the first column is less than the width of the next one and one row of the first column matches to a number of rows of the next column. All data are stored in one SQL table. I need to reach the following result without using of subreports because this report will be used as a subreport in another report:
WRONG:
CORRECT:
+----
+----
Columbia |Lady for a Day Columbia |Lady for a Day
Pictures | Picturies +----
Industries|
Industries |Here Comes Mr.Jordan
+----
+----
|Here Comes
Mr.Jordan |Spider-Man 3
+----
+----
|Spider-Man 3 Walt |Mickey Mouse
+----
Disney +----
Walt |Mickey Mouse |Winnie the Pooh and
Disney | |the Blustery
Day
+----
+----
|Winnie the Pooh and
|the Blustery Day
+----
In other words I want to suppress the same values in the first column and I don't want the heights of the rows of the second column follow the heights of the rows of the first column. I tried to create two details section and to use underlay the following section in the first details section, but without success.Thanks.Post Author: Yuri
CA Forum: General
So could you group by issue datetime (at the appropriate resolution, e.g. per day) and then by studio? I've done it and the report looks great! Thank you! Now I use underlay of group headers under details instead of suppress of duplicated group values in detail section and I'm happy!And I have another question... Suppose, there are two contractors that work on three Customer's sites. The first contractor makes Pumping operations. The second contractor makes Slickline operations.One day the first contractor made Pumping operations on site#1,
then this contractor moved to site#2 and made Pumping operations here.
In the meantime another contractor made Slickline operations on site#2,
then it moved to site#1 and made Slickline operations here, tonight the second contractor moved to site#3 and made Slickline operations here.Details of operations are stored in the one Table with the following columns:Operation_id, Site_id, time_from, time_to, Code_of_Type_of_Operation, Operation_memo, Contractor_name, ... The customer wants to have a daily operations report where all operations for each Site are placed together, but in the meantime each Site must
be placed wholly into proper Operation Type section accordantly with the first
operation which has place on the Site. So I need to create the following Structure of the report:Pumping operations
Site#1 Details of Pumping operations on Site#1
Details of Slickline operations on Site#1Slickline operations Site#2 Details of Slickline operations on Site#2 Details of Pumping operations on Site#2
Site#3 Details of Slickline operations on Site#3// Each "Details of operations" section is a number of rows from Details of operations Table
In other words the rule is the following:to seek for the first operation for each Site and to place each Site to a suitable section, for example: the first operation for Site#1
is PUMPING, so Site#1 must be placed into u201Cpumping operationsu201D section, the first operation
for Site#2 is SLICKLINE, so Site#2 must be placed into u201Cslickline operationsu201D section.
I think that If I'll use grouping:
Group 1 Type of Operation Group 2 Site
then I'll have the following wrong report:
Pumping operations Site#1 Details of Pumping operations on Site#1 Site#2 Details of Pumping operations on Site#2Slickline operations
Site#1 Details of Slickline operations on Site#1
Site#2 Details of Slickline operations on Site#2
Site#3 Details of Slickline operations on Site#3But the customer doesn't want to break Sites! :(I have a number of ideas how to realize this report, but I would like to listen to masters.Thanks in advance! -
Merging table cells in Smartform
Hi ABAP Technical Consultants,
Have a doubt in merging cells in Smart form.
My doubt is -- I have taken one table with two line types. First line type containing 9 columns & second line type containing 17 columns. But First line type first cell width is 1.88 cm & it does not have data and second line type first cell is 1.88 cm & it has some data (This is static data).
Now my requirement is I want to merge " First line type first cell & second line type first cell ". Is it able to do in smart form development?
If you have any ideas and views, please share with me & waiting for your pamper information.
NOTE: Here data is static, not getting data either from internal table nor work area.
Thanks
venkat
Edited by: venkatehBI on Feb 11, 2011 8:42 AMIf you are using table, then realign the table my adding 2 cells in a row. Go to Main window==> table==> table tab==> click on details.. Now you will get the row details. Choose the row where you wants the merge. Let us consider you wants to merge cell 3 (2cm) & 4 (1 cm). then put 2 +1 = 3 cm for cell 3 and delete cell 4. Note: content will be deleted for this
-
How to generate a customized report with a table
I have a table with two columns: month, count. The values are like the following:
Jan-2007 50
Feb-2007 46
Mar-2007 55
Apr-2007 76
Jan-2009 67
Feb-2009 86
Mar-2009 55
I want to generate a report like this:
Month 2007 2008 2009
January 50 76 67
Febuary 46 45 86
How to do that?
Thanks.
JenJen,
This is the best way I could come up with. It is a little clunky but it gets the job done. Basically it buckets each group by month and then unions each month together. I used the column names and formats you specified so you should only have to change the table name.
EDIT
You may want to do a nvl on each decode that way the sums will work correctly for nulls. Also, you could generate this sql statement procedurally and save yourself some maintenance time. This was just to show you how it could be approached.
SELECT 'January' "Month",
SUM(DECODE(substr(month,5,4),2000,count)) "2000",
SUM(DECODE(substr(month,5,4),2001,count))"2001",
SUM(DECODE(substr(month,5,4),2002,count))"2002",
SUM(DECODE(substr(month,5,4),2003,count))"2003",
SUM(DECODE(substr(month,5,4),2004,count))"2004",
SUM(DECODE(substr(month,5,4),2005,count))"2005",
SUM(DECODE(substr(month,5,4),2006,count))"2006",
SUM(DECODE(substr(month,5,4),2007,count))"2007",
SUM(DECODE(substr(month,5,4),2008,count))"2008",
SUM(DECODE(substr(month,5,4),2009,count))"2009" FROM TYSON_TEST_TABLE
WHERE substr(month,1,3) = 'JAN'
GROUP BY 'January'
UNION ALL
SELECT 'February' "Month",
SUM(DECODE(substr(month,5,4),2000,count)) "2000",
SUM(DECODE(substr(month,5,4),2001,count))"2001",
SUM(DECODE(substr(month,5,4),2002,count))"2002",
SUM(DECODE(substr(month,5,4),2003,count))"2003",
SUM(DECODE(substr(month,5,4),2004,count))"2004",
SUM(DECODE(substr(month,5,4),2005,count))"2005",
SUM(DECODE(substr(month,5,4),2006,count))"2006",
SUM(DECODE(substr(month,5,4),2007,count))"2007",
SUM(DECODE(substr(month,5,4),2008,count))"2008",
SUM(DECODE(substr(month,5,4),2009,count))"2009" FROM TYSON_TEST_TABLE
WHERE UPPER(substr(month,1,3)) = 'FEB'
GROUP BY 'February'
UNION ALL
SELECT 'March' "Month",
SUM(DECODE(substr(month,5,4),2000,count)) "2000",
SUM(DECODE(substr(month,5,4),2001,count))"2001",
SUM(DECODE(substr(month,5,4),2002,count))"2002",
SUM(DECODE(substr(month,5,4),2003,count))"2003",
SUM(DECODE(substr(month,5,4),2004,count))"2004",
SUM(DECODE(substr(month,5,4),2005,count))"2005",
SUM(DECODE(substr(month,5,4),2006,count))"2006",
SUM(DECODE(substr(month,5,4),2007,count))"2007",
SUM(DECODE(substr(month,5,4),2008,count))"2008",
SUM(DECODE(substr(month,5,4),2009,count))"2009" FROM TYSON_TEST_TABLE
WHERE substr(month,1,3) = 'MAR'
GROUP BY 'March'
UNION ALL
SELECT 'April' "Month",
SUM(DECODE(substr(month,5,4),2000,count)) "2000",
SUM(DECODE(substr(month,5,4),2001,count))"2001",
SUM(DECODE(substr(month,5,4),2002,count))"2002",
SUM(DECODE(substr(month,5,4),2003,count))"2003",
SUM(DECODE(substr(month,5,4),2004,count))"2004",
SUM(DECODE(substr(month,5,4),2005,count))"2005",
SUM(DECODE(substr(month,5,4),2006,count))"2006",
SUM(DECODE(substr(month,5,4),2007,count))"2007",
SUM(DECODE(substr(month,5,4),2008,count))"2008",
SUM(DECODE(substr(month,5,4),2009,count))"2009" FROM TYSON_TEST_TABLE
WHERE UPPER(substr(month,1,3)) = 'APR'
GROUP BY 'April'
UNION ALL
SELECT 'May' "Month",
SUM(DECODE(substr(month,5,4),2000,count)) "2000",
SUM(DECODE(substr(month,5,4),2001,count))"2001",
SUM(DECODE(substr(month,5,4),2002,count))"2002",
SUM(DECODE(substr(month,5,4),2003,count))"2003",
SUM(DECODE(substr(month,5,4),2004,count))"2004",
SUM(DECODE(substr(month,5,4),2005,count))"2005",
SUM(DECODE(substr(month,5,4),2006,count))"2006",
SUM(DECODE(substr(month,5,4),2007,count))"2007",
SUM(DECODE(substr(month,5,4),2008,count))"2008",
SUM(DECODE(substr(month,5,4),2009,count))"2009" FROM TYSON_TEST_TABLE
WHERE substr(month,1,3) = 'MAY'
GROUP BY 'May'
UNION ALL
SELECT 'June' "Month",
SUM(DECODE(substr(month,5,4),2000,count)) "2000",
SUM(DECODE(substr(month,5,4),2001,count))"2001",
SUM(DECODE(substr(month,5,4),2002,count))"2002",
SUM(DECODE(substr(month,5,4),2003,count))"2003",
SUM(DECODE(substr(month,5,4),2004,count))"2004",
SUM(DECODE(substr(month,5,4),2005,count))"2005",
SUM(DECODE(substr(month,5,4),2006,count))"2006",
SUM(DECODE(substr(month,5,4),2007,count))"2007",
SUM(DECODE(substr(month,5,4),2008,count))"2008",
SUM(DECODE(substr(month,5,4),2009,count))"2009" FROM TYSON_TEST_TABLE
WHERE UPPER(substr(month,1,3)) = 'JUN'
GROUP BY 'June'
UNION ALL
SELECT 'July' "Month",
SUM(DECODE(substr(month,5,4),2000,count)) "2000",
SUM(DECODE(substr(month,5,4),2001,count))"2001",
SUM(DECODE(substr(month,5,4),2002,count))"2002",
SUM(DECODE(substr(month,5,4),2003,count))"2003",
SUM(DECODE(substr(month,5,4),2004,count))"2004",
SUM(DECODE(substr(month,5,4),2005,count))"2005",
SUM(DECODE(substr(month,5,4),2006,count))"2006",
SUM(DECODE(substr(month,5,4),2007,count))"2007",
SUM(DECODE(substr(month,5,4),2008,count))"2008",
SUM(DECODE(substr(month,5,4),2009,count))"2009" FROM TYSON_TEST_TABLE
WHERE substr(month,1,3) = 'JUL'
GROUP BY 'July'
UNION ALL
SELECT 'August' "Month",
SUM(DECODE(substr(month,5,4),2000,count)) "2000",
SUM(DECODE(substr(month,5,4),2001,count))"2001",
SUM(DECODE(substr(month,5,4),2002,count))"2002",
SUM(DECODE(substr(month,5,4),2003,count))"2003",
SUM(DECODE(substr(month,5,4),2004,count))"2004",
SUM(DECODE(substr(month,5,4),2005,count))"2005",
SUM(DECODE(substr(month,5,4),2006,count))"2006",
SUM(DECODE(substr(month,5,4),2007,count))"2007",
SUM(DECODE(substr(month,5,4),2008,count))"2008",
SUM(DECODE(substr(month,5,4),2009,count))"2009" FROM TYSON_TEST_TABLE
WHERE UPPER(substr(month,1,3)) = 'AUG'
GROUP BY 'August'
UNION ALL
SELECT 'September' "Month",
SUM(DECODE(substr(month,5,4),2000,count)) "2000",
SUM(DECODE(substr(month,5,4),2001,count))"2001",
SUM(DECODE(substr(month,5,4),2002,count))"2002",
SUM(DECODE(substr(month,5,4),2003,count))"2003",
SUM(DECODE(substr(month,5,4),2004,count))"2004",
SUM(DECODE(substr(month,5,4),2005,count))"2005",
SUM(DECODE(substr(month,5,4),2006,count))"2006",
SUM(DECODE(substr(month,5,4),2007,count))"2007",
SUM(DECODE(substr(month,5,4),2008,count))"2008",
SUM(DECODE(substr(month,5,4),2009,count))"2009" FROM TYSON_TEST_TABLE
WHERE substr(month,1,3) = 'SEP'
GROUP BY 'September'
UNION ALL
SELECT 'October' "Month",
SUM(DECODE(substr(month,5,4),2000,count)) "2000",
SUM(DECODE(substr(month,5,4),2001,count))"2001",
SUM(DECODE(substr(month,5,4),2002,count))"2002",
SUM(DECODE(substr(month,5,4),2003,count))"2003",
SUM(DECODE(substr(month,5,4),2004,count))"2004",
SUM(DECODE(substr(month,5,4),2005,count))"2005",
SUM(DECODE(substr(month,5,4),2006,count))"2006",
SUM(DECODE(substr(month,5,4),2007,count))"2007",
SUM(DECODE(substr(month,5,4),2008,count))"2008",
SUM(DECODE(substr(month,5,4),2009,count))"2009" FROM TYSON_TEST_TABLE
WHERE UPPER(substr(month,1,3)) = 'OCT'
GROUP BY 'October'
UNION ALL
SELECT 'November' "Month",
SUM(DECODE(substr(month,5,4),2000,count)) "2000",
SUM(DECODE(substr(month,5,4),2001,count))"2001",
SUM(DECODE(substr(month,5,4),2002,count))"2002",
SUM(DECODE(substr(month,5,4),2003,count))"2003",
SUM(DECODE(substr(month,5,4),2004,count))"2004",
SUM(DECODE(substr(month,5,4),2005,count))"2005",
SUM(DECODE(substr(month,5,4),2006,count))"2006",
SUM(DECODE(substr(month,5,4),2007,count))"2007",
SUM(DECODE(substr(month,5,4),2008,count))"2008",
SUM(DECODE(substr(month,5,4),2009,count))"2009" FROM TYSON_TEST_TABLE
WHERE substr(month,1,3) = 'NOV'
GROUP BY 'November'
UNION ALL
SELECT 'December' "Month",
SUM(DECODE(substr(month,5,4),2000,count)) "2000",
SUM(DECODE(substr(month,5,4),2001,count))"2001",
SUM(DECODE(substr(month,5,4),2002,count))"2002",
SUM(DECODE(substr(month,5,4),2003,count))"2003",
SUM(DECODE(substr(month,5,4),2004,count))"2004",
SUM(DECODE(substr(month,5,4),2005,count))"2005",
SUM(DECODE(substr(month,5,4),2006,count))"2006",
SUM(DECODE(substr(month,5,4),2007,count))"2007",
SUM(DECODE(substr(month,5,4),2008,count))"2008",
SUM(DECODE(substr(month,5,4),2009,count))"2009" FROM TYSON_TEST_TABLE
WHERE UPPER(substr(month,1,3)) = 'DEC'
GROUP BY 'December'Edited by: Tyson Jouglet on Mar 17, 2009 9:27 AM -
Generate a report with three table
hi Friends,
i have three table
1-
CREATE TABLE "TRANSACTION_DETAILS"
( "S_NO" NUMBER,
"BILL_NO" NUMBER,
"BILL_DATE" DATE,
"PARTY_NAME" VARCHAR2(1000),
"VEHICLE_NO" VARCHAR2(20),
"ITEM_NAME" VARCHAR2(500),
"DESCRIPTION" VARCHAR2(4000),
"QTY" NUMBER,
"RATE" NUMBER,
"AMOUNT" NUMBER,
CONSTRAINT "TRANSACTION_DETAILS_CON" PRIMARY KEY ("S_NO") ENABLE
2-
CREATE TABLE "LAB_WORK_DTL"
( "ID" NUMBER,
"BILL_NO" NUMBER,
"BILL_DATE" DATE,
"PARTY_NAME" VARCHAR2(1000),
"VEHICLE_NO" VARCHAR2(20),
"WORK_DETAIL" VARCHAR2(4000),
"LABOUR_AMT" NUMBER,
CONSTRAINT "LAB_WORK_DTL_PK" PRIMARY KEY ("ID") ENABLE
3-
CREATE TABLE "JOB_CARD_DETAILS"
( "ID2" NUMBER,
"BILL_NO" NUMBER,
"BILL_DATE" DATE,
"PARTY_NAME" VARCHAR2(1000),
"VEHICLE_NO" VARCHAR2(20),
"AMOUNT" NUMBER,
CONSTRAINT "JOB_CARD_DETAILS_CON" PRIMARY KEY ("ID2") ENABLE
i want to generate a Report of total amout of bill No Like
BILL_NO,BILL_DATE,VEHICLE_NO,SUM(AMOUNT) ,SUM(LABOUR_AMT),SUM(AMOUNT)
I AM USING
select a.BILL_NO,a.BILL_DATE,a.PARTY_NAME,a.VEHICLE_NO,SUM(a.AMOUNT),SUM(b.LABOUR_AMT),SUM(c.AMOUNT) from TRANSACTION_DETAILS a,LAB_WORK_DTL b,JOB_CARD_DETAILS c where a.PARTY_NAME =b.PARTY_NAME and a.PARTY_NAME=c.PARTY_NAME and a.PARTY_NAME =:P38_PARTY_NAME group by a.bill_no,a.BILL_DATE,a.PARTY_NAME,a.VEHICLE_NO,b.bill_no,b.BILL_DATE,b.PARTY_NAME,b.VEHICLE_NO,c.bill_no,c.BILL_DATE,c.PARTY_NAME,c.VEHICLE_NO
ACCORDING TO THIS CODE sum of these column SUM(a.AMOUNT),SUM(b.LABOUR_AMT),SUM(c.AMOUNT) are not correct and there are one more problem if BILL_NO is not in LAB_WORK_DTL JOB_CARD_DETAILS these table then result shows NO DATA FOUND but BILL_NO is avalable in
TRANSACTION_DETAILS this table.
How can i generate this report .
Thanks
Manoj Kaushik1-
CREATE TABLE "TRANSACTION_DETAILS"
( "S_NO" NUMBER,
"BILL_NO" NUMBER,
"BILL_DATE" DATE,
"PARTY_NAME" VARCHAR2(1000),
"VEHICLE_NO" VARCHAR2(20),
"ITEM_NAME" VARCHAR2(500),
"DESCRIPTION" VARCHAR2(4000),
"QTY" NUMBER,
"RATE" NUMBER,
"AMOUNT" NUMBER,
CONSTRAINT "TRANSACTION_DETAILS_CON" PRIMARY KEY ("S_NO") ENABLE
2-
CREATE TABLE "LAB_WORK_DTL"
( "ID" NUMBER,
"BILL_NO" NUMBER,
"BILL_DATE" DATE,
"PARTY_NAME" VARCHAR2(1000),
"VEHICLE_NO" VARCHAR2(20),
"WORK_DETAIL" VARCHAR2(4000),
"LABOUR_AMT" NUMBER,
CONSTRAINT "LAB_WORK_DTL_PK" PRIMARY KEY ("ID") ENABLE
3-
CREATE TABLE "JOB_CARD_DETAILS"
( "ID2" NUMBER,
"BILL_NO" NUMBER,
"BILL_DATE" DATE,
"PARTY_NAME" VARCHAR2(1000),
"VEHICLE_NO" VARCHAR2(20),
"AMOUNT" NUMBER,
CONSTRAINT "JOB_CARD_DETAILS_CON" PRIMARY KEY ("ID2") ENABLE
/Can you define the relation between these three tables. I see in your sql you are joining the three table with the column PARTY_NAME. Is that the proper joining condition? Can you explain that.
And also when you say this
ACCORDING TO THIS CODE sum of these column SUM(a.AMOUNT),SUM(b.LABOUR_AMT),SUM(c.AMOUNT) are not correct What exactly do you mean. What is not correct? Can you show some sample data.
And also it would be of great help to all the people here if you format your SQL and use {noformat}{noformat} tag to preserve the format of your code.
Maybe you are looking for
-
I am using a PXI chassis with 10 6115's and a 6608 counter/timer. I need to use analog triggering on one of the 6115 AI channels. The particular channel will depend on the test setup, so I can't just pick one and hard-wire it. This analog trigger wil
-
Dear All, We have create the two type of Sales Document 1) Regular Production Invoice 2) Job Work Invoice In this case there is no problem for Regular Invoice, but Job Work Invoice does create the excise document number because job work type of invoi
-
Alv report to have 2 lines for column header
How do I set the column header to have 2 lines? eg Week Ending --- 1st line 09.10.2007 --- 2nd line My report always ends up with 2 detail lines when I tried to insert it into the catalog.
-
Can't Restore because Mac won't see ipod
Ipod 2.3 was dropped several feet. (Thanks to my cat.) Could not get a menu to appear. 1. I reset by pushing select and menu buttons. Now all a keep getting is Apple logo, OK to disconnect (Disk Mode) and file with exclamation mark. 2. I trashed itun
-
BOYD ISE Native Supplicant Windows 7
Connects to BYOD-SSID and go through the process, including self registration once everything is done, my windows machine does not automatically selects certificate (TLS) for authentication maunally need to go under proprites and select certificate a