on 01-18-2008 9:00 AM
Hi
Could u help me? it is necessary that
I have two database ( RSHPL,RSPL) and both data base have same table name and same fieldname (Table Name :-OITM, Fieldname :ONHAND ,pk- ITEMcode,)
At first I tell u what I want?
I want to generate query at a time & connect two database and same table name(OITM) to select the TOTAL VALUE of this field(ONHAND) and pk-key is Itemcode.
Is it Possible? If Possible plz write this query and send me.
here is the solution - copy it in your query analyzer and replace the database name
select x.itemcode, sum(x.onhand) from
(select itemcode, sum(onhand) as 'onhand' from [databasename1].dbo.oitm group by itemcode
union all
select itemcode, sum(onhand) as 'onhand' from [databasename2].dbo.oitm group by itemcode) as x
group by itemcode
please reward points - it cost me 5 minutes of my live
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I don't think its possible to write a query from within SAP that allows you to get data from another SAP database.
I have used SQL Reporting Services to report on data from multiple databases, and this works very well for many of my clients. It depends on what you want to do with the data, do you need to display it on the screen in SAP and it to a field or will a report suffice?
Regards,
Adrian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I also want to ask u smethng related to query,i hve created 1 UDF at row level of outgoing payment now my problem is i want to do FMS i.e formatted search at row level suah that Customer/vendor reference no. should get displayed........
i know its already there but what the problem is in layout PLD i am unable to pick up that value...what i must do in such case.let me know its actualy an urgent requirment..........so let me know asap.
mona
User | Count |
---|---|
95 | |
11 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.