Problem in autogenerate column
Dear all,
I have set Vendor ID column as autogenerate in MS access, while in form i m not inserting value of Vendor ID. Because it is autogenerate column. But form does not post record. How i can solve it.
Thanks in advance
Hii
I am going to make one application which has developed in some other application.. problem is i have to put some data in first two column of row n in the last column i have to put image... image will be one for every 5 row of data.... so hight of last column should be equle to 5 column height...... how can we do this
Thanks & Regards
Similar Messages
-
Problem with checkbox column in matrix
Hello.
I have a little problem with checkbox column in matrix.
Column is binded to the UserData.
It has ValOn="Y", ValOff="N".
I use C++. It is wird problem. In matrix I have 10 columns - scrollbar role and if You want see checkbox column, You must role to the right. If this column is on the screen, and I use:
checkcell->PutChecked(VARIANT_TRUE);
then the checkbox is cheched, and if the checkbox isn`t on the screen and I use this comment - it nothing happening.
I tried to use ValOn="Y", PutChecked...
The problem i solved if the column is on the screen - if the column is first in matrix or second, but if it`s last I have a big problem.
My column with checkbox is not editable, but I tried to make it editable, check it, and then make it uneditable - the same efect.
How can I solve it ?
Sorry for my english.
Kamil WydraHello Kamil,
I am not sure about your problem, but here is an example of how to use checkbox in UI API.
First, create the matrix with checkbox column in Screen painter, and the output is an xml file, like this. Type as 121 indicates that it is a check box.
- <column AffectsFormMode="0" backcolor="-1" description="" disp_desc="0" editable="0" right_just="0" title="Rented" type="121" uid="Rented" val_off="N" val_on="Y" visible="1" width="41">
<databind alias="U_RENTED" databound="1" table="@VIDS" />
<ExtendedObject />
Second, bind the column to table from DB. This is a bug of 2004 Screen Painter, so if you are using 2005 Screen Painter, there is no problem.
Third, when you open the form, you can check and uncheck the cell.
BTW, please set the editable of the column to true.
Hope this helps,
Nick -
WebRowSet Problem with database columns defined as TEXT??
Hello,
Can somebody help me on this subject. (http://forum.java.sun.com/thread.jspa?forumID=31&threadID=778586)
I have the same problem with TEXT column when I try to populate the WebRowset.
Thanks,
StephaneOK,
I change my postgresql driver for the lastest version (postgresql-8.2-506.jdbc3.jar) for JVM 1.5 and it's find...
This driver support the javax.sql.
St�phane
Edited by: Borealis on Oct 15, 2007 12:43 PM -
Problems using "Edit Column Widths" feature in List View component
Hello. I'm using a list view component (Xcelsius 4.5 Professional) to display a simple table of text from Excel. I want to adjust the width of the component colums so that all of them fit on the screen at the same time- regardless of how wide they are in the excel columns. The problem is the columns in excel are of variable length; I have no way to predict how wide they will be. The list view component always defaults to the widest column(s) so it ends up pushing some of the columns to the right and I then have to use the scroll bar to see them. I thought the "edit column widths" would allow me to force the column widths in the component (potentially truncating some of the columns), but it does not work that way.
How is the "edit column width" feature supposed to work? What does one enter in the value for each label? Are the units in pixels? When I start entering values I get all kinds of strange behavior...This was a great place for me to start
Thank you
I took profdant139's suggestions a bit further as my real goal was to have the "Document column" narrower. The goal to be able to see all the other document info that was usually hidden way out to the right
To achieve my results I right clicked in the upper bar with the column names and chose from the drop down box "comments" column (as suggested). I then dragged it to the far right. This pushed all the other columns over.
In the end of the day I ended up adding "Size" and "Date modified" columns as well to get my desired results.
Remember one can move different columns around to be in the order you need by clicking on the column to get it active and then left click and drag it to where you want
Another great thing is that by default (Using Mavericks) the date modified, opened,created columns have date and time. One can shrink them down to xx/xx/xx format by manually adjusting the column width like one does in Excel - click on column separator up top and drag
Once all that is done, at least on my box, I closed it out and opened up a new finder window and everything was as I wanted.
Thank you for the help from the above helper to get me here -
Help! Problem Updating Blob Columns
Good day
Please i have problems updating Blob columns storing images and doc files. can someone put me through the way out hassle free
Thank You
God Bless U all
FemiI keep geting this error
java.sql.SQLException: ORA-01729: database link name expected
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:216)
at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:955)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1169)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3285)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3368)
when ever i try to update The Blob colum with a Blob object retrieved by resultset.getBlob from another Blob column of a different table.
Blob b = rset.getBlob(1);
String x = (String)jComboBox2.getSelectedItem();
ps=c.prepareStatement("UPDATE PROPERTIES SET "+x+" = "+b+" WHERE NAME = ?");
ps.setString(1, (String)jComboBox1.getSelectedItem());
System.out.println("success");
ps.executeUpdate(); -
Problem with checkbox column in ALV popup (ABAP)
Hi, the problem is: I've created the code below for maintaining a popup with an ALV table inside. One of the column is a checkbox field. When I run first time the popup, it run well, when I clode the popup window and then I run for second time the popup, i see all the columns except those with the checkbox. Someone else have encountered the same proble, if yes someone could me explain that? Here's the code:
method WDDOINIT .
data: l_ref_cmp_usage type ref to if_wd_component_usage.
l_ref_cmp_usage = wd_This->wd_CpUse_ALV( ).
if l_ref_cmp_usage->has_active_component( ) is initial.
l_ref_cmp_usage->create_component( ).
endif.
DATA: l_ref_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .
l_ref_INTERFACECONTROLLER = wd_This->wd_CpIfc_ALV( ).
data:
l_VALUE type ref to Cl_Salv_Wd_Config_Table.
data: l_tabset type ref to IF_Salv_Wd_Table_SETTINGS.
l_VALUE = l_ref_INTERFACECONTROLLER->Get_Model( ).
l_tabset ?= l_value.
l_tabset->set_read_only( abap_false ).
l_tabset->SET_VISIBLE_ROW_COUNT( 15 ).
l_tabset->set_width( '500' ).
l_tabset->SET_DESIGN( VALUE = CL_WD_TABLE=>E_DESIGN-ALTERNATING ).
data:
lr_std_functions type ref to if_salv_wd_std_functions,
l_table type ref to if_salv_wd_function_settings.
lr_std_functions ?= l_value.
lr_std_functions->SET_EXPORT_ALLOWED( Abap_false ).
lr_std_functions->SET_VIEW_LIST_ALLOWED( Abap_false ).
lr_std_functions->SET_PDF_ALLOWED( Abap_false ).
lr_std_functions->SET_DIALOG_SETTINGS_ALLOWED( Abap_off ).
lr_std_functions->SET_DIALOG_SETTINGS_AS_POPUP( Abap_off ).
lr_std_functions->SET_DISPLAY_SETTINGS_ALLOWED( abap_off ).
lr_std_functions->SET_EDIT_APPEND_ROWS_ALLOWED( abap_off ).
lr_std_functions->SET_EDIT_APPEND_ROW_ALLOWED( abap_off ).
lr_std_functions->SET_EDIT_CHECK_AVAILABLE( abap_off ).
lr_std_functions->SET_EDIT_DELETE_ROW_ALLOWED( abap_off ).
lr_std_functions->SET_EDIT_INSERT_ROWS_ALLOWED( abap_off ).
lr_std_functions->SET_EDIT_INSERT_ROW_ALLOWED( abap_off ).
lr_std_functions->SET_PDF_ALLOWED( abap_off ).
data: lr_column type ref to cl_salv_wd_column.
instancing check box
data: lr_checkbox type ref to cl_salv_wd_uie_checkbox.
create object lr_checkbox
exporting
checked_fieldname = 'CHECK'.
lr_checkbox->set_read_only( value = abap_false ).
lr_column = l_value->if_salv_wd_column_settings~get_column( 'CHECK' ).
lr_column->set_cell_editor( lr_checkbox ).
endmethod.
Thanks for answers.This is just some guessing - but try and set a breakpoint in the wddoinit of your popup. I'm betting that it isn't being executed on the second call because the original instance is reused.
Take a look at the properties on the view for the popup. You might try changing the lifetime of the view from "framework controlled" to "when visible". -
Problem with Stacked Columns in Business Graphics
Hi,
Has anyone used the stacked columns chart type in business graphics? Am facing a problem with this.
I am using the SimpleGraphics example demo with 2 dataseries, the values ranging from 0-10. It works fine if the chart type is Columns (this is default). When I change the chart type to stacked_columns, the graph goes for a toss. The y-axis range automatically changes to 0-1 (values as 0, 0.2, 0.4 ... 1.0) and it does not display stacked columns as expected.
Is there any specific property(s) that need to be set for this chart type?
Appreciate any quick response.
cheers,
VittalHi friend,
See the link below it is having the solution of hiding the columns in smart forms
Hide table columns in smart form?
Create a table to display your values with 12 col and hide the columns based on the idea provided in the link above.
I think this will solve your issue if you still have queries please revert back to me i will help you.
Thanks,
Sri Hari -
OBIEE 11g - serious problem when rotating columns into "table prompt" area
Hi, I'm hitting an OBIEE 11g issue that's causing huge problems on reports. Essentially, the problem is this - if I dump all the columns of a query to a table, everything looks fine. But if I rotate one of the columns into the "table prompts" area, OBIEE is actually resubmitting a WRONG query. The query format changes from:
WITH
SAWITH0 AS (select sum(T38965.ORIGINAL_BUDGET) as c1,
T12637.ORG_ID_DESC as c2
from
GL_ANALYTICS.DIM_ACCOUNT T12582,
GL_ANALYTICS.DIM_ORG T12637,
GL_ANALYTICS.DIM_ACCOUNTING_PERIOD T12597,
GL_ANALYTICS.FACT_LEDGER T38965 / FACT_LEDGER_ytd */*
where ( T12582.ACCOUNT_KEY = T38965.ACCOUNT_KEY and T12582.STATEMENT_TYPE_CODE = 'Income Statement' and T12597.ACCOUNTING_PERIOD = 11 and T12597.FISCAL_YEAR = T38965.FISCAL_YEAR and T12597.FISCAL_YEAR = 2012 and T12637.ORG_KEY = T38965.ORG_KEY and T38965.FISCAL_YEAR = 2012 and (T12637.DEPARTMENT_CODE_DESC in ('D0200 - Arts Administration', 'D0206 - Film Studies')) and T12597.ACCOUNTING_PERIOD >= T38965.ACCOUNTING_PERIOD )
group by T12637.ORG_ID_DESC)
select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3 from ( select distinct 0 as c1,
D1.c2 as c2,
D1.c1 as c3
from
SAWITH0 D1
order by c2 ) D1 where rownum <= 65001
and changes to:
WITH
SAWITH0 AS (select distinct T12637.ORG_ID_DESC as c1
from
GL_ANALYTICS.DIM_ACCOUNT T12582,
GL_ANALYTICS.DIM_ORG T12637,
GL_ANALYTICS.DIM_ACCOUNTING_PERIOD T12597,
GL_ANALYTICS.FACT_LEDGER T38927 / FACT_LEDGER_period */*
where ( T12582.ACCOUNT_KEY = T38927.ACCOUNT_KEY and T12597.ACCOUNTING_PERIOD = T38927.ACCOUNTING_PERIOD and T12597.FISCAL_YEAR = T38927.FISCAL_YEAR and T12582.STATEMENT_TYPE_CODE = 'Income Statement' and T12597.ACCOUNTING_PERIOD = 11 and T12597.FISCAL_YEAR = 2012 and T12637.ORG_KEY = T38927.ORG_KEY and T38927.ACCOUNTING_PERIOD = 11 and T38927.FISCAL_YEAR = 2012 and (T12637.DEPARTMENT_CODE_DESC in ('D0200 - Arts Administration', 'D0206 - Film Studies')) ) ),
SAWITH1 AS (select sum(T38965.ORIGINAL_BUDGET) as c1,
T12637.ORG_ID_DESC as c2
from
GL_ANALYTICS.DIM_ACCOUNT T12582,
GL_ANALYTICS.DIM_ORG T12637,
GL_ANALYTICS.DIM_ACCOUNTING_PERIOD T12597,
GL_ANALYTICS.FACT_LEDGER T38965 / FACT_LEDGER_ytd */*
where ( T12582.ACCOUNT_KEY = T38965.ACCOUNT_KEY and T12582.STATEMENT_TYPE_CODE = 'Income Statement' and T12597.ACCOUNTING_PERIOD = 11 and T12597.FISCAL_YEAR = T38965.FISCAL_YEAR and T12597.FISCAL_YEAR = 2012 and T12637.ORG_KEY = T38965.ORG_KEY and T38965.FISCAL_YEAR = 2012 and (T12637.DEPARTMENT_CODE_DESC in ('D0200 - Arts Administration', 'D0206 - Film Studies')) and T12597.ACCOUNTING_PERIOD >= T38965.ACCOUNTING_PERIOD )
group by T12637.ORG_ID_DESC),
SAWITH2 AS ((select distinct 0 as c1,
D1.c1 as c2,
cast(NULL as DOUBLE PRECISION ) as c3
from
SAWITH0 D1
union all
select distinct 1 as c1,
D1.c2 as c2,
D1.c1 as c3
from
SAWITH1 D1))
select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3 from ( select D1.c1 as c1,
D1.c2 as c2,
D1.c3 as c3
from
SAWITH2 D1
order by c1, c2 ) D1 where rownum <= 65001
I completely do not understand what is going on here. The second query has a ton of problems. First off, it's doing some type of UNION operation - no idea why it's doing that. And the real problem is that it's unioning results from a different fact table, FACT_LEDGER_period instead of FACT_LEDGER_ytd, which is completely screwing up our results.
Long and short, I simply don't understand at all why the query should change just from rotating a column up into the table prompt area.
Any ideas?
Thanks,
ScottHi Scott,
I see the query to be valid with each CTE doing the following Jobs.....
1. I understand that this particular query is being generated to get the unique "ORG_ID_DESC " to fill up the table prompts.
SAWITH0 AS (select distinct T12637.ORG_ID_DESC as c1
from
GL_ANALYTICS.DIM_ACCOUNT T12582,
GL_ANALYTICS.DIM_ORG T12637,
GL_ANALYTICS.DIM_ACCOUNTING_PERIOD T12597,
GL_ANALYTICS.FACT_LEDGER T38927 / FACT_LEDGER_period /
where ( T12582.ACCOUNT_KEY = T38927.ACCOUNT_KEY and T12597.ACCOUNTING_PERIOD = T38927.ACCOUNTING_PERIOD and T12597.FISCAL_YEAR = T38927.FISCAL_YEAR and T12582.STATEMENT_TYPE_CODE = 'Income Statement' and T12597.ACCOUNTING_PERIOD = 11 and T12597.FISCAL_YEAR = 2012 and T12637.ORG_KEY = T38927.ORG_KEY and T38927.ACCOUNTING_PERIOD = 11 and T38927.FISCAL_YEAR = 2012 and (T12637.DEPARTMENT_CODE_DESC in ('D0200 - Arts Administration', 'D0206 - Film Studies')) ) )
2. This particular query is to get each prompt value and its corresponding data
SAWITH1 AS (select sum(T38965.ORIGINAL_BUDGET) as c1,
T12637.ORG_ID_DESC as c2
from
GL_ANALYTICS.DIM_ACCOUNT T12582,
GL_ANALYTICS.DIM_ORG T12637,
GL_ANALYTICS.DIM_ACCOUNTING_PERIOD T12597,
GL_ANALYTICS.FACT_LEDGER T38965 / FACT_LEDGER_ytd /
where ( T12582.ACCOUNT_KEY = T38965.ACCOUNT_KEY and T12582.STATEMENT_TYPE_CODE = 'Income Statement' and T12597.ACCOUNTING_PERIOD = 11 and T12597.FISCAL_YEAR = T38965.FISCAL_YEAR and T12597.FISCAL_YEAR = 2012 and T12637.ORG_KEY = T38965.ORG_KEY and T38965.FISCAL_YEAR = 2012 and (T12637.DEPARTMENT_CODE_DESC in ('D0200 - Arts Administration', 'D0206 - Film Studies')) and T12597.ACCOUNTING_PERIOD >= T38965.ACCOUNTING_PERIOD )
group by T12637.ORG_ID_DESC)
3. This particular query, I understand is to get the following data (Sample data) relating the prompts and their corresponding data
column (c1) ;column (c2 ie ORG_ID_DESC); column(C3 ie sum(T38965.ORIGINAL_BUDGET))
0; ORG_ID_DESC1; NULL
1; ORG_ID_DESC1;10
0; ORG_ID_DESC2;NULL
1; ORG_ID_DESC2;40
0; ORG_ID_DESC3;NULL
1; ORG_ID_DESC3;29.8
SAWITH2 AS ((select distinct 0 as c1,
D1.c1 as c2,
cast(NULL as DOUBLE PRECISION ) as c3
from
SAWITH0 D1
union all
select distinct 1 as c1,
D1.c2 as c2,
D1.c1 as c3
from
SAWITH1 D1))
4. The last select statement does nothing but selecting the needed data which later gets arranged in the format as needed by the OBIPS
select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3 from ( select D1.c1 as c1,
D1.c2 as c2,
D1.c3 as c3
from
SAWITH2 D1
order by c1, c2 ) D1 where rownum <= 65001
Now, on the table being chosen for picking up "ORG_ID_DESC" might be pretty much depending on the best source available as you know. If you would like BI Server to pick up any particular source, probably you could try the "LTS Priority Group" way.
Hope I was clear and it helps.
Thank you,
Dhar -
ALV TO EXCEL PROBLEM? ( 90 COLUMNS ALV CAN'T EXPORT TO EXCEL NORMALLY)
HI ABAPERS,
anyone have a alv that have over 90 columns and want to export to excel have experienced abnormal formating (like the header row show only up to 60 column and the rest show up in next row) and the data show in separate line.
anyway can have a better format?
also after 90 columns show up on alv, it can't show anymore except modify the layout in run time.
can we do something before that?
thanks & regards,
HOWARDHi HOWARD,
My Report ouput having more than 90 columns in ALV, while downloading data from ALV to Excel sheet am facing alignment problem. (ie) the output column > 66 are appearing in next line of the excel sheet leads to improper alignment.
Pls give me a solution as u had already come across this issue..
Thank & Regards,
Paramesh. -
Problem with dynamic columns in smartforms.
Dear SDN Experts,
I have a requirement in smartforms for dynamic columns.
i have used template with 10 columns, So from these 10 columns,Columns may vary monthly MIN 2 to MAX 10 depending on
readings with them for that month.
i cannot fix column headings also,Because headings also changes dynamically.
So Problem is if there is no data in columns,Columns is displayng empty.
For EX: In this month i have 2 columns data remaining all columns is displaying empty boxes.
Please suggest me a solution is this posible in smartforms if i use table also.
<removed by moderator>
Regrds,
MNR
Edited by: Thomas Zloch on Sep 11, 2011 3:50 PMHi friend,
See the link below it is having the solution of hiding the columns in smart forms
Hide table columns in smart form?
Create a table to display your values with 12 col and hide the columns based on the idea provided in the link above.
I think this will solve your issue if you still have queries please revert back to me i will help you.
Thanks,
Sri Hari -
Problem in displaying Columns 'TaxSum'
Hi Experts,
I am having some problem in displaying a Columns 'TaxSum's' values , this Query Should returns two Rows for two Different Items for the same Vendor with their 'TaxSums' , If i display the query without 'TaxSum's' Columns then it display the data with two different rows but If i display 'TaxSums ' Columns (Amount of their Rates) also then
it is not displaying the data, it gives an error
" Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression."
This is the query...
SELECT DISTINCT ORPC.DocEntry, ORPC.DocNum AS 'Debit Note No.', ORPC.CardName AS 'Name', ORPC.CardCode AS 'code', ORPC.NumAtCard AS 'Supplier Ref.',
OCTG.PymntGroup AS 'Payment Terms', OSHP.TrnspName AS 'Shipping type', RPC1.Dscription AS 'Description of Goods', ORPC.Address,
RPC1.Quantity, RPC1.Price AS 'Rate', RPC1.LineTotal AS 'Amount', ORPC.DocDate,
(SELECT DISTINCT TaxRate FROM RPC4
WHERE (staType = - 90) AND (StaCode = 'BED@10') AND (DocEntry = RPC1.DocEntry)) AS 'Basic Excise Duty BED@10 %',
(SELECT DISTINCT TaxRate FROM RPC4 AS RPC4_8
WHERE (staType = - 60) AND (DocEntry = RPC1.DocEntry)) AS 'Education Cess @2%',
(SELECT DISTINCT TaxRate FROM RPC4 AS RPC4_7
WHERE (staType = - 55) AND (DocEntry = RPC1.DocEntry)) AS 'Secondary Education Cess @1%',
(SELECT DISTINCT TaxRate FROM RPC4 AS RPC4_6
WHERE (staType = 4) AND (StaCode = 'CST2') AND (DocEntry = RPC1.DocEntry)) AS 'Central Sales Tax(CST)@2%',
(SELECT DISTINCT TaxRate FROM PCH4
WHERE (staType = 4) AND (StaCode = 'CST12.5') AND (DocEntry = RPC1.DocEntry)) AS 'Central Sales Tax(CST)@12.5%',
(SELECT DISTINCT TaxRate FROM RPC4 AS RPC4_5
WHERE (staType = 1) AND (StaCode = 'VAT4') AND (DocEntry = RPC1.DocEntry)) AS 'Input VAT@5%',
(SELECT DISTINCT TaxRate FROM RPC4 AS RPC4_4
WHERE (staType = 1) AND (TaxRate = 12.500000) AND (StaCode = 'VAT12.5') AND (StaCode = 'VAT12.5') AND (DocEntry = RPC1.DocEntry)) AS 'Input [email protected]%',
(SELECT DISTINCT TaxRate FROM RPC4 AS RPC4_3
WHERE (staType = 18) AND (StaCode = 'Add2') AND (DocEntry = RPC1.DocEntry)) AS 'Addtional Tax@1%',
(SELECT DISTINCT TaxRate FROM RPC4 AS RPC4_3
WHERE (staType = 18) AND (StaCode = 'Add1S') AND (DocEntry = RPC1.DocEntry)) AS 'Addtional Tax@1%',
(SELECT DISTINCT TaxSum FROM RPC4
WHERE (staType = - 90) AND (StaCode = 'BED@10') AND (DocEntry = RPC1.DocEntry)) AS 'BedAmount@10%',
(SELECT DISTINCT TaxSum FROM RPC4
WHERE (staType = - 60) AND (DocEntry = RPC1.DocEntry)) AS 'EcessAmount@2%',
(SELECT DISTINCT TaxSum FROM RPC4
WHERE (staType = - 55) AND (DocEntry = RPC1.DocEntry)) AS 'SecCessAmount@1%',
(SELECT DISTINCT TaxSum FROM RPC4
WHERE (staType = 4) AND (StaCode = 'CST2') AND (DocEntry = RPC1.DocEntry)) AS 'CSTAmount@2%',
(SELECT DISTINCT TaxSum FROM RPC4 AS RPC4_5
WHERE (staType = 1) AND (StaCode = 'VAT4') AND (DocEntry = RPC1.DocEntry)) AS 'VATAmount@5%',
(SELECT DISTINCT TaxSum FROM RPC4 AS RPC4_4
WHERE (staType = 1) AND (TaxRate = 12.500000) AND (StaCode = 'VAT12.5') AND (DocEntry = RPC1.DocEntry)) AS '[email protected]%',
(SELECT DISTINCT TaxSum FROM RPC4 AS RPC4_3
WHERE (staType = 18) AND (StaCode = 'Add2') AND (DocEntry = RPC1.DocEntry)) AS 'AddTaxAmount@1%(for VAT@4)',
(SELECT DISTINCT TaxSum FROM RPC4 AS RPC4_3
WHERE (StcCode = 'VAT12.5') AND (staType = 18) AND (StaCode = 'Add1S') AND (DocEntry = RPC1.DocEntry)) AS 'AddTaxAmount@1%([email protected])',
(SELECT DISTINCT TaxSum FROM PCH4
WHERE (StcCode = 'B10C125P') AND (TaxRate = 12.500000) AND (staType = 4) AND (StaCode = 'CST12.5') AND (DocEntry = RPC1.DocEntry)) AS '[email protected]%'
FROM ORPC INNER JOIN
RPC1 ON ORPC.DocEntry = RPC1.DocEntry INNER JOIN
OSHP ON ORPC.TrnspCode = OSHP.TrnspCode INNER JOIN
OCTG ON ORPC.GroupNum = OCTG.GroupNum
WHERE (ORPC.CardCode = 'V00522') AND (ORPC.DocNum = '9220005')
Kindly tell me the solution....
Regards
Rahul
Edited by: 118Rahul on Sep 17, 2011 2:31 PM
Edited by: 118Rahul on Sep 17, 2011 3:18 PMHi Rahul......
Just try this......
SELECT SUBSTRING((CONVERT(VARCHAR(11),T0.DOCDATE,106)),4,11), T0.[DocNum], T0.[DocDate], Sum(T1.[Quantity]) 'Quantity', Sum(T1.[LineTotal]) 'Amount', T0.[TotalExpns] 'Pack/Forw.',
t0.doctotal-t0.vatsum as 'Mat.Value',
T3.PymntGroup AS 'Payment Terms', T2.TrnspName AS 'Shipping type',
(isnull((SELECT SUM((case when upper(t4.staType) =-90 then T4.TaxRate else 0 end))
FROM RPC4 T4 WHERE T4.DocEntry=T0.DocEntry And T1.LineNum=T4.LineNum And T4.LineNum=0 ),0)) 'Rate_Cenvat 10%',
(isnull((SELECT SUM((case when upper(t4.STAType)=-60 then T4.TaxRate else 0 end))
FROM RPC4 T4 WHERE T4.DocEntry=T0.DocEntry And T1.LineNum=T4.LineNum And T4.LineNum=0 ),0)) 'Rate_Edu. Cess 2%',
(isnull((SELECT SUM((case when upper(t4.staType) =-55 then T4.TaxRate else 0 end))
FROM RPC4 T4 WHERE T4.DocEntry=T0.DocEntry And T1.LineNum=T4.LineNum And T4.LineNum=0 ),0)) 'Rate_S&H Cess 1%',
(isnull((SELECT SUM((case when upper(t4.staType)=1 and t4.TaxRate=4 then T4.TaxRate else 0 end))
FROM RPC4 T4 WHERE T4.DocEntry=T0.DocEntry And T1.LineNum=T4.LineNum And T4.LineNum=0 ),0)) 'Rate_VAT4%',
(isnull((SELECT SUM((case when upper(t4.staType)=1 and t4.TaxRate=12.5 then T4.TaxRate else 0 end))
FROM RPC4 T4 WHERE T4.DocEntry=T0.DocEntry And T1.LineNum=T4.LineNum And T4.LineNum=0 ),0)) 'Rate_VAT12.5%',
(isnull((SELECT SUM((case when upper(t4.staType)=18 and t4.TaxRate=1 then T4.TaxRate else 0 end))
FROM RPC4 T4 WHERE T4.DocEntry=T0.DocEntry And T1.LineNum=T4.LineNum And T4.LineNum=0 ),0)) 'Rate_AVAT1%',
(isnull((SELECT SUM((case when upper(t4.staType)=18 and t4.TaxRate=2.5 then T4.TaxRate else 0 end))
FROM RPC4 T4 WHERE T4.DocEntry=T0.DocEntry And T1.LineNum=T4.LineNum And T4.LineNum=0 ),0)) 'Rate_AVAT2.5%',
(isnull((SELECT SUM((case when upper(t4.staType)=4 and t4.TaxRate=2 then T4.TaxRate else 0 end))
FROM RPC4 T4 WHERE T4.DocEntry=T0.DocEntry And T1.LineNum=T4.LineNum And T4.LineNum=0 ),0)) 'Rate_CST2%',
(isnull((SELECT SUM((case when upper(t4.staType)=4 and t4.TaxRate=12.5 then T4.TaxRate else 0 end))
FROM RPC4 T4 WHERE T4.DocEntry=T0.DocEntry And T1.LineNum=T4.LineNum And T4.LineNum=0),0)) 'Rate_CST12.5%',
(isnull((SELECT SUM((case when upper(t4.staType) =-90 then T4.TaxSum else 0 end))
FROM RPC4 T4 WHERE T4.DocEntry=T0.DocEntry And T1.LineNum=T4.LineNum ),0)) 'Amt_Cenvat 10%',
(isnull((SELECT SUM((case when upper(t4.STAType)=-60 then T4.TaxSum else 0 end))
FROM RPC4 T4 WHERE T4.DocEntry=T0.DocEntry And T1.LineNum=T4.LineNum ),0)) 'Amt_Edu. Cess 2%',
(isnull((SELECT SUM((case when upper(t4.staType) =-55 then T4.TaxSum else 0 end))
FROM RPC4 T4 WHERE T4.DocEntry=T0.DocEntry And T1.LineNum=T4.LineNum ),0)) 'Amt_S&H Cess 1%',
(isnull((SELECT SUM((case when upper(t4.staType)=1 and t4.TaxRate=4 then T4.TaxSum else 0 end))
FROM RPC4 T4 WHERE T4.DocEntry=T0.DocEntry And T1.LineNum=T4.LineNum ),0)) 'Amt_VAT4%',
(isnull((SELECT SUM((case when upper(t4.staType)=1 and t4.TaxRate=12.5 then T4.TaxSum else 0 end))
FROM RPC4 T4 WHERE T4.DocEntry=T0.DocEntry And T1.LineNum=T4.LineNum ),0)) 'Amt_VAT12.5%',
(isnull((SELECT SUM((case when upper(t4.staType)=18 and t4.TaxRate=1 then T4.TaxSum else 0 end))
FROM RPC4 T4 WHERE T4.DocEntry=T0.DocEntry And T1.LineNum=T4.LineNum ),0)) 'Amt_AVAT1%',
(isnull((SELECT SUM((case when upper(t4.staType)=18 and t4.TaxRate=2.5 then T4.TaxSum else 0 end))
FROM RPC4 T4 WHERE T4.DocEntry=T0.DocEntry And T1.LineNum=T4.LineNum ),0)) 'Amt_AVAT2.5%',
(isnull((SELECT SUM((case when upper(t4.staType)=4 and t4.TaxRate=2 then T4.TaxSum else 0 end))
FROM RPC4 T4 WHERE T4.DocEntry=T0.DocEntry And T1.LineNum=T4.LineNum ),0)) 'Amt_CST2%',
(isnull((SELECT SUM((case when upper(t4.staType)=4 and t4.TaxRate=12.5 then T4.TaxSum else 0 end))
FROM RPC4 T4 WHERE T4.DocEntry=T0.DocEntry And T1.LineNum=T4.LineNum),0)) 'Amt_CST12.5%'
FROM ORPC T0 INNER JOIN RPC1 T1 ON T0.DocEntry = T1.DocEntry
LEFT JOIN
OSHP T2 ON T0.TrnspCode = T2.TrnspCode LEFT JOIN
OCTG T3 ON T0.GroupNum = T3.GroupNum
Where (T0.CardCode = 'V00522') AND (T0.DocNum = '9220005')
Group By T0.[DocNum], T0.[DocDate], T0.[TotalExpns], t0.doctotal, t0.vatsum, T0.DocEntry, T1.LineNum,
T3.PymntGroup, T2.TrnspName
Order By T0.[DocDate]
Regards,
Rahul -
Problem with loading column chart in flex2
Hi All,
I am facing a strange problem in designing a column chart. I have a page where i have two column charts. The data providr for both the charts is same. I have an xml with three categories of values, and each chart uses two of these with one of them being common and they are actually sorted based on one of those values. The problem here is that one chart shows proper values while the other (though shows proper values) it doesnt render it properly in the sense that the height of the columns and the value of that particular column are not consistent. What could be the issue????It's necessary to discard the white spaces.
Set the ignoreWhite property to true.
document.ignoreWhite = true;
Regards,
Erick Souza | ericksouza.com -
Problem with shared column mapping
I have a problem with mapping different fields onto the same column. In most cases Kodo handles it very well but one tough case it does not
Modification references contract N-1 using contract_id field
Contract back references two modifications out of all modification owned by THIS contract (last_modification and executed_modifcation)
when both modifications are not null it works fine since I make sure both fields point to modification owned by the same contract
hovewer when I set one of the fields (executed_modifcation) to null (after it was not null) Kodo attempts to set not only executed_modifcation field to null but contract_id as well. Which obviously not desired
I understand that it is a pretty hard corner case. Do you think you can handle it or it is a dead end?
Attached are my filesAbe,
I fully agree with your analysis. In my case we can use precedence of direct
mappings over reference mapping in null situation.
However as you noted, there are cases when we have only references and so
you can not say which mapping is more important. However since we are
resolving NULL issue here, I am not sure we need to know precedence of
references - not null case should always take precedence. In other words:
priority 1: direct mapping
priority 2: not null reference
priority 3: null reference
Of course all three cases are subject rule of not changing value of shared
column
"Abe White" <[email protected]> wrote in message
news:[email protected]...
I admit that I didn't go through all your metadata, but I do believe that
3.0 final will handle this case. My plan is to implement updates such
that direct field mappings always take precedence over foreign key
mappings.
Let's say column CONTRACT_ID is used by int field contractId and is
also used by field lastModification as part of an FK to a Modification
instance (which I believe is close to your mapping). Because contractId
is a simple field rather than a foreign key, Kodo will give it the final
say on nulling/defaulting the CONTRACT_ID column. So if you null the
lasetModification field, CONTRACT_ID will retain the value of the
contractId field. Any non-null value of the lastModification field will
stilly have to jive with the contractId field, though, or else we'll
throw an exception like we do currently when you try to set 1 column to
multiple values.
I believe this solves the common case of shared
columns between direct mappings and FK mappings. There are other cases
in which multiple FK mappings overlap on certain columns, and this does
not solve nulling problems in those instances. However, I think those
cases are very rare and not worth the effort. Correct me if I'm wrong
and your situation actually is one of sharing columns between multiple
FKs and no primitives after all. -
Hi All,
I designed one Grid consist of five columns.In one of the column, i put the value 5 and i pressed the tab.Then it is showing some other value(Lik 203,125,456) instead of what i type. what is the Problem in that??
Plz let me know,urgent
Thanks in Advance
Oram.Hi,
Try this code,
Dim dtdataTable, dtdataTable1 As SAPbouiCOM.DataTable
dtdataTable= objForm.DataSources.DataTables.Add("dtdataTable")
dtdataTable.Columns.Add("Column1", SAPbouiCOM.BoFieldsType.ft_AlphaNumeric)
dtdataTable.Columns.Add("Column2", SAPbouiCOM.BoFieldsType.ft_AlphaNumeric)
dtdataTable= objForm.DataSources.DataTables.Item("dtdataTable")
dtdataTable1= dtdataTable
objRecSet.DoQuery(""Query")
If objRecSet.RecordCount > 0 Then
For intRow = 0 To objRecSet.RecordCount - 1
dtdataTable1.Rows.Add()
dtdataTable1.SetValue("Column1", intLoop, objRecSet.Fields.Item(0).Value)
dtdataTable1.SetValue("Column2", intLoop, objStdRecSet.Fields.Item(1).Value)
objRecSet.MoveNext()
Next
end if
Regards,
Tom. -
Problem with Incident_date column in CS_INCIDENTS_ALL_B table
Hi everyone,
I am using date range search in CS_INCIDENTS_ALL_B table using the column INCIDENT_DATE. As this is a standard table, a index is already defined there on the column INCIDENT_DATE.
If I am using the following query: [26-OCT-2010 is today's date]
SELECT *
FROM cs_incidents_all_b
WHERE incident_date BETWEEN TO_DATE ('25-OCT-2010 00:00:00',
'DD-MON-RRRR HH24:MI:SS'
AND TO_DATE ('26-OCT-2010 23:59:59',
'DD-MON-RRRR HH24:MI:SS'
the Explain plan is showing following values for Cost, Bytes and Cardinality:
Cost:4 Bytes:559 Cardinality:1
If I am running the same query for the date range '01-OCT-2010' and '02-OCT-2010'
SELECT *
FROM cs_incidents_all_b
WHERE incident_date BETWEEN TO_DATE ('01-OCT-2010 00:00:00',
'DD-MON-RRRR HH24:MI:SS'
AND TO_DATE ('02-OCT-2010 23:59:59',
'DD-MON-RRRR HH24:MI:SS'
Explain plan is showing following values - Cost:3,643 Bytes: 2,217553 and Cardinality: 3,967. [this query is taking more time compared to above one].
As per my notice, this cost is not depending on the number of rows resulting from the query. This is because, the number of rows resulted in first query (25-OCT-2010 to 26-OCT-2010) is 120 where as number of rows from second query (01-OCT-2010 and 02-OCT-2010) is only 2.
If I increase the date range such that the duration is 1 month, the cost is still increasing and Index range scan is not being used at all.
Please suggest me how can I write a query that results in a same cost and execution time for all the date ranges.
Thanks in advance,
SamIn 11.5.9, the problem and resolution codes are stored in FND_LOOKUP_VALUES table with lookup type as 'REQUEST_PROBLEM_CODE' and 'REQUEST_RESOLUTION_CODE'. I'm hoping you could still use these tables to find problem codes, even if you were on 11.5.10 or R12.
Join would be something like:
WHERE fnd_lookup_values.lookup_type = 'REQUEST_PROBLEM_CODE'
AND fnd_lookup_values.problem_code = cs_incidents_all_b.problem_code
Regarding restricting the query for Depot Repair service requests, you need to restrict by the the incident_type_id for this type of SRs (like id for Depot incident type is 10003 for us).
HTH
Alka
Maybe you are looking for
-
Signed Applet not loading on Mac OS X if using HTTPS protocol
Hi All, I need to open a trusted applet on Mac OS 10.2. The applet works fine if using HTTP protocol. But if the protocol used is HTTPS the the applet does not loads and "javax.net.ssl.SSLException - untrusted server cert chain" exception comes on th
-
What does it mean when you receive a box that says " The Itunes library cannot be saved. You do not have enough access privileges for this operation"?
-
Missing datasources when installing Business Content
Hi All We have a requirement for a number of SBC infoproviders (BI7/ECC6) which are new to us. The majority we have installed successfully but we are having problems with 0SLL_C01 / C02 and C03 which relate to Customs and 0BVTSD02 which is a Telephon
-
Hi experts, While creating the quotation in ME47 the peice feild in display mode. Kindly advice me to make it as entry feild for me to entervthe price Pls help rgds sp Edited by: SP on Apr 28, 2009 10:29 AM
-
RV016 firmware upgrade and manual
I am trying to upgrade my RV016 from 3.0.2.01-tm to 4.0.4.02. I have not received any messages and the log has nothing. I have left the computer and switch for 2 hours and it never seems to end. (serial no. DF0006200812) I am looking for any guidan