Need a logic to caluclate l Number of Stores (plant)

Hello
I am developing a query. In this query i need to show one KPI known as Total number of Stores (Plant).
I tried with replacement path using formula variable on char 0Plant  but its not achieving.
Guys need a formula and logic how to caluclate  number of stores (plant).
Please can someone tell me how can i do that.
Regards,
RK
Points 100% Assured.

I think you need to calculate the occurrence of one characteristics with respect to other. If so you can do following:
Use number of records KF to calculate the the toal and average calculated key figures. For those two key figures use aggregation settings as 'Total' and 'Average' giving reference characteristics (which needs to be counted).
Now use a formula Total/Average ..It should give you number of occurrences of one char wrt to other.

Similar Messages

  • Adding logic based on page number

    Hi,
    in my invoice report, i need to add some logic based on page number. My objective is to print a group of 4 lines (OMR Marks) on right hand side of the page. For example, on first page, print 1st line only, on second page, print 2nd line only, on third page, print 1st and 2nd lines only, on 15th page, print all four lines, on 16th page, print lines similar to 1st page i.e. print 1st line only, on 17th pages, print lines similar to 2nd page i.e. print 2nd line only.
    Is there any way to use page number or some other variable that can represent page number in an IF condition? Your help is highly appreciated.
    Regards,
    sanjai misra

    Thanks for your reply.
    I need to print OMR marks in our invoice report and i am not sure how to do it. I will highly appreciate your inputs.
    I have to print OMR mark a per the logic given below
    1. Divide the page number by 15
    2. Based on remainder value, print 4 horizontal lines. For example,
    if remainder is 1 then print only line 1,
    if remainder is 2 then print only line 2.
    if remainder is 3 then print line 1 and line 2.
    If remainder is 4 then print only line 3,
    if remainder is 5 then print line 1 and line 3
    if remainder is 6 then print line 2 and line 3
    if remainder is 7 then print line 1, 2, 3
    if remainder is 8 then print only line 4 and so on
    if remainder is 0 then print all lines i.e. line 1,2,3 and 4.
    Could you please tell me how I could achieve this? If you have some code that you could share, it would be great.
    OR is there some other way to achieve this?
    Thanks,
    sanjai misra

  • Need of logical database

    Hi,
    Can any one briefly explain what is the need of Logical database?
    In which case , abapers r going for logical database?
    regards,
    Pooja

    Hi Pooja,
    A logical database is a special ABAP/4 program which combines the contents of certain database tables. You can link a logical database to an ABAP/4 report program as an attribute. The logical database then supplies the report program with a set of hierarchically structured table lines which can be taken from different database tables.
    GET will fetch the table data immediately
    GET LATE
    In the LDB when you define the table structure in hierarchy, first it will fetch the higher node data and then all the below node tables data and comes to a second record in the top node table. for this GET Late is used.
    You can create any number of primary keys in a table
    The programmer need not worry about the primary key for each table.Because Logical database knows how the different tables relate to each other,and can issue the SELECT command with proper where clause to retrieve the data.
    i)An easy-to-use standard user interface.
    ii)check functions which check that user input is complete,correct,and plausible.
    iii)meaningful data selection.
    iv)central authorization checks for database accesses.
    v)good read access performance while retaining the hierarchical data view determined by the application logic.
    GO THROUGH LINKS -
    http://www.sap-basis-abap.com/saptab.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9bfa35c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c6/8a15381b80436ce10000009b38f8cf/frameset.htm
    /people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
    Re: **LDB**
    www.sapbrain.com/FAQs/TECHNICAL/SAP_ABAP_Logical_Database_FAQ.html
    www.sap-img.com/abap/abap-interview-question.htm
    www.sap-img.com/abap/quick-note-on-design-of-secondary-database-indexes-and-logical-databases.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9bb935c111d1829f0000e829fbfe/content.htm
    Reward if useful.
    Regards,
    Hemant

  • Serial number for Logic Pro purchased in the App Store?

    I just digitally downloaded Logic Pro 9 through the App Store, but I can't open it because it requires a serial number on login which wasn't provided. Any ideas? Shouldn't it be associated with my appleid and not need to be registered?

    Yes, it is. This happens when you have an old version of Logic Pro 9 somewhere on the hard drive. Delete old versions and re-download from the Mac App Store. That will fix it.

  • HT204053 i just got a Mac book pro 13....i need to remove my husbands cell number from my iCloud on this device but don't know how

    I just got a Mac book pro 13 ... I need to remove my husbands cell number from this device but dont know how

    Are you sharing the same iCloud account as your daughter?  If so, that would explain why your contacts are merged.  To fix this, you would need to migrate her device(s) to her own iCloud account.  After doing so, you could then delete her contacts from your Mac without effecting the contacts on her device(s).
    As far as messages, do you have your own iPhone?

  • HT1918 I'm having some issues trying to change my account billing---I have a new debit card and i need to punch in the new number but when i go to edit my info itunes says my 'session has timed out.' i've logged in and out more than once. what's the probl

    i'm having some issues trying to change my account billing---I have a new debit card and i need to punch in the new number but when i go to edit my info itunes says my 'session has timed out.' i've logged in and out more than once. what's the problem?

    Try to change the credit information from your iphone or other ios device. Tap on settings > store > tap Apple ID > tap view account > tap payment information > change

  • How do i setup Mail account on my mac book like in mobile phone? I.e. Don't want to store the mails/attachments on pc, however need the latest emails for given number of days?

    How do i setup Mail account on my mac book like in mobile phone? I.e. Don't want to store the mails/attachments on pc, however need the latest emails for given number of days?
    This helps the storage and purpose of email as well. I could always log into online email account to find history of emails.
    Thanks
    Chai

    How do i setup Mail account on my mac book like in mobile phone? I.e. Don't want to store the mails/attachments on pc, however need the latest emails for given number of days?
    This helps the storage and purpose of email as well. I could always log into online email account to find history of emails.
    Thanks
    Chai

  • I have two copies of CS6 and I need to find out which serial number is installed on which computer. How do I find the serial number once it's installed on a computer?

    I have two copies of CS6 and I need to find out which serial number is installed on which computer. How do I find the serial number once it's installed on a computer?

    if they're pcs, Belarc Advisor - Free Personal PC Audit, for software, hardware and security configuration information on your computer.…

  • I am having alot of trouble i want to use imessage but everytime i turn it on it turns on but doesnt work and it says verifying but its verifying my old number and i need it to verify my new number but it wont let me

    i am having alot of trouble i want to use imessage but everytime i turn it on it turns on but doesnt work and it says verifying but its verifying my old number and i need it to verify my new number but it wont let me

    You can likely download the last compatible version by:
    Starting when iOS 7 was released, Apple now allows downloading the last compatible version of some apps (iOS 4.2.1 and later only)
    App Store: Downloading Older Versions of Apps on iOS - Apple Club
    App Store: Install the latest compatible version of an app
    You first have to download the non-compatible version on your computer. Then when you try to purchase the version on your iPod you will be offered a compatible version if one exists.

  • Need help in finding mpeg2 component number to unlock key so I can burn a dvd?

    Need help in finding mpeg2 component number to unlock key so I can burn dvd?? I have premiere elements 3.0
    Thanks,
    sylvia

    Sylvia,
    I cannot comment on PrE 3, as I did not start until PrE 4. With the latter, when one went to use one of the modules, they were automatically "registered." Based on comments in the Help file, I asked pretty much this same question, back then. All was done automatically, in PrE 4.
    Maybe those, familiar with PrE 3, can be of help to you.
    Good luck,
    Hunt

  • Need help finding my iphone serial number but my phone is dead

    Need help finding my iphone serial number but my phone is dead

    no one here can help you find it.

  • Need a Logic for balance

    Hi Experts,
    I have a table
    SSN          data            balance paid_amount rank
    111111111    1st week date   1000     100         1
    111111111    2nd week date   1000     100         2
    111111111    3rd week date   1000     100         3
    111111122    1st week date   1000     100         1
    111111122    2nd week date   1000     100         2
    111111122    3rd week date   1000     100         3
    I want the output as
    SSN          data            balance New_balance
    111111111    1st week date   1000     1000        
    111111111    2nd week date   1000     900        
    111111111    3rd week date   900      800        
    111111122    1st week date   1000     1000        
    111111122    2nd week date   1000     900        
    111111122    3rd week date   900      800        
    For first New_balance values will be same as balance
    for second week balance = new_balance and new_balance = balance-paid_amount
    for third  week balance = new_balance and new_balance = balance-paid_amount
    I am using data service version 4.1
    Need a Logic to perform above
    Thanks
    Madhu

    Hi Mohd,
    It worked Perfect for the new balance field, thank you so much, Also the balance field should change
    In the above result set the 3rd Week balance should be same as 2nd week new balance
    In other words, 2nd Week Balance should be same as first week new balance as shown below
    Input
    SSN
    DATE
    BALANCE
    PAID_AMOUNT
    111111111
    1ST Week
    1000
    100
    111111111
    2nd Week
    1000
    100
    111111111
    3rd Week
    1000
    100
    111111112
    1ST Week
    1000
    100
    111111112
    2nd Week
    1000
    100
    111111112
    3rd Week
    1000
    100
    111111112
    4TH Week
    1000
    100
    output
    SSN
    DATE
    BALANCE
    NEW_BALANCE
    111111111
    1ST Week
    1000
    1000
    111111111
    2nd Week
    1000
    900
    111111111
    3rd Week
    1000
    800
    111111112
    1ST Week
    1000
    1000
    111111112
    2nd Week
    1000
    900
    111111112
    3rd Week
    1000
    800
    111111112
    4TH Week
    1000
    700
    Thanks for your Effort

  • Logic to Pull ECCN Number and License Number  in SAP-GTS System

    Hi,
      Can anyone help me provide logic to get ECCN Number and License Number in GTS module,
      Please provide table and fields which contains transaction data.
    Regards,

    Hi Ramu,
    If a licence is assigned to an item, you can see it in the "Control" tab.
    Regards,
    Dave

  • Why do you need a logical plant?

    Hi Guys
    Please explain me with an example, Why do I need a logical plant in SAP. If i decide to have one, can I have a logical plant without a valuation and then on moving the stock to the original plant it should get valuated. I raise this discussion my implentation is affected because of wrong valuation of stock. Please express your confident views regarding.
    Regards
    Pradeep/ICF

    Hi,
    Not sure why you need a logical plant. Normally dummy plants are made to facilitate material movements to cater complex scenarios. In OMS2 you can omit any Material type with regards to the plant as "Value updating" .
    Regards
    Binoy

  • I purchased and downloaded Lightroom 5.5. After installing it, I was prompted for the serial number. When I entered it an error message appeared saying it was an upgrade serial number and I need to enter my original purchase number. This was my original p

    I purchased and downloaded Lightroom 5.5. After installing it, I was prompted for the serial number. When I entered it an error message appeared saying it was an upgrade serial number and I need to enter my original purchase number. This was my original purchase, not an upgrade. Now what do I do?

    It sounds like you bought an upgrade from Adobe. How much did you pay? The upgrade is about $80, and the non-upgrade is about $150. If you bought an upgrade version and had no previous version, you would see what you're seeing.
    If that is the case and I were you, I'd call Adobe, and arrange for a refund and to order the correct version.
    Hal

Maybe you are looking for