BEx Reference field problem

Hi BW Experts,
I have created a calculated key field (Z_TOTCNTFLG_1) in a Query using Bex Analyser. The calculated key field simply does a count of a flag field I am extracting into a BW field called 'Z_COUNTFLAG'- this field has a value of 1 in each entry into BW. Hence Z_TOTCNTFLG_1 in BEx does a total count of this field.
The problem is when I go to run the query I get the following error message:
Diagnosis
The reference field for Z_TOTCNTFLG_1 is not maintained, and the two aggregations do not agree.
System response
The default value 0CALDAY is set for the reference field.
Procedure
Check reference field 0CALDAY. If this message appears when you are checking or executing a query, check calculated key figure Z_TOTCNTFLG_1.
Does anyone know how to resolve this. I have already created a query which successfully works for a seperate cube using the same info Object?
Many Thanks
Depesh

Hi AHP,
The documents helped.  Many Thanks!  However, Let me explain a bit more about what I have built in BW from R/3.  AN ABAP developer has written a custom extract from R/3 tables and created a custom datasource.  In this extract he has given every custom table a ZCOUNT field with an assigned value of 1.  This is then extracted into a Key Fig in BW called Z_COUNT set as a Maximum aggregation, when creating it. 
This is then used to calculate total number of records etc.  So when I go to enhance the ckf properties I set the exception aggregation as 'summation' but dont find the ref char drop down menu of use as it holds only chars?
FYI I am only extracting the time char as Fiscal Year/Period.
Any ideas?
Many Thanks
Depesh

Similar Messages

  • Kodo problem and reference field

    Hi,
    Could you help me in finding a solution ?
    I'll give you example - we have two objects - A and B. B object has
    reference attribute that points to A. That requires two tables, where in
    table B there will be foreign key to table A index.
    But why I'm gettin such error when I'm trying to make persistent object A
    (it is written to database). After that I'm creating object B, setting a
    reference field (using created earlier A). When I try to make persistent
    object B it sets a foreign key field to next value in sequence for table A.
    This field should point to created earlier A row. Any ideas ?
    Thanks for reply,
    Krzysztof Adamski

    Is the object A created under the same persistence manager? That can give
    problems.
    Make sure you use the extension metadata tag:
    <extension vendor-name="kodo" key="inverse"
    value="otherobjectsattributehere"/>
    inside of object B's collection element definition of the metadata
    Krzysztof Adamski wrote:
    Hi,
    Could you help me in finding a solution ?
    I'll give you example - we have two objects - A and B. B object has
    reference attribute that points to A. That requires two tables, where in
    table B there will be foreign key to table A index.
    But why I'm gettin such error when I'm trying to make persistent object A
    (it is written to database). After that I'm creating object B, setting a
    reference field (using created earlier A). When I try to make persistent
    object B it sets a foreign key field to next value in sequence for table A.
    This field should point to created earlier A row. Any ideas ?
    Thanks for reply,
    Krzysztof Adamski

  • Reference field of invoice not filled in PO history

    The reference field of the invoice (INFVO-XBLNR) is not copied into the EKBE-XBLNR. I couldn't find an OSS note to solve the problem. Please advise.
    Kind regards,
    Annerie Deckers

    Hello,
    Table EKBE is only updated if "GR-Based IV" indicator is active at Purchase order item level.
    Only then field EKBE-XBLNR is updated with the value of the corresponding GR doc.  reference field (MKPF-XBLNR) and not with the value of the      RBKP-XBLNR (logistics invoice).
    There is also a note explaining the case link:[Note 383828 - ME23N: Reference in the purchase order history]
    BR,
    Elly Leondi

  • BADI/user exit for ME21N - Warning message for "our reference" field

    Dear all,
    I have a problem.
    In ME21N, I need to show a warning message (message w... ) when user enter an already-used-before input in "Our reference' field (EKKO-UNSEZ).
    I've tried in two methods.
    1. Using fm EXIT_SAPMM06E_004. But it can only works for Error message. My warning message never shows up.
    2. Tried to implement classic BADI ME_PROCESS_PO_CUST, using the PROCESS_HEADER method. Got the break-point spot on, but still didn't show the warning message.
    Why is my warning message always got override?
    Please advise.
    Thanks in advance
    Ahmad

    Hi Ahmad,
    Check the below links:
    Unable to put Warning messages in ME21N and ME22N in Exit / BAdI in ECC 6.0
    Warning message in me22n check user-exit can't process?
    Custome warning message in T. code me51n me52n & me21n , me22n
    Regards,
    Nisha Vengal.

  • Cheque No in reference field

    Hi All,
    I have many payment documents in which i have to assign the cheque no. to the reference field. How can i do it?
    Regards,
    Rup

    Hi
    Manual check or sap printout from sap? If it is manual check then update the payment document with check number using t-code FCH5 and if print from SAP then not required Now just GO TO FCHU and update the check number in payment document reference field, In FCHU just put the company code , bank code , bank id and tick on reference -execute and you problem will solve
    Best Of Luck
    Tanmoy

  • Amend Structure with error, Reference field VBAP-KZWI1 for ZSMINI44_D4-PO_A

    Hi,
    i try to amend a structure but there is such an error that the Reference field VBAP-KZWI1 for ZSMINI44_D4-PO_AMT has incorrect type...
    but the data elements are the same.
    Please kindly advice.

    Dear Sally,
    Please use VBAP-WAERK  as your Reference Field instead od VBAP-KZWI1 for your structure field ZSMINI44_D4-PO_AMT.
    Hope this resolves your problem.
    Encourage others to answer your queries by suitably rewarding them
    Thanks
    Venugopal

  • Reference field value disappears on the Receivables transaction line window

    Hi Everybody,
    I have below problem while creating the manual invoice from Receivables.
    when i am trying to utilize the reference field on the Receivables transaction line,
    so that it can be used to enter extra data for manual invoices.
    At the moment if you enter data in the file and save it . it was visible.
    Again when i re query the transaction then it disappears.
    Kindly some one suggest me how to view reference field value from Transaction line and as well as from back end in which column of Trx table i can see the data. Please help me to resolve the issue.
    Many Thanks.

    Pl check the below note.
    272428.1
    There is an enhancement pending (2660680) for this issue. You may have to check the status of this enhancement with Oracle Crop.

  • Dynamics AX 2012 R3: How to populate Payment Reference field automatically?

    Hi guys
    I am trying to configure AX 2012 (R3) to populate the Payment Reference field automatically when processing payments through a payment journal. I have looked for a number sequence in the AR/AP parameters but so far with no luck.
    Please advice
    André

    Unfortunately your post is off topic here, in the TechNet Site Feedback forum, because it is not Feedback about the TechNet Website or Subscription.  This is only one forum among the many that are on the TechNet Discussion Forums, and given
    your post, you likely chose the wrong forum.  This is a standard response I’ve written up in advance to help many people (thousands, really.) who post their question in this forum in error, but please don’t ignore it.  The links I share below I’ve
    collected to help you get right where you need to go with your issue.
    For technical issues with Microsoft products that you would run into as an
    end user of those products, one great source of info and help is
    http://answers.microsoft.com, which has sections for Windows, Hotmail, Office, IE, and other products. Office related forums are also here:
    http://office.microsoft.com/en-us/support/contact-us-FX103894077.aspx
    For Technical issues with Microsoft products that you might have as an
    IT professional (like technical installation issues, or other IT issues), you should head to the TechNet Discussion forums at
    http://social.technet.microsoft.com/forums/en-us, and search for your product name.
    For issues with products you might have as a Developer (like how to talk to APIs, what version of software do what, or other developer issues), you should head to the MSDN discussion forums at
    http://social.msdn.microsoft.com/forums/en-us, and search for your product or issue.
    If you’re asking a question particularly about one of the Microsoft Dynamics products, a great place to start is here:
    http://community.dynamics.com/
    If you really think your issue is related to the subscription or the TechNet Website, and I screwed up, I apologize!  Please repost your question to the discussion forum and include much more detail about your problem, that could include screenshots
    of the issue (do not include subscription information or product keys in your screenshots!), and/or links to the problem you’re seeing. 
    If you really had no idea where to post this question but you still posted it here, you still shouldn’t have because we have a forum just for you!  It’s called the Where is the forum for…? forum and it’s here:
    http://social.msdn.microsoft.com/forums/en-us/whatforum/
    Moving to off topic. 
    Thanks, Mike
    MSDN and TechNet Subscriptions Support
    Did Microsoft call you out of the blue about your computer?
    No, they didn't.

  • KR Reference Field coming from Earmarked Fund

    Hi Experts,
    We have distributed our data entry of non PO related invoices out to end users.  They data enter and park the invoice.  Then Central AP uses their workflow inbox (SBWP) to view and "approve" the document to post it.
    This works great EXCEPT when the invoice is charged to an Earmarked Fund (specifially a funds commitment), AP gets an error that "For document type KR, an entry is required on field Reference number"  XBLNR is filled in with the Vendor's invoice number on the parked document, but we are told by SAP, that it is our config that is causing the issue.
    On the funds commitment (fmz3), we can view that on the Header of the commitment that we have always left the field REFERENCE blank.   We did configure under Earmarked Funds and Funds Transfers\Define Rules for account assignment, that the Reference Document Number is Active, but this allows us to fill in field REFBN in other areas for reporting. 
    When we just post an invoice FB60, we've never had a problem with the funds commitment's REFERENCE field conflicting with the Invoice's Reference field.  When I do enter something on the REFERENCE field of the funds commitment, it OVERWRITES what the invoice had in the reference field when we do the Park then POST using workflow (uses FBV0 funcitonality).  It does not overwrite it though when I just post using FB60 or FV60. 
    SAP has stated that they intentially designed their programs differently which is why they behave differently.
    So does anyone have any suggestions on how to get the parked document to post BUT to keep the Vendor's Invoice number in the Reference field? Instead of it being overwritten from the Funds Commitment?
    Would appreciate your guidance,
    Cindy

    Hi,
    I think your FM analyst got the direction wrong. System will always populate REFBN field in table FMIOI with PO# or other source document number. The configuration you mentioned controls whether you want the system to transfer the value of REFBN to a follow-on document with reference to an earmarked fund - the direction is from FM to FI. For example, when you create an earmarked fund 1234, you will see an entry in table FMIOI with field REFBN populated with 1234; this has nothing to do with the configuration in defining rules for account assignment transfer in earmarked fund. Then, you create an invoice with reference to earmarked fund 1234; this time, system will transfer the values of the fields in document 1234 to the invoice according to the said configuration.
    Regards,
    Ming

  • Reference field in selection parameter in incoming payments.

    hi kings
    i want to add the tab for reference field in slection parameter in incoming payment after open items selection.
    Present selection prameters are document no, business are, due days, document date,INR gross amount, cash discount,cash. So i want to add one more parameter for reference doc number .
    How can i add this field to existing fields. How can edit the layout.
    thanks
    ram

    Hi saravan
    did u mean by Accounting opitions button. This field is only there in three right side of the screen.
    I am using 5.0 version it includes the tabs are Overview button,distribute  diff.,charge of diff., Editing opitions,Cash discount due,create distribute case.
    But configuration was not there in F-28.
    plse let me the process and there is why to resolve the problem through the editing opitions.
    regards
    ram

  • Reference Field for Document Type AB has made Mandatory

    Dear Experts,
        In OBA7, for Document Type AB (Accounting Document) I had clicked the Reference Number Field Check Box (Made it mandatory)
        So it became mandatory every time to enter the Reference Number when using the Document Type AB
        Now I am facing the problem, when using the T Code F-44 (Clear Vendor - Header Data) the system is popping an Error Msg, " For Document Type AB, an entry is required in field Reference "
         Since their is no Reference Field available on the screen, where should I enter the data for the same
        I am unable to understand How this issue can be resolved, I tried a lot but failed to get a solution
         Their is Reference radio button available on Additional Selections tab, but not field
    So please help ..!!
    Regards, Nimish

    Dear Manmay,
          You are correct but the system is not allowing what you have suggested
          When I enter the vendor no. and click on Goto-Document Overview, the system pops the error message and doesnt allow me to enter anything on that screen
         Please try at your end and revert boss
        I think I may require to raise an OSS note for this
    Regards, Nimish

  • Trying to reference field name of my record Type in my procedure!

    Hello,
    I am stuck. I am trying to reference field names in my record type declared in my Package declaration.
    Here is an example. Don't be scared, it's a very simple package. I just need some directions what to use to accomplish this.
    --look into this part of the package body
    FOR cur_rate IN c_rate
    LOOP
    rate_data(1).field_name := cur_rate.rate_pct;
    --field name = AK_PCT, AL_PCT and so on ...
    END LOOP;
    END rate_tab_qry;
    CREATE OR REPLACE PACKAGE rate_pkg IS
    TYPE rate_rec IS RECORD (
    id cycle_rates.id%TYPE
    ,cycle cycle_rates.cycle%TYPE
    ,scac cycle_rates.scac%TYPE
    ,gbloc cycle_rates.gbloc%TYPE
    ,code cycle_rates.code%TYPE
    ,AK_PCT cycle_rates.rate_pct%TYPE
    ,AL_PCT cycle_rates.rate_pct%TYPE
    ,AR_PCT cycle_rates.rate_pct%TYPE
    ,so on...
    TYPE cycle_rate_tab IS TABLE OF rate_rec INDEX BY BINARY_INTEGER;
    PROCEDURE rate_tab_qry(rate_data IN OUT cycle_rate_tab,
    p_id cycle_rates.id%TYPE,
    p_cycle cycle_rates.cycle%TYPE,
    p_scac cycle_rates.scac%TYPE,
    p_gbloc cycle_rates.gbloc%TYPE,
    p_code cycle_rates.code%TYPE);
    END;
    CREATE OR REPLACE PACKAGE BODY rate_pkg IS
    PROCEDURE rate_tab_qry(rate_data IN OUT cycle_rate_tab,
    p_id cycle_rates.id%TYPE,
    p_cycle cycle_rates.cycle%TYPE,
    p_scac cycle_rates.scac%TYPE,
    p_gbloc cycle_rates.gbloc%TYPE,
    p_code cycle_rates.code%TYPE)
    IS
    CURSOR c_rate IS
    SELECT state, rate_pct
    FROM cycle_rates
    WHERE cycle = p_cycle
    AND scac = p_scac
    AND gbloc = p_gbloc
    AND code = p_code;
    BEGIN
    rate_data(1).id := p_id;
    rate_data(1).cycle := p_cycle;
    rate_data(1).scac := p_scac;
    rate_data(1).gbloc := p_gbloc;
    rate_data(1).code := p_code;
    FOR cur_rate IN c_rate
    LOOP
    rate_data(1).field_name := cur_rate.rate_pct;
    --field name = AK_PCT, AL_PCT and so on ...
    END LOOP;
    END rate_tab_qry;
    I need to know, how to reference my field name for each state in my procedure that are in my record type. The problem is it won't allow me to use something like this.
    select state || '_PCT
    from cycle_rates;
    which would eventually show me each state concatenated with '_PCT, e.g. AK_PCT and that's my field names.
    For example,
    FOR cur_rate IN c_rate
    LOOP
    rate_data(1).field_name := cur_rate.rate_pct;
    --field_name = AK_PCT, AL_PCT and so on...
    END LOOP;
    I would appreciate it if somene can direct me. Thanks.
    Message was edited by:
    [email protected]

    This is a sample output from my cusror. Just to make it easier for you guys to see it.
    ST RATE_PCT
    AK 0
    AL 2
    AR 2
    AZ 2
    CA 2
    CO 2
    CT 2
    DC 2
    DE 2
    FL 2
    Hope it helps.

  • How does Reference Field work?

    Hi All,
    I have short of problem knowing how reference field works. I have one field in ABAP query: MBEW-STPRS. The field type is CURR and it have reference field T001-WAERS.
    In query I made, the currency isn't occurs although I have set it to be display. I try to look how this reference field works in any source but can't find any answer. May be some of you can give me a little explanation.
    Thank you so much
    Regards
    Hadi

    Hi,   
          Reference fields work in the following way,
    When you say quantity is 100, what it refers to - 100 pc, 100 bundles or 100 kg or 100 metres??? The unit of qty defines whether it is PC, KG, M etc...
    In the database, SAP stores all amount values with 2 decimal places. But when SAP reads it, it interprets it based on the currency associated with the amount field.
    We require reference fields to Currency/Quantity fields as they are meaningless with out having the units.
    Ex: If we say, i paid 100. How can we figure out if he had paid 100 paise or 100 rupees.
    So, units are must.
    In case of quantity field QUAN, reference field will be always of type UNIT,
    currency field CURR, reference field will be always of type CUKY.
    It is mandatory to specify reference fields when we create fields of quantity/currency type in data base tables.
    Hope this will clear you.
    Thanks & Regards,
    Pavan.

  • Kwert reference field in datasource

    Hi...
    i created a structure from konv,ekko tables and its ok.i used komk-waerk field for kwert reference field.no problem in ecc side.i can run function module correctly.
    so i just try to create datasource for bw in rso2.but when i try to save it,gives me error below.
    so what can i use working correctly to waerk refereance filed ?

    Hi Erdem,
    The error screenshot shows that WAERK field is missing from the extract structure of the data source, so just add the field to the data source.
    As Sriram mentioned both Units & Currencies needs to be available in data source extract structure.
    Thanks,
    Karan

  • Smartform , Reference field unknown

    Hi guys,
    I'm trying to sole a reference filed unknowm in smartform.
    I'm using a user defined structure like below:
    structure s1
       t1 type s2
       t2 type s2
    structure s2
       a type yy
       b type yy
    This structure is defined in dictionary. I passed this structure to smartform and try to output structure s1 variable like s1-t1-a but it says reference field unknown. Anybody know how to solve this problem ??
    Thank you for your help

    This structure is defined in dictionary.
    Which one? Please provide more details.
    I think the crucial is how you are passing the structure to smartform. If parameter is of generic type (i.e. ANY) you won't see its (structure) components. Create some dummy program and make sure the same definition allows you to address the components in the way you want. If syntax checker pass you, then the problem lies in how you pass the structure to smartform (as described above).
    Regards
    Marcin

Maybe you are looking for

  • One connection for Internet and the other for LAN

    Hi: I am trying to setup this: I have a : (Proliant DL380 G5) with Windows 2008 R2 Server . This server has 4 NIC's. In NIC #1  I would like to have all my Internet Traffic. In NIC #2 I would like to have just my LAN Traffic. Is there an easy way to

  • Error while Upgrading Grid EM to 10.2.0.5

    I have 10.2.0.4 OMS/DB/Agent running on Windows 32 bit. I am trying to upgrade OMS to 10.2.0.5. I am getting following error. I get same error if I try to upgrade directly from 10.2.0.2 Output generated from configuration assistant "OC4J Instance Con

  • Can't detect control-a

    Is there any way to detect when control-a or control-c is pressed (that is, hold down control key, press A key). The following code to detect a control-7 works fine: function myOnKeyDown() { // 55 is key code for 7 if (Key.isDown(Key.CONTROL) && Key.

  • Java/lang/NoClassDefFoundError when trying to run my program in Eclipse

    I have a problem when using Eclipse. I can compile my classes in Eclipse without problems, but when I try to run the main class I get the following error message: Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Ob

  • Iphone 4 the mike does not work when making a call.  it does work with speaker phone and face time

    Just activated new Iphone 4 and the mike does not work when making a call.  it does work with speaker phone and face time. Any known fixes?