Query on items without cost

Hi Experts,
Is there a query wherein I can get items sold (DR and Invoice) without Item cost? Which means no CGS was recorded since no receipt was made yet. Client allows transactions with negative quantities and FIFO valuation.
Query can be generated on range of dates.
Many thanks,
Don

Hi Don.....
Please try this.......
Select T0.DocNum, T0.DocDate, T0.CardName, T1.LineNum, T1.ItemCode, T1.Dscription, T1.Quantity, T1.Price, T1.LineTotal From
ODLN T0 Inner Join DLN1 T1 On T0.DocEntry=T1.DocEntry Where T0.DocType='S' And T1.LineTotal<=0 And (T0.DocDate>='[%0]' and T0.DocDate<='[%1]')
Union All
Select T0.DocNum, T0.DocDate, T0.CardName, T1.LineNum, T1.ItemCode, T1.Dscription, T1.Quantity, T1.Price, T1.LineTotal From
OINV T0 Inner Join INV1 T1 On T0.DocEntry=T1.DocEntry Where T0.DocType='S' And T1.LineTotal<=0 And (T0.DocDate>='[%0]' and T0.DocDate<='[%1]')
Regards,
Rahul

Similar Messages

  • How to query if item is mutistate without selecting it

    Is it possible to query whether a page item is a multistate item without having to select it first?
    Currently I'm having to select it then call:
    InterfacePtr<IFormFieldSuite> formFieldSuite(SelectionUtils::QuerySuite<IFormFieldSuite>());
    bool16 multiState = (formFieldSuite && formFieldSuite->IsFieldSelectionOfType(kMultiStateObjectItemBoss));
    But I sometimes have to do this on several objects at once which leads to a lot of selection changes which I'd like to avoid.
    Thanks
    Liz

    K T,
    I completely missed that section of the forums, sorry
    Neil,
    I had that kind of script set up but it was like this:
    on run {input, parameters}
    tell application "Finder"
    kind of item parameters
    end tell
    end run
    And i just figured out that i had to change the first line to "on run {parameters}" and now it works great.
    Thanks for the help, it got me going in the right direction

  • Costing items for material 21000001 in plant 204A without cost element.

    Dear Friends,
    Kindly suggest solution to below problem,
    Costing items for material 21000001 in plant 204A without cost element.
    Message no. CK597
    Diagnosis
    The itemization for material 21000001 in plant 204A contains valuation-relevant items without a cost element.
    System Response
    The costs of these item(s) cannot be included in the cost component split. This means that there will be inconsistencies between the cost component split and the itemization.
    Procedure
    Check the log for further system messages for material 21000001 in plant 204A. Correct the error and carry out costing again.
    Thanks
    Gaurav Chopra

    Thanks
    The error has been resolved..
    In master data itself.
    For co-products , the version category was not maintained.
    Moreover in BOM,
    The items which were coproducts were not Ticked as co product.
    Thanks..
    Gaurav Chopra

  • Goods Receipt without Costs

    Dear Expers,
    A colleague of mine has done Good Receipt without cost  when I go in Inventory posting the G/L Acct is missing because of this. How Can I rectify this... I have tried doing stock revaluation but its giving  BK-PLEASE ENTER A PROFIT CENTER....even tho I put in the profit center I get the same error msg.
    Thanks,
    Titi

    Hi,
    Please check the Note 1099094 suggested by Johnson.
    [https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1099094]
    Yes of course if you valuing by Moving average. its highly crucial to maintain and you do MR - material revaluation the issue is more the cost is increased. The cost will have increased.
    ( (Item price* qty) + (available item price * qty) ) / total quantity. Please do calulation it will all be correct to the value inthe system.
    Please be careful with these type of transaction.
    Regards,
    Rakesh N

  • Vendor opent items by cost center

    Hi all,
    we have one sap query for which we can get vendor open items by cost center. in this reort data has come from T.code FB60 and MIRO.
    Even though my client is asking before mentioned question, please check and let me know
    "That query shows all CC line items related to vendor documents that are still opened. I am missing the documents coming from a PO, which is hard to add in the query itself. So, I would suggest to create an ABAP."
    he was telling that " I am missing the documents coming from a  PO"  i did not get this sentence.
    could you please let me know
    Thanks in advance
    venu

    Hi Suresh,
    Thanks for your replay, if you dont mind could you please explain elaborate?
    That would be so grate for me.
    continue with earlier mail my client is asking to implement the below mentioned logic
    That query shows all CC line items related to vendor documents that are still opened. I am missing the documents coming from a PO, which is hard to add in the query itself. So, I would suggest to create an ABAP.
    Here is the logic
    Start from table bsik.
    Read table GLPCA with bukrs = bsik-burs
                    And GJAHR = bsik-GJAHR
                    And REFDOCNR = bsik- belnr.
    This will give all controlling line items (CC, order, WBS) coming from FI.
    If not found,
    Select single * from bkpf where bukrs = bsik-burs
                    And GJAHR = bsik-GJAHR
                    And belnr = bsik- belnr.
    Read table GLPCA with bukrs = bsik-burs
                    And GJAHR = bsik-GJAHR
                    And REFDOCNR = bkpf- AWKEY(10).
    This will give all controlling line items (CC, order, WBS) coming from Pos.
    Is it fullfuls?
    Thanks for your cooperation and i will assign the points
    Thnaks
    venu

  • Returning a ZERO on Slow-Moving Item without transaction

    Hi all,
    Via a multi-provider, we have implemented several slow-moving item in our reports, eg we return all the value of some dimensions whether we have transaction or not on these dimension values.
    Now for dimension value for which we have no transaction it returns in Bex an empty result on the key figure instead of a zero, is there a way to force BW to put a zero on a slow-moving item without any transaction?
    Thanks in advance for your assistance
    David

    Hallo
    FI you go to the Query Designery --> Property Display than you can cusotmioze how to display the zero. You probably have the option Zero Values Display as Blank.
    I hope this can help you
    Mike

  • Sales order value flow to internal order without cost elements.

    Dear Sap Friends,
    My client have a requirement, when sales people creating a sales order, sales value flow into internal order without a cost elements. normal case when SO, Deleivery, and billing data automatically can flow into CO-PA. Here i want to know how value can flow into I.O. without a cost elements please give me advise.
    i created a  statistical internal order  and that internal order i assigned in sales order account assingment. but i know that there is no value going to flow this  I.O. becasue there is no cost elements.(becasue client dont want to create a cost element for internal order)
    There is any option when i crate a sales order  values can go into internal order without cost elements or i can create a statistical Internal Order and assigned into  CO-PA? if i can dothatt what is the steps. kindly explain to me. if some have can explain to me please leave contacts number or send me reply.
    Regards
    Paul

    By standard configuration itr is not possible.
    You ought to have user exit in place.
    For DC A & B, where you need a redetermination of pricing component, take help of an ABAPer for user exit USEREXIT_XKOMV_FUELLEN (module pool SAPLV61A, program RV61AFZB).
    So now, for DC C, you need to change the copying control in VTFL - item, where your pricing type ought to be D-Copy pricing elements unchanged.
    Regards
    JP
    ASSUMPTION: I assume that your all DC uses the same Sales Doc type & Billing Doc type

  • Issue with report (S_ALR_87013611) that is actual/plan line items for Cost

    Hi Gurus,
    I am having issue with the report (S_ALR_87013611) that is actual/plan line items for Cost Center.
    When i execute the report for a cost element  510200 the amount is 23,380.13, but when i drill down on it by double click on that amount the value in obj curr is 15468.91. Hence there is the differnce. When i futher drill down by double click on the amont of 15468.91 and i go to display group currency and take the total it is 23380.13 and display in local / doc currency the amount is 15468.91. I guess due to this there is difference. The cost center & the cost elements are the same i have checket it.
    My concerns is that the group curr is USD and obj curr / local curr is USD. So is group curr and doc curr is USD then when i click on dislay curr and select group curr why the amounts are changing.
    Kindly adivce

    Try to look if there is any filtering criteria applied in the report to which you drill-down.
    The difference can be also caused by the "value type" - some reports show actual and statistical costs together in one column while the others strictly show (are defined to show) only e.g. actual costs (type 04) and not the statistical costs (type 11)

  • Planning on WBS elements without cost elements

    Hi all,
    we are trying to implement the planning solution where users will be able to plan on individual WBS elements monthly but without providing a breakdown on cost elements. Standard SAP planning profiles allow to post plan values on WBS elements in annual view without cost elements. But when you want a monthly view the system you need to click on primary cost elements planning first.
    Is there any way to plan monthly but at cost object (WBS) level only?
    Many thanks,
    Roman

    Hi Eli,
    thanks for your response. We will be using budget functionality for budget purposes but at the same time we will need to use planning on different versions. I believe there are no versions for budget.
    One of the idea to minimize cost element planning is to introduce like a planning cost element to use with all planning postings and then include this into the same cost element group with the rest of cost elements for plan/actuals comparison reports.
    If you have something in your mind I would appreciate your input.
    Thank you,
    Roman

  • Error While creating a regular item without any demo data.

    Hi All,
    In RMS13.1.1, during creation of an item without any demo data, and entering all the required inputs on the item master & itemsupp form. When we click on “Retail by Zone” the following error message got displayed “Exchange rates does not exist” on the Item Retail Price by Zone window form.
    Thanks,
    Sushanth.D
    Edited by: user10680684 on Jul 13, 2010 2:51 AM

    What you can do is open the Form's fmb code in Forms Developer IDE, or switch on session level or database level SQL_TRACE to see the SQL statements that the Form is firing to the database. (Find the tracefile in the udump folder). Replaying the SQL statements from the SQL trace file in e.g. SQL*Developer may lead to a cursor or block that e.g. does not return any rows. You may need to replace bind variables' placeholders (:a1 etc.) found in the trace file with the relevant business values for your items, zones, etc.
    Good luck and let us know how you progress,
    Erik Ykema

  • G/L account item without tax code in document with deferred taxes

    Hi ,
    While releasing the billing document to accounting i get this error " G/L account item without tax code in document with deferred taxes". Not able to release it to accounts. What could be the possible reason??
    Actually, this error is occuring only when i am using a Discount Condition (Z Condition).
    Please guide what could be the problem in the Discount Condition?
    Thanks and Best Regards

    whats this Z condition type. Is it  a tax condition type. If yes , please check the tax code assigned to this in the condition type defintion (VK12) and in FTXP check if this code is assigned with Account key.
    Also in the pricing procedure, if this condition is Active (not statistical) whats the account key assigned to it. Then check  whats the GL Account assigned to this Account key (VKOA).
    Then in FS03 , check this GL account number and under "Control Data" whats the Tax category maintained. You can have a * for the tax category here.
    Hope this helps
    Regards
    Sai

  • HFR Issues - "5200: Error executing query: Invalid Item ID"

    Hi All,
    We are using Hyperion HFM application 11.1.1.3. Recently we have upgraded the Oralce Database to 11.2.0.2 and reconfigured the HFM application with this new database version. When I tried to run the Financial reporting through the HFR studio, I am getting error message - "5200: Error executing query: Invalid Item ID". Please could you help me to resolve this issue.
    Thanks,
    Aravindh K

    This was due to an invalid default Point of View for the user that was incompatible with the particular report.
    Change the Preferences to User Point of View Preview and run the report again.
    File > Preference > Financial Reporting > Select Preview "ON" under USer Point of View box.
    Re-run the report and select the desired POV.
    This will prompt the user to change their POV every time he or she opens a report. They can select the correct POV and the report runs correctly.
    You can turn off later. Let me know if it fixed this issue.

  • HFR - 5200: Error executing query: Invalid Item ID

    Hi All,
    We are using Hyperion HFM application 11.1.1.3. Recently we have upgraded the Oralce Database to 11.2.0.2 and reconfigured the HFM application with this new database version. When I tried to run the Financial reporting through the HFR studio, I am getting error message - "5200: Error executing query: Invalid Item ID". Please could you help me to resolve this issue.
    Thanks,
    Aravindh K

    Did anything change on the database side? Alias, member name? "Error executing query" usually is associated with a change in the database.
    Regards
    Celvin
    http://www.orahyplabs.com

  • Transaction KSB1 - Display Actual Cost Line Items for Cost Centers

    Hi,
    When I run transaction KSB1 - Display Actual Cost Line Items for Cost Centers, all my offsetting accounts (accumulated depreciation accounts) are shown except for the ones for asset classes:
    - Buildings
    - PC & Small Applications
    On the FI side, I can see transactions being posted to their relative accumulated depreciation accounts but I do not see this on the CO side when transaction KSB1 is executed. I have checked the config and the account assignments look correct. Also, the assets created have cost centers assigned to them.
    Could you please help!
    Thanks,
    - Deki

    Hi Murali,
    I have one depreciation expense account (P/L Account) which is also a cost element.
    During depreciation run, the different asset classes are supposed to hit the depreciation account above and their corresponding accumulated depreciation accounts (These are Balance Sheet Accounts and I have separate accounts for each asset class .. ie: Accumulated Depreciation for Furniture and Fixture for asset class Furniture and Fixture).
    Now when I run transaction KSB1 - Display Actual Cost Line Items for Cost Centers, all my accumulated depreciation accounts are shown except for the ones for these asset classes:
    - Buildings
    - PC & Small Applications
    Any thoughts on why the above aren't showing?
    Thanks!  I really appreciate your help!
    - Deki

  • Plan cost line items for cost centers report

    Hello,
    I am displaying the report: Plan cost line items for cost centers and when I display the details of a line item it appears a document number, where could I display this document?
    I have tried to display it in FB03 transaction but it seems not to be this kind of document.
    On the other hand in the field Business transaction it appears RKP6, what is the meaning of this field?
    Thank you very much

    Hi Beatriz Amezua ,
    For displaying plan line items for cost center - KSBP and for display of individual plan document : KABP
    RKP6 means "Planning Activity Dependent Costs"
    Like in FI module, the business transaction have been codified and the list you can find in KANK transaction , mention your controlling area, menu -- Groups --  Display Groups
    Srikanth Munnaluri

Maybe you are looking for

  • Screen flickering when window is open on Cinnamon

    Hi, I have a fresh Arch install with Cinnamon DE(version 2.4.0). When I loggs in(always) or open some window(often) my screen flicker(what is shown in this video: http://www.dailymotion.com/video/x29jkt … 60313_tech ). I'm using open source xf86-vide

  • ESS Leave Request - Error while creating a leave record

    Hi Friends,   Some of the ESS leave request(not workflow) has gone into error when the system tryies to create a leave record in background. I can view these error request using the report RPTARQDBVIEW. This happens when the background program(PTARQP

  • Changing default layer length?

    How do I change the default layer length, when inserting an image into a composition? (I always seem to insert images, and forget that the layer length (time) is very short, then wonder why I can't see it). It's a minor thing, but help with this so I

  • Mail - help with signatures please

    I want to create an HTML Email signature for Mail on my Mac ... I've managed to create the HTML, and save as a Webarchive file, and everything worked fine (I only need a simple logo at the bottom of my emails), all was well, it even opened up success

  • Logical vs relational

    hi, There are two notations in logical model (Barker and Backman). The Backman notation in logical model looks like relational model in look and feel. I want to know the difference between logical and relational in oracle data modeler. How can i corr