Specify tables in PS
Hello Experts,
Our client requires a new report to be generated, listing all the documents attached to any wbs elements of all the projects.We will be attaching the files through services for objects. I am stuck in providing FS to ABAPer specifying tables required to generate the said report.
Manish.
manishdp wrote:
Dear Abdul,
>
> Thnx for the reply. Now when i am testing an attachment in DMS, a pdf file gets attached, but i am unable to attach a word or excel file.(Win.office 2007).is it that sap note 1364806 shld be referred for it or anything else?
>
> Manish
Please also check whether the file type maintained in the following path..
SPRO >> Cross-Application Components >> Document Management >> General Data >> Define Workstation Application
Similar Messages
-
Could not delete from specified table?
hi all,
i'm getting this error could not delete from specified table when i execute a delete on dbf file via JDBC-ODBC bridge, when i execute an update table command i get operation must use an updatable query, but i'm not updating the query returned from select statement.
Does anyone have similar problem before??Hi,
my code is below:
try {
conn=DriverManager.getConnectio("jdbc:odbc:sui","","");
stmt = conn.createStatement();
int r= stmt.executeUpdate("Update Alarms set ACK=True WHERE DT = { d '" + msgdate + "' } AND TM= '" + msgtime + "'");
System.out.println(r+" records updated in Alarms ");
stmt.close();
conn.close();
stmt=null;
conn=null;
catch (NullPointerException e) {System.out.println(e.getMessage());}
catch (SQLException e) {System.out.println(e.getMessage());}
I have an ODBC datasource called sui and a table called alarms, i need to write into the column Ack to true when DT equals msgdate and TM equals msgtime, the error returned is Operation must use an updatable query.
I believe the SQL has no problem because there is no SQL syntax error and i'm not updating any resultset returned from select query.
When i delete, i get could not delete from specified table. Anyone has any idea wh'at's wrong? -
Hi All
below query giving me error in query generator but working well in Sql server.
error: [Microsoft][SQL Server Native Client 10.0][SQL Server]Must specify table to select from. '' (SWEI)
Select
T1.U_grp01 As 'BA',T3.DocDate As 'Posting Date',Month(T3.DocDate) As 'PostMonth',Year(T3.DocDate) As 'PostYear',
'AR Invoice' As 'Type',T3.DocNum As 'Doc No',T3.CardCode As 'Cust. Code',T3.CardName As 'Cust. Name',T5.SlpName As 'Sale Emp. Name',
T4.IndustryC As 'Channel Type',T6.CityB As 'BillToCity',T7.Name As 'BillToState',T6.CityS As 'ShipToCity',T8.Name As 'ShipToState',
T4.U_Une_Zone As 'Zone',
T2.ItmsGrpNam As 'L1',T0.LineNum As 'Row No',T0.ItemCode As 'ItemCode',T0.Dscription As 'Item Name',t0.whscode,
T0.Quantity As 'Quantity',T0.StockPrice As 'COGS Price',IsNull(Sum(T0.Quantity * T0.StockPrice),0) As 'COGS Value',T0.VatSum As 'Tax Amount',
IsNull((Case When T3.DocType='I' Then (Case When T0.Currency = 'INR' Then T0.PriceBefDi Else (T0.PriceBefDi * T0.Rate) End) Else T0.Price End) ,0) As 'Sales Price',
IsNull((Case When T3.DocType='I' Then (Case When T0.Currency = 'INR' Then T0.INMPrice Else (T0.INMPrice * T0.Rate) End) Else T0.Price End) ,0) As 'Sales Price',
IsNull((Case When T3.DocType='I' Then (Case When T0.Currency = 'INR' Then Sum(T0.Quantity * T0.INMPrice) Else Sum(T0.Quantity * T0.INMPrice * T0.Rate) End) Else T0.LineTotal End) ,0) As 'Sales Value',t9.linetotal as 'Freight',
T3.DocType As 'DocType',
(SELECT DISTINCT ISNULL (SUM(INV4.TaxSum),0)
FROM INV4
WHERE INV4.StaType = -90
AND INV4.DocEntry = T3.DocEntry
AND INV4.LineNum = T0.LineNum) AS 'BED',
(SELECT DISTINCT ISNULL (SUM(INV4.TaxSum),0)
FROM INV4
WHERE INV4.StaType = -60
AND INV4.DocEntry = T3.DocEntry
AND INV4.LineNum = T0.LineNum) AS 'Cess',
(SELECT DISTINCT ISNULL (SUM(INV4.TaxSum),0)
FROM INV4
WHERE INV4.StaType = 9
AND INV4.DocEntry = T3.DocEntry
AND INV4.LineNum = T0.LineNum) AS 'HeCess',
(SELECT DISTINCT ISNULL (SUM(INV4.TaxSum),0)
FROM INV4
WHERE (INV4.StaType = 1 or inv4.staType = 8)
AND INV4.DocEntry = T3.DocEntry
AND INV4.LineNum = T0.LineNum) AS 'VAT',
(SELECT DISTINCT ISNULL (SUM(INV4.TaxSum),0)
FROM INV4
WHERE INV4.StaType = 8
AND INV4.DocEntry = T3.DocEntry
AND INV4.LineNum = T0.LineNum) AS 'CST'
From INV1 T0
Left Join OITM T1 On T1.ItemCode=T0.ItemCode
Left Join OITB T2 On T2.ItmsGrpCod=T1.ItmsGrpCod
Left Join OINV T3 On T3.DocEntry=T0.DocEntry
Left Join OCRD T4 On T4.CardCode=T3.CardCode
Left Join OSLP T5 On T5.SlpCode=T4.SlpCode
Left Join INV12 T6 On T6.DocEntry=T0.DocEntry
Left Join OCST T7 On T7.Code=T6.StateB and T7.Country='IN'
Left Join OCST T8 On T8.Code=T6.StateS and T8.Country='IN'
left join inv3 t9 on t9.docentry = t3.docentry
WHERE T3.[DocDate] >= [%0] and T3.[DocDate] <= [%1] and t3.U_UNE_GCAT = '2'
Group By T1.U_grp01,T3.DocEntry,T3.DocNum,T3.DocDate,T0.LineNum,T3.CardCode,T3.CardName,T5.SlpName,T4.IndustryC,T4.U_Une_Zone,
T6.CityB,T7.Name,T6.CityS,T8.Name,T0.VatSum,T0.Currency,T0.Rate,T3.DocType,T0.Price,T0.LineTotal,
T2.ItmsGrpNam,T0.ItemCode,T0.Dscription,T0.StockPrice,T0.INMPrice,T0.PriceBefDi,T0.Quantity,t9.linetotal,t0.WhsCode
Union All
Select
T1.U_grp01 As 'BA',T3.DocDate As 'Posting Date',Month(T3.DocDate) As 'PostMonth',Year(T3.DocDate) As 'PostYear',
'AR Invoice' As 'Type',T3.DocNum As 'Doc No',T3.CardCode As 'Cust. Code',T3.CardName As 'Cust. Name',T5.SlpName As 'Sale Emp. Name',
T4.IndustryC As 'Channel Type',T6.CityB As 'BillToCity',T7.Name As 'BillToState',T6.CityS As 'ShipToCity',T8.Name As 'ShipToState',
T4.U_Une_Zone As 'Zone',
T2.ItmsGrpNam As 'L1',T0.LineNum As 'Row No',T0.ItemCode As 'ItemCode',T0.Dscription As 'Item Name',t0.whscode,
T0.Quantity As 'Quantity',T0.StockPrice As 'COGS Price',IsNull(Sum(T0.Quantity * T0.StockPrice),0) As 'COGS Value',T0.VatSum As 'Tax Amount',
IsNull((Case When T3.DocType='I' Then (Case When T0.Currency = 'INR' Then T0.PriceBefDi Else (T0.PriceBefDi * T0.Rate) End) Else T0.Price End) ,0) As 'Sales Price',
IsNull((Case When T3.DocType='I' Then (Case When T0.Currency = 'INR' Then T0.INMPrice Else (T0.INMPrice * T0.Rate) End) Else T0.Price End) ,0) As 'Sales Price',
IsNull((Case When T3.DocType='I' Then (Case When T0.Currency = 'INR' Then Sum(T0.Quantity * T0.INMPrice) Else Sum(T0.Quantity * T0.INMPrice * T0.Rate) End) Else T0.LineTotal End) ,0) As 'Sales Value',t9.linetotal as 'Freight',
T3.DocType As 'DocType',
(SELECT DISTINCT ISNULL (SUM(rin4.TaxSum),0)
FROM rin4
WHERE rin4.StaType = -90
AND rin4.DocEntry = T3.DocEntry
AND rin4.LineNum = T0.LineNum) AS 'BED',
(SELECT DISTINCT ISNULL (SUM(rin4.TaxSum),0)
FROM rin4
WHERE rin4.StaType = -60
AND rin4.DocEntry = T3.DocEntry
AND rin4.LineNum = T0.LineNum) AS 'Cess',
(SELECT DISTINCT ISNULL (SUM(rin4.TaxSum),0)
FROM rin4
WHERE rin4.StaType = 9
AND rin4.DocEntry = T3.DocEntry
AND rin4.LineNum = T0.LineNum) AS 'HeCess',
(SELECT DISTINCT ISNULL (SUM(rin4.TaxSum),0)
FROM rin4
WHERE (rin4.StaType = 1 or rin4.staType = 8)
AND rin4.DocEntry = T3.DocEntry
AND rin4.LineNum = T0.LineNum) AS 'VAT',
(SELECT DISTINCT ISNULL (SUM(rin4.TaxSum),0)
FROM rin4
WHERE rin4.StaType = 8
AND rin4.DocEntry = T3.DocEntry
AND rin4.LineNum = T0.LineNum) AS 'CST'
From rin1 T0
Left Join OITM T1 On T1.ItemCode=T0.ItemCode
Left Join OITB T2 On T2.ItmsGrpCod=T1.ItmsGrpCod
Left Join Orin T3 On T3.DocEntry=T0.DocEntry
Left Join OCRD T4 On T4.CardCode=T3.CardCode
Left Join OSLP T5 On T5.SlpCode=T4.SlpCode
Left Join rin12 T6 On T6.DocEntry=T0.DocEntry
Left Join OCST T7 On T7.Code=T6.StateB and T7.Country='IN'
Left Join OCST T8 On T8.Code=T6.StateS and T8.Country='IN'
left join rin3 t9 on t9.docentry = t3.docentry
WHERE T3.[DocDate] >= [%0] and T3.[DocDate] <= [%1] and t3.U_UNE_GCAT = '2'
Group By T1.U_grp01,T3.DocEntry,T3.DocNum,T3.DocDate,T0.LineNum,T3.CardCode,T3.CardName,T5.SlpName,T4.IndustryC,T4.U_Une_Zone,
T6.CityB,T7.Name,T6.CityS,T8.Name,T0.VatSum,T0.Currency,T0.Rate,T3.DocType,T0.Price,T0.LineTotal,
T2.ItmsGrpNam,T0.ItemCode,T0.Dscription,T0.StockPrice,T0.INMPrice,T0.PriceBefDi,T0.Quantity,t9.linetotal,t0.WhsCode
Thanks in AdvanceHi deepak..
try this
/* SELECT FROM OSRT P1 */
DECLARE @FROM AS DATE
/* WHERE */
SET @FROM = /* P1.FromDate */ '[%1]'
/* SELECT FROM OSRT P2 */
DECLARE @TO AS DATE
/* WHERE */
SET @TO = /* P2.ToDate */ '[%2]';
SELECT T1.U_grp01 AS 'BA',
T3.DocDate AS 'Posting Date',
MONTH(T3.DocDate) AS 'PostMonth',
YEAR(T3.DocDate) AS 'PostYear',
'AR Invoice' AS 'Type',
T3.DocNum AS 'Doc No',
T3.CardCode AS 'Cust. Code',
T3.CardName AS 'Cust. Name',
T5.SlpName AS 'Sale Emp. Name',
T4.IndustryC AS 'Channel Type',
T6.CityB AS 'BillToCity',
T7.Name AS 'BillToState',
T6.CityS AS 'ShipToCity',
T8.Name AS 'ShipToState',
T4.U_Une_Zone AS 'Zone',
T2.ItmsGrpNam AS 'L1',
T0.LineNum AS 'Row No',
T0.ItemCode AS 'ItemCode',
T0.Dscription AS 'Item Name',
t0.whscode,
T0.Quantity AS 'Quantity',
T0.StockPrice AS 'COGS Price',
ISNULL(SUM(T0.Quantity * T0.StockPrice), 0) AS 'COGS Value',
T0.VatSum AS 'Tax Amount',
ISNULL(
CASE
WHEN T3.DocType = 'I' THEN (
CASE
WHEN T0.Currency = 'INR' THEN T0.PriceBefDi
ELSE (T0.PriceBefDi * T0.Rate)
END
ELSE T0.Price
END
0
) AS 'Sales Price',
ISNULL(
CASE
WHEN T3.DocType = 'I' THEN (
CASE
WHEN T0.Currency = 'INR' THEN T0.INMPrice
ELSE (T0.INMPrice * T0.Rate)
END
ELSE T0.Price
END
0
) AS 'Sales Price',
ISNULL(
CASE
WHEN T3.DocType = 'I' THEN (
CASE
WHEN T0.Currency = 'INR' THEN SUM(T0.Quantity * T0.INMPrice)
ELSE SUM(T0.Quantity * T0.INMPrice * T0.Rate)
END
ELSE T0.LineTotal
END
0
) AS 'Sales Value',
t9.linetotal AS 'Freight',
T3.DocType AS 'DocType',
SELECT DISTINCT ISNULL(SUM(INV4.TaxSum), 0)
FROM INV4
WHERE INV4.StaType = -90
AND INV4.DocEntry = T3.DocEntry
AND INV4.LineNum = T0.LineNum
) AS 'BED',
SELECT DISTINCT ISNULL(SUM(INV4.TaxSum), 0)
FROM INV4
WHERE INV4.StaType = -60
AND INV4.DocEntry = T3.DocEntry
AND INV4.LineNum = T0.LineNum
) AS 'Cess',
SELECT DISTINCT ISNULL(SUM(INV4.TaxSum), 0)
FROM INV4
WHERE INV4.StaType = 9
AND INV4.DocEntry = T3.DocEntry
AND INV4.LineNum = T0.LineNum
) AS 'HeCess',
SELECT DISTINCT ISNULL(SUM(INV4.TaxSum), 0)
FROM INV4
WHERE (INV4.StaType = 1 OR inv4.staType = 8)
AND INV4.DocEntry = T3.DocEntry
AND INV4.LineNum = T0.LineNum
) AS 'VAT',
SELECT DISTINCT ISNULL(SUM(INV4.TaxSum), 0)
FROM INV4
WHERE INV4.StaType = 8
AND INV4.DocEntry = T3.DocEntry
AND INV4.LineNum = T0.LineNum
) AS 'CST'
FROM INV1 T0
LEFT JOIN OITM T1
ON T1.ItemCode = T0.ItemCode
LEFT JOIN OITB T2
ON T2.ItmsGrpCod = T1.ItmsGrpCod
LEFT JOIN OINV T3
ON T3.DocEntry = T0.DocEntry
LEFT JOIN OCRD T4
ON T4.CardCode = T3.CardCode
LEFT JOIN OSLP T5
ON T5.SlpCode = T4.SlpCode
LEFT JOIN INV12 T6
ON T6.DocEntry = T0.DocEntry
LEFT JOIN OCST T7
ON T7.Code = T6.StateB
AND T7.Country = 'IN'
LEFT JOIN OCST T8
ON T8.Code = T6.StateS
AND T8.Country = 'IN'
LEFT JOIN inv3 t9
ON t9.docentry = t3.docentry
WHERE T3.[DocDate] >= @FROM
AND T3.[DocDate] <= @TO
AND t3.U_UNE_GCAT = '2'
GROUP BY
T1.U_grp01,
T3.DocEntry,
T3.DocNum,
T3.DocDate,
T0.LineNum,
T3.CardCode,
T3.CardName,
T5.SlpName,
T4.IndustryC,
T4.U_Une_Zone,
T6.CityB,
T7.Name,
T6.CityS,
T8.Name,
T0.VatSum,
T0.Currency,
T0.Rate,
T3.DocType,
T0.Price,
T0.LineTotal,
T2.ItmsGrpNam,
T0.ItemCode,
T0.Dscription,
T0.StockPrice,
T0.INMPrice,
T0.PriceBefDi,
T0.Quantity,
t9.linetotal,
t0.WhsCode
UNION ALL
SELECT T1.U_grp01 AS 'BA',
T3.DocDate AS 'Posting Date',
MONTH(T3.DocDate) AS 'PostMonth',
YEAR(T3.DocDate) AS 'PostYear',
'AR Invoice' AS 'Type',
T3.DocNum AS 'Doc No',
T3.CardCode AS 'Cust. Code',
T3.CardName AS 'Cust. Name',
T5.SlpName AS 'Sale Emp. Name',
T4.IndustryC AS 'Channel Type',
T6.CityB AS 'BillToCity',
T7.Name AS 'BillToState',
T6.CityS AS 'ShipToCity',
T8.Name AS 'ShipToState',
T4.U_Une_Zone AS 'Zone',
T2.ItmsGrpNam AS 'L1',
T0.LineNum AS 'Row No',
T0.ItemCode AS 'ItemCode',
T0.Dscription AS 'Item Name',
t0.whscode,
T0.Quantity AS 'Quantity',
T0.StockPrice AS 'COGS Price',
ISNULL(SUM(T0.Quantity * T0.StockPrice), 0) AS 'COGS Value',
T0.VatSum AS 'Tax Amount',
ISNULL(
CASE
WHEN T3.DocType = 'I' THEN (
CASE
WHEN T0.Currency = 'INR' THEN T0.PriceBefDi
ELSE (T0.PriceBefDi * T0.Rate)
END
ELSE T0.Price
END
0
) AS 'Sales Price',
ISNULL(
CASE
WHEN T3.DocType = 'I' THEN (
CASE
WHEN T0.Currency = 'INR' THEN T0.INMPrice
ELSE (T0.INMPrice * T0.Rate)
END
ELSE T0.Price
END
0
) AS 'Sales Price',
ISNULL(
CASE
WHEN T3.DocType = 'I' THEN (
CASE
WHEN T0.Currency = 'INR' THEN SUM(T0.Quantity * T0.INMPrice)
ELSE SUM(T0.Quantity * T0.INMPrice * T0.Rate)
END
ELSE T0.LineTotal
END
0
) AS 'Sales Value',
t9.linetotal AS 'Freight',
T3.DocType AS 'DocType',
SELECT DISTINCT ISNULL(SUM(rin4.TaxSum), 0)
FROM rin4
WHERE rin4.StaType = -90
AND rin4.DocEntry = T3.DocEntry
AND rin4.LineNum = T0.LineNum
) AS 'BED',
SELECT DISTINCT ISNULL(SUM(rin4.TaxSum), 0)
FROM rin4
WHERE rin4.StaType = -60
AND rin4.DocEntry = T3.DocEntry
AND rin4.LineNum = T0.LineNum
) AS 'Cess',
SELECT DISTINCT ISNULL(SUM(rin4.TaxSum), 0)
FROM rin4
WHERE rin4.StaType = 9
AND rin4.DocEntry = T3.DocEntry
AND rin4.LineNum = T0.LineNum
) AS 'HeCess',
SELECT DISTINCT ISNULL(SUM(rin4.TaxSum), 0)
FROM rin4
WHERE (rin4.StaType = 1 OR rin4.staType = 8)
AND rin4.DocEntry = T3.DocEntry
AND rin4.LineNum = T0.LineNum
) AS 'VAT',
SELECT DISTINCT ISNULL(SUM(rin4.TaxSum), 0)
FROM rin4
WHERE rin4.StaType = 8
AND rin4.DocEntry = T3.DocEntry
AND rin4.LineNum = T0.LineNum
) AS 'CST'
FROM rin1 T0
LEFT JOIN OITM T1
ON T1.ItemCode = T0.ItemCode
LEFT JOIN OITB T2
ON T2.ItmsGrpCod = T1.ItmsGrpCod
LEFT JOIN [dbo].[Orin] T3
ON T3.DocEntry = T0.DocEntry
LEFT JOIN OCRD T4
ON T4.CardCode = T3.CardCode
LEFT JOIN OSLP T5
ON T5.SlpCode = T4.SlpCode
LEFT JOIN rin12 T6
ON T6.DocEntry = T0.DocEntry
LEFT JOIN OCST T7
ON T7.Code = T6.StateB
AND T7.Country = 'IN'
LEFT JOIN OCST T8
ON T8.Code = T6.StateS
AND T8.Country = 'IN'
LEFT JOIN rin3 t9
ON t9.docentry = t3.docentry
WHERE T3.[DocDate] >= @FROM
AND T3.[DocDate] <= @TO
AND t3.U_UNE_GCAT = '2'
GROUP BY
T1.U_grp01,
T3.DocEntry,
T3.DocNum,
T3.DocDate,
T0.LineNum,
T3.CardCode,
T3.CardName,
T5.SlpName,
T4.IndustryC,
T4.U_Une_Zone,
T6.CityB,
T7.Name,
T6.CityS,
T8.Name,
T0.VatSum,
T0.Currency,
T0.Rate,
T3.DocType,
T0.Price,
T0.LineTotal,
T2.ItmsGrpNam,
T0.ItemCode,
T0.Dscription,
T0.StockPrice,
T0.INMPrice,
T0.PriceBefDi,
T0.Quantity,
t9.linetotal,
t0.WhsCode
rgds
Kennedy -
Error while executing SQL query -' Must Specify Table to select from'
Hi all,
While executing query using query generator
it shows error message
[Microsoft][SQL Native Client][SQL Server]Must specify table to select from.
2). [Microsoft][SQL Nativ
SELECT T1.ItemCode, T1.Dscription AS 'Item Description', T1.Quantity, T1.Price, T1.LineTotal,
(Select SUM(T2.TaxSum) From PCH4 T2 Where T0.DocEntry=T2.DocEntry AND T2.staType=-90 AND T1.LineNum=T2.LineNum) as 'BEDAmt',
(Select SUM(T2.TaxSum) From PCH4 T2 Where T0.DocEntry=T2.DocEntry AND T2.staType=-60 AND T1.LineNum=T2.LineNum) as 'ECSAmt',
(Select SUM(T2.TaxSum) From PCH4 T2 Where T0.DocEntry=T2.DocEntry AND T2.staType=7 AND T1.LineNum=T2.LineNum) as 'HECSAmt',
(Select SUM(T2.TaxSum) From PCH4 T2 Where T0.DocEntry=T2.DocEntry AND T2.staType=1 AND T1.LineNum=T2.LineNum) as 'VATAmt',
(Select SUM(T2.TaxSum) From PCH4 T2 Where T0.DocEntry=T2.DocEntry AND T2.staType=4 AND T1.LineNum=T2.LineNum) as 'CSTAmt'
FROM dbo.[OPCH] T0 INNER JOIN PCH1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN PCH4 T2 ON T2.DocEntry=T0.DocEntry
WHERE T0.DocDate >='[%0]' AND T0.DocDate <='[%1]' AND T0.DocType = 'I'
GROUP BY T1.ItemCode,T1.Dscription,T1.Quantity, T1.Price, T1.LineTotal,T0.DocEntry,T1.DocEntry,T1.LineNum,T2.LineNum
It's executing fine in MS SQL Server Studio Management.
Please give y'r ideas to solve the problem.
Jeyakanthantry this, it works fine in my B1:
SELECT T1.ItemCode, T1.Dscription AS 'Item Description', T1.Quantity, T1.Price, T1.LineTotal,
(Select SUM(T2.TaxSum) From PCH4 T2 Where T0.DocEntry=T2.DocEntry AND T2.staType=-90 AND T1.LineNum=T2.LineNum) as 'BEDAmt',
(Select SUM(T2.TaxSum) From PCH4 T2 Where T0.DocEntry=T2.DocEntry AND T2.staType=-60 AND T1.LineNum=T2.LineNum) as 'ECSAmt',
(Select SUM(T2.TaxSum) From PCH4 T2 Where T0.DocEntry=T2.DocEntry AND T2.staType=7 AND T1.LineNum=T2.LineNum) as 'HECSAmt',
(Select SUM(T2.TaxSum) From PCH4 T2 Where T0.DocEntry=T2.DocEntry AND T2.staType=1 AND T1.LineNum=T2.LineNum) as 'VATAmt',
(Select SUM(T2.TaxSum) From PCH4 T2 Where T0.DocEntry=T2.DocEntry AND T2.staType=4 AND T1.LineNum=T2.LineNum) as 'CSTAmt'
FROM dbo.OPCH T0 INNER JOIN PCH1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN PCH4 T2 ON T2.DocEntry=T0.DocEntry
WHERE T0.DocDate >='[%0]' AND T0.DocDate <='[%1]' AND T0.DocType = 'I'
GROUP BY T1.ItemCode,T1.Dscription,T1.Quantity, T1.Price, T1.LineTotal,T0.DocEntry,T1.DocEntry,T1.LineNum,T2.LineNum
B1 don't like brackets!
Regards -
Specifying table with jdbc-class-map-name
Greetings
How do I specify the name of the table to map to when using the jdbc-
class-map-name hint?
In my jdo file, I have specified:
<class name="Customer" objectid-class="CustomerId">
<extension vendor-name="kodo" key="jdbc-class-map-name" value="base">
<extension vendor-name="kodo" key="table" value="PERSONS"/>
</extension>
but when mappingtool generates the mapping file, the "table" hint
is ignored, and I end up with the following in the .mapping file:
<class name="Customer">
<jdbc-class-map type="base" table="FRED.CUSTOMER"/>
What I really want to see in the above jdbc-class-map is:
table="FRED.PERSONS"
I am using the property setting: kodo.jdbc.Schemas: FRED
Note that mapping fields to columns using jdbc-field-map-name
seems to work fine...
Any clues? Thanks.
droo.You can't specify table or column names via mapping tool hints. The
typical way to change the default names is either to override the
getValidTableName/getValidColumnName methods in a custom DBDictionary
for systematic changes, or to follow the process outlined in example 7.6
on this page:
http://www.solarmetric.com/Software/Documentation/latest/docs/ref_guide_mapping.html#ref_guide_mapping_mappingtool_examples -
Field "VAL6" is unknown. It is neither in one of the specified tables nor
Hello
In following report:
"REPORT ZRSETESTD.
data: val1 type t value '000000',
val2 type t value '240000',
val3 type d value '20000101',
val4 type d value '20080415',
va15(30) type c value '/CWM/STPPOD',
va16(30) type c value 'ZRHRMD_ABA'.
SUBMIT RSETESTD
WITH gs_creti BETWEEN val1 AND val2 SIGN 'I' "assuming CREATED_AT is select option in RSETESTD program
WITH gs_creda BETWEEN val3 AND val4 SIGN 'I' "assuming CREATED_ON is select option too
WITH gs_mesty BETWEEN val5 AND val6 SIGN 'I'."
I get error:
"Program ZRSETESTD
Field "VAL6" is unknown. It is neither in one of the specified tables
nor defined by a "DATA" statement . . . . . . . . . ."You have declared "va16" change it to VAL6.
-
Server must specify table in Query Manager
Dear All,
I am using below query to generate information related to GRPO but getting error
'microsoft sql server native client sql server must specify table to select from microsoft sql server native client Swei could not be prepared'
SELECT Distinct T7.DOCNUM AS ' INVOICE No.',T7.DocDate as 'Invoice Date',T7.TaxDate as 'Document Date',T7.DocDueDate,'PO','DocDate',T7.CardCode as 'Vendor Code', T7.CARDNAME as 'Vendor Name',
T7.NUMATCARD as 'Vendor Invoice No.',
T7.SHIPTOCODE as 'Ship To Code',T6.ITEMCODE,T6.DSCRIPTION,T6.Width1, cast(T15.UserText as VarChar) as 'Item Remarks',
T6.QUANTITY,T6.WhsCode as 'Wh Name',T6.UnitMsr as 'UoM',T6.PRICE as 'Basic Price',T6.LineTotal as 'Basic Amount',
T10.[TransCat] as 'Purchase Type',T6.U_InvoiceNo 'Vendor Invoice No',T6.U_InvDate 'Vendor Invoice Date',
T7.Address As 'Bill To Address',T7.Address2 As 'Ship To Address',T7.U_CST,T7.U_VAT,T7.U_PAN,T12.[U_CreditRatPayer], T12.[U_CreditRatCheq], T12.[U_CreditRatPoints], T12.[U_DiscApp] ,
T10.State as 'Vendor State',
T15.[U_ItemType], T15.[U_Pattern], T15.[U_PurchaseType], T15.[U_Origin], T15.[U_ProductRange], T15.[U_NSD], T15.[U_Segment], T15.[U_SpeedRating],
T15.[U_Brand], T15.[U_Category], T15.[U_CompoType], T15.[U_OTHBCategory], T15.[U_WidthIN], T15.[U_WidthCM], T15.[U_RimWidthIN],
T15.[U_AspectRate], T15.[U_Plyrating], T15.[U_CountryMmanu], T15.[U_ProductType], T15.[U_Radiatyre], T15.[U_Loadindex], T15.[U_CategoryFTI], T15.[U_LoadindexFTI]
FROM
dbo.PDN1 T6 inner join OPDN T7 ON T6.DocEntry = T7.DocEntry LEFT JOIN
dbo.OITM T15 ON T15.ItemCode = T6.ItemCode LEFT JOIN
dbo.OSLP T8 on T7.SLPCode = T8.SlpCode LEFT JOIN
dbo.OHEM T9 on T7.OwnerCode = T9.empID LEFT JOIN
dbo.PDN12 T10 on T7.Docentry = T10.DocEntry LEFT JOIN
dbo.OCRD T12 on T7.CardCode = T12.CardCode
Where T6.TargetType <> '19' and T15.U_ItemType = 'Tyre' and T7.DocDate >= '[%0]' and T7.DocDate <= '[%1]'
We tried to declare variable but error still appears.
Thanks
DeepakTry This
/* select docdate from OPDN t1 */
DECLARE @d1 AS DATETIME
DECLARE @d2 AS DATETIME
SET @d1 =/* t1.docdate */ '[%0]'
SET @d2 =/* t1.docdate */ '[%1]'
SELECT DISTINCT T7.DOCNUM AS ' INVOICE No.',
T7.DocDate AS 'Invoice Date',
T7.TaxDate AS 'Document Date',
T7.DocDueDate,
'PO',
'DocDate',
T7.CardCode AS 'Vendor Code',
T7.CARDNAME AS 'Vendor Name',
T7.NUMATCARD AS 'Vendor Invoice No.',
T7.SHIPTOCODE AS 'Ship To Code',
T6.ITEMCODE,
T6.DSCRIPTION,
T6.Width1,
CAST(T15.UserText AS VARCHAR) AS 'Item Remarks',
T6.QUANTITY,
T6.WhsCode AS 'Wh Name',
T6.UnitMsr AS 'UoM',
T6.PRICE AS 'Basic Price',
T6.LineTotal AS 'Basic Amount',
T10.[TransCat] AS 'Purchase Type',
T6.U_InvoiceNo 'Vendor Invoice No',
T6.U_InvDate 'Vendor Invoice Date',
SELECT DISTINCT ISNULL(SUM(PDN4.taxsum), 0)
FROM PDN4
WHERE PDN4.statype = 10
AND PDN4.docentry = T7.Docentry
AND PDN4.linenum = T6.Linenum
) BED,
SELECT DISTINCT ISNULL(SUM(PDN4.taxsum), 0)
FROM PDN4
WHERE PDN4.statype = 11
AND PDN4.docentry = T7.Docentry
AND PDN4.linenum = T6.Linenum
) Cess,
SELECT DISTINCT ISNULL(SUM(PDN4.taxsum), 0)
FROM PDN4
WHERE PDN4.statype = 12
AND PDN4.docentry = T7.Docentry
AND PDN4.linenum = T6.Linenum
) HeCess,
SELECT DISTINCT ISNULL(SUM(PDN4.taxsum), 0)
FROM PDN4
WHERE PDN4.statype = 5
AND PDN4.docentry = T7.Docentry
AND PDN4.linenum = T6.Linenum
) ServiceTax,
SELECT DISTINCT ISNULL(SUM(PDN4.taxsum), 0)
FROM PDN4
WHERE PDN4.statype = 6
AND PDN4.docentry = T7.Docentry
AND PDN4.linenum = T6.Linenum
) ServiceCess,
SELECT DISTINCT ISNULL(SUM(PDN4.taxsum), 0)
FROM PDN4
WHERE PDN4.statype = -10
AND PDN4.docentry = T7.Docentry
AND PDN4.linenum = T6.Linenum
) ServiceHeCess,
SELECT DISTINCT ISNULL(SUM(PDN4.taxsum), 0)
FROM PDN4
WHERE PDN4.statype = 1
AND PDN4.docentry = T7.Docentry
AND PDN4.linenum = T6.Linenum
) VAT,
SELECT DISTINCT ISNULL(SUM(PDN4.taxsum), 0)
FROM PDN4
WHERE PDN4.statype = 7
AND PDN4.docentry = T7.Docentry
AND PDN4.linenum = T6.Linenum
) Surcharge,
SELECT DISTINCT ISNULL(SUM(PDN4.taxsum), 0)
FROM PDN4
WHERE PDN4.statype = 8
AND PDN4.docentry = T7.Docentry
AND PDN4.linenum = T6.Linenum
) EntryTax,
SELECT DISTINCT ISNULL(SUM(PDN4.taxsum), 0)
FROM PDN4
WHERE PDN4.statype = 4
AND PDN4.docentry = T7.Docentry
AND PDN4.linenum = T6.Linenum
) CST,
STR(
SELECT (PDN3.[LineTotal] * T6.[LineTotal]) / (T7.[Doctotal] -T7.[TotalExpns] -T6.[VatSum])
FROM PDN3
WHERE PDN3.docentry = T7.Docentry
AND PDN3. ExpnsCode = '1'
19,
2
) AS 'Freight',
T7.[WTSum] * T6.[LineTotal] / (T7.[Doctotal] -T7.[TotalExpns] -T7.[VatSum] + T7.[WTSum]) AS
'TDS',
T7.DocTotal * T6.[LineTotal] / (T7.[Doctotal] -T7.[TotalExpns] -T7.[VatSum] + T7.[WTSum]) AS
'DocTotal',
T6.Freetxt AS ' Text',
T8.[SlpName],
(T9.[firstName] + ' ' + T9.[lastName]) AS 'Owner',
T7.Address AS 'Bill To Address',
T7.Address2 AS 'Ship To Address',
T7.U_CST,
T7.U_VAT,
T7.U_PAN,
T12.[U_CreditRatPayer],
T12.[U_CreditRatCheq],
T12.[U_CreditRatPoints],
T12.[U_DiscApp],
T10.State AS 'Vendor State',
T15.[U_ItemType],
T15.[U_Pattern],
T15.[U_PurchaseType],
T15.[U_Origin],
T15.[U_ProductRange],
T15.[U_NSD],
T15.[U_Segment],
T15.[U_SpeedRating],
T15.[U_Brand],
T15.[U_Category],
T15.[U_CompoType],
T15.[U_OTHBCategory],
T15.[U_WidthIN],
T15.[U_WidthCM],
T15.[U_RimWidthIN],
T15.[U_AspectRate],
T15.[U_Plyrating],
T15.[U_CountryMmanu],
T15.[U_ProductType],
T15.[U_Radiatyre],
T15.[U_Loadindex],
T15.[U_CategoryFTI],
T15.[U_LoadindexFTI]
FROM dbo.PDN1 T6
INNER JOIN OPDN T7
ON T6.DocEntry = T7.DocEntry
LEFT JOIN dbo.OITM T15
ON T15.ItemCode = T6.ItemCode
LEFT JOIN dbo.OSLP T8
ON T7.SLPCode = T8.SlpCode
LEFT JOIN dbo.OHEM T9
ON T7.OwnerCode = T9.empID
LEFT JOIN dbo.PDN12 T10
ON T7.Docentry = T10.DocEntry
LEFT JOIN dbo.OCRD T12
ON T7.CardCode = T12.CardCode
WHERE T6.TargetType <> '19'
AND T15.U_ItemType = 'Tyre'
AND T7.DocDate >= @d1
AND T7.Docdate <= @d2 -
Must specify table to select from
hi everybody
i think sometime we received this error message:
1).[Microsoft][SQL Server Native Client 10.0][SQL Server]Must specify table to selet from. 2).[Microsoft][SQL Server Native Client 10.0][SQL Server]Statment 'Contrato de Servicio' (OCTR)(s) could not be prepared.
when i'm working in SQL Server the qry run fine, but when i run in SAP, i receive the error before mentioned.
the Qry is this:
DECLARE @FechaIni datetime,
@FechaFin datetime,
@FechaAct datetime
SET @FechaAct = GETDATE()
SET @FechaIni = [%0]
SET @FechaFin = [%1]
CREATE TABLE #Libo_Mayor_CS (
CodCta nvarchar(max),
CtasPadre nvarchar(max),
NbreCta nvarchar(max),
Nivel numeric(1),
Rubro numeric(1),
SldoInicial numeric(19,6),
Debe numeric(19,6),
Haber numeric(19,6),
SldoFinal numeric(19,6)
INSERT INTO #Libo_Mayor_CS
SELECT T0.[AcctCode],
CASE
WHEN T0.[Levels] <=3 THEN T0.[AcctName]
ELSE ''
END,
T0.[Levels],
T0.[GroupMask],
0.00,
0.00,
0.00,
0.00
FROM OACT T0
LEFT JOIN JDT1 T1 ON T0.[AcctCode] = T1.[Account]
WHERE T0.[Levels] BETWEEN 1 AND 3 AND
T0.[GroupMask] BETWEEN 1 AND 5
GROUP BY T0.[AcctCode],
T1.[Account],
T0.[Levels],
T0.[AcctName],
T0.[GroupMask]
INSERT INTO #Libo_Mayor_CS
SELECT T0.[AcctCode],
CASE
WHEN T0.[Levels] >3 THEN T0.[AcctName]
ELSE ''
END,
T0.[Levels],
T0.[GroupMask],
CASE
WHEN T0.GroupMask = 1 THEN (select t11.[CurrTotal]+sum(t10.[Debit])-sum(t10.[credit]) from oact t11 left join jdt1 t10 on t11.[AcctCode] = t10.[Account] where t10.[RefDate] between @FechaIni and @FechaAct and t11.[AcctCode] = T0.[AcctCode] group by t11.[CurrTotal])
WHEN T0.GroupMask = 2 THEN (select t11.[CurrTotal]-sum(t10.[Credit])-sum(t10.[Debit]) from oact t11 left join jdt1 t10 on t11.[AcctCode] = t10.[Account] where t10.[RefDate] between @FechaIni and @FechaAct and t11.[AcctCode] = T0.[AcctCode] group by t11.[CurrTotal])
WHEN T0.GroupMask = 4 THEN (select t11.[CurrTotal]+sum(t10.[Debit])-sum(t10.[credit]) from oact t11 left join jdt1 t10 on t11.[AcctCode] = t10.[Account] where t10.[RefDate] between @FechaIni and @FechaAct and t11.[AcctCode] = T0.[AcctCode] group by t11.[CurrTotal])
WHEN T0.GroupMask = 5 THEN (select t11.[CurrTotal]-sum(t10.[Credit])-sum(t10.[Debit]) from oact t11 left join jdt1 t10 on t11.[AcctCode] = t10.[Account] where t10.[RefDate] between @FechaIni and @FechaAct and t11.[AcctCode] = T0.[AcctCode] group by t11.[CurrTotal])
END,
SUM(T1.[Credit]),
SUM(T1.[Debit]),
0.00
FROM OACT T0
LEFT JOIN JDT1 T1 ON T0.[AcctCode] = T1.[Account]
WHERE T0.[Levels] > 3 AND
T0.[GroupMask] BETWEEN 1 AND 5 AND
(T1.[RefDate] between @FechaIni AND @FechaFin)
GROUP BY T0.[AcctCode],
T1.[Account],
T0.[Levels],
T0.[AcctName],
T0.[GroupMask]
SELECT A.[CodCta] 'Codigo de Cuenta',
A.[CtasPadre] 'Cuentas Padre',
A.[NbreCta] 'Nombre de Cuenta',
A.[Nivel] 'Nivel',
A.[Rubro] 'Rubro',
A.[SldoInicial] 'Saldo Inicial',
A.[Debe] 'Debito',
A.[Haber] 'Credito',
CASE
WHEN A.[Rubro] = 1 THEN (A.[SldoInicial] + A.[Debe] - A.[Haber])
WHEN A.[Rubro] = 2 THEN (A.[SldoInicial] + A.[Haber] - A.[Debe])
WHEN A.[Rubro] = 4 THEN (A.[SldoInicial] + A.[Debe] - A.[Haber])
WHEN A.[Rubro] = 5 THEN (A.[SldoInicial] + A.[Haber] - A.[Debe])
ELSE 0
END 'Saldo'
FROM #Libo_Mayor_CS A
ORDER BY A.[CodCta]
DROP TABLE #Libo_Mayor_CS
if assign the value to variables directly the Qry run in SAP but when i change the comodin to capture the variables value of SAP , there is when the problem ocurre
DECLARE @FechaIni datetime,
@FechaFin datetime,
@FechaAct datetime
SET @FechaAct = GETDATE()
SET @FechaIni = '20110601'
SET @FechaFin = '20110630'
i wait for your recomendations
Edited by: AlexMeza on Jun 15, 2011 1:29 AMHi all !
Sorry because i dont know where post new.
My issue, when i using querry manager to call store in Database like this
Declare @Fromdate Datetime
Declare @Todate Datetime
Declare @AcctCode nvarchar (20)
set @Fromdate = (select distinct (T1.RefDate) from OJDT T1 where T1.RefDate = '[%0]')
set @Todate = (select distinct (T2.RefDate) from OJDT T2 where T2.RefDate = '[%1]')
set @AcctCode = (select distinct(T3.AcctCode) from OACT as T3 where T3.AcctCode ='[%2]' )
exec [USP_RPT_FI_GENERALLEDGER] @Fromdate, @Todate, @AcctCode
and i run this querry
this error:
1). [Microsoft][SQL Server Native Client 10.0][SQL Server]Must specify table to select from. 2). [Microsoft][SQL Server Native Client 10.0][SQL Server]Statement 'Service Contracts' (OCTR) (s) could not be prepared.
Please help me fix this issue
Regards!
John Le. -
MUST SPECIFY TABLE TO SELECT FROM ,2 RECEIVED ALERTS COULD NOT BE PREPARED
**Dear All, I get this Error"MUST SPECIFY TABLE TO SELECT FROM ,2 RECEIVED ALERTS COULD NOT BE PREPARED"** Please help me solve this
SELECT T1.AcctCode, T1.AcctName FROM OACT T1 WHERE (T1.AcctCode ='ACACBB0001' OR T1.AcctCode ='ACACBBBP01' OR T1.AcctCode ='ACACBBBP02' OR T1.AcctCode ='ACACBBBP03' OR T1.AcctCode ='ACACBBBP04' OR T1.AcctCode ='LLFSLCC001' OR T1.AcctCode ='LLFSLCC002' OR T1.AcctCode ='LLFSLTL001' OR T1.AcctCode ='LLFULFO001')
AND T1.AcctCode NOT IN (SELECT T0.Account FROM JDT1 T0 WHERE T0.REFDATE<='[%0]' AND (T0.Account ='ACACBB0001' OR T0.Account ='ACACBBBP01' OR T0.Account ='ACACBBBP02' OR T0.Account ='ACACBBBP03' OR T0.Account ='ACACBBBP04' OR T0.Account ='LLFSLCC001' OR T0.Account ='LLFSLCC002' OR T0.Account ='LLFSLTL001' OR T0.Account ='LLFULFO001' ) )
Regrds
MD Zubairchange the query as
declare @date datetime
SELECT @date = T0.refdate FROM JDT1 T0 WHERE T0.REFDATE ='[%0]'
SELECT T1.AcctCode, T1.AcctName FROM OACT T1 WHERE (T1.AcctCode ='ACACBB0001' OR T1.AcctCode ='ACACBBBP01' OR T1.AcctCode ='ACACBBBP02' OR T1.AcctCode ='ACACBBBP03' OR T1.AcctCode ='ACACBBBP04' OR T1.AcctCode ='LLFSLCC001' OR T1.AcctCode ='LLFSLCC002' OR T1.AcctCode ='LLFSLTL001' OR T1.AcctCode ='LLFULFO001')
AND T1.AcctCode NOT IN (SELECT T0.Account FROM JDT1 T0 WHERE T0.REFDATE<=@date AND (T0.Account ='ACACBB0001' OR T0.Account ='ACACBBBP01' OR T0.Account ='ACACBBBP02' OR T0.Account ='ACACBBBP03' OR T0.Account ='ACACBBBP04' OR T0.Account ='LLFSLCC001' OR T0.Account ='LLFSLCC002' OR T0.Account ='LLFSLTL001' OR T0.Account ='LLFULFO001' ) ) -
How can I specify table owners when I export project to Java source?
Using TopLink Mapping Workbench, when I export project to Java source, the descriptors is automatically generated like:
descriptor.addTableName("SOME_TABLE");
Is there a way to configure the TopLink Mapping Workbench so it generates the descriptors so that the table owner is explicitly specified?
descriptor.addTableName("SCHEMA_A.SOME_TABLE");
Thanks!You can re-name your tables in the MW to be fully qualified for the name and that's how it will be generated and used.
Doug -
(DV) How to use underscore in specifying TABLE objects in REALM definition.
In Database Vault when defining a Realm, specifying object type TABLE and trying to specify just tables ending in _A (underscore A) I get the following error.
ORA-28104: input value for object name is not valid ORA-00911: invalid character ORA-06512: at "DVSYS.DBMS_MACADM", line 1859 ORA-06512: at line 1
%_A
%\_A
%{_}A
do not work
Any help appreciated.
Thanks
DaneRe: problem with add source database user to the Oracle Data Dictionary realm
-
How to specify table name using xdoclet
Hi
I'm trying to specify a table name using xdoclet 1.2.
I've tried the @sql.table, but that ain't working (no table mapping name is
writen to the *.jdo)
I've tried using the @jdo.class-vendor-extension with key=table and
value=tablename, but that ain't working either.
I guess number two approach ain't working because kodo want table name
extension inside another extension like this:
<extension vendor-name="kodo" key="jdbc-class-map" value="base">
<extension vendor-name="kodo" key="table" value="tablename"/>
</extension>
But, how do I specify the above using xdoclet?
Regards
JesperOk.
Is it possible somehow to just tell kodo to use another table name without
having to create mapping extensions for collections and stuff. Even better
if one could specify a table name prefix to be used on all tables.
My problem is that I need use kodo on an existing database having tables
names that conflict with kodo's auto-generated tables names. The schematool
will then try alter these tables :-(
Regards
Jesper
"Stephen Kim" <[email protected]> wrote in message
news:[email protected]...
When you use metadata mapping extensions, you should not generate
.mapping files as all that info is stored in the .jdo file. You should
instead set kodo.jdbc.MappingFactory to metadata.
Jesper Ladegaard wrote:
Thanks.
However, I still can't get it to work.
I've created a java class named Role with xdoclet like this:
* @jdo.persistence-capable
* @jdo.class-vendor-extension
* vendor-name="kodo" key="jdbc-class-map" value="base"
* @jdo.class-vendor-extension
* vendor-name="kodo" key="jdbc-class-map/table" value="BW_ROLE"
* @jdo.class-vendor-extension
* vendor-name="kodo" key="jdbc-class-map/pk-column" value="JDOID"
Xdoclet generates a jdo file like this:
<jdo>
<package name="dk.pine.users.services.model">
<class name="Role"
identity-type="datastore"
<!-- end class tag --><extension vendor-name="kodo"
key="jdbc-class-map"
value="base">
</extension>
<extension vendor-name="kodo"
key="jdbc-class-map/table"
value="BW_ROLE">
</extension>
<extension vendor-name="kodo"
key="jdbc-class-map/pk-column"
value="JDOID">
</extension>
<field name="users"
default-fetch-group="true"
<!-- end field tag --><collection
element-type="dk.pine.users.services.model.User"
embedded-element="false"
<!-- end collection tag --></collection>
<extension vendor-name="kodo"
key="inverse-owner"
value="roles">
</extension>
</field>
</class>
</package>
</jdo>
Now I run the mappingtool (with option refresh) and it generates a
mapping
file like this:
<mapping>
<package name="dk.pine.users.services.model">
<class name="Role">
<jdbc-class-map type="base" pk-column="JDOID"
table="dbo.ROLE0"/>
<jdbc-version-ind type="version-number"column="JDOVERSION"/>
<jdbc-class-ind type="in-class-name" column="JDOCLASS"/>
<field name="description">
<jdbc-field-map type="value" column="DESCRIPTION"/>
</field>
<field name="name">
<jdbc-field-map type="value" column="NAME0"/>
</field>
<field name="systemRole">
<jdbc-field-map type="value" column="SYSTEMROLE"/>
</field>
<field name="users">
<jdbc-field-map type="many-many"
element-column.JDOID="JDOID" ref-column.JDOID="ROLES_JDOID"
table="dbo.USER0_ROLES"/>
</field>
</class>
</package>
</mapping>
I expected it to create a BW_ROLE, but it create a ROLE0 table????
"Stephen Kim" <[email protected]> wrote in message
news:[email protected]...
You can use slashes to denote sub extensions.
See the example near the bottom of this link:
http://solarmetric.com/Software/Documentation/3.0.3/docs/ref_guide_integrati
on_xdoclet.html
Jesper Ladegaard wrote:
Hi
I'm trying to specify a table name using xdoclet 1.2.
I've tried the @sql.table, but that ain't working (no table mapping
name
>>
is
writen to the *.jdo)
I've tried using the @jdo.class-vendor-extension with key=table and
value=tablename, but that ain't working either.
I guess number two approach ain't working because kodo want table name
extension inside another extension like this:
<extension vendor-name="kodo" key="jdbc-class-map" value="base">
<extension vendor-name="kodo" key="table" value="tablename"/>
</extension>
But, how do I specify the above using xdoclet?
Regards
Jesper
Steve Kim
[email protected]
SolarMetric Inc.
http://www.solarmetric.com
Steve Kim
[email protected]
SolarMetric Inc.
http://www.solarmetric.com -
Specifying tables in CSS (was Defining constants)
Following some suggestions from Gary, I modified my table
specification to
read:
.pictureframe {width: 5%; background-color: #d8d8f0; }
.pictureframe td{padding: 5px; }
In the HTML file this is invoked with:
<table class="pictureframe" align="left"> [or as
required
This worked fine, except that if I had three pictures
together aligned
respectively left, centre and write, Dreamweaver did not
display them correctly,
but drew the left and centred images on top of each other.
Gary also suggested replacing the 'align' statement with a
'floa' statement in
the CSS. This meant that I had to have separate styles for
each alignment, so I
introduced three new styles:
.pf_l, .pf_m, .pf_r {width: 5%; background-color: #d8d8f0; }
.pf_l, .pf_m, .pf_r td {padding: 5px; }
.pf_l {float: left; }
.pf_m {float: none; }
.pf_r {float: right; }
This introduced a new set of problems. Firstly style 'pf_m'
takes up the
default alignment of the cell it is in, instead of being
centred, as I wanted,
so to get it centred I still had to add an align = centre
statement in HTML, and
secondly the image drawn with pf_r has a wider border than
the others. I cannot
see why this should be so.
A page demonstrating these various effects is at:
D:\Websites\cybec\Test_nstdpage.htm
Gary also complained "there's no such attribute as
"bordercolor". Maybe strictly
so, but you can hardly blame me for not knowing that.
Dreamweaver doesn't
complain about it, it works, and O'Reilly's definitive guide
to HTML and XHTML
has numerous references to it. I had to look for some time to
find a statement
that it was 'nonstandard' in one of these references.
[email protected]> I went there and by mistake I reformatted the whole
drive. I hope that's
> OK....
I guess that's why when I went there it was blank.
W
"Murray *ACE*" <[email protected]> wrote
in message
news:[email protected]...
> > This worked fine, except that if I had three
pictures together aligned
> > respectively left, centre and write, Dreamweaver
did not display them
> > correctly,
> > but drew the left and centred images on top of each
other.
>
> Try removing the width:5% from the table rule.
>
> > A page demonstrating these various effects is at:
> > D:\Websites\cybec\Test_nstdpage.htm
>
> I went there and by mistake I reformatted the whole
drive. I hope that's
> OK....
>
> --
> Murray --- ICQ 71997575
> Adobe Community Expert
> (If you *MUST* email me, don't LAUGH when you do so!)
> ==================
>
http://www.dreamweavermx-templates.com
- Template Triage!
>
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
>
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
>
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
> ==================
>
>
> "Clancy" <[email protected]> wrote in message
> news
[email protected]...
> > Following some suggestions from Gary, I modified my
table specification
> > to
> > read:
> >
> > .pictureframe {width: 5%; background-color:
#d8d8f0; }
> > .pictureframe td{padding: 5px; }
> >
> > In the HTML file this is invoked with:
> > <table class="pictureframe" align="left"> [or
as required
> >
> > This worked fine, except that if I had three
pictures together aligned
> > respectively left, centre and write, Dreamweaver
did not display them
> > correctly,
> > but drew the left and centred images on top of each
other.
> >
> > Gary also suggested replacing the 'align' statement
with a 'floa'
> > statement in
> > the CSS. This meant that I had to have separate
styles for each
> > alignment, so I
> > introduced three new styles:
> >
> > .pf_l, .pf_m, .pf_r {width: 5%; background-color:
#d8d8f0; }
> > .pf_l, .pf_m, .pf_r td {padding: 5px; }
> > .pf_l {float: left; }
> > .pf_m {float: none; }
> > .pf_r {float: right; }
> >
> > This introduced a new set of problems. Firstly
style 'pf_m' takes up
the
> > default alignment of the cell it is in, instead of
being centred, as I
> > wanted,
> > so to get it centred I still had to add an align =
centre statement in
> > HTML, and
> > secondly the image drawn with pf_r has a wider
border than the others.
I
> > cannot
> > see why this should be so.
> >
> > A page demonstrating these various effects is at:
> > D:\Websites\cybec\Test_nstdpage.htm
> >
> > Gary also complained "there's no such attribute as
"bordercolor". Maybe
> > strictly
> > so, but you can hardly blame me for not knowing
that. Dreamweaver
doesn't
> > complain about it, it works, and O'Reilly's
definitive guide to HTML and
> > XHTML
> > has numerous references to it. I had to look for
some time to find a
> > statement
> > that it was 'nonstandard' in one of these
references.
> >
> > [email protected]
>
> -
Monitoring locking on a specified table
Hi there,
Helppp....does anyone know how to monitor locks in a particular table (eg: NRIV)in Solution Manager or CCMS please ?
Many thanks,
MinaHi Mina
sorry if this reply comes too late for you..
However at my current client, they had immense NRIV locking problems for many years when they ran R/3 invoicing jobs in parallel.
As I am also from an Oracle background, I originally assumed that the deadlocks were due to poor DB2 performance and spent months investigating this angle.
The deadlocks for this can be seen in transaction DB01, but I never saw NRIV locks in SM12 (due to the buffered nature of the NRIV access I think). You can also see deadlocks and timeouts for DB2 in transaction /nDB2.
Finally I relasied that actually the bottleneck was not in the DB but in the app servers - the batch processes frequently displayed semaphore 8 (unable to access free dia wp). Monitiring this situiation in SM66/SM50 I saw that the batch jobs spawned many workflow & RFC requested which satruated all the free dia wp's on the same app server, preventing the number range from being re-populated (this needs a free dia wp). However this gives the impression that it's due a database deadlock as in DB01 and in the ST22 dump, all clues point to this.
So we shifted all WF and RFC on to separate apps servers and cleared the issue (so far at least). The batch jobs continue to run as they are able to replenish the number ranges now as there are many free dia wp's on the batch servers. The spawned asynchronous RFC's and workflows are processed on separate servers and do not block the batch processes.
I hope this makes sense - it took us a long time to realise the solution and hence I'm posting it here in case it helps other people.
Good luck
Ratna -
Field is unknown. it is neither in one of specified tables nor defined by data statement
Hello,
I'm doing enhancement to filter the data for the input parameters. Also I've coded implicit enhancement for the selection parameters to be displayed on standard IE05 selection screen.
Defined a block as follows in standard program RIHEQUI20
selection selectio begin of block b1 with frame title text-099.
select-options:
cre_date for equi-zzcreate_date,
lp_pdate for equi-zzprint_date.
selection selectio end of block b1.
now to filter the data corresponding to the input in selection parameters i've explicit enhancement point in which added coded in where condition
as
zzcreate_date IN cre_date
AND zzprint_date IN lp_pdate
but error message showing the above heading
Solution for that....PLZ help!!Hello,
below is code for pragram RIHEQUI20...
ENHANCEMENT-POINT RIEQUI20_G6 SPOTS ES_RIEQUI20 STATIC.
*$*$-Start: RIEQUI20_G6-------------------------------------------------------------------------$*$*
ENHANCEMENT 5 MGV_GENERATED_RIEQUI20. "active version
START-OF-SELECTION.
ENDENHANCEMENT.
*$*$-End: RIEQUI20_G6-------------------------------------------------------------------------$*$*
ENHANCEMENT-POINT RIEQUI20_G7 SPOTS ES_RIEQUI20.
*$*$-Start: RIEQUI20_G7-------------------------------------------------------------------------$*$*
ENHANCEMENT 6 MGV_GENERATED_RIEQUI20. "active version
LOOP AT mgv_matnr_selopt_tab.
CONCATENATE mgv_matnr_selopt_tab-name'[]' INTO
mgv_matnr_selopt_tab-name.
ASSIGN (mgv_matnr_selopt_tab-name) TO <mgv_matnr_selopt_conv>.
IF sy-subrc IS INITIAL.
CALL FUNCTION 'MGV_SELOP_AFTER_START_OF_SEL'
EXPORTING
SELOPT_NAME = mgv_matnr_selopt_tab-name
TABLES
RANGE = <mgv_matnr_selopt_conv>.
ENDIF.
ENDLOOP.
ENDENHANCEMENT.
ENHANCEMENT 1 ZPM_BARCODE_SCREEN_EHNANCMENT1. "active version
* SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
* PARAMETERS: pa type equi-zzcreate_date.
* SELECTION-SCREEN end of BLOCK b1.
ENDENHANCEMENT.
*$*$-End: RIEQUI20_G7-------------------------------------------------------------------------$*$*
INCLUDE miequi20.
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(1) Include RIEQUI20, End S
*$*$-Start: (1)---------------------------------------------------------------------------------$*$*
ENHANCEMENT 2 ZPM_BARCODE_SCREEN_EHNANCMENT1. "active version
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-099.
select-OPTIONS:
Cre_Date for equi-zzcreate_date,
lp_pdate for equi-zzprint_date,
lp_tdate for equi-zztag_date,
lp_sdate for equi-zzscan_date,
lp_count for equi-zzprint_no.
SELECTION-SCREEN end of BLOCK b1.
ENDENHANCEMENT.
*$*$-End: (1)---------------------------------------------------------------------------------$*$*
And for data to filter according to select-option , implemented an explicit enhancement in section.
code for that is in include miequi20
Maybe you are looking for
-
Converting list in pdf to Excel using Adobe ExportPDF
I have a document in .pdf format that is a list including columns with Town, Name, Address and Phone number, listed on the page in two columns, divided in the center. When I convert the document to Excel format, the first column returns gobblety ****
-
Qosmio X500 - enternal monitor does not get a signal
Hi its come a time when I need a external monitor to extend my desktop. I plugged in one of my monitors to the laptop. Qosmio sees it but the monitor does not get a signal. Tried a 2nd monitor and it does the same thing says cable not connected on 1
-
How Can I use JTable Like Datagrid (Spreadsheet) and database
Please how can I achieve the following in java: (1) Create a Grid (spreadsheets-Like) with JTable and be able to add new record (rows) as I reach the end of the last column during data entry. (2) Save the content of the grid to a text file as well as
-
Hi. I've found a few other posts that could be related but here's my problem. I burned a CD from iTunes today, listened to the music and the resulting CD to check it, then later on a data CD with Toast. After some word processing and a sleep, I went
-
50/60 fps in progressive HD?
Ok this is probably the wrong forum to post in, but I'll take a shot nonetheless... I'm considering buying a DSLR for video shoot in HD and I've come across a Canon model 550D that advertises 1080p in 50/60 fps. What does this mean? Slow motion? Obvi