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

Similar Messages

  • How to add the line item text in the Ledger line item report

    Hi SAP Gurus,
    I having one requirement from the user. He wants the line item text which we will enter in FB60/FB70/FB50 has to be shown in the Ledger line item report. Right now this field is not available. Is there any possible we can make this line item text in the ledger line item report i.e. FBL1N/FBL3N/FBL5N?
    advance thanks for the help.
    Regards,
    Deva.

    Hi,
    You can do the below to get this. (You can change the names of the function modules as per your wish/ organization naming convention):-
    Step 1:-
    Create function module Z_GET_SGTXT as below:-
    Import:-
    BELNR LIKE BKPF-BELNR
    BUKRS LIKE BKPF-BUKRS
    BUZEI LIKE BSEG-BUZEI
    GJAHR LIKE BKPF-GJAHR
    Export:-
    PRCTR LIKE BSEG-SGTXT
    FUNCTION Z_GET_SGTXT.
    ""Local Interface:
    *" IMPORTING
    *" VALUE(BELNR) LIKE BKPF-BELNR
    *" VALUE(BUKRS) LIKE BKPF-BUKRS
    *" VALUE(BUZEI) LIKE BSEG-BUZEI
    *" VALUE(GJAHR) LIKE BKPF-GJAHR
    *" EXPORTING
    *" VALUE(SGTXT) LIKE BSEG-SGTXT
    SELECT SINGLE SGTXT FROM BSEG INTO SGTXT WHERE GJAHR = GJAHR
    AND BELNR = BELNR
    AND BUKRS = BUKRS
    AND BUZEI = BUZEI.
    ENDFUNCTION.
    Step 2:-
    Then create the Function Modules as below:-
    Z_LINE_ITEMS_GET_SGTXT (Copy of SAMPLE_INTERFACE_00001650)
    FUNCTION Module Z_LINE_ITEMS_GET_SGTXT.
    ""Local Interface:
    *" IMPORTING
    *" VALUE(I_POSTAB) LIKE RFPOS STRUCTURE RFPOS
    *" EXPORTING
    *" VALUE(E_POSTAB) LIKE RFPOS STRUCTURE RFPOS
    Initialize Output by using the following line
    E_POSTAB = I_POSTAB.
    E_POSTAB = I_POSTAB. "<-- important
    CALL FUNCTION 'Z_GET_SGTXT'
    EXPORTING
    BELNR = I_POSTAB-BELNR
    BUKRS = I_POSTAB-BUKRS
    BUZEI = I_POSTAB-BUZEI
    GJAHR = I_POSTAB-GJAHR
    IMPORTING
    SGTXT = E_POSTAB-SGTXT
    EXCEPTIONS
    OTHERS = 1.
    ENDFUNCTION.
    Step3:-
    Transaction FIBF:-
    Settings -> Products -> of a Customer
    SGTXT Text in Line Item Display Active
    Settings -> P/S Module -> of a Customer
    00001650 SGTXT Z_LINE_ITEMS_GET_SGTXT
    Step 4:-
    Create the layout for FBL*N with display of the TEXT.
    Regards,
    Gaurav

  • REP- 50004 no report specified in the command line

    hello,
    i dont want to specify the connection string in the URL, so in the cgicmd.dat i added :
    test: userid=scott/tiger@orcl destype=cache desformat=pdf server=rep_oas %*
    in the URL :http://oas:7777/reports/rwservlet?cmdkey=test&report=adm31002.rdf
    the result of the execution is
    REP-5004 no report specified in the command line
    can you help me
    thanks

    Hi,
    try
    http://sgarcia.eeq1:8889/reports/rwservlet?report=R_MISOL1.rdf&PARAMFORM=no&destype=cache&desformat=pdf&CODIGO_CUENTA=215&EMPRESA=EEQSA&EMPLEADO=25243&V_PATH=Z:\bin&cmdkey=cmx
    regards
    Rainer

  • To get the guid of the current line item in report

    Hi,
    I am creating reporting program  for inserting new line item to a quotation.
    Using header guid (Hardcoded value) i am able to insert new line item and product.
    in order quantity value i need current line item guid.
    How can i get current line item guid so that i can insert quantity value to current line item?
    Thanks in advance
    Anil

    Hi Anil,
    You can get current item guid by using FM CRM_ORDERADM_I_READ_OB, but it will of no use. If you try to do this then in this case you have to call maintain FM 2 times, which is not recommended. First you have to create item and then you have to maintain quantity. You have to do all this in one maintain call.
    Regards,
    Bhushan

  • FAGLL03 report not filtering G/L line items based on vendor entered in free selection

    Hello SAPians,
    I have a requirement to add Vendor field in the free(dynamic) selection of the standard report FAGLL03 so that G/L line items are displayed(filtered) based on the vendor values given.
    I followed the SAP note 945932 to create the vendor field by adding the ZZLIFNR in the custom include  of the table FLAGFLEXA followed by the configuration of custom fields in SPRO tcode. Post that I tested the report by giving one particular vendor number and came to know that no line items were displayed.
    Upon debugging the program I came to know that , while selecting the data from the Inner join of BSIS and FLAGFLEXA tables, vendor number on FLAGFLEXA forms the part of WHERE clause and eventually no records are selected since all the existing records wont be having vendor number maintained in FLAGFLEXA table.
    However I asked the functional guy to post the new line items under the assumption that it might update ZZLIFNR field in FLAGFLEXA. But our assumption turned out to be wrong. At this point I seek advice from your experience on the following points.
    1) My understanding that failing of inner join condition is the root cause for data being not fetched in the output. Is it correct?
    2) When we add new custom field in FLAGFLEXA(ZZLIFNR in my case), how the data needs to be populated for that particular field from       functional/technical perspective? Does the custom scenarios in SPRO are related to this in anyway?
    3) How do we need to handle the old records existing in the system with respect to the updation of new field(column) added?
    Any inputs in this regard is very much appreciated.
    Thanks & Regards,
    Yaseen

    Hello Dennis,
    thanks for the tip, your assumption is right, it's regarding 0FIGL_V40 in BI 7.0. Could you please be more detailed, which BW 3.x InfoSource do you mean? Or what exactly has to be done?
    The "objects" under this InfoCube are - transformation, datasource (0FI_GL_40) and InfoPackage, that's it. When I check InfoCube Type/Namespace - it is based on Data Transfer Process for DirectAccess, but the checkbox With InfoSource 3.x is not checked..
    Thank you in advance for your answer.
    Regards,
    Peter

  • Iterating through bseg line items and picking the vendor line item

    Hello,
    I am creating a report in which i want to show the list of vendors (with their WHT's). The output will be based on selection of a certain period(range). I guess i have to first iterate through BKPF and get those documents that lie in the given range, then i 'll have to iterate through the selected documents in BSEG and pick out the vendor line items (KOART = 'S'). Will i be using GET for this..
    Is this the right way? secondly, if yes, can sumone show me how to iterate through BKPF and BSEG and get vendor details.?
    Thanks..
    SHehryar

    Hey,
    Instead of selecting data from BKPF-BSEG you could use BKPF-BSIK-BSAK.
    BSIK and BSAK have the same details as BSEG and are use by SAP for reporting purposes.
    Similarly for customer the table are BSID, BSAD and for GL the tables are BSIS and BSAS.
    BSIK will have the open items and BSAK will have the cleared items.
    -Kiran

  • Is there any report to see GL account line items.

    Hi Experts,
    Is there any report to see GL account line items. if the line item management is not selected in GL account.
    Regards
    SAM.
    Edited by: samiuk on Jun 27, 2010 9:32 PM

    Hello,
    The reports to see GL line items are fbl3n ( classic GL ) and FAGLL03 ( New GL).
    If the line item management is NOT flagged in the Master data of the account you'll not see any line items. The line item management flag determines if the document will create entries in the secondary index tables (BSIS/BSAS) which are used to display the line items.
    REgards,
    REnan

  • Final total cannot appear when the last line item reached the page end

    Hi All,
    My report included 2 pages. Problem is the final total cannot appear when the last line item reached the page end. (page 2)
    final total will appear on the middle of last page (page 3) when i comment (type    = 'BOTTOM').
    Below is the program.
      CALL FUNCTION 'OPEN_FORM'
        EXPORTING
          device   = 'PRINTER'
          dialog   = 'X'
          form     = 'ZBOTM_VOUCHER'
          language = sy-langu.
      sort itab by vblnr.
      LOOP AT itab INTO wa_itab.
        move wa_itab-vblnr to reguh-vblnr.
        move wa_itab-lifnr to reguh-lifnr.
        move wa_itab-rbetr to reguh-rbetr.
        reguh-rbetr = reguh-rbetr * -1.
        CALL FUNCTION 'WRITE_FORM'
          EXPORTING
            window  = 'MAIN'
            element = 'DETAIL'.
        t_rbetr = reguh-rbetr + t_rbetr.
        AT LAST.
          CALL FUNCTION 'WRITE_FORM'
            EXPORTING
              window = 'LINE'.
          CALL FUNCTION 'WRITE_FORM'
            EXPORTING
              element = 'TOTAL'.
              type    = 'BOTTOM'
              WINDOW  = 'MAIN'.
        ENDAT.
    Thanks.

    Hi,
    Where should I include the code for bottom?
    How to open text editor?
    Thanks.
    Edited by: Alice8 on Feb 7, 2011 9:09 AM

  • Sample Material in the 3rd Line item of the Sales Order

    Hi,
    We have configured the system in the sales order as follows.
    1. Commercial Material
    2. Bonus Material.(ie Free Material)
    Now, i want to add the 3rd line item in the sales order as Sample with different Material number. How go about this. kindly let me.
    Regards
    Ravi

    Hi there,
    Enter the material in the sales order & change the item catg manually in VA02.
    But free goods & sample materials are dealt differently..
    Freegoods is entered as TANN item catg along with nornam TAN item in standard order OR.
    But sample materials or free of charge items are processed through different order type FD for eg.
    Even thought the item catg proposed in FD is TANN,, the whole process will not have pricing as TANN items arenot relevant for pricing.
    Regards,
    Sivanand

  • How user can get a Sales Text for the any Line Item in the Billing?

    Salute Masters ! !
    How user can get a Sales Text for the any Line Item in the Billing?
    It's coming for other Order (Line Item for Bought out Item at Project Site - Some Item they procure at project site & complete the task).
    Where I can configure in system for all.
    Rgds
    Srivastav
    09973504950

    Hi,
    Sales text can be copied from customer to order , order to delivery and delivery to billing .
    Check the T-code : VOTXN , do the customization as per your requirement.
    check the below link :
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/dd/55f993545a11d1a7020000e829fd11/content.htm

  • Issue while UNDELETE the PO line item

    Hi MM Sapperu2019s,
    I am facing an issue where one of my user wrongly activated the deletion for 1 line item in the PO and now when I tried to undelete the PO line item it was giving me the below error,
    Error as Requisition XXXXXX, item XXXX, assigned to other order account
    Message no. 06251
    Please help me to fix this issue.
    PS:
    I have found similar SDN links but where the issue is PO has linked with Sale order and in my case the PO account assignment has linked with network.
    Moderator do not lock this query saying that similar issue has been already discussed
    Awaiting for the experts reply.
    Cheers,
    Kumar.S

    Is that the background to your problem:
    you have a requisition and you created a PO 1 for this requisition,
    then you deleted the PO 1 and requisition became open again,
    then the requisition was change in account assignment
    and then you created a PO 2 for this requisition.
    what do you expect from re-opening the PO 1?

  • How to handle the multiple line items in the Inbound idoc FM

    Hi ,
    Can any body give me how to handle the multiple line item in the idoc when we reprocessing it from workitem....
    Thanks in Advance,,,,
    Regards,
    Bharani

    Hi ,
    Can any body give me how to handle the multiple line item in the idoc when we reprocessing it from workitem....
    Thanks in Advance,,,,
    Regards,
    Bharani

  • F-53, Simulate time getting message "Correct the marked line items"

    Hi All,
    While posting the outgoing payment (F-53),  at time of simulate I'm getting the message " correct the marked line items" & missing the vendor side line item but showing for enter amont( bank acccount line items) on screen.
    when I trying to do the second time, I observed that, process open item screen, amount entered & Assiged amount both showing minus(-)sign
    I guess the message getting because of the same sing(-) of vendor item & bank account,
    Can some one help me out to understanding the why it showing same sign and reslove the issue
    Thanks
    Ramakanth

    Hi Ravi,
    Yes, I have posted FB60 and in FBL1N showing credit balance of vendor but when clearing F-53 suprisingly showing wrong side amount I mean assigned amount( open item).
    Is there any configuration missing or any thing i missing is system.
    Thank you
    Ramakanth

  • Correct the Marked Line Items

    Hi,
    When  I do F-54 (Clear Vendor Down Paments) after doing entering amount in Transfer posting and when I stimulate and try to save it gives me message saying "Correct the Marked Line Items"  So it shows me on of the line itesm in blue color and when I double click it takes me to Item level and then I entered the Text and save the document. Then in FBL1N its gets clear by one document and the cleared document show its been open.
    Can some one explaing me I am doing some thing wrong .
    Regards,
    Arvind.

    Hi,
    What you are doing is absolutely right.
    When you make a downpayment using special gl indicator, the vendor line time gets posted to SPECIAL RECONCILIATION ACCOUNT instead of normal reconciliation account assigned in vendor master.
    F-54 is used for bringing the vendor line item from special recon account to normal recon account.
    So the same vendor gets debited (spl recon-cleared) and credited (normal recon-Open)
    This new credit items will be cleared with payment.
    Assign Points if useful
    Regards
    Raghu Ram.

  • Strike Through in ADOBE appears in the subsequent line items

    Hello ADOBE Forms creators;
    I am using the functionality of Strike through(line through) in my PO line items if the line item is deleted. However, in the following line item which is not marked as deleted if some of the fields have the same value as the deleted item, for example: if the quantity in the previous line(the deleted line item) is 5 and in the current line is also 5, this quantity in the current line item which is not marked as deleted gets the strikethrough as well. But if the value is not the same it will not get the strike through.
    Can anyone put some light into this issue. The points will awarded to the correct answer(s).
    Thanks,
    Cyrus

    What you are seeing is exactly as you described....ie. when the fields match in value, it applies to all. This has do to how you are navigating your DOM there in your Javascript. You are not making use of any indexing....just simply saying "any of my field values for quantity, apply this style". You are "referencing by name" to your fields.
    You have:
    this.parent.items.QUANTITY.blah.blah
    when it should look something like (forgive me but off top of my head....look/search for correct syntax)....
    this.parent.list.items[index].QUANTITY.blah.blah
    basically you need to find the index of your "QUANTITY" children (and other like named fields). They are all "named" the same, so they will have some kind of index to resolved them correctly. It might be an index after "QUANTITY". I am guessing you will look at the index for IND_TXT and then find all other fields with that same index (ie. same row?).
    Hope this helps.

Maybe you are looking for

  • Changes in SAP b1 price list is not reflecting in webtools

    Hi, I have 5 price list in SAP B1 and it is synchronized with web tools so i am able to generate sales orders for a customer with same price whether from B1 or web tools. Now I have defined 5 new price list in B1 and changed default pricelist  on cus

  • No of orders- Month wise

    Hi, From which report shall i get the number of orders created in a month. cheers, Sumith

  • Changing Fonts in Master Templates

    I apologize in advance, this is pretty basic stuff and I'm sure its covered in the manual but I am up against a deadline and I normally never deal with Motion or Master Templates in FCP but its a client thing I just want to change the font of a Motio

  • Deleting a bookmark in Safari

    Hello, This is a safari question, but I am unable to access the safari board, and thought this was a basic enough question that any experienced Apple user could answer it. I am unable to delete bookmarks. I can add them, of course, but cannot figure

  • ITunes doesn't see iPod

    I'm running iTunes 601 on a g4 with system 10.3.9. iTunes won't recognise my ipod...anyone have any ideas?