Number of document in query

Dear all,
we have a query which are reffering  to an Multicube with an infocube underneath. The infocube is filled with sales document data. Therefore we have created an infoobject (key figure) which is filled with "1" for each position in order to count the sales documents.
Then in the query we want to count the sales documents. As long as the characteristic "sales document" is in the drilldown the count works fine.
But when we remove the sales document from the drilldown the count just displays the number of rows instead the number of the documents. We need the number of documents in order to make average calculations.
We are on BI 7.0. Any help would be great.
Best regards,
Stefan from Munich/germany

I think this is happening because the KF is created for Sales documents.
Try this > create a formula F1 for below.
If sales docs NE 0, then 1.
In Bex, it will be like (Sales docs <> 0)*1.
Now, write a condition to display when F1= 1. In the characteristics drill down, select the first radio button ( independent of any drill down).
I hope this will work.
Thanks...
Shambhu

Similar Messages

  • Invoice number and document number not printed in payment advice

    Hello Gurus,
           I am executing reprint check through transaction fch7, In that Invoice number and document number not printed in payment advice. I have created zscript for that and also assinged regup-belnr and regup-xblnr and used standard program RFFOUS_C.
    other fields from regup table are displayed but above two mentioned fields are not displayed.
          I even tried debugging standard RFFOUS_C prog, in that regup-belnr and regup-xblnr are coming but it is not printed on form.
    With regards,
    Vikram

    Hi,
    Debug you Zscript and check the invoice no and document no. Have assigned that script in FBZP..? check the which form is calling FCH7 in debugger mode..?
    Rgds
    Aeda.

  • Invoice Number and Document Number

    Are Invoice Number and Document Number in FI AR same?
    Dont they differ, I could find only one infoobject 0INV_DOC_NO relating to both.
    Is there any seperate infoobject which gives the document number in 0FIAR_C03.
    Please comment.
    Thanks.

    hi,
    are you looking for clearing doc number ?
    http://help.sap.com/saphelp_nw04s/helpdata/en/ee/cd143c5db89b00e10000000a114084/frameset.htm
    0CLR_DOC_NO - source field BSID-AUGBL
    hope this helps.

  • How to count number of documents in a page with Tabs

    We have a page with Tabs and sub tabs for each Tab. There is no limit for the Tabs and Sub Tabs. I mean a Tab can have several child tabs and each child tab can have n number of Sub Tabs. We have documents laoded on Tab level and sub Tab level also.
    I want to display the count and size of the documents loaded on a page. That is If Page1 has 2 tabs and each tab has 2 sub tabs and on each sub tab there are 2 documents of 10 MB then I should be able to display like this.
    Page1 - number of documents: 8 , documents total size 80 MB.
    By linking documents table and apges table I am able to get the results by tab not by page.
    Any advice is appreciated.
    Thanks.
    Satya

    Hi Satya -
    It seems you should be able to get the information you are after in the "wwsbr_all_items" view. The folder_ID is the page ID. The content mangement views are documented here: http://www.oracle.com/technology/products/ias/portal/html/plsqldoc/pldoc1012/wwsbr_api_view.html%0A%0A#WWSBR_ALL_ITEMS
    Hope this helps,
    Candace

  • How to add a receipt number in the following Query for PO Report

    Hi Guys,
    I need a help regarding following query.
    Its a PO report for 11.5.10.2
    select distinct pv.segment1 supplier_number,
    pv.vendor_name supplier_name,
    pha.segment1 po_number,
    pha.revision_num revision_num,
    pha.authorization_status po_status,
    to_char(pha.creation_date, 'DD/MM/YYYY') creation_date,
    pha.currency_code currency_code,
    pla.sum_amount_ordered sum_amount_ordered,
    pda.sum_quantity_ordered sum_quantity_ordered,
    pda.sum_amount_received sum_amount_received,
    pda.sum_quantity_received sum_quantity_received,
    (pla.sum_amount_ordered - pda.sum_amount_received) sum_accrued, --AVI
    ( pda.sum_quantity_ordered - pda.sum_quantity_received) quantity_accrued, --AVi
    to_char(rsl.date_receipt, 'DD/MM/YYYY') date_receipt,
    -- rsl.receipt_num receipt_number,
    ppa.segment1 project_code, ppa.project_status_code, --10.0.0.4
    aia.invoice_num invoice_num,
    aia.invoice_date invoice_date, --AVI 
    aia.creation_date invoice_creation_date, --AVI 
    aia.amount invoice_amount_allocated_to_po, --AVI
    pla.purchase_basis,
    pla.category_id,
    -- pda.item_description,
    haou.name organisation, --10.0.0.3
    pda.sum_quantity_billed sum_quantity_billed , --10.0.0.3
    gcc1.CONCATENATED_SEGMENTS,
    gcc2.CONCATENATED_SEGMENTS
    from po_headers_all pha,
    po_vendors pv,
    pa_projects_all ppa,
    hr_all_organization_units haou,
    (select po_header_id,
    sum(quantity * unit_price) sum_amount_ordered,
    org_id,
    purchase_basis,
    category_id
    -- pla.item_description,
    from po_lines_all
    group by po_header_id, org_id
    , purchase_basis,
    category_id
    -- pla.item_description
    ) pla,
    (select pla.po_header_id,
    pda.project_id,
    sum(pda.quantity_ordered) sum_quantity_ordered,
    sum(pda.quantity_delivered * pla.unit_price) sum_amount_received,
    sum(pda.quantity_delivered) sum_quantity_received,
    sum(pda.quantity_billed) sum_quantity_billed, --10.0.0.3
    accrual_account_id
    from po_distributions_all pda, po_lines_all pla
    where pla.po_line_id = pda.po_line_id
    group by pla.po_header_id, pda.project_id,accrual_account_id
    ) pda,
    (select po_header_id, charge_account_id,
    -- rsh.receipt_num,
    min(rsl.creation_date) date_receipt
    from rcv_shipment_lines rsl
    where rsh.SHIPMENT_HEADER_ID=rsl.SHIPMENT_HEADER_ID
    group by po_header_id,charge_account_id
    ) rsl,
    (select distinct aia.invoice_num, pda.po_header_id , aia.invoice_date --10.0.0.3
    , aia.creation_date , sum(aida.amount) amount
    from po_distributions_all pda,
    ap_invoice_distributions_all aida,
    ap_invoices_all aia
    where pda.po_distribution_id = aida.po_distribution_id(+)
    and aia.invoice_id(+) = aida.invoice_id
    Group by
    aia.invoice_num, pda.po_header_id , aia.invoice_date --10.0.0.3
    , aia.creation_date) aia,
    (select haou2.organization_id, haou2.name
    from fnd_flex_value_sets ffvs,
    fnd_flex_value_norm_hierarchy ffvnh,
    fnd_flex_values_vl ffvv,
    hr_all_organization_units haou1,
    FND_FLEX_VALUE_CHILDREN_V ffvcv,
    hr_all_organization_units haou2
    where ffvs.FLEX_VALUE_SET_NAME = 'CAP_CODE_BU'
    and ffvs.FLEX_VALUE_SET_ID = ffvnh.flex_value_set_id
    and ffvnh.parent_flex_value like 'PO%'
    and ffvv.FLEX_VALUE_SET_ID = ffvnh.flex_value_set_id
    and ffvv.FLEX_VALUE between ffvnh.child_flex_value_low and ffvnh.child_flex_value_high
    and substr(haou1.name, 1, Instr(haou1.name, '-')) =
    substr(ffvv.DESCRIPTION, 1, Instr(ffvv.DESCRIPTION, '-'))
    and haou1.organization_id = fnd_global.org_id
    and ffvcv.parent_flex_value = ffvnh.parent_flex_value
    and ffvcv.flex_value_set_id = ffvs.flex_value_set_id
    and substr(haou2.name, 1, Instr(haou2.name, '-')) =
    substr(ffvcv.DESCRIPTION, 1, Instr(ffvcv.DESCRIPTION, '-'))
    union --10.0.0.1
    select f.organization_id, f.name --10.0.0.1
    from hr_all_organization_units f --10.0.0.1
    where f.organization_id = fnd_global.ORG_ID --10.0.0.1
    ) bu
    , po_line_locations_all plla --10.0.0.4
    , gl_code_combinations_kfv gcc1
    ,gl_code_combinations_kfv gcc2
    where pv.vendor_id = pha.vendor_id
    and pla.po_header_id = pha.po_header_id
    and pda.po_header_id = pha.po_header_id
    and pha.po_header_id = rsl.po_header_id(+)
    and pda.project_id = ppa.project_id(+)
    and pha.po_header_id = aia.po_header_id(+)
    and aia.po_header_id = pha.po_header_id
    and pla.org_id = haou.organization_id
    and pha.authorization_status in ('APPROVED', 'OPEN')
    and plla.po_header_id = pha.po_header_id --10.0.0.4
    and plla.closed_code in ('APPROVED', 'OPEN', 'CLOSED FOR INVOICE', 'CLOSED FOR RECEIVING', 'CANCELLED') --10.0.0.4
    and bu.organization_id = haou.organization_id
    AND gcc1.code_combination_id = pda.accrual_account_id
    AND gcc2.code_combination_id =rsl.CHARGE_ACCOUNT_ID
    In the following query I have commented receipt_num using the table rcv_transaction_headers.
    If I uncomment it the query results huge number of unexpected report.
    How can I add receipt number to the following query?
    Should I use rcv_transactions. If yes, what would be the join conditions.
    Kindly help as its urgent.
    Thanks in advance.
    Regards
    Avijit

    Sandeep is correct. I don't have time to tell you the correct query, but mine is something like this based on Sandeep's information:
    SELECT rsh.receipt_num
    FROM   rcv_transactions      rcvt,
           po_lines_all          pla,
           rcv_shipment_headers  rsh
    WHERE  rcvt.shipment_header_id   = rsh.shipment_header_id
    AND    rcvt.PO_LINE_ID          = pla.PO_LINE_ID
    AND    pla.item_id              = (select distinct inventory_item_id
    from mtl_system_items
    where segment1 = '1216107-2')

  • Can I create a list which counts the number of documents of a specific metadata type by the folder they are stored within?

    Running SP2013 Foundation. My users interact by uploading documents to personal folders within a document library, selecting the type of document they have uploaded via a lookup column and SP list. I have two levels of view in my library, a top level view
    and an in-folder view which contains the metadata and standard document information like version and modified date etc.
    Currently I am able to count the total number of documents that have been uploaded of a particular document type against my document type list, but I would also like to include folder along with document type to thoroughly track document returns by folder
    name. The desired output being a list with a count of document type uploaded by folder name.
    I have tried creating an associated user column at the top level view and also uploading an associated user and folder name list.
    Is this possible and how would I go about this?
    Many thanks for any assistance

    Hello MJH9J,
    Thank you for your question.
    We are currently looking into this issue and will give you an update as soon as possible.
    Thank you for your understanding and support.
    Best Regards,
    Zhengyu Guo
    Zhengyu Guo
    TechNet Community Support

  • BAPI_SALESORDER_CHANGE. Error V1 045 -- Indicate number of document.

    Hi Experts.
    When a pre-order (ZAG) it's confirmed in SAP, we make an oficial order (TA), then, when save the oficial order I need delete the field LCNUM in pre-order.
    I'm using this BAPI, in a USER EXIT inside program SAPVM45A, when the number of document it's the pre-order.. but it failed, and return to me the message error that I don't indicate the number of document.
    I find where it's the fail, when called to this function
      call function 'SD_SALES_DOCUMENT_READ'
    there is a moment in the code with that
    VBAK-VBELN = DOCUMENT_NUMBER.
      PERFORM BELEG_LESEN(SAPMV45A).
      PERFORM KONV_SELECT(SAPFV45P).
    Well, when called the perform BELEG_LESEN, ---> VBAK-VBELN LOST , yes I tell you the true..., LOST the value of the pre-Order...
    I think that when I call this function it's while save a order, program lost the value
    Example of the code:
    l_saledocument = v_vbelv. "Number of pre-po
              l_order_header_in-doc_num_fi = l_lcnum. "l_lcnum it's empty because I want update INITIAL in pre-po
              l_order_header_inx-doc_num_fi = 'X'.
              l_order_header_inx-updateflag = 'U'.
           Llamada a la bapi
              CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
                EXPORTING
                  salesdocument    = l_saledocument
                  order_header_in  = l_order_header_in
                  order_header_inx = l_order_header_inx
                TABLES
                  return           = li_return.
              READ TABLE li_return WITH KEY type = 'E'.

    Hi Pedro,
    have a look to SAP Note 1232196.
    You have to call FM SD_SALES_DOCUMENT_INIT before calling BAPI
    Hope it helps
    Lorenzo

  • Number of document created in th backend in the classic scenario?

    Dear Experts,
    Could you please tell me the number of document and its details created in the ECC backend in the below cases?
    1. Case 1:
    Define backend objects:Purchase requistion created if no stock available.
    Is it correct that the system will create two documents here? The first document will be Purchase Requisition
    ( from the classic scenario) and then a purchase order has to be triggered manually from the PR?
    2. Case 2:
    Define backend objects: Purchase Order if data complete, otherwise Purchase requisition.
    Here, if all the data are complete and the system directly creates Purchase Order in the ECC backend system. From the shopping cart in SRM, one can see only ECC backend purchase order, no purchase requistion. If i check the Purchase Order in ECC backend system, I donot see any purchase requistion with reference to the Purchase Order.
    Could you please help here? What are the number of documents created here? It is one or two (both purchase requisition and Purchase Order).
    Is it not a violation of standard classic scenario if only one document is created?
    Thanks and regards,
    Ranjan

    Hi,
    In other words in the shopping cart is approved
    1) If the source is assigned  -It will create a P.O in  the backend  (Classic)
    2) If the source is NOT assigned  -It will create a P.R in the backend (Classic) .. you have to assign a  source
    Regards
    G.Ganesh Kumar

  • Document number, reference, document header text

    my name is venkat in f-02 there are 3 fields. 1) document number 2) reference 3) document header text what purpose we use with example

    HI,
    1. Accounting Document Number
    The document number is the key the system uses to access the accounting document.
    The document number is unique per company code and fiscal year. When entering an accounting document, you can specify the number manually or it can be determined by the system from a pre-defined area (number range).
    The relevant area of the document numbers (number range) is determined in each company code per document type.
    2. Reference Document Number
    Definition
    The reference document number can contain the document number of the customer/vendor. However it may contain a different value.
    Use
    The reference document number is used as a search criterion when displaying or changing documents. In correspondence, the reference document number is sometimes printed in place of the document number.
    Procedure
    Enter the number specified by the business partner. If the document was created in-house and you do not know the business partner document number, you can copy the document number into the reference number field by entering "*".
    3. Document Header Text
    The document header text contains explanations or notes which apply to the document as a whole, that is, not only for certain line items.
    reg
    Madhu M

  • How to pull the Sale order number(sales document) to Accounting document

    Hi Gurus,
    How to pull the sale order number to the accounting document.
    Is any configuration needed to this.
    When i run the FBL5N Repoprt ,Sale order number (Sales document) is not getting updated to accounting document.It is diplaying as blank field.
    Thanks you.

    Hi Shivaji,
    In order to display the Sales document in the customer line item report, you need to add it as a special field thorugh customizing settings.
    Path - SPRO - FA-GL Accounting - GL Accounts - Line Items - Define special fields for finding and sorting data and in that select the table BSEG-and field VBEL2 (Sales document) and save/
    This will work. hope this helsp
    regards,
    radhika

  • Content Server - number of documents stored.

    Hello,
    I am not sure if this is the correct forum, however, does anyone know how I can count the number of documents that are stored in a MAXDB / SAP Content server database? I don't think it can be done at the database level.
    Thanks,
    Philip.

    Hi Philip
    Go to SE38 and Run this report DMS_KPRO_CHECK1.
    The report determines the following data:
    Originals in content server without a reference in the SAP system (KPro)
    Originals in the SAP system (KPRO) without a reference in the content server
    Data (LOIOS) in KPro without a reference in document management
    Data (LOIOS) in document management without a reference in KPro
    May be this will help you.Also check Documentation in that report and try to apply logic.
    With Regards
    Mangesh Pande
    Edited by: MANGESH PANDE on May 21, 2009 10:56 AM

  • Report that displays Costcenter , Document Number and Document type

    Hi All,
    Can anyone suggest Report that displays Costcenter for a Document Number of certain Document type - Like G/L accounts .
    Thanks in advance ,
    Regards,
    Ry

    Good afternoon.
    If you are trying to run a report for a particular cost center (or range of cost centers) and have the report show the GL document number and document type, try transaction KSB1.  You can update the line layout to show these fields.
    If you are trying to run a report for a GL account and have the report show the cost center, run FAGLL03. You can update the line layout to include cost center.
    Apologies if I have mis-understood your question.
    Barb

  • Configure internal number for document in "depreciation run"

    Hi Experts!
    When I execute "Depreciation Run", it notice error:
    Create document number range 03 using internal number assignment
    Message no. AA776
    Diagnosis
    Processing terminated because the document number range 03 for year 2008 was set up with external number assignment.
    System Response
    For periodic posting of depreciation, you have to create a document number range with internal number assignment, since the document numbers are assigned from Financial Accounting.
    Procedure
    Change the number assignment for the number range 03 from external to internal in Customizing for Asset Accounting. See SAP Note 890976 for more information.
    Please tell me the way to configure internal number for document in "depreciation run"
    Thanks & Reguards
    Ngocpt.

    Hi,
    Go to transaction code FBN1
    In the change option go to document range 03.  IF its an external number assignment there is a tick in the box " ext".
    If you want to change it to internal you just have to remove the tick.
    Before doing so please check the document type used fo depreciation  and the corresponding number ranges assigned.
    Hope this helps.
    GU

  • Maximum number of documents in a container

    Hi,
    I read the guide "Getting Started with Berkeley DB XML for Java" and understand that by using the XmlDocumentConfig.setGenerateName(true), BDBXML generates a unique name for each document that is stored: myDocName_a where a is the unique value.
    I have two questions regarding this:
    1) What is the maximum number that can be stored in the container before there is an error? E.g myDocName_xxxxxxxx. what is the maximum xxxxxxxx value?
    2) Lets say, we delete two documents, myDocName_1 & myDocName_2. Will BDBXML generate this two document names again if we store another 2 new documents?
    Thanks in advance!
    Cheers,
    Khew

    Hi,
    1) The citation from DB XML FAQ:
    Number of Documents in a Container:
    Internal document IDs are 64-bit integers, and must be unique within a container, which limits the number of documents in a container. 2) No, it won't. At least I got such results in DB XML 2.4.16. So if you had document dbxml_1, dbxml_2, dbxml_3 and then deleted let's say dbxml_1 and dbxml_3, then the next generated name would be dbxml_4 nonetheless. Anybody, correct me if I'm wrong.
    Best,
    Vyacheslav

  • Maximum number of documents knowledge directory can handle

    Hi,
    I am wondering, what could be the maximum number of documents knowledge directory can handle in terms of indexing and search in WCI 10.0.3 release.
    I tried to google and also browsed oracle documentation but didn’t get any clue about the number of taxonomy documents it can handle.
    We have to develop a portlet which can perform a customized search (based on custom properties) on a taxonomy folder which would contain almost 2, 00, 000 documents.
    Would it be possible in term of performance to manage this number of documents in WCI?
    Regards,

    Based on the wording of your post, I assume some degree of familiarity with WCI. Now, there are quite a few variables besides the raw number of documents when it comes to acceptable indexing and search performance. Your best options are: try it, or (if you have a support contract) go through support to get a good answer based on your intended production environment.

Maybe you are looking for

  • Questions about upgrade from iphone 3gs to iOS4.

    hello. Anyone of you guys know that if my current 3gs is upgraded to the new iOS4, can all my apps from 3gs be able to work on the new iOS4? Also is the battery features from the iOS4 apply on my current 3gs? thanks!

  • Can't play ipod songs on more than one computer since update

    I recently instaled the new itunes and ipod software on my pc. Now when I plug my ipod into any computer, the songs (and everything else) is gray and won't play. Any advice?

  • Solaris 10 x86 install and X Windows

    Greetings, I am having trouble getting the X server to come up on a new install of S10 on an x86 platform. I have run the kdmconfig utility and it correctly detects the hardware for the Xsun server. I tried to use the instructions for Xorg but Xorg d

  • ICloud Drive questions

    Hi all, I know that this subject has been discussed yet, but I haven't found a definite answer to this question. I have some Pages documents on iCloud: and since yesterday if I try to access them via iCloud.com interface, a message warns me that my d

  • IOS8 this photo is not editable - ?

    Updated to IOS8 . Resynced all photos from Iphoto on Mac. When I try to edit a photo, I get a message saying This photo is not editable Do you want to duplicate it and edit a copy? Duplicate and Edit Why would I want to fill my iPad with Duplicate ph