Query to show BP and discount groups where appropriate
Hi Experts,
I need some help in setting up a query to show me whether or not a BP has anything in special prices for business partners.
Essentilly I just need to report the BP Code, BP Name and Y or N as to whether they have item codes in special prices for BPs.
Thanks
Jon
Hi Jon,
Try this one:
SELECT T0.CardCode, T0.CardName, Case WHEN (T0.CardCode NOT IN (SELECT T1.CardCode FROM OSPP T1)) THEN 'N' ELSE 'Y' END AS 'Y/N'
FROM dbo.OCRD T0
Thanks,
Gordon
Similar Messages
-
When i click on a photo to edit, the photo doesn't show up and the area where the photo should show up is black. Why? I can edit some photos, whereas others I can not.
There are several possible causes for the Black Screen issue
1. Permissions in the Library: Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Include the option to check and repair permissions.
2. Minor Database corruption: Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild.
3. A Damaged Photo: Select one of the affected photos in the iPhoto Window and right click on it. From the resulting menu select 'Show File (or 'Show Original File' if that's available). (On iPhoto 11 this option is under the File -> Reveal in Finder.) Will the file open in Preview? If not then the file is damaged. Time to restore from your back up.
4. A corrupted iPhoto Cache: Trash the com.apple.iPhoto folder from HD/Users/Your Name/Library/ Caches...
5. A corrupted preference file: Trash the com.apple.iPhoto.plist file from the HD/Users/ Your Name / library / preferences folder. (Remember you'll need to reset your User options afterwards. These include minor settings like the window colour and so on. Note: If you've moved your library you'll need to point iPhoto at it again.)
If none of these help:
As a Test:
Hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Create Library'
Import a few pics into this new, blank library. Is the Problem repeated there? -
Query to show stock value per group
Hi Experts
Would it be possible to create a query which would show me the stock value per item group in SAP? I know this can be done through Stock Audit report etc, but as we have over 300 item groups I would like to see a report which show me only the group name and the stock value within that group.
Thanks
GeoffHi Gordon,
The 2% will be because in almost all cases the query is using Last Purchase Price to calculate the value, but the stock balance on 130000 account in Financials is being generated from the FIFO values of stock. It is a problem we come up against a lot in calculating stock values - we probably wouldnt have gone down the FIFO route originally had we known!
Regards
Geoff -
Generate Excel which Shows ADUsers and his Groups in a Matrix with AllGroups
Hi There.
I Need an Excel table for managemet, which Shows the following:
The Colums should be named as Username ActiveDirectory and some Properties and ALL Groups which are availible in Active Directory
Each row should then contain Username and in the Column of Group an "X" or somthing else, if the user is in the Group - like a Matrix.
Username,Firstname,Lastname,Group1,Groups2,Group3,Group4...
Username1,Firstname1,Lastname1,,x,,x.. -- User1 is in Group2 and Group4
Username2,Firstname2,Lastname2,x,x,x,x... -- User2 is in Group 1-4
I thought about generating an Hashtable with all AD-Groups and a Hashtable with User and his AD-Groups, but I don't know how to match them.
Have anyone an idea?
Thanks.Hi,
I would like to suggest you go through the below link:
http://bradkingsley.com/using-powershell-to-list-group-membership-from-active-directory-ad/
Please try the script in it.
Hope this helps.
Regards,
Yan Li
If you have any feedback on our support, please click
here
Cataleya Li
TechNet Community Support -
Dimension only query to show manager and employees in one row
Hi Gurus,
I am creating a dimension only report. This report will show managers and their direct reportees. Since one manager can have several employees working under him, I am getting one row in the report for each employee. But our end users want employees to appear as comma seperated value for the manager. Thus each manager will have one and only one record in the report
Current
======
Manager Employee
M1 E1
M1 E2
M1 E3
Expected
=======
Manager Employee
M1 E1, E2, E3
Env : OBIEE 10.1.3.4 & Oracle 10.2.0.3.0
Thanks for your help in advanceGoogle ask Tom for string aggregation - there is a listagg equivalent available there, create on your DB then follow the same principal as the listagg / evaluate example.
regards,
Robert. -
ITunes only shows "Setting" and "Contents" tabs - where's Music?
Am I missing something? I only have Settings and Contents tabs in iTunes for my shuffle. I want to sync some playlists to my shuffle - how do I do this?
I tried using Autofill for a smart playlist that contains podcasts, but I just get the "no songs in the playlist 'Podcasts' can be synced".mmmiles B wrote:
Am I missing something? I only have Settings and Contents tabs in iTunes for my shuffle. I want to sync some playlists to my shuffle - how do I do this?
That's all there is... you can either drag and drop playlists to the contents tab or use autofill by selecting the playlist to auto fill from.
I tried using Autofill for a smart playlist that contains podcasts, but I just get the "no songs in the playlist 'Podcasts' can be synced".
You CAN'T use autofill for podcasts (and audiobooks) . Drag and drop is
the ONLY way... -
SAP SQL: Show Invoices and Credits in one table
Hi,
iam searching for a query wich show invoces and credits as negative amount. How is that realisable?
Example:
Customer
ZIPCODE
ITEMCODE
DESCRIPTION
SHIP
Price after discount
total price
freetext
quantity
Example 1
45449
5464
something 1
01.01.2015
20
40
text
2
Example 2
654564
65465
something special
15.02.2015
-10
-20
text
2
SELECT T0.[CardName], T3.[ZipCode], T1.[ItemCode], T1.[Dscription], T1.[ShipDate], T1.[Price], (T1.[Price] * T1.[Quantity]), T1.[FreeTxt], T1.[Quantity] FROM OINV T0 INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OCRD T2 ON T0.CardCode = T2.CardCode INNER JOIN CRD1 T3 ON T2.CardCode = T3.CardCode WHERE CONVERT(nvarchar(8), T1.ShipDate, 112) BETWEEN '[%FromDate]' AND '[%ToDate]' GROUP BY T0.[DocNum], T0.[CardName], T3.[ZipCode], T1.[ItemCode], T1.[Dscription], T1.[ShipDate], T1.[Price], T1.[FreeTxt], T1.[Quantity]
??UNION ALL?? AND? MINUS - ???
SELECT T0.[CardName], T3.[ZipCode], T1.[ItemCode], T1.[Dscription], T1.[ShipDate], T1.[Price], (T1.[Price] * T1.[Quantity]), T1.[FreeTxt], T1.[Quantity] FROM ORIN T0 INNER JOIN RIN1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OCRD T2 ON T0.CardCode = T2.CardCode INNER JOIN CRD1 T3 ON T2.CardCode = T3.CardCode WHERE CONVERT(nvarchar(8), T1.ShipDate, 112) BETWEEN '[%FromDate]' AND '[%ToDate]' GROUP BY T0.[DocNum], T0.[CardName], T3.[ZipCode], T1.[ItemCode], T1.[Dscription], T1.[ShipDate], T1.[Price], T1.[FreeTxt], T1.[Quantity]
Who can help??Hi,
Try this query:
SELECT T0.[CardName], T3.[ZipCode], T1.[ItemCode], T1.[Dscription], T1.[ShipDate], T1.[Price], (T1.[Price] * T1.[Quantity]), T1.[FreeTxt], T1.[Quantity] FROM OINV T0 INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OCRD T2 ON T0.CardCode = T2.CardCode INNER JOIN CRD1 T3 ON T2.CardCode = T3.CardCode WHERE CONVERT(nvarchar(8), T1.ShipDate, 112) BETWEEN '[%FromDate]' AND '[%ToDate]' GROUP BY T0.[DocNum], T0.[CardName], T3.[ZipCode], T1.[ItemCode], T1.[Dscription], T1.[ShipDate], T1.[Price], T1.[FreeTxt], T1.[Quantity]
UNION ALL
SELECT T0.[CardName], T3.[ZipCode], T1.[ItemCode], T1.[Dscription], T1.[ShipDate], T1.[Price], -(T1.[Price] * T1.[Quantity]), T1.[FreeTxt], -T1.[Quantity] FROM ORIN T0 INNER JOIN RIN1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OCRD T2 ON T0.CardCode = T2.CardCode INNER JOIN CRD1 T3 ON T2.CardCode = T3.CardCode WHERE CONVERT(nvarchar(8), T1.ShipDate, 112) BETWEEN '[%FromDate]' AND '[%ToDate]' GROUP BY T0.[DocNum], T0.[CardName], T3.[ZipCode], T1.[ItemCode], T1.[Dscription], T1.[ShipDate], T1.[Price], T1.[FreeTxt], T1.[Quantity]
Thanks & Regards,
Nagarajan -
VF04 combines documents by Sales Organ. -Sales Office and Sales Group
Hi,
How can i combines documents by Sales Organization < Sales Office < Sales Group please?
When i use VF04, he combines documents with the same customer number, proposal billing type and sales organization. I need to add Sales Office and Sales Group, where can i do that ?
Thanks for your help.
Spawntae
Edited by: Spawntae on May 19, 2009 5:04 PMHello,
You need new fields in LVKDFI structure, for example sales office.
when you created news fields, them you implemented include VV05HFZ2, for example you can loop structure lvkdfi and select sales office from vbak or likp and write this in new fields.
by -
Discount Groups Query Question
My goal is to create a query that shows all BP's that have a Discount by Group set for them that is greater than zero. I get output that repeats every discount group for every unique discount that exists in the system.
I need help to enhance this query to strip out the redundant and inaccurate records.
Query Code:
SELECT T2.[CardCode] AS 'BP Code', T1.[CardName] AS 'BP Name', T0.[ItmsGrpNam] AS 'Group Name', T2.[Discount] AS 'Discount' FROM [dbo].[OITB] T0 , [dbo].[OCRD] T1 INNER JOIN [dbo].[OSPG] T2 ON T2.[CardCode] = T1.CardCode WHERE T2.[Discount] > 0
Thanks,
GlenHi Glen,
The OSPG table holds special price data for Item Groups, Item Properties and Companies. SBO identifies these different types using the ObjType column in this table. The database reference in the SDK Help Center will show you the constraints on this column:
52 = Item Group
8 = Item Property
43 = Companies
Depending on the ObjType, the ObjKey field will then contain the key for linking back to the relevant table (eg if the ObjType is 52 then the ObjKey will contain the Item Group code to link to the OIBT table). Put this together and you get:
OIBT T0 inner join OSPG T2 on T2.ObjType = 52 and T2.ObjKey = T0.ItmsGrpCod
This join therefore is quite specific to how the OSPG table links to other related tables.
For a full list of object types in the database and for the DI API, you can look at the BoObjectTypes enumeration in the DI API reference in the SDK Help Center.
Hope this helps,
Owen -
Discount Group and Special Prices
Hello Everyone
I have a scenario where by the discount given in both Discount Group and Special Prices needs to work in conjunction.Now at the moment if i give it in both discount group and Special Prices for BP,only Special Price discount is being picked up ie its given precedence over Discount Group.Is there any setting that i need to change to make this work.I have to show the difference in discount elsewhere,so only i need to map this in both discount group and special prices.
Thanks and regards
Raghuhi raghu ram,
Check the wiki page in this link
How is the default item unit price determined in marketing documents?
https://www.sdn.sap.com/irj/scn/wiki?path=/pages/viewpage.action&pageid=29524391
Hope it will solve problem.
Jeyakanthan -
Creation of a Query to show the values for the current month and the last 12 months data.
Dear All,
Good day!
I have to create a Query with the below requirement.
I have to create a Query to show the values for the current month and the last 12 months data.
Can you please guide me how to achieve this ??
thank you,
Regards,
HemaHema
explain the exact problem..? as you mentioned you want to create query to show values for current month and last 12 months.. so I think you want to show values for 12 months from current data.. you can achive this by multiple way..
you can have selection screen and field with date .. and restrict based on system current date and 12 months before or you can handle this at your target.. .. I mean there are multiple ways to restrict data by date range..
for some more hints..
http://www.forumtopics.com/busobj/viewtopic.php?t=34393&sid=7fba465d0463bf7ff5ec46c128754ed6
http://businessintelligence.ittoolbox.com/groups/technical-functional/cognos8-l/how-to-display-last-12-months-in-report-based-on-todays-date-3231850
http://scn.sap.com/thread/3217381
search on SDN you will get many other ways..
Thanks,
Bhupesh -
Query that show total discount on A/R Invoice
Dear all,
I would like to have query that show summary of each invoice number that show 'Total of discount' ( 'Total of discount' = total of discount in line item + discount of total invoice ). Data that I would like to show on this query is as follow :
Invoice No, Invoice Date, Customer Code, Total before discount, 'Total of discount', Total Amount, Vat amount
Please kindly suggest the way to get this data.
Thanks you in advanced.
AngnamHi Angnam K,
Try This one...hope this will serve your purpose.
SELECT DocEntry, DocNum, CardCode, CardName, DocDate, [Total Before Discount] , [Totaldiscount]+ [OinvDiscount] as [Total of discount], VatSum [Total Tax] FROM (
SELECT T0.DocEntry,T0.[DocNum], T0.[DocDate], T0.[CardCode], T0.[CardName], SUM(T1.[LineTotal])[Total Before Discount],
SUM(T1.[PriceBefDi] * T1.Quantity *T1.[DiscPrcnt])/100 as [Totaldiscount]
,Case When T0.[DiscPrcnt] <> 0 Then (SUM(T1.[LineTotal])/ T0.[DiscPrcnt]) Else 0 end [OinvDiscount] ,T0.VatSum
FROM OINV T0 INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry
Group By T0.DocEntry,T0.[DocNum], T0.[DocDate], T0.[CardCode], T0.[CardName], T0.[DiscSum] ,T0.[DiscPrcnt],T0.VatSum )Sales
thanks,
Kumar
Edited by: itskumaramit on Jul 13, 2011 12:43 PM -
SCCM 2012 QUERY THAT SHOWS SOFTWARE INSTALLED AND LAST TIME IT WAS USED OR OPENED
Hello
I am in need of an SCCM 2012 query that shows PCs that have Visio , Adobe Professional and Visual Studio and the last time each was used or opened. I have the query below which give me the PC name and the product. Any assistance will be very helpful
select distinct SMS_R_System.NetbiosName, SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName from SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName
like "%adobe acrobat%pro%"
select distinct SMS_R_System.NetbiosName, SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName from SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName
like "%visio%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%viewer%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%service pack%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%security
update%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%hydra%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%update%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%MUI%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName
not like "%amd%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%microsoft visio%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%vision%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%add-in%"
select distinct SMS_R_System.NetbiosName, SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName from SMS_R_System inner join SMS_G_System_ADD_REMOVE_PROGRAMS on SMS_G_System_ADD_REMOVE_PROGRAMS.ResourceID = SMS_R_System.ResourceId where SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName
= "Microsoft Visual studio 2012 devenv" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%hotfix%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%security%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName
not like "%update%" and SMS_G_System_ADD_REMOVE_PROGRAMS.DisplayName not like "%service%See me reply to your other post with the exact same details, in the CM07 forum.
http://www.enhansoft.com/ -
Query to display the user's and their group's
Hi ---Is there a way to list the user and the roles that were assigned to them by running a query on the Data base? also can we configure development obiee environment to use prod security so that if removed from prod, will also be removed form dev?
user007009 wrote:
Hi ---- my bad. version is 11g and currently not using WLS LDAP but through LDAP server(AD) configured in Web logic console.
Also regarding not possible if using WLS Ldap.
Where does these user data gets saved then?? xml?,database table?, ff?.. or was it mentioned in the oracle documentation that we can't get the info??..please throw some light..
any idea on what actually is the source for the page security>realms>users and groups? ... they might be saving it some where and i am having hard time finding it in the Oracle Documentation as well.I suggest you read this : http://docs.oracle.com/cd/E23943_01/core.1111/e10043/introroles.htm
And https://blogs.oracle.com/robreynolds/entry/security_in_obiee_11g_part_1 to know more about Security. The default users would be in identity store.
If you want to get the list of WLS users and WLS groups then have a look at : http://mverzijl.wordpress.com/2012/08/23/weblogic-wlst-get-users-and-groups/
Coming to your original questions .. To get the list of AD users and AD groups not Roles two different things, may be you can try
http://social.technet.microsoft.com/wiki/contents/articles/2195.active-directory-dsquery-commands.aspx or use some LDAP browser .
SVS -
ey How Do I Get Group Message On The IPhone 4s because some reason it doesn't want to show . First i did is setting then messages it only show imessage and message count )HELP)
At the bottom of the page Settings > Messages you should have a section headed "SMS/MMS" Turn MMS messaging on then you can turn group message on.
Maybe you are looking for
-
How do I know an e-mail is received?
I periodically send out e-mails to a group (contact list) and was wondering if there is a way for me to know when those I have sent the e-mail to has received it, or clicked on it. Is there a way that when this occurs that a message is automatically
-
I have been trying to rent movies on my atv they try to load and then says error try again later
I have been trying to rent movies on my atv they try to load and then says error try again
-
Reader 11 keeps deleting itself
Hi there, I just upgraded a network of around 150 users to reader 11 from 10 and am having a problem. All of the workstations are running windows 7 by the way. I install reader, use it for about a day and then it mysteriously vanishes. Fr some users
-
Sequence number adjustment in the column
In my table maintenance generator, I have one field called sequence number which increments by '1', each time user enters a new record in my table maintenance generator(have coded in such a way). now the internal table, under sequence column if some
-
Send Multiple field values to Single Target field in Message Mapping
Hi, My Requirement is to Map Multiple fields to Single field in Target side.I have to send all the values concatenated and pass the same to target Field in Message Mapping. We can use Concat function,but more that 15 fields are there.If using concat