Query on Purchasing Datasources

Hi
I am using 0PUR_C04,  which is fed by 2LIS_02_HDR,2LIS_02_ITM, 2LIS_02_SCL. However Scheduling agreements are maintained in here. Do I still need to use 2LIS_02_SCL? or Can I do away with this?
Thanks
PB

Hi Amar,
You will be able to fins the details of the standard CRM DS's from help.sap.com :-
For ex for Activities standard DS "0CRM_SALES_ACT_1", below is the link for its details & table of origin:
http://help.sap.com/saphelp_nw04/helpdata/EN/61/ef4529577111d6b21500508b5d5211/frameset.htm
Similarly you can find the details of other objects also.
If it is a generic DS, then goto RSO2 trans in CRM source system> Enter the DS Tech name> Display--> Check if it is getting data from any Table/View or FM.
If it is getting data from FM> Double click on the FM> Display --> Here if you go through the code, you will be able to find what & all tables they are using.
Hope it is clear & helpful!
Regards,
Pavan

Similar Messages

  • How to activate Purchase datasource without deleting setup table for others

    Hi Gurus,
    In developement system purchasing datasources 2LIS_02_HDR, 2LIS_02_ITM and 2LIS_02_SCN are active and deltas are also running for these.
    Now acccording to the requirement We need to activate other datasources as well like 2LIS_02_CGR and SGR .........
    To so this do we have to run the setup table again or any other option is there for this??
    As this step would take lots of time in Production and for this downtime would be required which is not feasible.
    Please suggest some solution.
    Thanks in Advance,
    Uday Shankar.

    Hi,
    We will do the setup (Filling and Deleting) concept based on application component it's not based on DS .S you don't have other way.
    Regards
    Ram.

  • Customized Query for purchase register

    Hi All,
    I need a query for purchase register which gives excise information with biferication.
    OPCH, PCH1, ORPC, RPC1 and IEI4
    In excel reporter we get the purchase register report But excise amount does not come in that report.
    So, I need Customised report for that.
    Regards
    Shashi

    hi shashi,
    SELECT M.DocNum AS 'AP Inv. #', M.DocDate as 'Date', M.CardName as 'Vendor Name',M.NumAtCard as 'Bill No. & Dt.',
    (Select Sum(LineTotal) FROM PCH1 L Where L.DocEntry=M.DocEntry) as 'Base Amt.(Rs.)',
    (SELECT Sum(TaxSum) FROM PCH4 where statype=-90 and DocEntry=M.DocEntry) as 'ED (Rs.)',
    (SELECT Sum(TaxSum) FROM PCH4 where statype=-60 and DocEntry=M.DocEntry) as 'EDCS (Rs.)',
    (SELECT Sum(TaxSum) FROM PCH4 where statype=7 and DocEntry=M.DocEntry) as 'HECS (Rs.)',
    (SELECT Sum(TaxSum) FROM PCH4 where statype=1 and DocEntry=M.DocEntry) as ' VAT (Rs.) ',
    (SELECT Sum(TaxSum) FROM PCH4 where statype=4 and DocEntry=M.DocEntry) as ' CST (Rs.) ',
    (SELECT Sum(TaxSum) FROM PCH4 where statype=10 and DocEntry=M.DocEntry) as ' CVD (Rs.) ',
    (SELECT Sum(TaxSum) FROM PCH4 where statype=5 and DocEntry=M.DocEntry) as ' Ser.Tax (Rs.) ',
    (SELECT Sum(TaxSum) FROM PCH4 where statype=6 and DocEntry=M.DocEntry) as 'CS on Ser.Tax (Rs.)',
    (SELECT Sum(TaxSum) FROM PCH4 where statype=8 and DocEntry=M.DocEntry) as 'HECS_ST (Rs.)',
    (Select Sum(LineTotal) From PCH3 Q Where Q.DocEntry=M.DocEntry) AS 'Freight (Rs.)',
    M.WTSum AS 'TDS (Rs.)',
    M.DocTotal as 'Total (Rs.)'
    FROM OPCH M LEFT OUTER JOIN PCH1 L on L.DocEntry=M.DocEntry
    LEFT OUTER JOIN PCH4 T on T.DocEntry=L.DocEntry and L.LineNum=T.LineNum
    LEFT OUTER JOIN PCH5 J ON M.DocEntry = J.AbsEntry
    LEFT OUTER JOIN PCH3 Q ON M.DocEntry = Q.DocEntry
    WHERE (M.DocDate >= '[%0]' AND M.DocDate <= '[%1]') AND (T.TrgetEntry = ' ')
    GROUP BY
    M.DocNum,M.DocDate,M.CardName,M.NumAtCard,M.DocEntry,M.[DiscSum],M.WTSum,M.DocTotal
    ORDER BY
    M.DocNum,M.DocDate,M.CardName,M.NumAtCard,M.DocEntry,M.[DiscSum],M.WTSum,M.DocTotal
    Jeyakanthan

  • Query For Purchase A/P Cycle Details

    Hi
    All export pls. provide me Query for Purchase A/P Cycle Details i.e Vendor Code  Vendor Description doc. date posting date po date amount quantity unit price same as Grpo returns and invoice in singal screen
    Thanks & Regards

    Hi,
    What do you mean by Query for Purchase A/P Cycle . All Query  for A/P Cycle , you can search  in SDN.Any specific unsolved query for you can be posted here.Ok.
    Check the details:
    1.PO creation
    http://e-mory.blogspot.com/2008/01/sap-me21n-create-purchase-order_30.html
    2.Goods Receipt
    http://e-mory.blogspot.com/2008/02/sap-migo-goods-receipt.html
    3.Invoice Verification
    http://e-mory.blogspot.com/2007/11/sap-miro-enter-invoice-verification.html
    Regards,
    Biju K

  • FMS Query for Purchase Order

    Hi,
    I want to FMS Query for Purchase Order.
    I want to display the weight * price in one user define field.
    Please suggest me

    Hi Tushar.......
    Try this.......
    declare @var1_wt as varchar(255)
    declare @var2_Pr as varchar(255)
    declare @var3 as float
    declare @var4 as float
    set @var1_wt=$[$38.58.0]
    set @var2_Pr=$[$38.14.0]
    set @var3=cast( substring(replace(@var1_wt,',',''),0,len(replace(@var1_wt,',',''))-1) as float)
    set @var4=cast(substring(replace(@var2_Pr,',',''),0,len(replace(@var2_Pr,',',''))-3) as float)
    select @var3 * @var4
    Regards,
    Rahul

  • Using crystal reports query (.qry) as datasource in crystal 9

    I have a problem using crystal reports query as a datasource in crystal reports 9. When Im using a report withing application i cannot change database or server property of the query.
    For example - during report design im using one odbc for query but I want to change it during runtime.
    Changing any options beside username or password results in external exception. Im using Builder XE as application environment.
    I tried switching to SQL commands which works but i lose all the fields on report when changing from query to report.
    Is there a way to make query work or to change query to sql command without losing all the fields (and putting them back on the report manually)?

    Hello,
    Unfortunately .QRY files are no longer supported as of CR 9. We replaced it with the Command Object where it basically did the same thing only you had to write the query yourself.
    The problem is because the Command Object can be anything CR has no way of mapping a query to the database field within the report so it auto deletes all of the fields.
    The only way is to create new reports, you can open the original report in one window and then create your new report, copy the SQL into the Command windows and then copy and paste the report objects from the window with the old report into the new report window.
    There is no migration wizard to do this. I have heard of others who used the RAS server or RDC to get the objects from one report and .add them to the new report. Depending on the number of reports you have depends on if it is worth the time writing that app or just rebuild all of your reports.
    Thank you
    Don

  • Power query from ODBC :"DataSource.Error: Arithmetic operation resulted in an overflow"

    Good day
    Everytime I want to pull data into a query from our servers it gives the error "DataSource.Error: Arithmetic operation resulted in an overflow". What is the reason for this error, and how do I get past this bump.
    Thanks in advance
    Arnoux

    Hey Tristan. Thanks I did that yes.
    For some reason my direct MySQL connection does not want to work.
    I get the following error
    DataSource.Error: MySQL: Unable to find a database provider with invariant name 'MySql.Data.MySqlClient'.
    This error may have been the result of provider-specific client software being required but missing on this computer.  To download client software for this provider, visit the following site and choose at minimum 'MySQL Connector/Net':

  • Creating a Query for Purchase Order Approval

    I need to develop a query to check if any of the line totals in a new purchase order exceeds $500. I have to attach this query to the approval procedure (under 'Terms' in 'Define Approval templates'). When the 'Add' button on the purchase order is clicked, the values on the form are still not available in the database. This means, my query has to pick the data from the new purchase order form. Is there any way to build such a query? Thanks.

    Satish, Alerts just notify the appropriate parties. They do not stop a document from being posted. This means, it is not capable to recognize the situation unless it's already stored in the DB.
    Alexey. what about creating a Development Request about this topic?
    Regards,
    Felipe

  • Could someone share with me a Query for Purchase report in BP Currency?

    Hi All,
    Does anyone have a Purchase Analysis query by Business Partner (Vendor/Supplier) that returns all invoices by the month or anything else (items etc purchased) by the month in BP Currency please?
    I would like to use it as standalone query and eventually import it as a Crystal Report query.
    Appreciate it. Thank you.

    I just managed to create the report using Crystal and db files coming from Purchase Invoice and currency details coming from BP vendor file.

  • Query for Purchase Document

    Hello
    I am doing a Query. I need to add this field with the complete name of the person who did a Purchase document order.
    I found this field with this information througt transacction SU01.
    Full Name of Person
    ADDR3_DATA
    NAME_TEXT
    That field contains the information that I need. But the problem is, this table in not allowed to be used as a join table.
    I have been looking with the tables conected to this field but they do not load the data that I need.
    If someone know something about it,

    Irma, como estás?
                                  Probá con la tabla USER_ADDR o la USR03.
    Saludos

  • Query for purchase

    Hi All,
    I am unable to use this query as the data is repeating.
    SELECT  T1.CARDCODE, T1.CARDNAME , T1.DOCNUM  as 'PURCHASE ORDER#',T1.DocStatus 'PO Status', T1.DOCDATE 'PO Date', T1.DocTotal 'PO Total', T0.[Dscription], T0.[Quantity],T0.[OpenQty],T1.[U_RevNo], T1.[U_RevDt],  T1.[U_RevRmrks],T1.[Comments], T3.DOCNUM DRN#,T3.DocStatus 'DRN Status', T3.DOCDATE 'DRN Date',T2.[Dscription], T2.[Quantity],T2.[U_ExcsqTY] as 'Short/Excess', T3.DocTotal 'DRN Total',T3.[Comments],T5.DOCNUM Invoice#,T5.DocStatus 'Invoice Status', T5.DOCDATE 'Invoice Date',T4.[Dscription], T4.[Quantity], (T5.DocTotal-T5.VatSum-T5.TotalExpns-T5.DiscSum) 'Total Before Discount', T5.VatSum 'Tax', T5.TotalExpns 'Freight', (T5.DocTotal - T5.PaidToDate) 'Total Payment Due',T5.[Comments], T7.DOCNUM  AS 'CREDIT MEMO#', T7.DOCDATE, T7.DOCTOTAL,T6.[Dscription], T6.[Quantity],T7.[Comments]
    FROM DBO.POR1 T0
    INNER JOIN DBO.OPOR T1 ON T1.DOCENTRY = T0.DOCENTRY
    LEFT JOIN DBO.PDN1 T2 ON T2.BASEENTRY = T1.DOCENTRY
    LEFT JOIN DBO.OPDN T3 ON T2.DOCENTRY = T3.DOCENTRY
    LEFT JOIN DBO.PCH1 T4 ON T4.BASEENTRY = T1.DOCENTRY
    LEFT JOIN DBO.OPCH T5 ON T5.DOCENTRY = T4.DOCENTRY
    LEFT JOIN DBO.RPC1 T6 ON T6.BASEENTRY = T5.DOCENTRY
    LEFT JOIN DBO.ORPC T7 ON T7.DOCENTRY = T6.DOCENTRY
    where T1.DOCDATE >='[%0]' and T1.DOCDATE <='[%1]'
    I tried to use distinct in the query but it shows error ,'The ntext type data cannot be selected as DISTINCT because it is not comparable.'
    Thanks,
    Joseph

    Hi Joseph,
    Try this:
    SELECT T1.CARDCODE, T1.CARDNAME , T1.DOCNUM as 'PURCHASE ORDER#',T1.DocStatus 'PO Status', T1.DOCDATE 'PO Date', T1.DocTotal 'PO Total', T0.Dscription, T0.Quantity,T0.OpenQty,T1.Comments, T3.DOCNUM DRN#,T3.DocStatus 'DRN Status', T3.DOCDATE 'DRN Date',T2.Dscription, T2.Quantity, T3.DocTotal 'DRN Total',T3.Comments,T5.DOCNUM Invoice#,T5.DocStatus 'Invoice Status', T5.DOCDATE 'Invoice Date',T4.Dscription, T4.Quantity, (T5.DocTotal-T5.VatSum-T5.TotalExpns-T5.DiscSum) 'Total Before Discount', T5.VatSum 'Tax', T5.TotalExpns 'Freight', (T5.DocTotal - T5.PaidToDate) 'Total Payment Due',T5.Comments, T7.DOCNUM AS 'CREDIT MEMO#', T7.DOCDATE, T7.DOCTOTAL,T6.Dscription, T6.Quantity,T7.Comments
    FROM DBO.POR1 T0
    INNER JOIN DBO.OPOR T1 ON T1.DOCENTRY = T0.DOCENTRY
    LEFT JOIN DBO.PDN1 T2 ON T2.BASEENTRY = T1.DOCENTRY AND T2.BaseLine=T0.LineNum
    LEFT JOIN DBO.OPDN T3 ON T2.DOCENTRY = T3.DOCENTRY
    LEFT JOIN DBO.PCH1 T4 ON T4.BASEENTRY = T1.DOCENTRY AND T4.BaseLine=T2.LineNum
    LEFT JOIN DBO.OPCH T5 ON T5.DOCENTRY = T4.DOCENTRY
    LEFT JOIN DBO.RPC1 T6 ON T6.BASEENTRY = T5.DOCENTRY AND T6.BaseLine=T4.LineNum
    LEFT JOIN DBO.ORPC T7 ON T7.DOCENTRY = T6.DOCENTRY
    where T1.DOCDATE >='[%0\]' and T1.DOCDATE <='[%1\]'
    Thanks,
    Gordon

  • Enhance purchasing datasource with movement type

    Hi
    I need to enhance purchasing data source with movement type ( BWART). Can you please suggest me if any standard datasource ( Purchasing ) having this info. I can see that field is present in EKBE table, but how to link EKPO and EKBE table as there are many keys in EKBE table.
    Regards
    Kamal

    Hi
    you need to check the requirement first prior to addressing this issue.
    Purchasing Document will not have the Movement type field. It exists in the Inventory transaction.
    Table EKBE is the History table for Purchase documents. IF you check this table carefully you will see that the Material documents against every Purchase document are stored in this table. The Movement type field in the EKBE table refers to the Material document.
    So if you try to link BKART with Purchasing document # then you may have one or more than one BKART number against one Purchasing document.
    If yoou need the Purchasing document with BKART then it is essential to consider all the keys in EKBE.
    Cheers
    Umesh

  • Query in purchase order

    hi experts,
                    i have one doubt that is i have to purchase 500 items from one vendor.here i am not going to purchase 500 items fully.in first month i have to receive 100 items next month i have to receive another 100 items.likewise 5 months i am going to purchase each 100 items in between each month before 1 week of getting each items one alert should display. how can do this flow? amyone can clarify my doubt?

    Hi,
    To create such alert first save this query
    SELECT distinct T1.[DocEntry] FROM [dbo].[POR1]  T1 WHERE T1.[LineStatus] <> 'C' and T1.[ShipDate] > getdate() and T1.[ShipDate] < (getdate()+7)
    Modify the query as per your requirement.
    GoTo Administration>Alert Management.
    Add new Alert selecting the new query and select the frequency as month.
    I think it will work
    Sibasish
    Edited by: Sibasish Sengupta on Feb 20, 2009 12:45 PM

  • Query in  Purchase Order about Split PO in Logistics tab?

    Hi All,
    How to create child Purchase orders in SAP Business One?
    Plz reply in steps.
    Thanks in Advance
    Janaki

    Hi Shailesh......
    Is it Service PO?
    If yes then you have to give Location to each and every row and that location should be same. Document does not accept
    multiple locations.....
    Regards,
    Rahul

  • Query in purchase order creation .. transaction me21n

    Hi All,
    I have the following requirement in creation of PO.
    When the Purchase Order of some type, say for eg. in my case its a custom type ZNB denoting intercompany pricing  is created from a Purchase Requisition, the system should check the Account Assignment Category of the Items in Purchase Requisition. For the Item that has an account assignment category 9 indicating that the item is for free ( for eg. if a cylinder of chemical gas is considered , them the cylinder/ container should not be billed ), the flag Free should be ticked for this particular item. As a result the Pricing will not be applicable for such an item.
    I would like someone to please throw light on how this can be achieved. is there any user exit to get this done ?
    Thanks in advance ..
    Sharat.
    Message was edited by: Sharat Chandra G
    Message was edited by: Sharat Chandra G

    Hi Shailesh......
    Is it Service PO?
    If yes then you have to give Location to each and every row and that location should be same. Document does not accept
    multiple locations.....
    Regards,
    Rahul

Maybe you are looking for

  • Global temp table usage obstructed by FND SRWINIT

    Hi Friends, I am using a Global temporary table in one of my Oracle reports which is being populated in After-Param-Form trigger. But the problem I am facing is if I use the SRW.USER_EXIT('FND SRWINIT') in the Before-Report trigger, the records in Gl

  • Invoice image in vendor and customer document

    Hello, We have got following requirement. Currently we are storing pysical invoice copies of vendor and customer in a pysical file. But now we want to see the image of invoices in vendor and customer document respectively. It means, if it is possible

  • Objects outside of workspace show in SWF... Need help ASAP!

    When I export a flash movie (.swf file)And play it on full screen, the objects that are outside of the workspace show. Can anyone tell me how to fish this problem? need help ASAP! Thanks :]

  • JSP using jdbc to access mdb

    Done ... User DSN and System DSN Add. Select Microsoft Access Driver (*.mbd) and data source name is aa in JSP .. <%@ page import="com.thinweb.sql.*" %> Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver"); Connection c1 = DriverManager.getConnection("jdbc

  • Copy multiple dispatch vi to new child class

    Hi, I have just started with LVOOP and while I'm pretty sure I have a good understanding of the overall theme, there is one problem I foresee if I continue. Situation: BoardType is parent of classes CC2600 and CC1300. Currently the child classes are