Create min(date) for Customer in BMM layer

Hi guys,
I need help in creating a first order date for a customer. I want to do this in BMM layer and use directly in reports.
How should i create this?
Any help Appreciated.

I think its you sent me email with samilar Q.
If you are doing in BMM you need to understand the schema
assuming you got fact,day, custmer tables
and these joined as star.
you need to create a metric on fact as min(day.date) and set content tab to customer level
for this you might have to map day dim to fact using fact source properties add day table.
once you done as I said:
just pull mindate metric in answers run it and check physical sql that should be like
select min(date),cust_name from
fact,day,customer
where 2 joins goes
group by cust_name
Hope this helps, if helps mark

Similar Messages

  • How to create the data for custom objects in pList

    Hi,
    I am new in developing on iPhone and I don't know much about this area. I would like to ask a question. I couldn't find the answer on this question in apple documentation but I hope Internet community will help me.
    Lets say I have a class called classA. The classA has 2 public properties (or fields):
    *int customIndex*;
    and
    NSString *customTitle;
    My view controller class showMeSomething has a property NSArray which holds the objects of type classA. I would like to load the array from the plist resource file. How do I edit the resource file with initial values or how do I know the format of the plist which can be loaded from using mainBundle for my array of custom objects?
    Thanks!

    Here's some info on working with plists:
    http://developer.apple.com/documentation/Cocoa/Conceptual/PropertyLists/Introduc tion/chapter1_section1.html
    They can be edited with any text editor. Xcode provides a graphical editor for them - make sure to use the .plist extension so Xcode will recognize it.

  • Logical database PNP not retrieving data for custom infotypes.

    Hi all,
    I am using logical database PNP in a program. I have declared infotypes as follows:
    INFOTYPES: 0001, 0002, 0041, 9801, 9840.
    The problem is that the logical database is retrieving data for the standard infotypes but not for the custom infotypes. Any explanation as to why data for custom infotypes is not being retireved and how this can be solved will be greatly appreciated.
    regards,
    Hamza

    solved

  • Creating test data for a problem

    Hi,
    I've been using this forum for a few months and it has been extremely useful. The problem is that I actually have no idea how to create test data for a specific problem. I've tried googling but to no avail. I have had other users create test data for some of my problems using a 'WITH' statement but it would be great if someone could explain the logic behind it and how to approach a specific problem where in the query I use multiple tables.
    I know it's probably a stupid question and I'm relatively new to sql but it would help a lot if I understood the process.
    Banner:
    Oracle Database 11g Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    "CORE 11.2.0.2.0 Production"
    TNS for Linux: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production

    Look at the point 3 and 4. You can also follow other points too.
    Please consider the following when you post a question. This would help us help you better
    1. New features keep coming in every oracle version so please provide Your Oracle DB Version to get the best possible answer.
    You can use the following query and do a copy past of the output.
    select * from v$version 2. This forum has a very good Search Feature. Please use that before posting your question. Because for most of the questions
    that are asked the answer is already there.
    3. We dont know your DB structure or How your Data is. So you need to let us know. The best way would be to give some sample data like this.
    I have the following table called sales
    with sales
    as
          select 1 sales_id, 1 prod_id, 1001 inv_num, 120 qty from dual
          union all
          select 2 sales_id, 1 prod_id, 1002 inv_num, 25 qty from dual
    select *
      from sales 4. Rather than telling what you want in words its more easier when you give your expected output.
    For example in the above sales table, I want to know the total quantity and number of invoice for each product.
    The output should look like this
    Prod_id   sum_qty   count_inv
    1         145       2 5. When ever you get an error message post the entire error message. With the Error Number, The message and the Line number.
    6. Next thing is a very important thing to remember. Please post only well formatted code. Unformatted code is very hard to read.
    Your code format gets lost when you post it in the Oracle Forum. So in order to preserve it you need to
    use the {noformat}{noformat} tags.
    The usage of the tag is like this.
    <place your code here>\
    7. If you are posting a *Performance Related Question*. Please read
       {thread:id=501834} and {thread:id=863295}.
       Following those guide will be very helpful.
    8. Please keep in mind that this is a public forum. Here No question is URGENT.
       So use of words like *URGENT* or *ASAP* (As Soon As Possible) are considered to be rude.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to populate date & time when user enter data for custom table in sm30

    Can anyone tell me How to populate system date & time when user enter data for custom table in sm30..
      Req is
      i have custom table and using sm30 user can enter data.
    after saving date i want to update date & time in table
    Pls let me know where to write the code?
    Thanks in Advance

    You have to write the code in EVENT 01 in SE54 transaction. Go to SE54, enter your Ztable name and in the menu 'Environment-->Events'. Press 'ENTER' to go past the popup message. In the next screen, click on 'New Entries'. In the first column, enter 01 and in the next column give some name for your routine(say UPDATE_USER_DATE_TIME). Then click on the souce code icon that appears in blue at the end of the row. In the code, you need logic like below.
    FORM update_user_date_time.
      DATA: f_index LIKE sy-tabix.
      DATA: BEGIN OF l_total.
              INCLUDE STRUCTURE zztable.
      INCLUDE  STRUCTURE vimtbflags.
      DATA  END OF l_total.
      DATA: s_record TYPE zztable.
      LOOP AT total INTO l_total.
        IF l_total-vim_action = aendern OR
           l_total-vim_action = neuer_eintrag.
          MOVE-CORRESPONDING l_total TO s_record.
          s_record-zz_user = sy-uname.
          s_record-zz_date = sy-datum.
          s_record-zz_time = sy-uzeit.
          READ TABLE extract WITH KEY l_total.
          IF sy-subrc EQ 0.
            f_index = sy-tabix.
          ELSE.
            CLEAR f_index.
          ENDIF.
          MOVE-CORRESPONDING s_record TO l_total.
          MODIFY total FROM l_total.
          CHECK f_index GT 0.
          MODIFY extract INDEX f_index FROM l_total.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    " UPDATE_USER_DATE_TIME
    Here ZZTABLE is the Z table and ZZ_USER, ZZ_DATE, and ZZ_TIME are the fields that are updated.

  • Create Service Request for Customer

    hi,
    can u pls tell me how to create Service Requset for Customer using BAPI??????
    regards
    Guru

    hi,
    thanks for ur response
    how to assign a service request to person who is suitable for service.
    (for example customer faced problem with our product so he will make a complaint on that product, i think this is service request ,  we need to resolve that problem  as we assign that service request to some other person who can able to solve .
    <b>Am i thinking in Correct way</b>)
    i need bapis to ful fill for the above senario
    regards
    Guru

  • How to upload data for custom infotype

    Hi  Friends
    Can we use HR_INFOTYPE_OPERATIONS   FM  for custom infotype too  or is there other way or other Standard FM to upload data for custom infotype  starting with 9000..etc.
    Points will be there for sure.
    Thanks
    Meeta & Roopa

    Thanks for quick response.
    my qns is can we use Standard FM like HR_INFOTYPE_OPERATIONS  for custom infotype too ?
    in my requirment  input will come from portal form and in background  Java Wd is going to use these FM  but i have this big  doubt can we use these standard FM for  uploading data in custom infotype as well or else is there any other way.. but for sure we can't use BDC and LSMW in this requirement .
    Thanks Meeta & Roopa

  • Find MAX date for Person XYZ , and also MIN date for same Person?

    List of dates in Column A , list of Persons in Column B.  My problem is that I have In C1 the formula which part of it is =SUMPRODUCT(MAX((B4:B200=A2)*A4:A200))) to find the MIN date for the person specified in cell A2, but this formula returns an error. Please help
    Many thanks
    NB: I use Numbers for the iPhone
           ans Icloude Numbers beta in the iMac 21.5

    Hi atapp,
    Here is my solution to your problem. The footer cell A11 is where you type your search. You could easily change this to C1 if tha makes more sense to you. Colomn C is where the action is and it could be hidden. The formulas in the two footer rows are =MAX(C) and =MIN(C) so even though they are in Column B they are looking at Column C.
    The formula in C2 is filled down.
    Give it a try.
    quinn

  • Credit master data for Customer

    Hi,
    I need solution for the below problem.
    Credit master data for Customer "X" is not maintained.
    Is there any possibility to get the information /Error message during sales order creation/Save for Customer "X" as Credit master data is not maintain.
    Information/Error message shouldd be:No credit master data maintain for Customer "X"
    Thanks for your help.
    Regards,
    Balaji.

    Hi
    You can use the followig user exit which will perform a check while saving the order.
    Take the help of your abaper to write a code to check if the credit master has been maintained for the customer before saving the order.
    Program,: MV45AFZZ
    USEREXIT_SAVE_DOCUMENT_PREPARE
    Use this user exit to make certain changes or checks immediately before saving a document. It is the last possibility for changing or checking a document before posting.
    The user exit is carried out at the beginning of the FORM routine BELEG_SICHERN.
    Regards
    Madhu

  • How to create number range for custom object

    Hi all,
    I want to create number range for custom object or custom tables
    Thanks
    Hemalatha

    Hi,
       Thanks, I am able to create a number range for custom object through SNRO tcode.
    Thanks
    Hemalatha

  • ONT_PROCESS_ORDER module created a site for customer

    ONT_PROCESS_ORDER module created a site for customer.
    Can anybody please tell me when this module create a new site for the customer ? and why it creates ?
    i am new to oracle apps . please help.

    Please post your query in the relevant Oracle Apps forum.
    This is the SQL and PL/SQL forum, and your question is not specific to SQL and PL/SQL.

  • Copying data for custom includes in FB50

    I have added new fields to FB50 by using the screen painter in SAPLFSKB screen 100. I created new fields in CI_COBL called ZZNAME1 and ZZPARVW. These now appear on FB50. The problem is, data that is entered into those fields disappears when trying to save the document in FB50. How can I make that data persist? I believe that I need to copy the data from ZZNAME1 and ZZPARVW into the real fields NAME1 and PARVW, but where would I put the code to copy that data?

    Is there any way to find the source of data for the Custom tables. The source can be either any function, procedure, package or a trigger or any other process. The reason why I need to know about it is because we have some custom tables that are used by some custom Reports. Sometimes those reports comes out blank because the data in these custom tables is blank. So I need to know which processes are populating data in these custom tables. Any help would be really appreciated !!I do not think there is a direct way to find out the source of the data unless your custom processes are documented.
    You may enable AutditTrail (search the forum for links/docs) and see if this would help.
    Thanks,
    Hussein

  • BW Master Data for Customer Exit Variable Reference

    Good day Experts,
    I have several queries that I would like to remove the hard coding of values on to prevent yearly maintenance. In these queries there are two conditions each condition is on different key figures that is amount by year.  The query is only to report on data that for the two amounts (separated by year) is greater than the specified values. I want to change the condition so the value is no longer hard coded so the query will role automatically as the time period changes. The year amount values that the condition will need to reference are not currently stored in our BW system. I would like to create master data that is maintained directly in the BW system for the amounts that a variable for the condition in the query can then access.
    I know it can be set up as master data and then referenced through a customer exit variable but when I set up the master data if I do the Amount as a key figure I cannot maintain the key figure value for the master data manually in BW, if I set the Amount up as a numeric characteristic then I canu2019t directly use a decimal. Am I missing something in the key figure setup then referencing the key figure as an attribute of the year value or do I need to do it as a characteristic and use a conversion routine or something for data manipulation?
    Can someone please give me some guidance to what the best way to do this is?
    The data necessary master data for storage in BW is the YEAR and a single dollar value:
    For Example:     
    Year          Amount
    2009           101.50
    2008          207.80
    2007          807.40

    I figured out that I can use an amount in the master data and maintain the amount manually as long as I use the amount with a currency instead of setting the currency in the key figure.

  • How to Load the Master Data for custom defined Z infoobjects?

    Hi Gurus,
    This is the requirement.
    Some screen enhancements has to be made by adding  new Custom fields( like two text boxes,eg Name and city ) in such a way if we enter data into that text box,that data value for both of the Enhancements has to be stored in some table.If this data is a master data,then how would I pull this master data into BW.
    Please someone throw some light on this problem.
    Lets say a Screen is enhanced with NAME and CITY with text text boxes.Let the user enters the value for NAME and CITY.Let them be stored under two different tables ZTAB1 and ZTAB2.How would I load this master data into custom Defined  Z infoobjects ZNAME AND ZCITY in BW.
    Please help me out.
    Thanks is Advance,
    Regards

    you can by creating generic datasources on thoase tables with Full load or delta.
    if the number entries is less.. you can try full load...
    if it is more... along with required fields...put date also as one fields. which needs to get date of execution of program or date of uploading to Tables. this will be useful build Delta Mechanism.
    all the best.
    Nagesh Ganisetti.

  • Company code data for custom replicated from CRM

    Hi,
    I am trying to default the company code data for a BP replicated from CRM as a customer but it is not working.
    How should this be done in CRM 7.0, ECC 6.
    I am have so far copied function module SAMPLE_INTERFACE_DE_BALE, added my own code and created the entry in table TBE34. But it doesn't work.  Is this correct or is there another method?
    regards
    Tim

    This is what we did wen we had a similar requirement...
    u2022     In the ECC create a FM u2018Z_USER_EXIT_BEFORE_SEND_TO_MWu2019.
    u2022     Register this function module for the CRM0_200 exit user in the ERP system.
    a.     Use Transaction SM30, table TPS34, to go to the maintenance of the modules. Here, enter the Z_USER_EXIT_BEFORE_SEND_TO_MWu2019 module for the CRM0_200 process.
    b.     Use Transaction SM30, table TBE24, to check whether the application you have selected (Product column in TPS34) is active.
    u2022     The FM will be triggered whenever a Sold gets successfully replicated from CRM to ECC system.
    a.     Check for the Object Class u2018BUPAu2019.
    b.     Check for the Object Name u2018CUSTOMER_MAINu2019.
    c.     If yes copy the BP GUID from the BAPIMTCS Structure.
    d.     Now call rfc FM ZLSD_BP_EXTRACT_FRM_GUID in CRM to get the BP number and Acc Group for the respective GUID.
    e.     Check if the ACC GRP is Z001.
    f.     If yes make a BDC call to transaction FD01 and update the Company Code data u2026. Recon. Account     110000
                                 Terms Of Payment ZN30       
                               for the  respective BP
    Note: we have recorded a BDC program to create the company code data.
    regards,
    Sameer Ahamad

Maybe you are looking for