ADDON query
Below this queries is addon query i want to add (T0.[DocEntry] this is unit GRN number ) this field in below query
How Do i will add?
select distinct t1.DocNum,t1.DocDate,t1.NumAtCard,t1.CardName,t4.U_desc,t4.U_recqun[GRN-QTY],t6.U_PREACPT[Accepted],t6.U_BALQTY[Waiting for QC]
from OPDN t1 inner join PDN1 t2 on t1.DocEntry = t2.DocEntry inner join [@SU_SUBCONGRN] t3 on t1.DocNum= t3.U_grnno
inner join [@SU_SUBGRNLINES] t4 on t3.DocEntry = t4.DocEntry inner join [@TI_GRNINSPECTION] t5 on t3.DocNum = t5.U_SUBGRN
inner join [@TI_GRNLINE]t6 on t5.DocEntry = t6.DocEntry
where t1.DocDate>=[%0] and t1.DocDate<=[%1] and t1.CardName=[%2]
Hi.........
Try this...........
select distinct T1.DocEntry 'Unit GRN No.', t1.DocNum,t1.DocDate,t1.NumAtCard,t1.CardName, t4.U_desc, t4.U_recqun as 'GRN-QTY', t6.U_PREACPT as 'Accepted',t6.U_BALQTY as 'Waiting for QC'
from OPDN t1 inner join PDN1 t2 on t1.DocEntry = t2.DocEntry inner join @SU_SUBCONGRN t3 on t1.DocNum= t3.U_grnno
inner join @SU_SUBGRNLINES t4 on t3.DocEntry = t4.DocEntry inner join @TI_GRNINSPECTION t5 on t3.DocNum = t5.U_SUBGRN
inner join @TI_GRNLINEt6 on t5.DocEntry = t6.DocEntry
where t1.DocDate>='[%0]' and t1.DocDate<='[%1]' and t1.CardName='[%2]'
Regards,
Rahul
Similar Messages
-
While Starting Addon - Getting message "Addon Query Timed Out"
Hi All,
In the "AddOn Manager" Screen, when i am clicking the "START" button to start my AddOn, after some time it is giving me a message "AddOn Query Timed Out" and setting the status as "Failed", though it has started my AddOn and its working without any problem, but since it has status "Failed" it keeps the "Stop" button disabled, hence i am unable to stop my addon.
Immediate Response is needed.
Thanks in Advance.Search the forum: this question has been answered many times. See Re: Reg . AddOn Timeout Message is comming but AddOn is still working.
-
Hi all,
I would like to ask if anyone encountered this before. It seems like SBO is not able to trigger the approval if we want to check each line of a single document.
Let's say I have Purchase Order with 5 lines, i want to trigger approval if there is a line with quantity > 1000 for example. I tried to write a query against POR1, but it doesnt work. I think SBO only recognize the header information of document.
is it any workaround for this issue?
thanks for your kind attention.
regards,
erwineHi Erwine,
As far as I know the approval procedure is only triggered by the normal SBO. (Someone correct me if I'm wrong) So it will not be triggered while adding documents by your AddOn/query etc...
Hope this helps... -
Does Lion support entourage 2008?
Just bought a new iMac with Lion installed. Can I run Entourage 2008 on it?
Thanks.Hi Mr Kaufmann
There seems to be some confusion on this one, this blog:
http://www.officeformachelp.com/2011/07/microsoft-announces-lion-compatibility-f or-office-for-mac/
has as many posters whose installation succeeded as those who failed, MS state that some 2008 addons (Query for one) don't work because they are PPC apps, no mention of installer issues, I no longer have a copy of 2008 so can't try, has anyone actually tried to install 2008 or are we all just repeating the 'conventional wisdom' du jour? -
Error using Database addons with SQL query.
I get a LabVIEW error when I provide the following SQL query to the NI database VI: ..vi.lib\addons\database\Connection.llb\Conn Execute.vi.
declare @SR_ID table ( script_result_id uniqueidentifier )
insert into @SR_ID
select script_result_id from SCRIPT_RESULT
where script_result.software_name = '%s'
SELECT distinct STEP_RESULT.STEP_TYPE
FROM STEP_RESULT INNER JOIN @SR_ID s ON
STEP_RESULT.SCRIPT_RESULT_ID = s.script_result_id
The error is:
Error -2146824584 occurred at NI_Database_API.lvlib:Rec Destroy - Connection.vi->Database_Query Database with flattened string reply.vi->ADUTS-RPT Query DB.vi->ADUTS-RPT Get Step Names.vi->ADUTS-RPT Top.vi
Possible Reason(s): Exception occured in ADODB.Recordset: Operation is not allowed when the object is closed.
The query works fine when given directly to my SQL server.
Any ideas on this problem would be most appreciated.It looks like the bug is related to ADODB objects. I found a related KnowledgeBase article that was written about the same issue, but never published for some reason. Here's what it has to say about your error:
"This error occurs when a query is run on the database that does not return any recordset data, such as a delete command. In this case, when you encounter the DB Tools Fetch Recordset Data VI, the state of the recordset is "closed" and produces the error.
To avoid the error, you can check for the state of the recordset and make sure that it isn't closed. To do this, use the DB Tools Get Properties VI and check the state from the properties cluster. An additional, or alternate, check would be to check for the beginning of file and end of file properties. If both BOF and EOF are both true, there is no data in the recordset.
If you open the example program, Database Fetching, you can see that they are using both of these checks.
In versions of the toolset prior to version 1.0.2, these checks were built in. This causes code without the checks to return this error if the toolset is updated from a previous version."
Tim W.
Applications Engineering
National Instruments
http://www.ni.com/support -
Change Query for SnapShot in Outlook Express Addon
Expert,
I am using SAP 8.8 PL15 and using Outlook Add-On.
we are using SnapShot for our report also but we need report in specific format,
can we change query so that report will change and we have our own report format
Thanks
Nilesh ShahHi Nilesh Shah,
You can try under test environment. Then you will know.
Thanks,
Gordon -
HI All,
Hope you are fine.
I want to following fields in the query but I am not sure from which tables I will get these details.
SELECT T0.[U_ItemCode], T0.[U_AsstNum], T0.[U_User01] as 'Axapta No.' , T0.[U_Desc], T0.[U_SerNum], T0.[U_User02] as 'Asset Location', T0.[U_VendCode] as 'Supplier Code', T0.[U_VendDesc] as 'Supplier Name' , T0.[U_InvNum] as 'TCC P/L No.', T0.[U_AcqDate], T0.[U_RetDate] as 'Disposal date' , T0.[U_CapDate] FROM [dbo].[@BA_OAMD] T0 WHERE T0.[U_StatusID] =[%1] ORDER BY T0.[U_AsstNum], T0.[U_ItemCode]
And I want additional these fields.
add the invoice number, the accumulative depreciation amount and the net book value
Please help me on this.Hi,
try below query
SELECT T0.[ItemName], T0.[AssetItem], T0.[validFor] FROM OITM T0 WHERE T0.[validFor] ='Y' and T0.[AssetItem] ='Y'
you can choose here depriciation type too same as above..
Regards
Deepak Tyagi -
Display a query with multiple results and a little addon :D
Hello everybody,
I wanna make a JSP page that displays multiple results from a query.
I wanna those results to appair in a table, a row each one, and also a little "square radio form buttton" that makes me select rows I wanna delete (with another button at the end)
any idea?
Better if you post the code, I'm not a good JSP writer
thanks everybody for your attention and your time
Kind regardsYou're right.. I'd post nothing..
But it's all still in progress and I don't know what to post..
I understand is really difficult to invent some code without an origin (variables, functions, the bean), but also some general info would be really appreciated,also making a streched example if you can..
REQUESTS:
1) I need make a new JSP page, where will be visualize rows returned from a precise query selection
2)I use Beans, and my idea was to create Bean in JSP, open connection, make the query and create "some kind of FOR cycle" that fills a table, row by row
3)Every row must got a little "radio button" for a delete selection; the delete function will start when I press a specific button in this page(i'll use a servlet for this function)
4)The biggest and important trouble is HOW to display multiple rows in the Table -
¿como ver con query addon conectado/desconectado en tiempo real xusauario?
Encontré estas tablas pero dan información de la configuración de los Add ons instalados,
Definición del ad don en la compañía
SELECT * FROM OARI T0
Registro del Ad don en SBO COMMON :
SELECT * FROM SARI
Definicion de add on en usuarios
SELECT * FROM ARI1
El tema es que requiero apoyo para ver si por medio de un query puedo ver si un ad don esta o no está conectado en tiempo real por determinado usuario.Hola.
El tema de relacionar los usuarios SB1 con las máquinas ha surgido constantemente en los Foros. Aún no hay una solución completa pero hay aproximaciones interesantes que funcionan.
Por favor sigue este link a otro caso donde se habla de esto: Saber en que PC está conectado un usuario a B1.
En cuanto a los add-ons, déjame miro.
Espero sea de ayuda.
Saludos. -
F2 Query,Add,Find, Multi AddOn Conflicts
Question:
What would prevent the following 3 items from not working from a Custom
AddOn screen only(B1 screens continue to work correctly)?:
. 1) Shift/F2 LookUp does not work
. 2) Add,Find and Navigate functions are not operational
. 3) Unable to open a UserTable from the B1 Tools User Tables menu
Scenario A:
With our custom Add On and the Fourth Shift Edition AddOn both connected,
the above 3 items work the first time one of our custom screens are opened.
However, if you exit then re-enter our custom screen the above 3 issues are
encountered.
Scenario B:
With only our custom AddOn connected, all of our custom screens work as expected.
The above 3 items are not encountered regardless of how many times a custom screen
is entered closed and re-entered.
This is the first conflicting AddOn situation we have encountered with a Customer. Any help, insight or
options are appreciated.
Thanks,
EdEddy:
As you suggested, we have sent a return e-mail back to SoftBrands asking the question in your response to my post.
Have you heard of this happening in your experiences?
Thanks,
Ed -
Exception in BEX Query Designer 7.10 when restricting dataprovider in filte
Hello,
when I build a query in the Query Designer 7.10 and try to restrict the infoprovider in the filter
to access a mulitprovider I get the exception:
"Unhandled exception has occurred in your application.....
Index was out of range........"
Our System:
Windows XP Servicepack 2
.Net 2.0 Serivcepack 1
Office 2003
SAP GUI 7.10 Patchlevel 9
BI Addon + Serivcepack 7
BW 3.5 Addon + Servicepack 4
Netweaver 7.00 packagelevel 11
Has anybody seen the same erro or a oss note which fixes this problem?
Thanks.
Regards, Lars.Hi,
I have not encountered this problem in the last days. We have made an upgrade
in the support package level from 11 to 16 for Netweaver Basis and 12 to 18 for
Netweaver BI. Sometimes there can arise problems when the support package level
of the Application Server is to low in comparision to the SAP GUI.
Maybe this was the problem. I am not sure.
I would advise you to install the latest upgrades of your SAP GUI and keep the application
server on a high support package level.
Sorry, I can't give any other hint.
Regards, Lars. -
CAN WE HAVE IF CONDITION IN QUERY GENERATOR
Hi friends,
am, trying to make use of if condition to obtain a set of values in query generator. Its possible to retrieve the required result set using query analyser but not in query generator. am trying to execute the following query
if exists (select owor.u_reactor from owor,oitt where oitt.code=owor.itemcode and owor.u_reactor = 1 and owor.itemcode = '100-100')
begin
select itt1.u_reactor1 from oitt,itt1 where itt1.father = oitt.code and itt1.father = '100-100'
end
else
if exists (select owor.u_reactor from owor,oitt where oitt.code=owor.itemcode and owor.u_reactor = 2 and owor.itemcode = '100-100')
begin
select itt1.u_reac_23 from oitt,itt1 where itt1.father = oitt.code and itt1.father = '100-100'
end
else
if exists (select owor.u_reactor from owor,oitt where oitt.code=owor.itemcode and owor.u_reactor = 3 and owor.itemcode = '100-100')
begin
select itt1.u_reactor4 from oitt,itt1 where itt1.father = oitt.code and itt1.father = '100-100'
end
if it is not possible to write such query in query generator can someone help me with a workaround solution.
Thank u
VaitheeswaranHi,
I dont think Nested IF Statements are allowed in PLD. The reason that u get the result in Query analyser and not in Query Generator is that SAP supports Transact SQL and many SQL Server 2000 functions are not supported.
However there is a work around in Print Layout Designer for using IF condition by having Linked Objects. Kindly see some tutorials regarding Linked fields available on SDN site and think of some other way of implementing this nested IF query.
Regards
Rizwan Hafeez
Team Lead
SAP Addon Development Section
Abacus Consulting - Pakistan -
Dear all,
We are on SAP B1 2007 PL42 and using Moving average as our cost valuation method.
It doesn't have an inbuilt stock aging report, I have searched through the forum but none of the queries arebshowing the correct aging of stocks. Could anyone have a query/report/addon for stock aging?
Kind Regards,
AsifHi,
Try this one,with warehouse code as input parameter
select b.code, b.name, b.Wh, b.Bal, b.Val,
isnull(case when b.days <30 then b.bal end,0)'0-30 Days' ,
isnull(case when b.days between 30 and 60 then b.bal end,0) '30-60 Days',
isnull(case when b.days between 60 and 90 then b.bal end,0) '60-90 Days',
isnull(case when b.days between 90 and 120 then b.bal end,0) '90-120 Days',
isnull(case when b.days between 120 and 150 then b.bal end,0) '120-150 Days',
isnull(case when b.days between 150 and 180 then b.bal end,0) '150-180 Days',
isnull(case when b.days >180 then b.bal end,0) 'Above 180 Days'
from (
select a.code,a.name,a.wh,a.bal,a.val,datediff(dd,dt,getdate())'days'
from (
select max(t0.itemcode)'Code',max(t0.Dscription)'Name',
max(t0.Warehouse)'Wh',
sum(t0.inqty-t0.outqty)'Bal',sum(t0.transvalue)'Val',max(t0.docdate)'dt'
from oinm t0 inner join oitm t1 on t0.itemcode=t1.itemcode
where t0.warehouse='[%1]'
group by t0.itemcode
)a
)b order by code -
Default Query Print Layout problem
Hello:
I have a query below SELECT T0.[ItemCode], T0.[Dscription], sum(T0.[Quantity]) as 'Quantity' FROM INV1 T0 WHERE month(T0.[DocDate]) =month([%0]) AND year(T0.[DocDate]) = year([%0]) and T0.[ItemCode] IS NOT NULL GROUP BY T0.[ItemCode], T0.[Dscription] ORDER By T0.[ItemCode].
Which basically output monthly inventory invoiced qty. It works fine. However when I try ti link to the default system print layout and try to print. The column 'quantity' become very small and cut off most of the number. How do I make it bigger? I have been trying to modify it for quiet a while now. Nothing seems to work. I think it's length is preset base on the column lenth in the table! If that's the case how do I make it wider?
Also the default layout for user query are pretty weired. I think it's dynamically allocating spaces depends on number of column. But what happens when you do functions such as sum, avg..etc. There is no present length. So they just disregard it?
Any help will be appreciated.. Thank You
Sincerely Yours
Bo PengHi Bo,
I am asuming that u are not yet familiar with how to work with PLD (Print Layout Designer). I would suggest that u see some tutorials from the following link and then try to change that default layout according to ur own requirements
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/51c19891-0901-0010-6eb1-e71abf09298a
Reagrds
Rizwan Hafeez
Team Lead
SAP Addon Development Section
Abacus Consulting - Pakistan -
While deleting query it shows error: errors: components (ver A)do not exist
Hello All,
when i delete the query from Bex Query designer i am getting the below error but its working fine with TC RZDELETE.
SAP BI AddON 7.X,Support Package 11,Revision 634
Status Messages
errors: components 4lsxxxx (version a) do not exist on the database
errors: Element 4lsxxxx (version b) do not exist on the database
errors: components 4lsxxxx (version b) do not exist on the database
when i double click the message it shows
Diagnosis
You have attempted to open query 4LT1JF8BXKJMK73TNIY15TRF0 from the Query Designer. However, this query does not exist in the database in the system to which you have made a connection.
System Response
Opening the query was terminated.
Procedure
Make sure that you have connected to the correct BW system. Note: The query may have been deleted by another user.
Edited by: Ranga123 on May 18, 2011 3:00 PMHi,
>lower support package 5 its not showing the error message
:-D
SAP develops sometime bull ****.
=> there is no reason to show this message in the front end.
=> Sometimes I don't understand SAP procedure.
Nobody is interesting in this message. I have deleted this query. It's normally that this query isn't on the server now.
=> I know this message since years.
=> but nobody create a OSS message, or SAP corrects this feature.
Sven
Maybe you are looking for
-
I would like to know what a CS3 participant is
I would like to get a Creative Cloud account but can't afford the year up front. It doesn't make sense that you offer a monthly account but you don't allow people to pay monthly. You should word it annually instead of monthly as that is very confus
-
My iPod Touch was working fine yesterday and there is no heat or water damage. Then, it died, like it normally does after it's used for a long period of time. So, I went to charge it in a wall outlet (like usual) and the battery symbol with the light
-
I'm creating a funnel for a client and have uploaded a PDF file to her dropbox account. When I test the process in Firefox, I can't log in to her dropbox nor will the PDF file display when I test it from Firefox. When I switch to Chrome, I can both o
-
Webdynpro application deployment error
Hi, When i tried to deploy a webdynpro application into portal6 it gives me the following error message. When asked for the SDM password i gave the sdm password, which is the same i use to login to SDM thru RemoteGUI.bat. Oct 3, 2005 1:47:09 PM /user
-
Unable to add page in Page library of SharePoint 2007 site
The site is not valid. The 'Pages' document library is missing. at Microsoft.SharePoint.Publishing.PublishingWeb.get_PagesList() at Microsoft.SharePoint.Publishing.Internal.CodeBehind.BasePageSettingsPage.LoadValues() at Microsoft.SharePoint.