Row and Colum in CR
Hi all experts,
1st table
Doc No Remark
1 Test Unit
2 Reject
2nd table
ExpCode ExpName
1 Acc
2 Hr
3rd table
DocNo ExpCode Amount
1 1 (acc) $10
1 2 (hr) $2
2 1 $3
I have a wrong result in CR.
DocNo ExpCode Amount Remark
1 1 (acc) $10 Test Unit
1 2 (hr) $2 Test Unit
How to display a report as below???
Doc Acc hr Remark
1 $ 10 $ 2 Test Unit
All the table have a link together.
For more clear http://www.flickr.com/photos/31682762@N08/?saved=1
Thanks
Danny
Edited by: Danny Gan on Nov 8, 2008 7:09 PM
Hello Danny,
I recommend to post this query to the [Crystal Reports Design|SAP Crystal Reports; forum.
This forum is dedicated to topics related to the creation and design of Crystal Report documents. This includes topics such as database connectivity, parameters and parameter prompting, report formulas, record selection formulas, charting, sorting, grouping, totaling, printing, and exporting but also installation and registering.
It is monitored by qualified technicians and you will get a faster response there.
Also, all Crystal Reports Design queries remain in one place and thus can be easily searched in one place.
Best regards,
Falk
Similar Messages
-
Interchanging rows and colums of internal table
Hi all,
I have one requirement to interchange the rows and colums of 3X3 internal table.(internal table contains 3 rows and 3 columns ). In the new internal table, I have to display the rows as column values and column values as rows..
It's urgently. Kindly send me the sample code for the same.
Thanks in advance.
Ramesh.Hi ramesh,
it is not possible to create a 'transponed' internal table if the (2) fields in your table arte or different type. Thus each row of the new table would be of different type.
The quick solution for display is
field-symbols:
<any> type any.
do.
loop at itab.
assign component sy-index of structure itab to <any>.
if sy-subrc <> 0.
* not assigned means no more components
exit.
endif.
write <any>.
endloop.
if sy-subrc = 0.
* start a new line for the next field
write /.
else.
* all done
exit.
endif.
enddo.
If you really want to store the values in transposes table, you could do so by storing their references in fields of type REF TO DATA because this is good for any data.
possible usage:
types:
ty_t_reftab type standard table of ref to data with default key,
ty_t_transposed type standard table of ty_t_reftab with default key.
data:
lt_transposed type ty_t_transposed,
lv_ref type ref to data.
field-symbols:
<any> type any,
<transposed> type line of ty_t_transposed
do.
loop at itab.
at first.
append initial line to lt_transposed assigning <transposed>.
endat.
assign component sy-index of structure itab to <any>.
if sy-subrc <> 0.
* not assigned means no more components
exit.
endif.
get refernce of <any> into lv_ref.
append lv_ref to <transposed>.
endloop.
if sy-subrc <> 0.
* all done
exit.
endif.
enddo.
read table
Sorry, don't know what it's good for. If you need the values, access them like
loop at lt_transposed assigning <transposed>.
loop at <transposed> assigning <any>.
write <any>->*. "Hope that works with WRITE
endloop.
endloop.
Regards,
Clemens -
A query with row and colum numbers?
Hello,
i have my java code divided into if conditions and in each if clause i need to select a certain field from a table. Is it somehow possible to select a table field which for example is in the third row and fifth column? So basically, how to select a certain matrix element?
Thank you:)
Edited by: user10956166 on Apr 5, 2009 6:09 AMHi,
Assuming you have a table called Distance:
Connected to Oracle Database 10g Express Edition Release 10.2.0.1.0
Connected as hr
SQL> DESCRIBE DISTANCE;
Name Type Nullable Default Comments
LINN VARCHAR2(30) Y
TALLINN NUMBER Y
TARTU NUMBER Y
P2RNU NUMBER Y
SQL> select * from distance;
LINN TALLINN TARTU P2RNU
TALLINN 0 186 128
TARTU 186 0 174
P2RNU 128 174 0
SQL>
SQL> SET SERVEROUTPUT ON
SQL> DECLARE
2 v_sql VARCHAR2(4000);
3 v_column_name VARCHAR2(30):= 'TARTU';
4 v_to VARCHAR2(30):= 'P2RNU';
5 v_distance NUMBER;
6 BEGIN
7 v_sql := 'SELECT ' || v_column_name || ' FROM DISTANCE d WHERE d.LINN = ''' || v_to || '''';
8 EXECUTE IMMEDIATE v_sql
9 INTO v_distance;
10
11 dbms_output.put_line(v_distance);
12
13 EXCEPTION
14 WHEN OTHERS THEN
15 dbms_output.put_line(SQLERRM);
16 END;
17 /
174
PL/SQL procedure successfully completed
SQL> Regards, -
I have a row that states the cost centre and then a column that states a percentage. I then want another row that states a cost centre and then another column that states a percentage. However I cant get these to follow on from each other - I have to have 2 rows and two columns. In earlier versions of BEX (I'm on BI7) I could use the tabular function. Is there anything I can do in this version?
How are you defining the structure? You need to right click the structure and then choose new selection and then drag your cost center char into it and restrict it.
Hope this helps... -
How to make JTextArea rows and colums auto-increase?
My test program is attached as below.
The JTextArea can not enlarge itself when the text in a line is too long that some characters are hidden.When rows grows too many will also see the problem.
How can I make the rows and columns auto-increase to meet the width or height of my text?
-----My Test Demo----
import java.awt.*;
import java.awt.event.*;
import java.awt.color.*;
import javax.swing.*;
public class Test{
public static void main(String[] args){
JFrame f = new JFrame("My Editor");
Container ct = f.getContentPane();
JPanel jp = new JPanel();
JTextArea ta = new JTextArea("My software.",10,30);
JTextArea ta2 = new JTextArea("Hello,World!",10,30);
jp.setPreferredSize(new Dimension(400,400));
jp.setBackground(Color.green);
jp.setLayout(null);
jp.add(ta);
ta.setBounds(100,100,150,200);
ta.setOpaque(false);
ta.setBorder(null);
jp.add(ta2);
ta2.setBounds(100,120,150,200);
ta2.setOpaque(false);
ta2.setBorder(null);
// jp.addMouseListener(new MyMouseListener());
ct.setLayout(new BorderLayout());
ct.add(jp,BorderLayout.CENTER);
f.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent evt) {
System.exit(0);
f.setVisible(true);
f.pack();This link to the Java Swing tutorial will show you how to add the JTextArea to a JScrollPane:
http://java.sun.com/docs/books/tutorial/uiswing/components/simpletext.html#textarea
It appears to me that you are new to Swing so you should read the entire tutorial "Creating a GUI using JFC/Swing" before asking any more question. The tutorial can be read online or downloaded from:
http://java.sun.com/docs/books/tutorial/
The download link for all tutorials on this page is near the bottom. -
how do i make buttons in rows an colums?
like the dialing-path of a telephone? 3x4?
thanks[url http://java.sun.com/docs/books/tutorial/uiswing/layout/visual.html]How to Use Layout Managers
-
Single Row and colum resultset
Hi,
I have a scenarios like this,
VIEW_A;
col1 number,
col2 number,
col3 clob.
I need to create an sql which will get me the list of col3 values based on the filter values on col1 and col2.
The atual need is i need the col3 resultser to be concatenated into a single row and column value like
RESULT SET:
value1
Val2
Val3
what i need is
Val1 ||' - '||Val2||' - '||Val3
into a single clob so that i get the result set instead of iterating and concating the same manuall using plsql.
Help on this
Thanks in Advance,
Ramesh.RIt looks like you are after what's called "String Aggregation."
Check out this link as it highlights many techniques:
String Aggregation Techniques
An Re: Concat rows values into single column of Michael's
A Re: Multiple rows into a single line in 'Single Column Table' followed by Billy's reason on doing a stragg in the first place.
In addition 11gR2 has the LISTAGG function. -
How to check all rows and colums runtime executing BW query
Hi Guys,
I have a BW query with many calculated key figures. while execute this query the performance is really bad/slow. I need to know in which object the query is taking long time, is there any table or anything to get this information. I have looked all the query perfomation stuffs, everything looks good, just want to figure out what is making OLAP runtime longer.
Thanks,
KrisHi Krish,
You can not check the time taken by any particular key figure/ characteristics.
However, if you really want to reduce the time, you can create aggregates proposed by SAP based on your query.
First go to RSRT, place your query and click on "Execute + Debug".
Then select "Display Aggregate Found" under Aggs and "Display Statistics Data" under Others in the "Debug Options".
Now it will show you how you should create your aggregate based on different objects so that the total query execution time will be less.
Also after clicking on BACK button you can check the time taken by each event during Query execution.
Hope it helps.
Thanks,
Subrat. -
How can we devide a window into rows and coloumns
hi
i would like to devide a window into 3 rows and 2 coloumns and in second coloumn again it will devide into to 3 rows and 2 colomns.
so in that window if we create template how it is?
i need step by step procesing.
pls give me answerHi Syamala,
First create a new template for the window. Name it and give the width of that template. Then on the right pane click on template tab. Then you will find details button. Click on that. There you can create rows and colums to that template. There you will find reference, from, to, height, width options. Under reference give some relevant name to the row , from, to ( say 1 (from) 1 (to) for the first row , 2 2 for second row , 3 3 for third row ). under height column you mention the required height, then units for that and under the width option u mention the width of first column and its unit. Beside that mention the width of the second column and its unit. then you will get a window that gets divided into 3 rows and 2 columns. Repeat the same process for the second column where u can divide it into 3 rows and 2 columns again. -
Suppress Overall result (both rows and columns side and its data)
Hello all,
I need to do some settings in BEx Query Designer, so that In BEx Analyzer, I don't see 'overall result' both on 'rows' and 'column' sides
This is what I have done so far
In 'rows' section, Properties of my KF (no. Products) then 'calculation' tab 'calculate result as'=Suppress result
This way in BEx Analyzer I don't see the FIGURES/DATA for 'Result' and 'overall result' BUT 'result' and 'overall result' still exist both on rows and colum side even if there are not figures in them.
Is there any property in BEx Designer so that I don't see 'overall result' at all
Best regards
Ahmadthanks for responding
selecting a characteristic, properties, Display tab, Result lines: Always Suppress
with this I don't see 'result'
but 'overall result' result exist both on 'rows' and 'column' side alongwith its data.
If I combine the above with this: selecting KF, properties, calucations, Calculate result as: Suppress result
then
I don't see the data in 'overall result' BUT 'overall result' still exist both on rows and column sides
any setting so that 'overall result' completely vanishes
Best regards
Ahsan -
Doubt on Rows and Coloums in BEx Query Designer.
Hello, Experts.
I have a Doubt in BEx Query Designer.
In the Rows I have a Fiscal year Period, if the user enters the Fiscal year period for e.g. : 001/2006 .
in the columns i have forecast for the Fiscal year period which user entered ( 001/2006 ), and we have another column pervious ( Prior )fiscal year period ( 001/2005 ).
My Questions is , as we are Restricting with 001/2006 will the query retrieve the values of 2005 or not?
Thanks in Advance .
Sharpyes i am Doing Offest.
I moved this Fiscal year Period to Free char, and i Restricted with Pervious Fical Year period and Fical year period . it worked. but
when i kept this in Rows and deleted Previous Fiscal Year period . it is displaying blanks. in prior years forecast.
is it because i am Ristricting it to only fical year period which user entered
Colums--> Forcast ( User Entered year ) Prior year
Rows
Fiscal year period
Fiscal year period( user enterd )
Thanks -
Make Select rows and columns as read only in Table Control
Hi All,
I would like to know how to make certain cells in a Table Control as display only.
Table control should look like-(Those in bold are read only or in display mode)
<b>Name1 Idno1 </b> Address1
<b>Name2 Idno2</b> Address2
<b>Name3 Idno3 </b> Address3
<b>Name4 Idno4</b> Address4
(Blank row to enter name idno and address)
(Blank row to enter name idno and address)
(Blank row to enter name idno and address)
My table control should display all the above fields the way it is above of which first two colums and 4 rows should be read only,and the rest of the empty rows in the TC should be in change mode.i.e it must have provision to add new rows but not change the first two columns of existing rows.
In short I am looking at solution to hide particular no of rows and columns and <b>not the entire column.</b>In the PBO of the table control loop. just write these statements
NAME and IDNO considering the fields on the screen.
and WA_TAB is the table work area being passed to the table control to display the rows.
if not WA_TAB-NAME is initial and not WA_TAB-IDNO is initial.
loop at screen.
if screen-name = 'NAME' or
screen-name = 'IDNO'.
screen-input = <b>0</b>.
modify screen.
endif.
endloop.
endif.
which means that the fields are disabled only if NAME and IDNO are not initial.
Regards
- Gopi -
Data format in rows and columns
I have a table and have the following data,I need to transpose int he required form.
The number of rows are dynamic and i dont want decode and string concatenation.
1 Tamil 1 1000
2 English 2 2000
3 Hindi 3 3000
4 German 4 4000
5 Telugu 5 5000
o/p
tamil english hindi german telegu
1 2 3 4 5
1000 2000 3000 4000 5000
The first column values will become the heading and all other corresponsing rows will become the column values
Kindly reply ,,Thaks in advancehow about this
assuming you've implemented the stragg function (see ask tom if not)
of course you can always use sys connect by path to roll the column values up into a single entry.
anyway use stragg or sys connect by path to get all the colum values into a single entry seperated by commas
col1 col2 col3
Tamil,English,Hindi,German,Telugu 1,2,3,4,5 1000,2000,3000,4000,5000
next I used the model clause to take the three columns one row construct
and change it to one column 3 rows so now the result set looks like this
col1
Tamil,English,Hindi,German,Telugu
1,2,3,4,5
1000,2000,3000,4000,5000
finally I appended a comma to the end of each row and parsed through it pulling out the text between columns
here is the whole thing...... again for this to work you need to have implemented the stragg function else you'll have to change to sys connect by path.
select col4 StraggedValues,
substr (col4, 1, instr(col4,',',1) -1) col1,
substr (col4, instr(col4,',',1)+1, instr(col4,',',1,2) - instr(col4,',',1)-1) col2,
substr (col4, instr(col4,',',1,2)+1, instr(col4,',',1,3) - instr(col4,',',1,2)-1) col3,
substr (col4, instr(col4,',',1,3)+1, instr(col4,',',1,4) - instr(col4,',',1,3)-1) col4,
substr (col4, instr(col4,',',1,4)+1, instr(col4,',',1,5) - instr(col4,',',1,4)-1) col5,
substr (col4, instr(col4,',',1,5)+1, instr(col4,',',1,6) - instr(col4,',',1,5)-1) col6,
substr (col4, instr(col4,',',1,6)+1, instr(col4,',',1,7) - instr(col4,',',1,6)-1) col7
from (
with a as
select stragg(col1) strCol1, stragg(col2) strCol2, stragg(col3) strCol3 from
select 1 rn, 'Tamil' col1, 1 col2, 1000 col3 from dual union
select 2 rn, 'English' col1, 2 col2, 2000 col3 from dual union
select 3 rn, 'Hindi' col1, 3 col2, 3000 col3 from dual union
select 4 rn, 'German' col1, 4 col2, 4000 col3 from dual union
select 5 rn, 'Telugu' col1, 5 col2, 5000 col3 from dual
select col4||',' col4 from a
model
return updated rows
dimension by (0 d)
measures (strcol1, strcol2, strcol3, 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' col4)
rules iterate (3)
col4[iteration_number + 1] = case iteration_number
when 0 then strcol1[0]
when 1 then strcol2[0]
when 2 then strcol3[0]
else null end
)) b -
How can I print row and column headings?
In AW6 I was able to select Appleworks in the print window and check if I wanted to print row and/or column headings. I have not been able to find how to do this in Numbers. Can anyone tell me how?
PacoPaco wrote:
I have not been able to find how to do this in Numbers.
Perfectly logical, the feature is unavailable.
Workaround:
Use a row header and a column header to mimic the missing feature.
In cell B1 I entered
=CHAR(CODE("A")-1+COLUMN())
and applied fill to the right
CAUTION, this formula is OK only from colum B thru column Z.
In cell A2 I entered
=ROW()
and applied Fill Down
Then convert column A as header one
convert row A as header one.
Yvan KOENIG (from FRANCE dimanche 22 février 2009 12:28:34) -
Adding Rows and Columns to a table depending requirements
Hi all,
I have created a table with one row and 2 columns of a table. My client requested adding form one to 3 columns of the right table and rows as well, depending business requirements.
I can add coding add columns on the right, but I cannot add rows because the columns dynamic.
I tried to write the coding for adding rows but it is not successful. Please help.
event : click - add colum button
for (var i = 0; i < form1.page1.Table1._Row1.count; i++){
var newrow = form1.page1.Table1.resolveNode("Row1[" + i + "]");
var newrow2 = form1.page1.Table1.resolveNode("HeaderRow[" + i + "]");
newrow._Col3D.addInstance(0);
newrow2._Col3D.addInstance(0);
i also published my file for your reviewing.
https://workspaces.acrobat.com/?d=xcgcfby89J-IHenn-8xeaQ
Thank you very much,
CindyWhen you are adding instances it uses the default properties of the object...
If its hidden as a default value in the form and you add an instance, the new instance will be hidden..
So if you have 3 columns in your default row and trying to add an instance withthe 5 columns it will only add a row with 3 columns..
If you want to add the columns to the table, you must add the column to each new row instance.
E.g.:
var intCount = xfa.resolveNode("page1.table1.Row1").instanceManager.count;
form1.page1.table1._Row1.addInstance(1);
xfa.resolveNode("page1.table1.Row1[" + intCount.toString() + "].Col3D").addInstance(1);
Maybe you are looking for
-
How to display a modal message while processing in a thread.
I have difficulty in display a modal dialog while in processing in a background. I have created the following class. package fedex.screen.component; import java.awt.*; // This infobox is a modal dialog which display static text and stay // on screen
-
Has anyone had an issue with FindText not scrolling in Acrobat X?
I wrote some code for Acrobat 8 using C# that used AcroAVDoc 's FindText method to search for a particular phrase so that I may find the page the text it was on and its location on the page so that I can insert an image at that location. This worked
-
No ocijdbc10 in java.library.path - can not figure out
I am using Eclipse 3.2 and connecting to an Oracle 10g server. All of my projects were working just fine. BUT, I needed to move the java code and directories from one server to another becuase the other server was retiring. I recreated all my project
-
Object Inheritance problem between projects
Hi, I have two projects lets say project1 and project2. From project1 I instanciate processes of project2 as subflows. In addition I have one bpm object in project1 (lets say object1) that inherits from a bpm object in proyect2 (lets say object2). So
-
One Service Interface with SOAP (sync/async)?
Hi experts, Iu2019m configuring the following scenario SOAP -> PI 7.1 -> ABAP proxies. My Service Interface has four different operations, 1 is sync and 3 are async. I want to use SOAP adapter as I donu2019t need to use WS-RM and WS-A of WS adapter.