How to get profit

Dear Expert,
I want a report in which purchase price and sales price of each item, also if same item is sold at different ?
Thanks
Kevin

Hi!
Check this !!
select
D0.CardCode,
max(D0.CardName) as Name,
D1.ItemCode,
max(D1.Dscription) as Descp,
sum(D1.Quantity) as Quantity,
Sum(D1.StockPrice) as [Purchase Price],
sum(D1.Price) as [Sales Price]
from ODLN D0, DLN1 D1
where
D0.Docentry=D1.Docentry
Group By
D0.CardCode,D1.ItemCode

Similar Messages

  • How to get profit center in fbl5n in ecc6.0

    hi
    in the dynamic selection screen, in documents i am not able to get the profit center.can any one tell how to get it?

    When you are on selection screen of FBL5N, press (Shift + F4) DYNAMIC SELECTIONS, there you will see a Dynamic selection screen along with your normal FBL5N selection screen, you will find Profit Centre ther, if you don't find Profit Centre in Dynamic Selection Screen you can add the same from the list on the left, search for profit centre, place your cursor on Profit centre and press the Arrow Button(Copy Selected) on top of the list. Now you will find Prfit Centre in Dynamic selection screen, fill the field with values and press save, that's it.....
    Reward points if useful, get back in case of query...
    Cheers!!!

  • How to get profit center group and its description

    According to three tables(as below), i get profit center group, how to get its description?
    CEPC  (Profit Center Master Data Table)
    SETLEAF
    SETNODE
    PS:(Referrence to teh link fields in table)
    For Profit centre Group ( SETLEAF-SETNAME )
    Select BSEG-BUKRS / BSEG-PRCTR from BSEG.
    SELECT SINGLE SETNAME INTO WA_SETNAME
    FROM SETLEAF
    WHERE SETCALSS = '0106'
    AND SUBCLASS = BSEG-BUKRS
    AND VALFROM = BSEG-PRCTR
    i can get two records, why?

    Hi,
    I am not sure of the significance of this table...
    But looking at the table structure it is having LINEID as one of the key fields..
    So you can have more than one record for the same combination..
    Thanks,
    Naren

  • How to get balance sheet report for profit centers

    hi
    how to get balance sheet report for profit centers, is there any transcation code to get that report or i need to create a report painter report for this

    Hi,
    You can use T. code KE5Z for actual line items.
    More to this you can use program RFBILA10 (Use T. code SE38 and program RFBILA10) for complete blance sheet.
    The transaction is for special purpose ledger but this program RFBILA10 can be used for profit center balance also.
    In selection, you can give ledger name which is generally 8A for profit center ledger.
    Reg

  • I am new to Mac Pro but am purchasing one online.  can anyone tell me how to get the information from my Toshiba onto the Mac.  there are no stores in the state I live in.  Do I need to find a location and will they do a transfer from my I Tunes etc?

    I am new to Mac Pro and am purchasing one online  tonight.  Can anyone tell me how to get my information - Itunes, photos, and videos transferred onto the Mac from my Toshiba.  the state I live in doesn't have an Apple store but I could take it to Minneapolis when I go.  Any ideas where to begin?

    You might profit from a visit to a Minneapolis Apple store. With a brand new Mac, I think they will be most helpful - not just with transferring files, but with other advice as well. And I strongly recommend you invest in a back up drive. The Apple folk can help with that as well.

  • How to update profit center in posted document without profit center ?

    HI,
    I want to know,
    How to update profit center in posted document without profit center ?
    So that i can get my profit center accouting report proper.
    Thanks
    Nilesh

    There is a long story about profit center accounting. I assume you are using Classic PCA, this means you can see the PCA documents.  And the solutions is below:
         For P/L account, even you don't maintain cost element for it, if you maintain the profit center in the application (Frontend transaction), then PCA line items will be generated for this account.
        For B/S account,  if you maintain the default Profit Center with transaction 3KEH/3KEI, the PCA line items will generated for this account also.
      Hints, don't maintain default profit center for AR/AP accounts, these accounts to be treated in periodic processing.
      First, calculate the distribution/adjust by F.5D, then transfer it by 1KEK. for others account rather than AR/AP, use F.5E
    For you case, if this account is P/L account, but you don't maintain profit center in the transaction, you can maintain default profit center as B/S account in 3KEH and 3KEI, then transfer it subsequently by transaction 1KE8.
    Good Lucky!
    Flex Yang

  • Not able to get profit center in ODS

    Hi ,
    For a materila number we are not able to get profit center in Billing ODS.
    In PSA we have profit center for that material.
    Transfer rules: profit center mapped to 0PROFIT_CTR field.
    Update rules: 0profit center mapped to source fields profit cneter .
    Data source : 2LIS_13_VDITM.
    But profit center we are unable to get into ods. No routine contains restrictions for profit center. How can we geet the profit center.

    Take a look at your ODS key,  Grab a few records from your ODS that are incorrect and look them up in the PSA.   My guess is that Profit Center is not part of the key and you are getting two records for your key .... the last one doesn't have Profit Center filled.
    If you really want profit Center, you can make it part of the key, but since I am unsure of your data, key or scenario, it is hard to say what exactly the best solution would be.
    Brian

  • How to add profit center in fbl5n selection screen

    how to add profit center in fbl5n selection screen
    and
    it is save to copy  ddf from sap to cus
    wll it affect anything else

    When you are on selection screen of FBL5N, press (Shift + F4) DYNAMIC SELECTIONS, there you will see a Dynamic selection screen along with your normal FBL5N selection screen, you will find Profit Centre ther, if you don't find Profit Centre in Dynamic Selection Screen you can add the same from the list on the left, search for profit centre, place your cursor on Profit centre and press the Arrow Button(Copy Selected) on top of the list. Now you will find Prfit Centre in Dynamic selection screen, fill the field with values and press save, that's it.....
    Reward points if useful, get back in case of query...
    Cheers!!!

  • How to User Profit Center Fucntionality in ISH Module

    Hi,
    In ISH Module, i dont find an option To User Profit Center Accounting fucntionality as i am able to see only Cost Center & Internal Order.
    Kindly Proivde me some inputs how to use Profit Center in ISH module and How to get the P&L Reports profit center wise.
    Thanks

    Hi
    IS-H uses cost centers for revenue accounting, you must deactivate the flag that blocks revenue accountig in cost center master data. The revenues are then posted to profit center assigned to the cost center. There is no place to configure profit center accounting in IS-H.
    With best regards
    Matías

  • How to maintain profit margin in third patry sales

    Dear Experts
    Please suggest how to maintain profit margin in third party sales
    Regards
    Manoj

    hi,
    you need to maintain VPRS condition type in your pricing procedure.
    VPRS condition type captures COst of the material. This Value for Condition type VPRS is copied from Valuation segment from Material master.
    VPRS should have subtotal as B and requirement as 4 and also should be statistical in your pricing procedure.
    Moreover the item category of the sales order Determine cost should be marked in VOV7
    After maintaining this, you can maintain Z condition type with MARGINE % or value as per your requirment
    In normal scenario, clients do maintain the condition record for PROFIT MARGINE % so that this margine valu gets calculated automatically

  • Get Profit Center Function Module

    is there any Get Profit Center Function Module..
    what for is it used ? how way is it related to profit center.
    What are the transaction codes of MR1M,OKB9.
    What is the significance of using these ?
    Could any body please explain.
    THANKS IN ADVANCE...

    All the profit center are stored in CEPC - Profit Center Master Data Table, so u get the profit center details from this table.
    Check the below link for the transaction:
    http://help.sap.com/saphelp_utilities472/helpdata//EN/08/513e4243b511d182b30000e829fbfe/frameset.htm
    Regards,
    Prakash.

  • How to get the values from table SKB1 R/3  to SRM

    Hi Gurus,
    My requirement is to get all the values from the table SKB1 to SRM (i.e. in to an internal table) for doing some validation(G/L account XXXXXX requires an assignment to a CO objectXXXXXX.)
    Like wise I have many tables for doing validation in SRM
    Help me how to get this, suggest me any Function module with sample code.
    OR
    Any Standard FM which will give all the values of the fields in the table SKB1 when I pass the key fields G/L account & company code alone so that I can improve the performance.
    Suggest me.
    Regards
    Paul

    Hi,
    You can use the FM 's META_READ_TABLE Or RFC_READ_TABLE
    Which SRM / Backend system version are you using ?
    Are you taking care of the Importing paramater - DELIMITER in this case.. ??*
    See related links ->
    Re: Retrieving data from R/3 into SRM
    Re: Product Search TIME lag
    Else you can just call the remote enabled  FM "BAPI_GL_ACC_GETDETAIL"  from SRM.
    BR,
    Disha.
    Do reward points for useufl answers.

  • How to get the values from popup window to mainwindow

    HI all,
       I want to get the details from popup window.
          i have three input fields and one search button in my main window. when i click search button it should display popup window.whenever i click on selected row of the popup window table ,values should be visible in my main window input fields.(normal tables)
       now i am able to display popup window with values.How to get the values from popup window now.
       I can anybody explain me clearly.
    Thanks&Regards
    kranthi

    Hi Kranthi,
    Every webdynpro component has a global controller called the component controller which is visible to all other controllers within the component.So whenever you want to share some data in between 2 different views you can just make it a point to use the component controller's context for the same. For your requirement (within your popups view context) you will have have to copy the component controllers context to your view. You then will have to (programmatically) fill this context with your desired data in this popup view. You can then be able to read this context from whichever view you want. I hope that this would have made it clear for you. Am also giving you an [example|http://****************/Tutorials/WebDynproABAP/Modalbox/page1.htm] which you can go through which would give you a perfect understanding of all this. In this example the user has an input field in the main view. The user enters a customer number & presses on a pushbutton. The corresponding sales orders are then displayed in a popup window for the user. The user can then select any sales order & press on a button in the popup. These values would then get copied to the table in the main view.
    Regards,
    Uday

  • TS3999 I had an icloud account setup in 2009 when I first got my family members each a mac. I let that account expire(we never used it) and I don't know how to get it off of my ical. It is not recognizing any of the information to reset the password?

    I had an icloud account in 2009. We set it up as a family plan because my family had just changed from PC to Mac. We never used it and let the plan expire in 2010. My ical will not sync with my new iphone because it is linked to the family plan account that no longer exist. Because I don't remember my password, I tried resetting it. It says the personal information I entered is incorrect, but I know the information is correct...It's my birthday it asks for! Does anyone know how to get that account off of my mac without the account existing?

    You were a MobileMe (not iCloud) subscriber in 2009 and this service has been terminated. However the login is an Apple ID and this never expires. What is your operating system? Do you have a MobileMe icon in System Preferences? - if so you should be able to sign out in it, but you may not have an iCloud icon to let you create an iCloud account, though you can do so if your iPhone has iOS 5 or above.
    If you are getting login requests or other irritations from your MobileMe account you can go to (user)/Library/Preferences/ByHost and delete all .plist files beginning with com.apple.DotMac or com.apple.idisk, then reboot.
    The minimum requirement for iCloud to let you sync your data is 10.7.5 though you can sync through iTunes (except with Mavericks).

  • I cant update nor download any applications. My password was always invalid. And other username is prompted richardca0521@yahoo.ca which is not my account. How to get rid of this apple id and use my account for download? I have registered this to itunes.

    I can't update nor download any apps in itunes. Prompted invalid password, upon checking the apple id was not mine. The id was [email protected] whic is not mine. Pls. Help how to get rid of this. Thank you.

    try and delete the apps and re-add them

Maybe you are looking for

  • Calling Portal event from ABAP class

    Hi Experts, I need a following clarificatrion, Please help, 1. Is it possible to call a webdynpro method from a normal ABAP class? 2. If no, we need a functionality of a class 'CL_WDR_HTTP_EXT_MIME_HANDLER' having method 'DO_DOMAIN_RELAX_HTML'. Is th

  • Schedule manager for month-end procedure

    Hi, I have to prepare Business Process Procedure(BPP) & Configuration Guide For "schedule manager for month-end procedure" .Plz help me by giving some inputs to prepare the documents.Its urgent.... ***points will be assigned. Thanks Sap Guru [email p

  • No access to OS X part files!

    I got access my OS X part files in Maverick while I was in Windows using boot camp. But I can't do so while I upgraded to Yesomite. Is there any way I could have this privilege back? I know parallel allows to do that but I do not want to spend more m

  • RAID-5 over RAID-1, with encryption

    I'm planning to restructure my fileserver.  It has (well, will have) 8 hard drives for data, each 1.5 TB in size.  I want to create 4 mirrored pairs, and then place each pair in a RAID-5 array, for a total usable space of 4.5 TB.  I want to place enc

  • How to generate the deleted customer list

    hi, is there any transaction code to view the list of deleted customer list Regards, Murali