Aggregating on header-level only

Hi experts,
I'm facing the following scenario:
I've got an infoprovider which contains item-level keyfigures.
The correspoding headers have keyfigures which cannot be disaggregated to the items.
It would not be a problem to provide a header-level infoprovider,
and an item-level infoprovider, but I cannot find a way to bring both sources together
in the same query.
A concrete example:
The header-level infoprovider contains the confirmed quantity of an production-order.
The item-level infoprovider contains the component-materials used by this prod-order and it's quantity.
In the target report I'd like to see the confirmed quantity of a prod-order as well as the components-level.
The problem is, that if I provide the prod-order-quantity on the item-level, that they will be aggregated multiple-times (according to the number of components used by a prod-order).
Example:
Data:
ProdOrder     Component     Conf.Qty     CompQty
111     X     10     3
111     Y     10     2
112     X     10     1
Wanted result, when aggregated on ProdOrder-Level:
111     10     5
112     10     1
Actual result, when aggregated on ProdOrder-Level:
111     20     5
112     10     1
Is there any way to solve that?
I'm still fighting with the idea of exception-aggregation, but it seems as if I had not understood the concept yet.
Best regards,
  Marco

Hi AL,
that's correct, and works quite good as long as I have got the prod.order in my drilldown.
What I unfortunately did not describe: I need the "first value" of each prod-order-component cummlulated...
So to correct my initial need:
Wanted result, when aggregated on ProdOrder-Level:
111     10     5
112     10     1
Wanted result, when aggregated completly:
20     6
In the way you described, I'll get
10 6
because always the "first value" is displayed and no summation is done anymore (for that keyfigure)

Similar Messages

  • Surcharge at the header level only to the customer in the sales document

    Hi guys,
    I have requirement to charge the surcharge at the header level only to the customer in the sales document, the condition type as well as the value should not be distributed to item level
    I have marked the condition as header. But still the value is copied to the item as well,
    If I mark the condition as Group condition, then it distributes the total value to each item in the document according to Qty
    Is there any other way, I could set up through config,
    Regards,
    Rao.

    Hi,
    In T.Code VTFL, check what is maintained for field Pricing Type. If it is B then change it to G or depending on your business select a suitable value.
    This should resolve your issue. Let me know in-case the issue still persisits.
    Regards,
    Rohan Gudavalli

  • To get PO number against invoices at header level only

    hi
    I have this query to retireve payments against invoices
    SELECT ai.gl_date, aca.amount paymentamount, aca.bank_account_name,aca.check_number,aca.DOC_SEQUENCE_VALUE voucher_num,
           aca.payment_method_lookup_code, aca.vendor_name suppliername,ai.base_amount functional_amount,   pha.segment1 po_num,
           aca.check_date paymentdate, aida.period_name, aida.creation_date
      FROM ap_invoices_all ai,
           ap_vendors_v avv,
           ap_invoice_payments_all aipa,
           ap_checks_all aca,
           ap_invoice_distributions_all aida,
           po_distributions_all pda,
           po_headers_all pha,
             HR_ORGANIZATION_UNITS_V hrov
    WHERE ai.vendor_id = avv.vendor_id
       AND aca.vendor_id = ai.vendor_id
       AND aipa.check_id = aca.check_id
       AND aipa.invoice_id = ai.invoice_id
       AND ai.invoice_id = aida.invoice_id
       ANd pda.po_distribution_id=aida.po_distribution_id(+)
       AND pda.po_header_id = pha.po_header_id(+)
       AND pda.destination_organization_id=hrov.organization_id
        and aca.STATUS_LOOKUP_CODE !='VOIDED'
         and  aca.DOC_SEQUENCE_VALUE='212366'
    order by to_char(ai.gl_date,'MM')
    18 records are shown
    for aca.doc_sequence_value='212244 no rows returned
    i found the reason as to this 212244 has no PO number
    so i had to rewrite the query using ANSI JOINS
    SELECT ai.gl_date, aca.amount paymentamount, aca.bank_account_name,aca.check_number,aca.DOC_SEQUENCE_VALUE voucher_num,
           aca.payment_method_lookup_code, aca.vendor_name suppliername,ai.base_amount functional_amount,   pha.segment1 po_num,
           aca.check_date paymentdate, aida.period_name, aida.creation_date
      FROM ap_invoices_all ai
         join  ap_vendors_v avv on(ai.vendor_id = avv.vendor_id)
          join ap_invoice_payments_all aipa on (aipa.invoice_id = ai.invoice_id)
          join ap_checks_all aca on (  aipa.check_id = aca.check_id  and aipa.invoice_id = ai.invoice_id)
           join ap_invoice_distributions_all aida on (  ai.invoice_id = aida.invoice_id)
        left join  po_distributions_all pda on (pda.po_distribution_id=aida.po_distribution_id)
          left join po_headers_all pha on(  pda.po_header_id = pha.po_header_id)
            left join HR_ORGANIZATION_UNITS_V hrov on  (pda.destination_organization_id=hrov.organization_id)
        where aca.STATUS_LOOKUP_CODE !='VOIDED'
         and  aca.DOC_SEQUENCE_VALUE='212366'
    order by to_char(ai.gl_date,'MM')
    now i get the correct data for 212244 
    but when i run the same query for 212366 i get 19 records  as one invoice in this 076998 has 3 line items and one line item dont have PO
    BUT the requirement is to get  only PO information at the header level not line levelkindly guide
    thanking in advance

    When you need only PO numbers, link only the 3 tables to make your query simpler.
    ap_invoice_distributions_all aida,
    po_distributions_all pda,
    po_headers_all poh
    Only po based invoices will be selected for these tables

  • Why release strategies for PO at header level only

    We have release strategy for Purchase Requisitions and Purchasing documents like PO, Contract and SA.
    In case of PREQ we have a choose for either item level release or header level release, whereas in case of PO, Contract and SA only header level release is possible.
    My question is why SAP has provided only the header level Release Strategy for PO, Contract and SA? I wan to know the reason and logic behind this.

    Hi,
    For PR's, there is no header level data. Becuause vendor number is optional since it is internal document from the user dep. to pur org. That's why, vendor number fields is at item level in the source of supply screen. But this is optional field.
    That's why, you can release PR line items one by one or all at a time.
    If you are releasing all line items at a time, need header level release.
    If you release line item by line item, need item level release.
    But in the case PO/Contract/SA, these are final reference documents and sending to the vendor as external documents.
    That's vendor number is at header level field and line item in the PO are related to the single vendor.
    That's why u cann't release line item by item, i.e., item level release.
    You can relase all the  items in the PO or u can reject entire PO, not a single line item.
    That's why, only header level release is possible for the PO/Contract/SA.
    Regards
    KRK

  • Report on Service Contracts Authoring header level only

    Created a Discoverer report that returns most of the header level data for Service Contracts Authoring. Issue is that for Summary/Parties it is returning all contacts. I want to see if I can limit the return to what the user is seeing at the application level (Role, Name, Email etc...) for the Contacts. I have found articles that suggest main line is what I want to return but had no luck. I have tried what I thought would be other unique identifiers from the okc_contacts_v, okx_party_contact_v, but the returns for each contact were identical. Thanks for any input on this subject.

    Hi,
    Try to figure what security rule the application uses.
    you need to look at the view that lies behind the application screen.
    To do that you need to change the profile "Hide Diagnostics menu entry" for your user to: No using sysadmin.
    Then go to the application screen where you see the needed data and go to Help->diagnostics->Examine.
    enter password for APPS.
    Then chose in "Block" the SYSTEM and in "Field" Chose "Last Query".
    You'll get the sql behind the last query you made in the screen.
    Copy it to the SQL tool and start drilling into the view/s.
    Try to find the security applied in the sql and use the same in your query.
    At the end of this process you'll get the same security in your view as in the application.

  • Clear IDOC creation when only header level changes are made ME22N.

    Hi All,
    when the PO is  on changed in the header level only(for example header texts and header code)  and when we execute RSNAST00 one BADI getts triggered which checks if the Item category is 9 and  badi will clear the IDOC creation.
      If the PO item category is = 9, the IDOC must not be created. This badi works fine if the changes are made at
    1)at Item level
    2)both header level and Item level
    In case of 1 and 2 we have both header segment E1EDK01 and item segments E1EDP01.As a result it checks for the item category in the item segment.so idoc is not created.
    3)BADI is not working when the changes are made at the header level only. The IDOC is getting created even though the PO has the item category as 9.
    I found in this case only header segments are availble while debugging and the item segments are not there to check the condition for the item category.
    Please any one can suggest me possible solutions to  clear idoc creation when only header level changes are made ME22N.
    The BADI used is as below.
      DATA : lwa_data TYPE edidd.
      DATA : lw_dp01 TYPE e1edp01.
      DATA : lwa_control TYPE edidc.
      CHECK idoc_control-rcvprn = '3PL' AND idoc_control-idoctp = 'ORDERS05'.
      LOOP AT idoc_data INTO lwa_data.
        IF lwa_data-segnam = 'E1EDP01'.
          lw_dp01 = lwa_data-sdata.
          IF lw_dp01-pstyp = '9'.
            CLEAR create_idoc.
          ENDIF.
        ENDIF.
      ENDLOOP.
    ENDMETHO
    Thanks in advance.

    Hi all,
    Is there  any way that I can get the item category details when Only header level changes are made to the PO in ME22N and only header segments are available in the IDOC.
    Is this possible:- Fetch the po number and item category details from ekpo table that matches with  the header segment po number and then check for item category value  to clear the idoc creation?
    Any information is helpfull.
    Edited by: Selina.selk on Nov 20, 2009 1:39 PM
    Edited by: Selina.selk on Nov 20, 2009 2:49 PM

  • Discount value not updating at contract header level

    Dear Friends
    I am facing problem of updating discount value at contract header level. The scenario is u2026. my client used to provide certain service to their customer. For that they maintain quantity contract & bill them as per billing plan. When customer avail three or more  services they get 10% extra discount. Now the problem is after continue for some days if some customer wants to drop  one item we are cancelling the line item by assigning proper cancellation procedure but the  system is not reversing the 10% discount.
    Example u2013
    Contract valid for 1st Jan 2009 to 31st Dec 2010(Value for each service = 10)
    (Total no of item-3)
    (Discount-10%)
    Here bill value for each month is  10x3-(30x0.10) =27
    At the month of march 2009  customer decided to drop for one item so hence forth the bill value should be 10x2=20
    But the system is calculating 10x2-(20x0.10)=18
    We need to update the value at contract header level only to satisfy some CRM functionality.
    Please suggest how to solve this issue

    Hi,
    If that is  item condition then you can not change it at header level
    check in M/06 make it at header level  in change which can be made tab
    Regards
    Kailas Ugale

  • How can set the responsiblity name and operatingunit name at header level y

    Dear all
    Good Morning
    i have to set the respname and org name at header level
    i taken the item at page level userinfo it is coming the right side of the page i want to be set at header level only in left side top only...
    is there any item style for this requiremt
    Regards
    Sreekanth

    Dear Sumit
    I designed one custom page in top header level i want to put Operating unit name and responsiblity name i mean in which responsiblity user working in that page...
    i want to set these two properties
    in process request i wrote the code
    int orgid=pagecontext.orgid();
    String respname = pageContext.getResponsibilityName();
    i want to set these values to icorresponding items
    these items i want to create at the top level of the header
    which region which style.........
    in page level i taken userinfo item it is coming right side of the header
    i want to set these two items either left or right i want to set header level only
    Regards
    Sreekanth

  • Contract sign date field hide at header level

    Hi,
    My client want to disable contract sign date at header level only not at item level in the contract.I tried transanction  variant but it is disabling both side header as well as item level.Kindly suggest me.User should only give input at item level only.

    So are we... The BAPI BAPI_CONTRACT_CREATE has the following importing parameters:
    HEADER     TYPE     BAPIMEOUTHEADER
    HEADERX     TYPE     BAPIMEOUTHEADERX
    VENDOR_ADDRESS     TYPE     BAPIMEOUTADDRVENDOR
    TESTRUN     TYPE     BAPIFLAG-BAPIFLAG
    TECHNICAL_DATA     TYPE     BAPIMEOUTTECH
    Change the HEADER and HEADERX parameters as I have indicated in my first post.
    Regards,
    John.

  • Error message at SC Header level

    Hello,
    I've made changes to check for approval notes to be mandatory when a shopping cart is rejected using the CHECK BAdI. The message doesn't come up when rejecting at header level, only when rejecting at item level is then that it comes up.
    Your assistance will be appreciated.
    TX
    Chris.

    Hello,
    I think this badi is not very efficient when rejecting from the inbox (header level), allready encounter pb with this.
    Anyway, you'll need to go into the detail screen to add an approval note. Why not simply deactivate the direct approve and reject button from the inbox (dynamic columns for integrated inbox) ?
    Rgds,
    Pierre

  • Return sales  of header level BOM subcomponents

    Dear guru's,
    I have maintained a Header level BOM where Item category group is ERLA.
    therefore prices and cost being determined on the header level only.
    I have done the delivery and billing for this BOM .
    Now scenario is that I want to create Return Delivery for the subcomponents of the BOM and not for the entire BOM. But there is no provision in standard for such kind of scenario. I cheked item category determination also and copy control aslo. I am not able to create for subcomponents with the inventory and financial impacts.
    please help me by providing the steps by step configuration for this scenario that I can get all the inventory and financial effects correctly.
    Suggestions are also welcome.
    regards,
    Vojas

    hello, friend.
    oh, i see your requirement more clearly!  you have several options...
    1)  manual entries without BOM
    personally, i would rather enter the components in the returns order manually, without the BOM main material.  the components will have item category REN (standard).
    2)  manual entries with BOM
    enter all materials individually in the returns order.  make sure the item category REN is determined for your components.  for your main item, make the item category RETX (text item).  let us assume that your returns doc type is ZRE...
    order type ZRE + item category grp ERLA  = RETX
    order type ZRE + item category grp NORM = REN
    3)  automatic BOM explosion
    if the components have to reference the main item, and if you want automatic explosion, you will need to make assignments in VOV4.  in addition to the settings in #2, in VOV4 you should assign:
    doc type ZRE + item category grp ERLA + higher level item RETX = item category REN
    hope this helped.
    regards and thank you.

  • PO number prints only if it is at header level not for item level

    Hi All,
    I am not able to print the PO number in my order acknowledgement and COA printout when I enter the PO number in the sales order at item level of only. It prints fine when it is at the header level.
    Please assist.
    Thank you,
    Shanu Jain

    Hi,
    BSTKD Field in the VBKD is dependent on two things . IF the Header PO Number is same as the Item number if u change at Header level it will be changed at all items level also. If both are diff then if u change the PO Number at Header level it will change PO numbers of the Items which is having same value as Header Po Number otherwise it wont change the Item PO Number .
    Ex " Order Number 1000 is having PO Number at Header Level is PO1. And the sales order is having Item 010 and 020.
    IF Item 010 and 020 is having PO1 at item level if u change the value of PO1 at header Level if will be applicable to items 010 and 020.
    If Item 010 is having Po Number PO1 and 020 is having PO2, if i change value of PO number at header to PO3 then it will change Item 010 PO Number to PO3 and Item 020 PO Number will be same as PO2.
    Try to Take The VBKD - BSTKD where Item Number POSNR is blank that means Header PO Number .
    IF u want Item Po Number then pass the item number in POSNR and get it.
    Regards,
    Srinivas.

  • Purchase Order Total Amount at Header level and Report Execution

    Dear Experts,
    Here by i am facing problem with Purchase Order Total amount.
    I have local Pricing Procedure for price stipulations (like discounts, Freight, packaging). the calculation at item level is correct. tax calculation is done by tax code. The total PO Price is including all items in PO and tax amount. But at header level conditions net value is showing only gross price.
    How to pick up total price including tax amount at header level conditions?
    Please provide me solution on it ?

    Dear Experts,
    Here by i am facing problem with Purchase Order Total amount.
    I have local Pricing Procedure for price stipulations (like discounts, Freight, packaging). the calculation at item level is correct. tax calculation is done by tax code. The total PO Price is including all items in PO and tax amount. But at header level conditions net value is showing only gross price.
    How to pick up total price including tax amount at header level conditions?
    Please provide me solution on it ?
    Edited by: Kiran Mujumdar on Feb 23, 2009 7:08 PM

  • Billing plan (Downpayment) for saved and open sales orders at header level?

    Hi gurus,
    I have configured billing plan in my SD environment at Item Level.
    I want to change it to header level.
    Questions:
    1- When I make the changes to update the system to have billing plan at header level for future sales orders, is that possible for me to change all my saved orders and open orders with the new settings so that I can also have those saved and open orders with a billing plan at item level?
    2- If that scenario is not possible, could we for example copy the data of a previously saved or open sales order into a new sales order with the new customizing (Billing plan at Header level?)
    Thanks for your input
    Kind regards
    Chris

    Hi
    I am afraid you cannot do that converstion for the existing orders. BP at header level are enabled at teh document type level, while BP at item level is done at item category. So both are independent. Mostly it is advisabel to use BP at item level only.
    If you are already using item level BP, and want to mvoe to header BP, then only future transactions can be executed with BP at header level. Existing item level BPlans will remain so in the system.

  • How to print material document in header level?

    Hi Guys,
    How to print material document from header level. I can only print them in item level. But i want that in header level. For example, I have 4 movements inside a material document and I want to issue only one output from the header level.
    I can see the option Goto -> Additional Function -> output, but it is disabled. Please let me know hot to acheive this and if you need further info on this. Please throw some light on this.
    Thanks
    Yasin.

    HIi
      Your question is not clear.  What exactly you want to be.
    1.  To print material header in your smart form / Sap Script what is the problem. Itu2019s quite easy you can do it. Let me know what problem you are facing.
    2. The option is disables because of business functionality ask your functional guys to help you on the same.
    Regards
    Swati

Maybe you are looking for

  • Acrobat 9 with FrameMaker 7.2

    Hello, I'm running FrameMaker 7.2p158, Acrobat 7.1.0, and Windows XP, everything patched up to date. I've recently acquired the latest version of the Technical Communication Suite, which includes Acrobat 9. I'm not ready to install FM8 yet, but I wou

  • JAVA and MYSQL NOW() Function only displays year?

    I have run into something interesting with running the MYSQL NOW() function. Here is what I'm running: SELECT  NOW() from databaseThis gives me "2010" only. Any idea why this may be? If I run the same mysql query in mysql from the command line I get

  • Hello people how can i connect mac pro imac as monitor whit mini display

    hello people i have aproblem with my comp mac pro with 5770 ati card i want to use  that to let the imac use as monitor oke please respons i am from the duth

  • Tabbar spark, states

    In a component that has multiple states, I use a spark TabBar based on a ViewStack containing a list of Navigator Content. The number of tabs changes when the component states changes. The TabBar works, but sometimes there are some bugs: after a stat

  • When will AD member computers sync after DC time correction?

    Today I discovered that about 6 months ago, someone had reconfigured our PDC emulator to sync from non-existent time servers, causing it (and in effect everything else in AD) to be off by 37 seconds from the intended, reliable NTP server.  I correcte