Counting Requirement (Counting PO line items wrt PO No)

Hi All,
We have a requirement here . Suppose there are 2 Purchase orders Y & Z . "Y" purchase order has  5 line items as 10,20,30,40,50 . "Z" purchase order has 7 line items as 10,20,30,40,50,60,70 . now i want to count the number of purchase orders & no of line items . I.e output should be , for a particular month there are 2 purchase orders & 12 line items .
Point will be awarded .
Thanks,
Deadlocks

Hi Priya,
thnx for the reply, just a small thing i wanted to ask,
inside those two CKFs should i create a formula variable on PO header & PO item no ?
Before this what i did was i created a CKF with constant 1 in it and then i applied exception aggregation as "total" and refrence characteristic as "PO header" & and "PO item".
so instead of bringing item count as 12 it is bring 7 .
Regards,
Deadlocks

Similar Messages

  • How to Count Number of completed line items in past 6 months / 12 months ?

    How to Count Number of completed line items in past 6 months / 12 months ?
    Hi,
    I am trying to count "Number of Completed Line Items in Purchase Order Document" for my Key Figure ZPO_CNT.
    Purchase Order document = ZEBELN
    Line Item = ZEBELP.
    I need to find and count if the Line Item has been received in the past 6 months from today and similarly in the past 12 months.
    I have "Delivery Completed" field, ELIKZ.
    So, based on this would I be able to calculate it in Query Designer?
    If so, Please let me know how

    Hello Deva
    If youe want to calculate the completed line item for last 6 or 12 month then i think u will be displaying the query data for these montrhs...create a customer exit to give you date range and restric it in filter area....
    Now Choose any of the below option
    1. I would suggest to implement an additional key figure "counter" in cube and fill values with one for which delivery is completed.
    Now use calculated key figure in Query Designer based on logic
    IF counter = 1 THEN counter ELSE 0
    OR
    2. create a formula variable based on ELIKZ and use replacement path variable, it will display you no. of docs for which delivery is completed....
    Award points if it solves your problem
    Revert back in case of further assistance...
    Thanks
    Tripple k

  • Please let me know how to Count Number of completed line items in past 6 mo

    How to Count Number of completed line items in past 6 months / 12 months ?
    Hi,
    I am trying to count "Number of Completed Line Items in Purchase Order Document" for my Key Figure ZPO_CNT.
    Purchase Order document = ZEBELN
    Line Item = ZEBELP.
    I need to find and count if the Line Item has been received in the past 6 months from today and similarly in the past 12 months.
    I have "Delivery Completed" field, ELIKZ.
    So, based on this would I be able to calculate it in Query Designer?
    If so, Please let me know how
    Krishna

    Hi Experts,
    I dont have a defined Restricted key figure yet.
    I have populated 0COMPL_DEL(Delivery Completed Indicator)  and 0EBELN (Purchasing Document Number) and 0EBELP (Line Item Number in Purchasing Document) .
    This is what I think how I need to calculate:
    Number of completed line items in past 6 months:
    If  Delilvery Completed Indicator (0COMPL_DEL) = x, calculate No. of Line Items (ZPO_CNT) from 0CALDAY to 6 months
    and
    Number of completed line items in past 12 months:
    If  Delilvery Completed Indicator (0COMPL_DEL) = x, calculate No. of Line Items (ZPO_CNT) from 0CALDAY to 12 months
    Please let me know if the logic is correct. If so, how I can create this in report

  • Profit Center required for Customer line items

    Hi Gurus,
    Can we make Profir center filed mandatory to customer/vendor line items in New GL

    Hi
    When you activated New GL Functionality and made Profit Centre Update is mandatory.
    At new GL side system will automatically take about updation of profit centre for customers and verdor line items.
    Regards.
    Chandrasekhar Ponugumati

  • T.code required for Vendor line item display and Customer line item display

    Hi Gurus,
    Pl provide me transaction code for "Vendor line item display and " Customer line item display apart from FBL1n for vendor and FBL5n for customers.
    Kindly advise.
    Regards,
    Samar

    Hi,
    You could use these, for example:
    S_ALR_87012103 - List of Vendor Line Items
    S_ALR_87012197 - List of Customer Line Items
    Just curious: what's wrong with FBL1(5)N?
    Regards,
    Eli

  • Count of no of line items in the report

    Hi All,
    I have the following reporting requirement.Can anybody please provide me the solution.
    Data in the cube
    User id    Accounting Doc No      Lineitem    Amount
    abc1          10001                                 001                   100
    abc1        10001                                  002                   100                        
    abc1         10001                                  003                    100
    abc2         10002                                  001                   1000
    abc2         10002                                  002                   1100                        
    abc1          10003                                 001                    100
    Requirement:
    The report output shuold look like this
    User id    No of Accounting Docs     Total no of Lineitem count   Amount
    abc1                          2                                         4                                                400
    abc2                         1                                            2                                              2100
    I got the count of No of accounting documents.For lineietms I am unable to Get the count.
    The system is version BI7.0
    Thanks for your time.
    Srinivas

    Hi Srenevas,
    Check out the following document. This might help you.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/009819ab-c96e-2910-bbb2-c85f7bdec04a
    regards,
    Rakesh

  • Dynamic Counter in BEx Report to count the drilldown line item.

    Hi,
    I have a requirement to show the count of different parts in a report. For example the report,
    Part Number            Costs
    100                    200 $
    and if you drill down from the part number to line item details, you will get,
    Item Number            Costs
    10                      50 $
    20                      50 $
    30                      50 $
    40                      50 $
    So basically Part Number 100 is consists of 4 Item numbers. Now I want to show original report like this,
    Part Number            Costs               Counter
    100                    200 $               4
    Is there any way I can catch that counter, like how many line item is there per Part Number ?
    I am thinking of 2 ways, Virtual key Figure to calculate this or in alternate if possible use the Classification extractor (not sure if it possible to count the number of items per classification extractor though).
    Is there any better or simpler way to deal this without changing the cube structure ?
    Thanks for your time spent on this,
    Kind Regards,
    Arpan

    Hi,
    You can get this functionality with Virtual Key figures.
    You will have the complete dataset in the RSR00002 Enhancement in CMOD.
    Thank you
    Arun

  • Counting order line items in a sales cube

    Hi,
    How best can one generate a report against an SD cube to count the total number of order line items?
    Will a count ikey figure in the cube necessarily be a count of the sale order line items? What if you needed to count the orders and not the order line items?
    Thanks

    Hi,
    since I am interested more in the order line item, onyour point:
    "to get the line item count, there is standard key figure in 2LIS_11_VAITM extractor, which returns the number of line item count. That should count the number of line items"
    What is the name of the standard  key figure you are referring to?
    What if this is not in the data target that it is being reported against?
    An easier way to to get this count in the report without having to modify the Multiprovider?
    Thanks

  • Control Line Items of table in Smartforms

    Hi,
    Please help me out for following problem which  I am facing in smartforms.
    Scenario u2013 I am trying to print Bank Payment voucher, In this I am passing two internal  tables from my driver program, One internal table is for header details and other internal table for Line item details.
    I am Looping for header details and under the templates, I am populating header data into itu2019s appropriate places, for line item details, I am using Table and able to populate line item details, Now say my line item should print only 5 line items in one  page and if there are more than 5 line items , it should print next line items on next page.   when new page will start it should print header details  and footer details also,
    In last last row, I have put the program code where I am counting the number of line items, and below that i have put 'Command' and in command condition, I have stated that if linecnt > 5 , go to next page%2 and in page 2, I have again copied the header details but , it is not working,
    In short the Flow of Smartforms is given below.
    Loop    (For Header details)
    Template
    Template
    Template
    Table   (For Printing Line Item Details)
      (row 1
       row 2
      program line (Whre I am counting Number of Line items
      Command (Go to next page is activated )
    Template ( For Printing the footer details
    Page%2
    Template
    Template
    Template
    Looking out for your valuable help .
    Thanks and Regards
    Rani

    And one thing more that line count may not be increasing. ..... so try to send the flag of page triggring from ur driver program.
    as i have done here.
    *  Page Break after 21 Records means
      count_rec = 1.
      loop at it2_all_outlet_sale into wa_it2_all_outlet_sale.
        count_loop = sy-tabix.
        if count_rec = 21.
          wa_it2_all_outlet_sale-zyear = '9998'.
          modify it2_all_outlet_sale from wa_it2_all_outlet_sale index count_loop.
          clear: count_rec.
        endif.
        add: 1 to count_rec.
      endloop.
      describe table it2_all_outlet_sale lines count_rec.
    " This part of code for not page triggering after last 21 records
      read table it2_all_outlet_sale into wa_it2_all_outlet_sale index count_rec.
      if sy-subrc = 0.
        count_loop = sy-tabix.
        if wa_it2_all_outlet_sale-zyear = '9998'.
          wa_it2_all_outlet_sale-zyear = '9999'.
          modify it2_all_outlet_sale from wa_it2_all_outlet_sale index sy-tabix.
        endif.
      endif.

  • 1 line item in invoice for Multiple line items of SO

    Hi SD Gurus,
    My client requirement is multiple line items of the sales order should reflect as a single line item in the invoice ..?
    For ex: I am using Service material type Dien & material created under different material groups.
    My Sales order looks somthing like below with material no & amount:
    10  Testing charges    10$     material group xx1
    20  Baking charges     20$     material group xx2
    30  Scan/Taping          20$    matierial group xx1
    Now in the invoice its should reflect only with 1 line item with the whole amount 50$.
    Kinldy let me know how  this requriement can be fullfilled.
    Thanks,
    Rahul

    Dear Rahul
    I think you can apply Rate Routing for this.
    A rate routing is a routing for repetitive manufacturing. It enables you to easily reproduce the lean production process.
    In the rate routing, the production rate per operation is defined (production time according to a base quantity). Set-up time is not usually defined, since no changes to setup are planned.
    However, you can also use standard routings. A standard routing represents the various steps of production (such as setup, processing, teardown and so on), operation by operation, if necessary with suboperations.
    A rate routing does, however, offer all the same functions as a standard routing.
    <b>Structure</b>
    If you use the same standard value key for all the work centers on the line, the system copies the descriptions of the standard values to the routing as the column headings of the operation overview.
    If you use different standard value keys for the work centers, the system copies the descriptions into the routing that is entered in the control data for the routing in Customizing.
    To create a Rate Routing, follow the steps as under:-
    1)  Starting from the main Line Design menu, choose Rate routing --> Create.
           The system displays the initial screen for rate routings.
    2)  Enter the plant, the material and in the field Group, the group to which you want to assign the rate routing.
    3)  Choose Enter.
         The system displays the screen Header details.
    4)  Enter the following data:
             => the routing description
             => the plant
             => the usage of the rate routing, i.e.production
             => the status, i.e. released
             => the unit of measure of the materials to be produced
    5)  Save your rate routing.
    <b>Result</b>
    You have created the rate routing. Continue creating the main production line and if necessary, feeder lines.
    You can also take the help of your PP guy for this.
    Thanks
    G. Lakshmipathi

  • To remove line items from invoice which have 0 qty.

    Dear Friends,
    Requirement: To remove line items from invoice which have 0 qty.
    For this I wrote the code in RV60AFZZ. It is very well happening, but when last line item comes it is failing.
    What I have written is " DELETE XVBRP WHERE FKIMG = '0' ." . This code is deleting all the line items with 0 qty except last line item.
    Actually, this exit works line item wise. Once the line item is appended, the code what I have written is working. For the last line item, record is not appended when this exit is triggerred, thats why last record is not deleted.
    The include where all line items are getting appended in XVBRP is LV60AB03. I modified this also. Same code I have written here to delete the records once it is appended. But after doing this the problem is - invoice is not getting created.
    Please help me in doing this so as to delete this last record also. I tried with other logics also, not able to track the last record.
    Please help me to resolve this problem.
    Thanks.

    Hi,
    Check user exit RV60AFZC.
    RV_INVOICE_DOCUMENT_ADD is the FM which is called to generate number for the invoice after all the line items have been added to vbrp structure. Add a break-point here and check.
    All the best.
    Regards,
    Amit

  • Sum of the line items

    Hi,
    I am working on report . I want sum of the quantity of the line items at the end of material .
    I am using AT END OF MATNR.Here i am getting problem when same material have different plants i want the closing quantity separate according to plant . AT END OF MATNR is triggering only when new material no came but i require when plant and material any one change .Can you please suggest me.
    example
    matnr plant  openingqua         grsqua    closingqty
    4000 1030  100                      1000
    4000 1030                              2000
    4000 1030                              3000        7100
    4000 1031 200                      2000        
    4000 1031                              5000          9000
    4001 1030  100                      1000
    4001 1030                              2000
    4001 1030                              3000        7100
    4001 1031 200                      2000        
    4001 1031                              5000          9000
    Like this i require in o/p .
    Regards
    Nandan

    Hi,
    In my report we have only one company code and 3780 material with plant 1030 1031 1010 .
    I require some all line items qunatities according materialno and plant .
    example
    materialno1  and plant1
    materialno1 and plant2
    materialno1 and plant3
    materialno2 and plant1
    materialno2 and plant2
    materialno2 and plant3
    Regards
    Nandan

  • New Line Item to be created in sale order

    Hi,
    Client requires a new line item to be created in sale order for particular regions only..
    Scenario 1 :
    For a particular region Additional Tax shud be calculated on Basic Price .
    Scenario 2 :
    For a particular region Cess on Vat need to incorporated.
    Client wants to maintain condition records in Cond Type :UTXJ and also the client shall maintain a 2 different Tax Codes for above each scenarios,  In future in case Additional Tax or Cess on Vat is applicable to other regions it shud get posted in their respective G/L's
    Plz suggest...
    Thanx...

    It would be wonderful had you shared your suggestion in this forum itself rather sending to personal mail ids which is against the rules and regulations of this forum.
    I request you to dont do that please.

  • Tax Line item

    Hi Gurus,
    I have been trying to create a Vendor Invoice (FB60) & in the line item I have assigned a Input Tax Code. However, the tax line item that should have been created automatically, is not getting generated.
    Once I find out the Tax Account for that Tax Code & manually enter the 'tax line item' & try to simulate, I get a message that "Enter the Tax Base Amounts for Account _____ in company code _____.
    I am at a loss as to,
    Firstly, why is the Tax Line item not getting created automatically?
    Secondly, when I manually enter the Tax Line Item, what does the error I am getting mean & how do I deal with it?
    Gurus, please help me.
    Thanks in advance.
    Regards,
    Debojit Dey

    Hi Debojit,
    Pl. check this config step. Check whether you have selected vaues in the field <b>Posting Indicatior</b> for the Account Key you have created for the tax type.
    The vaues are as under:
    Pstng ind. Short text                                                                               
    1              No posting required                         
    2              Separate line item                          
    3              Distribute to relevant expense/revenue items
    Path: <b>Financial Accounting> Tax on Sales/Purchases> Basic Settings> Check and Change Settings for Tax Processing</b>-   Select you account key and enter the vales in the field <b>Posting Indicatior</b>. 
    Hope this will solve your issue.
    Regards,
    Vijay.

  • Information about the deleted sales order line item in idoc.

    Hi Experts,
    I am new to IDOC.We have the following idoc requirement,
    When a line item is deleted from the sales order(VA02) ,
    the outbound idoc getting triggered for the sales order has the information about the rest all line items other than the deleted line item.We now want the information about the deleted line item in the Idoc .
    Please help me in proceeding further.

    Hi,
    I am facing the same scenario of capturing the  deleted sales order line item in idoc.
    I am using ORDRSP message type , where in E1EDP01- ACTION contains value  "000" .
    And the Deletion line item is not been captured, is there any configuration setting required to
    capture the deleted line item in Idoc.
    Based on the posting in this thread i understand that there is an  indicator which has to be set .
    Please let me know what is that indicator and how to set it?
    Thanks
    Sathish

Maybe you are looking for

  • New power adapter for old macbook - It doesn't work!

    Hello! My MacBook is 3 years old. My power adapter got broken at the end where you put it into the socket. Now I bought a new power adapter. The adapters have changed now. The end where you put it into the computer looks now a little bit different. B

  • How can I eliminate automatic "quotation marks" that are appearing at the end of each line?

    I keep getting "quotation marks" at the end of every line when I type. How can I eliminate these marks as they are even showing up when I print and I will not have on my wedding programs! Please help (from a desperate bride-to-be)!

  • Balance Sheet negative values

    Hi all, I've already implemented the IC 0FIGL_C10 and V10, and the business content queries that are available show negative values for equity and liabilities, but they are positive in the R3 balance and therefore the totals are not correct. Any idea

  • Handling wave files

    Hi, I want to develop a program that deals with wav files. I need to read the bytes of the wav file similar to how pixels of an image could be read using the getRGB() method . Is it possible with java. Is there any method to read the contents of the

  • Syncing in cloud

    I am using the adobe reader app for android, iOS, and online, but I cannot get my last page read location to sync  and I am always back at page 1 when I open it up on any device.  Any suggestions on how to sync w acrobat.com and the cloud?