Fetching Actual Price of Item for Profit Report

All items in system are managed serially, while Inward entry in GRPO transaction price  of
item is defined.
For Ex Item X there are four GRPO transaction with a value
Purchase Value 1= 2500 ,
Purchase Value 2= 2600 ,
Purchase Value 3= 2700 ,
Purchase Value 4= 2800 ,
Against the same item X there are two sales transaction done with a value
Sale Value 1 = 3500 ( which is against Serial No of GRPO with value Purchae Value=2700)
and
Sale Value 2 = 3800 ( which is against Serial No of GRPO with value Purchae Value=2600)
Now our aim to caculate actual Profit based on both of this transaction
i.e against Sale Invoice 1 Profit = (Sale Value 1) 3500 - (Purchase Value 3) 2700= 800
and against Sale Invoice 2 Profit = (Sale Value 2) 3800 - (Purchase Value 3) 2600= 1200
Note user can select any item in random.
Is it possible to develop query based on this logic ? or can anyone guide to other
alternative.

Hi Satish,
Will you always use the price as known on the Goods Receipt PO? What if the Item was received through an AP Invoice? Is the process always the same at the customer site?
Which sales document would you take the sales price from, Sales Order, Delivery, Invoice?
Jesper

Similar Messages

  • Actual cost line items for orders (KOB1)

    Hello everyone,
    I need to pull a certain field for an order to the
    Actual cost line items for orders report (KOB1), but the field is not available when I
    go to the change layout. Can someone let me know how I can have this
    field listed?
    Thanks in advance for your reply.
    Daniel Nicula

    Hi Christian,
    Ok, so I would need some ABAP support for this right? I was hoping to do it myself.
    But, the strange thing is that the field that I would like to bring in my layout is available in 2 clients in the same system and not in all the clients. I have one client in which this field is not available.
    How can that be possible?
    Bye!

  • 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)

  • FM for Actual cost line items for orders.

    HI EXPERTS,
    I was working on Actual cost line items for orders / Internal orders of an employee.
    standard program RKAEP000 is present through TCODE KOB1.
    I want some customization of report, so debugged the program and found that its using a FM 'K_LINE_ITEMS_SELECT_AND_LIST' to calculate internal orders.
    But the FM has used REUSE_ALV_* and displaying output itself.
    the requirement is to customize the output display .
    I searched with K_LINE_* and found some other function modules too.
    K_LINE_ITEM_CHECK                                                                               
    K_LINE_ITEM_APC_SIGN_GET                                         
    K_LINE_ITEM_GET_CONTEXT_MENU                                     
    K_LINE_ITEM_GET_TOOLBAR                                          
    K_LINE_ITEM_LOGICAL_KEY_GET                                      
    K_LINE_ITEM_TECH_SETTINGS_SET                                    
    K_LINE_ITEM_VALUE_TYPES_GET                                      
    K_LINE_ITEM_VALUE_TYPES_SET                                                                               
    K_LINE_ITEMS_ACT_GRID                                            
    K_LINE_ITEMS_SELECT                                              
    K_LINE_ITEMS_SELECT_AND_LIST                                     
    K_LINE_ITEM_ACT_CALL_WITH_DATA                                   
    K_LINE_ITEM_ACT_DATA_GET                                         
    K_LINE_ITEM_CM_CALL_WITH_DATA                                    
    K_LINE_ITEM_DEV_CALL_WITH_DATA                                   
    K_LINE_ITEM_PLN_CALL_WITH_DATA                                   
    K_LINE_ITEM_PROCESS_UCOMM_ACT                                    
    K_LINE_ITEM_STEERING_GET                                                                               
    Can anybody tell which FM should i use so that result i will get in an internal table?
    or suggest any other methods
    Thanks in Advance.
    Lucky

    I also had the same requirement and used function module K_LINE_ITEM_ACT_DATA_GET
    this function is calling K_LINE_ITEMS_SELECT_AND_LIST function with  I_NO_DISPLAY parameter
    and returning the result.
    Already they are in same function group,
    I wrote this for future requirements of people  after 4 years of this thread

  • Re:- How to see customer/vendor open items for profit center wise

    any one help me regarding : How to see customer/vendor open items for profit center wise. That is possiable or not please suggest to me. I am using 4.6c version .

    Run the report from Tcode FBL1N for vendor open item and from FBL5N fron Customer open items.
    When you get the report, click on Change Layout icon ( or press Control + F8 from keyboard), search Profit Center fron the Table of Hidden fields on the right hand side. Move that field to the Left hand side table. Click ok, now you should be able to see the Profit Center column in your report.
    You can save this layout by clicking on the Save Layout icon ( or press Control + F12 from keyboard)
    Next time you can choose the saved layout by clicking on the Select Layout icon ( or press Control + F9 from keyboard)
    Regards
    Dharmveer

  • 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

  • Not displaying Actual cost Line Items for Order

    Hi Gurus,
    Recently we did patching from SPC6 to SPC8. After patching we noticed that could not able to see displaying Actual cost Line Items for Order from work order.
    System is not throughing error message when I double cline on line item at Plan/Actual Comparison screen in work order cost tab.
    We can able to see the same from KB01 with out any problem. I have attached the details.
    Could any one suggest me please. Appreciate your thoughts
    Regards,
    Srini

    Hi Paul,
    I have implemented this note and get it sorted out.
    Thank you for support.
    Regards,
    Srini

  • Extractor of Line Items for Profit center

    Hi
    I am trying to find an Business Content Extractor of Line Items for profit center.
    Under Controling I could fined a data store for Cost Center, But could not fined the same for Profit Center.
    It has to be part of Co and not of FI
    Regards

    For profit center delta line items use 0EC_PCA_3. Periodic transfer use 0EC_PCA_4.
    pls assign points to say thanks.

  • Table where i see actual cost line item for order (KKBC_PKO)

    Dear.
    Using transaction KKBC_PKO i can see the actual cost line item for order.
    In which table I see these data ?
    Thanls

    Hi,
    check COEP (CO actual line items) the objectnumber is OR+the order number.
    Best regards, Christian

  • Table where i see actual cost line item for order (KRMI)

    Dear.
    I need to know the table of every single document number of a cost element that I see in the actual cost line item for orders using transaction KRMI.
    Thanks
    Moderator: Please, search SDN

    Hi
    Refer the field Object No (OBJNR) in COEP.. In your case, the OBJNR would be ORXXXXYYYYYYYYYYY, where OR means Order, XXXX = Contr Area and YYYYYYYY = Int Order No with preceeding zeroes
    Qty is also recorded in COEP
    BR,Ajay M

  • Additional Data On Actual Cost Line Item for Orders. Possible?

    Is it possible to show on display of Actual Cost Line Item for Orders the cost center for both settled and not yet settled? As for now we can only view the cost centers that are already settled. Please see attached file for a snap picture of the display.
    Thank you in advance.

    Hi,
    How this would be possible? If the document is not yet settled, then cost centre is unknown. Of course, it is stored in settlement rule, but no actual posting was done yet.
    Regards,
    Eli

  • Actual cost line items for network

    Hello all,
    is there a way to display actual cost line items for networks? I have tried the following ways:
    - CJI3
    - KOB1
    When entering only the network number, the error message KB422 is displayed (No line items were selected). When entering the WBS number to which the network is attached the costs are displayed.
    Any ideas? Thank you!
    Regards
    Christian

    Christian Philipp wrote:
    H
    > When entering only the network number, the error message KB422 is displayed (No line items were selected).
    There is no actual posting against the network exists.
    Christian Philipp wrote:
    When entering the WBS number to which the network is attached the costs are displayed.
    after running double click the document number and check the account assignment whether it is to WBSE or to Network activity. It will clear your doubt.

  • KOB1 - Display Actual cost line items for Orders

    Hi All
    A production order has been settled. When the actual cost line items are displayed for the said production order in KOB1, there are multiple line items related to the production order that gets displayed.
    The issue we are facing is, in one of the line item, the accounting document has one credit (Consumption a/c) and two debits (one debit is to inventory a/c and another debit is to price difference a/c). However in the report, in the offsetting GL column only one GL code (price difference gl account a/c) but appears with the entire amount.
    Ideally two separate line items needs to be displayed with respective line items. Is this a flaw in SAP.
    Can anybody throw some light on this and help me.
    Regards
    Prasanna

    this is may be config issue.
    can you explain with accounting entries for said line items and offsetting GL for each line?
    regards.
    ashok

  • Balance sheet Item for assets report

    Hi friends,
    Please help me to understand the field BALANCE SHEET ITEM - ERGSO for asset reports.
    where we are maintained the field ? On which table contains the above ERGSO - Balance sheet Item filed ?
    What is the importance of the field ?
    Please guide to me to understand to mu above query.
    Thanks
    Rish

    Hi,
    please read SAP notes 70212 & 70118!
    Best Regards!

  • Manual price condition item for the Idoc IDOC_INPUT_ORDERS

    Hello,
    I need to inform the item manual price using the function module for IDOCs IDOC_INPUT_ORDERS. I am trying by the segment E1EDP05, field Price, but it doesn´t work properly.
    Thanks in advance
    Regards

    Manuel,
    Merely putting the 'price' into a segment-field won't result in good result. You will need to (potentially)populate a few more fields to tell SAP what you want changed. Here is an example, I have a Condition Type called 'Z123' which is a manual condition record. It has been defined as a 'dollar-off' based discount (as opposed to a percentage etc). If I want to push through a discount of, say, $1.00 per unit then I will be populating the following fields within E1EDP05:
    KSCHL - 'Z123'
    KRATE - '2.21'
    MEAUN - 'EA'
    KOEIN - 'NZD'
    Try that and see how you get on. Also check your EDI config around the handling of Messages for Inbound Orders.
    Here's another hint... Simulate what you want to achieve by creating a sales order manually on the system with the relevant condition types populated and then trigger an outbound IDoc. Take a look at the E1EDP05 segment of the outbound IDoc and it will effectively tell you what you need to populate and where to populate it.
    Since I'm on a roll and feeling altruistic, here's another hint for you... Use WE19 and use the 'Inbound function module' icon and from the dialogue box select the 'Process in the Foreground'. As this function module is effectively a dirty old BDC wrapped around a SAP standard FM, you can step through it and see how it is behaving...
    If you are still having problems, let me know, and I will help you out as much as I can.
    Cheers,
    Paul...

Maybe you are looking for