SAP B1 - Query on Collections and Payments

Dear Experts,
We are working on cash flow forecasting model, i.e going forward 12 months, which in written in MS Excel. We update it with actual data recorded in SAP B1 (Ver 8.8 PL18)  A manual process.
Was wondering if we can get a single query written which will provide the following data:
Collections and Payments to/from BP in a given time (user specified)
BP Code
BP Name
Document Type (i.e receipt or payment)
Document number the reciept or payment is related to to i.e the invoice that is being paid or receipted
Date pf payment/receipt
Amount
Thank you in advance.
Regards
Raj

Hi,
Check this thread whether query meets your requirement:
http://scn.sap.com/thread/3542905
Thanks & Regards,
Nagarajan

Similar Messages

  • Is it possible to query a collection and get the last logged on user?

    Hi
    Is it possible in SCCM to query a collection to get the computer names and the last logon user for each computer? I cant seem to find how to do this?
    Thank you

    try this out
    Select distinct   
    v_R_System.Netbios_Name0 AS [Computer Name],  
    v_GS_COMPUTER_SYSTEM.UserName0 AS [User Name]
     from v_R_System
    left join v_GS_COMPUTER_SYSTEM on (v_GS_COMPUTER_SYSTEM.ResourceID = v_R_System.ResourceID) 
    inner join v_fullcollectionmembership as b on (b.ResourceID = v_R_System.ResourceID) 
    left join v_GS_SYSTEM_CONSOLE_USAGE_MAXGROUP ON v_GS_SYSTEM_CONSOLE_USAGE_MAXGROUP.ResourceID = v_R_System.ResourceID
            inner join v_GS_SYSTEM e on e.resourceid = b.resourceid
     Where
    b.CollectionID = @collectionid
    Blog: http://theinfraguys.com
    Follow me at Facebook
    The Infra Guys Facebook Page
    Please remember to click Mark as Answer on the answer if it helps you in anyway

  • SAP BEx query's Conditions and Exceptions on BO Universe

    We are planning to create Conditions and Exception on SAP BEx Query. And provide this query to BO team for their development
    Could anyone tell me in what form will these BEx objects be visible in BO-Universe ....as detail objects...or query filters and a.s.o?
    Will they be Invisible? If invisible will they be atleast applied to BO-Universe.
    For e,g: I know that, BEx Query filter will be applied to the underlying query but are not visible in OLAP universe.
    - Anil

    Hi,
    Conditions and Excpetions are not supported by OLAP BAPI tehrefore they are not generated in universes or consumed at query level.
    You have to create conditions on measures in universes (except top end bottom exceptions that are not supported).
    Exceptions need to be done at cliient level (Webi, XCelsius, etc).
    I BOE CI 4.0 conditions will be supporte by the Semantic Layer direct acces with BICS but exceptions will continue to be created at client level.
    Didier

  • SAP B1 Query - assistance needed

    Dear Experts,
    We are working on cash flow forecasting model, i.e going forward 12 months, which in written in MS Excel. We update it with actual data recorded in SAP B1 (Ver 8.8 PL18)  A manual process.
    Was wondering if we can get a single query written which will provide the following data:
    Sales and Purchases by BP in a given time (user specified)
    BP Code
    BP Name
    Type of Document (i.e invoice. credit memo)
    Date of the document
    The value of the document (Gross including any taxes)
    Collections and Payments of to/from BP in a given time (user specified)
    BP Code
    BP Name
    Document Type (i.e receipt or payment)
    Document number the reciept or payment is related to to i.e the invoice that is being paid or receipted
    Date pf payment/receipt
    Amount
    Thank you in advance.
    Regards
    Raj

    Hi,
    Try this:
    SELECT distinct T0.[CardCode], T0.[CardName], T0.[DocNum] as Invoice#, T0.[DocDate], T0.[DocTotal], T3.[DocNum] as Credit#, T3.[DocDate], T3.[DocTotal] FROM OINV T0  INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry left join  RIN1 T2 on  T2.[BaseEntry]  = t0.docentry and  T2.[BaseLine]  =  T1.[LineNum] left JOIN ORIN T3 ON T2.DocEntry = T3.DocEntry WHERE T0.[DocDate] between [%0] and [%1]
    2. It is not possible to get invoices in single query.
    Advice, your sales and purchase process to understand and write query.
    Thanks & Regards,
    Nagarajan

  • Odd QoQ issue when querying Solr collection

    Hello, everyone.
    I've got a query of query issue that has me stumped.  Maybe I'm just missing something very simple, but this has got me really confuzzed.
    I have a Solr collection that is indexing a few tables in an Oracle database.  Let's call it "hdq", for this discussion.
    I wrote a semi-complex query of related tables from which the CFINDEX is using to index the data.  This is working just fine.
    I created the Solr collection in the CF9 CFAdmin, and am using the following to index with:
    <cfindex action="refresh" collection="hdq" key="QUESTION_ID" type="custom" title="QUESTION_TITLE" query="search_questions" body="QUESTION_TX,QUESTION_TITLE,CATEGORY_NM,TAG_NM,ANSWER_TITLE,ANSWER_TX"
        custom1="QUESTION_STATUS" custom2="TAG_NM" custom3="QUESTION_STATUS" custom4="QUESTION_TYPE" category="CATEGORY_NM">
    Then I do a CFSEARCH and name it "hd_questions".  Again, so far, so good, no problems.
    If I do a CFDUMP of "hd_questions", one of the columns is KEY (which is QUESTION_ID in the database.)  If I CFOUTPUT the collection, KEY is there.
    If I QoQ the CFSEARCH of the collection and use SELECT custom3, score, summary, context, key FROM hd_questions, I get an error message that
    Encountered "key. Incorrect Select List, Incorrect select column,
    .. then it gives the line number of the page that produced the error, and
    <cfquery dbtype="query" name="hd_results">
    Am I missing something simple, here?  KEY is in the collection, I can see it in CFDUMP, I can see it in CFOUTPUT.  But if I query the collection and try to select KEY, there is an error.
    Any thoughts/ideas?
    Thank you,
    ^_^

    Key is a reserved word in Coldfusion, so can't be used directly in a QoQ without escaping it.  Try wrapping it in [ ] instead, i.e. [key]
    It may also help to give it an alias too, e.g. SELECT [key] AS someKey
    See the list of reserved words here: http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec173d0-7f ff.html and the QoQ guide to using reserved words here: http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec0e4fd -7ff0.html#WSc3ff6d0ea77859461172e0811cbec22c24-7008

  • PeopleCode :: Query API :: Query Expression collection problems

    Hi all,
    I'm trying to use the Query API in PeopleCode to tack on an expression to the end of an existing query. Thus far I have been successful doing just a QueryField without any problems. Here is some example code of what I have done with the Query Expression collection and where I am stuck:
    &Criteria = &MainQrySel.AddCriteria("criteria1");
    &Criteria.Logical = %Query_CombAnd;
    &Criteria.Expr1Type = %Query_Expression;
    &crit = &Criteria.AddExpr1Expression();
    &Criteria.Expr1Expression = &crit;
    &crit.Text = -some expression-;
    &Criteria.Operator = %Query_CondEqual;
    &Criteria.Expr2Type = %Query_ExprConstant;
    &crit = &Criteria.AddExpr2Expression();
    &Criteria.Expr2Expression1 = &crit;
    &crit.Text = -some criteria-;
    So what's happening is that the left hand part of the expression is added to the entire statement along with the operator (the equals sign). The odd part is that the right hand part of the expression is not (basically the -some criteria- part).
    If anyone has any ideas on how to solve this mystery, please let me know...I'm rather confuzzled!
    Thanks in advance!

    Well, I finally discovered he solution on my own, by reverse-engineering Oracle's own search.jsp (which does not use Oracle's custom tag library, btw) (probably because same doesn't really work, or at least it doesn't what's in the documentation doesn't work) (which isn't surprising).
    You have to do the "From" part of the query as an "attribute filter".
    oracle.ultrasearch.query.Query searchQuery=
    new oracle.ultrasearch.query.Contains(searchString, metadata);
    oracle.ultrasearch.query.Query attrQuery=
    new oracle.ultrasearch.query.From(metadata.getGroup(groupToSearch));
    oracle.ultrasearch.query.Request searchRequest=new oracle.ultrasearch.query.Request();
    searchRequest.setQuery(searchQuery);
    searchRequest.setFilter (attrQuery);
    Maybe that will do somebody some good somewhere...
    Troy

  • SuPM - Data from SAP BW Query(Automatic) and Manual not displayed in KPI

    Dear Forum,
    I am also, currently working on a project implementing BO SuPM Version 1.0. Landscape is ECC -> BI -> SuPM dashboards.
    I have created a KPI in SuPM dashboard.
    Case 1 : Automatic data collection - This KPI is marked for Automatic data collection. So, maintained Scripts with Connectivity and SAP BW Query name. I save this KPI and include in a new report and Run it. There are no records displayed.
    Case 2: Manual data collection - This KPI is marked for manual data collection. So, maintained values in SuPM portal itself. I save this KPI and include in a new report and Run it. There are no records displayed.
    Could you please help me how KPI in SuPM be filled manually and automatically ( from BW Query)?
    Thanks,
    Best Regards
    PhaniRaj

    Dear Phani,
    First of All, you should have a framework created and assign the Core KPI to that framework and specify the frequency of the framework (Say Monthly) and Activate it.
    Upon Activation, if it is a Manual Data Collection, then you should perform Role Assignment ie specifyinfwho would be the Business Contributor & Approver for ur Manual KPI.
    After this, you have to run this program [/SRCORE/DATAREQUEST] in SE38 in the backend system which wil create a data request,
    Later you should login as Business Contributor and go to MY Data Requests and then provide the data for the Month specified. Then login as Approver and under Approvals option, you should Approve the data. Now, you should go to SuPM application and select that Month in the dimension and KPI and then RUN the Report.
    For Automated Data Collection, you should have to initially creata a Query (SAP/ BW) and specify the name of the query in SPRO--> Sustainability Performance Management --> Automated Data Collection --> Maintain Queries (SAP/ BW) -->  Specify that Query name and the Connector ID (SM59).
    Now go for KPI creation and specify the Query name in the KPI and then Assign the KPI to the framework and activate it.
    Upon Activation, You should RUN the program /SRCORE/AUTO_DATA_COLLECT. Now, select this KPI in the report and RUN the report.
    If you perform these actions, you will get the values in the report.
    It can be checked in the backend application, either by checking the Process chain[RSPC] or by checking the Infocube if the data is loaded into the Infocube or not.
    Let me know if you face any problems...
    Regards,
    Raghu

  • Re: Crystal Report and SAP BW Query with Variable

    Crystal Report 2008 V1 SP3 and SAP Integration Kits 3.1 SP3 installed on my client machine.
    I can open SAP BW Query in Crystal Report. However, in the Field Explorer >Database Fields, I dont see to be able to expan the Query and see it Key Figure/Characteristic.
    I noticed this happen only if we have Variable defined in the Charactics.
    If the characteristic has no variable, then I can expand the Query under Database Fields.
    Do you have this problem?

    Yes, once I have imported the new SAP Integration Kits XI 3.1 SP3 transports into BW system, I can now expand the it.
    I can now see the Variable in Crystal Report.
    Thanks!

  • Crystal Report and SAP BW Query

    I have developed the Crsytal Report (ontop of SAP BW Query), and save this report into my local c:\ drive.
    Now I made some changes to the BW Query (this is the Datasource of my Crystal Report) to include new Key Figure and Characteristic via BEx Query Designer.
    Now when I open my existing Crystal Report, I dont get see the new key Figure/Characteristics that I just included to the BEx Query. Why? Is this bug? How can we update the Crystal Report automatically when the underline BEx Query has changed?

    Hi,
    We have similar case when the underline BEx query has been changed.
    In our case, the Variable value is not appear in CR.
    Example, a Variable has been created and assigned to the Cost Centre.
    In BEx Query, I can see the value of the Cost Centre and can therefore select the value from the Variable field.
    In CR, I have the Cost Centre prompt as parameters, but there is no value for me to select.
    Database Verify has been performed.
    Anyone come across this?

  • Problem with a SAP BW Query and Webi

    Hi all,
    Does anybody knows the reason why when using webi to access a SAP BW query that prompts the user for
    a date, it gives an error on the format? It seems the lov is not being populated correctly. If I write
    manually the value the prompt expects, it works, but if you select one of the values of the list it doesn't.
    The version is XIR2 and if you create a simple query everything seems to work fine.
    Any idea?
    I don't know if there is something to do with language parameters or something like that.
    Thank you

    Hi Mike,
    thanks for your answer.
    I will try to send you a screenshot, but I cannot do it at the moment because I am not at the customer site.
    I'll try to explain what we get when we running the webi report.
    The lov to select from retrievs data like "K41002008" that is supposed to be a date, but if you select this value the report fails. Instead of
    selecting the value, if I manually write for instance "01/01/2008", the report works fine.
    I don't know if this is useful.
    Once I have more info to send, I'll do it right away.
    Thanks again for your time
    Regards

  • SAP BW QUERY AND BOBJ , QUERY VARIABLES

    I have a SAP BW QUERY which Iu2019m trying to get through to BOBJ 4.0 AND CONTINUE TO GET THIS error "getDocumentInformation exception Error WRE 99998.........database error The MDX QUERY SELECT {...} ON CLOUMNS, NON EMPTY UNORDER, DIMESION PROPERTIES ON ROWS from SAP VARIABLES FAILED TO EXECUTE WITH ERROR for characteristic 0FISCYEAR, enter year in specified format(IES10901)
    We using BOBJ 4.0 AND IDT TO CREATE connections to query...
    In SAP BEX ANALYZER the query runs and returns results without any issues, but in u201CQUERY AS A WEB SERVICEu201D and u201CWEB SERVICEu201D we get THE above error ....
    so i removed the variables from the row section and included it in the filter section of query and still i get errors in bobj (This is after going to Transaction RSRT checking the properties TAB and selecting "Use Selection of Structure Elements" and then generating query in SAP BW,
    SOME queries you need to assign variable inputs for certain characteristics to restrict specific data ACCORDINGLY...
    is there a way to come around this?
    are there some docs available that simply describes the method of using a variable input/prompt in a SAP BW QUERY and how to use it in BOBJ?
    Any help would be greatly appreciated
    Thanks in Advance

    personal experience the variables doesnt work properly from query to bobj, remove any calculations in yoru query and variables, you could only use filters in query.. when you bring them in webi then brring the values to the report then create vraibles in it there.
    i keep my query from filtering as well then do everything in webi or xcelsius ..

  • Query vs Toplink managed collection and cascade persist

    A fairly simple situation: I have a 1-N relation which is managed by Toplink: 1 relation can have N calendars (I know, badly chosen class name, but alas).
    If I access the collection through the Toplink managed collection, make a change to one of the calendars and then merge the relation, the change in the calendar instance automatically is detected and also persisted.
    However, if I use a query (because I do not need all calendars) to find the same instance and make the same change, then it is not persisted. Appearantly the "cascade persist" is not done here.
    There are a few ways around this:
    1. fetch the original collection and by compare-and-remove emulate the query
    2. do a setRelation(null) and then setRelation(xxx) of the relation
    3. do a merge inside the transaction (a merge outside does not work)
    The funny thing is, workaround #2 really sets the same relation again!
    Is there a way to have the result of a query also cascade persist?

    Well, I do not want to do it in a transaction, because then the changes are written to the database immediately and that will result in all kind of locking problems (this is a fat client situation). What want is fairly simple: the user modifies entities in an object graph in memory and at the end of his work either presses "cancel" and clears all changes, or presses "save" and stores all changes. When he presses "save" I expect the EM to persist every changed entity.
    This approach works ok for all scenario's I have implemented up until now. The current one is different in that I get related entities not by traveling the object graph (so via Cascade.PERSIST collections), but via a query. There is one major difference between these two: the entities from the collections are automatically persisted, the ones from a query are not.. BUT they are -for all means and purposes- identical. Specifically: the collection gives me ALL calendars associated with the relation, the query only those from a timespan but still associated with the relation.
    For some reason I expected the entities to also auto-persist, BECAUSE they also are present in the collection.
    Ok then, so I understand that entities fetched through a query are unrelated to any other entity, even though they also exist in a Cascade.PERSIST collection. (I still have to test what happens if I, after the query, also access the collection: will the same object be present?)
    That being as it as, I need to merge each queries entity separate and thus I expect the EM to remember any entities merged outside a transaction, but it does not. That I do not understand.
    Now, I already have a patched / extended EM because of a strange behavior in the remove vs clear dynamics, so this was a minor add-on and works perfectly (so far ;-). But if you have a better idea how to remember changes to entities, which are to be merged upon transaction start... Please!

  • TFS 2010: Query over all Collections and Team Projects

    Hi,
    is it possible to generate a query which queries all collections and team project on a TFS?
    For example if I want to know all work items assigned to me. Actually I can only query over a collection and not over the complete TFS.
    How can I do this?
    Thanks,
    Mat

    Hi Mat,
    Thank you for your post.
    You may need write a TFS API to list all team project collections in server. For detail information, you can refer to Taylaf's blog
    Retrieve the List of Team Project Collections from TFS 2010 Client APIs and Paul's blog
    List all TFS Project Collections and Projects.
    I hope this information will help resolve this issue.
    If anything is unclear, please free feel to let me know.
    Regards,
    Lily Wu
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • I need to know the user who has created/modified a SAP Bex Query and WAD

    Hi!
    I need to know the user who has created and modified a SAP Bex Query and SAP  Web Application Designer. Does it possible to know this information by a table or view?
    Best Regards
    Ramon Sanchez

    Hi,
    In BEx query, when you click "Queries" to open the query, the list of queries are displayed. Highlight the query, click on the "Properties On/Off' icon(right most on the top), you would see all the details.
    In WAD, before opening the template, click on "Properties On/Off'" icon to see the details.

  • SAP Quickviewer query for pricing records - V12L and KONH / KONP

    Has anyone used the logical database 'V12L' for pricing queries? There seems to be an issue with this logical database with some vague warning messages.. When I tried to create a simple table join query with KONH and KONP there are again some vague errors. I need to see the following fields in the query output.
    KONH-KNUMH, KONH-KOTABNR, KONH-KSCHL, KONP-KBETR, KONP-KONWA, KONP-KPEIN, KONP-KMEIN.
    Are there any other simple and robust way to query KONH and KONP simultaneously? Thanks in advance.

    Hi Dhanaraj,
    I tried linking KONH and KONP and it just gave me just warning errors that won't affect your query. Disregard those errors since your not using it anyway and proceed as usual.
    Try not to query directly to these tables as much as possible for obvious reason, IT"S HUGE....
    I suggest to start with AXXX pricing tables and then link KONP with it. It's faster and you can directly identify the key combinations used.
    Enjoy!
    Arnel

Maybe you are looking for

  • Updated to iLife '08 and now iMovie and iDVD won't Start

    I received a copy of iLife '08 for Christmas and finally got around to upgrading today. The new iPhoto works just fine but when I try to start iMovie, it crashes (I have included part of the Problem Report below). I have tried restarting and it doesn

  • Saving all data from a while loop

    I already asked a similar question but it might not be very clear and there were some concepts that I could not well understand. 1. I have a key pad to generate DTMF stream signal (I call it stream because it contains multiple tones which make up of

  • I have a Macbook Pro v10.5.8, is it possible to upgrade to Mountain Lion as thats what the Macstore is telling me to do?

    I'm really not sure what I should be doing, the MacStore keeps prompting me to install Mountain Lion but I dont want to buy it for it not to work on my mac. My Mac is a MacBook Pro, bought new in 2008 running version 10.5.8 which is Leopard I think?

  • Tried to update my ipad mini and its now stuck in restore mode

    My ipad mini was due for update and after it was downloaded on my Mac, it sent the ipad mini into restore mode. I cannot get it out of restore mode. Even tried the turn it off, then hold down home button while plugging it in thing over and over. Noth

  • Cannot Backup PSE 10 Catalog to DVD or HD

    PSE10 seems to run  normally, but when I attempted to backup my current catalog, whether I choose DVD or external HD, the program behaves the same:1. Queries if I want a full or incremental backup, 2. Calculates backup 3. I select Ext HD, the program