Smartform line item -group total

Hai All,
         I need logic for the following requirement in smartform,
I should print the subtotal of each group of line items that i have calculated in my report.\
         for example Group-A has 1,2,3 line items.now i should print t total at the end of this particular group item in SMF.
         similarly       Group-B has 1,2,3,4 line items.now i should print t total at the end of this particular group item in SMF .

Hi,
If you have the Driver program, then do the logic in your driver program and finally print those details in the smartform.
sort itab by group.
Loop at itab assigning <fs_tab>.
v_total = v_total + <fs_tab>-field.
at end of Group.
<fs_tab>-newfield = v_total.
clear v_total.
endat.
endloop.
Now use this new field in your smartform to print the totals.
Regards,
Venkatesh

Similar Messages

  • Line Item vs Totals

    Dear SDN,
    In what way does FISL line item table differ from a Totals table?
    Can I say line item in FISL are transaction data at journal entry level  while totals table is aggregated data at period and account level?
    Regards
    Adette

    Hello Addete
    If you want you can use this parallelism, in case you use SL to build a
    Balance Sheet report and have information about single documents posted.
    Just a little explanation:
    When configuring your own  SL scenario you first define a table group (transaction GCIN). A table group in Special Purpose Ledger consists of five individual tables:
    Summary table (totals)
    Actual line item table
    Plan line item table
    Object table 1 (object/partner)
    Object table 2 (transaction attributes)
    When you customize the ledger (GCL1) you indicate  the summary table that postings to this ledger will update. Also here you indicate if line items should be updated. If so, also the line item table of the table group will be recorded.
    Obviously line item table has to be consistent with summary table.
    Regards
    Javier

  • Display  6 line items and total in main window

    Hi,
    I want to display only 6 line items in main window( on first page and also total of the main window of first page), and consecutively in all the apges i want to display only 6 line itms and total in each page of main window, how to write logic for this.
    Thanks,
    Donlad

    Hi r u talking about Snmartform if yes
    Let us take the page you are using as PAGE1, you can achuve this using the Command Node. call the same page after 6 items as follows
    1.create Table.--->Main area , Header and footer.
    2.Declare a variable V_count type sy-tabix.
    a.Now click on the table tab>Main Area>right Create>Command (insert a command node after the Line type you r using to print the data), in this COMMAND node give the condition V_COUNT = 6. GOTO>PAGE1 (it maens you r  triggering the new page after the 6 lines.
    b. after this command noder insert the Program lines heate increase the value of V_COUNT.
    Maintain another variable the use that for page totals...
    total can be doneautomatically by using the TABle-->CALCULATION TAB.
    let me know if you more clear info, iam sure u r problem willbe solved.

  • Regarding sap smartforms line items

    hi,
    this is regarding line items in sap smartforms
    when i am executing single line item i am getting out put
    when i am executing with 2 line items  i am getting error  like bellow
    You tried to switch to the next table column, but no other column exists. The current column is 9. The line type IT_GEN contains only 9 columns.
    plz explain clearly

    Hi,
    if you are using template and the line type is for 1 to 2 lines in the template... make sure that column position you mention is equal to the number of cells in the line type... if the data is displayed in the second row the row position should start from 2 and and column position should lie between 1 and 9.
    Just a suggestion ... its better to go with table node instead of going with template...
    regards
    padma

  • PO line items delete, Total vlue of PO didn't changed

    Hi Experts,
    In Purchase order , Functional person creating PO for service, When he want to delete some line item , Total value of PO didn't change. Any one assist on this.
    Thank you
    Sri

    HI
    If you block the material (lock symbol) the print preview will have both  the blocked item and active item and price accordingly.
    If you delete the material then the print preview will have only active item.
    Regards
    Reddy

  • Smartforms line item

    Hi,
    Consider me newbie..Am trying to explore the smartforms.. i was able to capture all the header information but i am stuck on how to print/ loop  the multiple line item from table ekpo. How to achieve this ...appreciate step by step guideline...thank you
    ekpo-ebelp,ekpo-txz01,ekpo-menge,ekpo-meins ekkn-sakto
    She

    If you want 5 columns, you need to declare 5 cells in one line type of the table
    Click on Table -> Details, then do the following
    Line Type 1 2 3 4 5
    L1 2mm 3mm etc
    Here specify the width of the columns as many as you want..
    then in the header/main area of the table, click create Table Line, Rowtype is L1, automatically 5 cells will come,In each cell create a text element, display the variable to be printed there
    &wa_ekpo-ebelp&
    &wa_ekpo-txz01&
    &wa_ekpo-menge&
    &wa_ekpo-meins&
    &wa_ekpo-sakto&
    and so on
    In the Table,
    Loop IT_EKPO into WA_EKPO.
    I hope this helps you.
    Regards,
    Vanessa

  • Matching FI Line Items and Total Records for FM

    Dear Friends,
    Currently, we are implementing Public Sector Management using Former Budgeting.
    Some PR and PO has been created, before the FM budget data transferred from Cost Center Planning using FM9C.
    Using FMRP_2FMB4002 report, the u2018Available Amountu2019 still equal to u2018Curr. Budget Amountu2019, even though we can display the detail PR and PO by double-click the column u2018Assignedu2019 and u2018Commts/Act.u2019 in this report.
    After executing RFFMRC04, system shows many line items containing Fund Center, Commitment Items, and its Amount.
    I need your assistance to resolve these issues, so that the FM Report can be analyzed accordingly.
    Thanks for your kind attention.
    Regards,
    (Vincent)

    Hi,
    This thread has been created some time ago and recieved no response. Can you please close if you feel this issue/query has been resolved in the meantime. If it has not then please provide additional information in relation to your query. By providing updates to your thread it moves you thread to the first page of thread and increases visibility and possiblity for the multiptude of experts in SDN Forums to offer their support.
    Therefore please update with more information or close thread.
    Thank you for your assistance.
    Regards,
    Brendan.
    (ERP FI/CO SDN/WIKI Moderator)
    http://wiki.sdn.sap.com/wiki/display/ERPFI/ERP+Financials

  • Smartform Line Item

    Hai All,
              I need a help on SMF development,i have to print each line item of the SMF table in a each individual page, ie., 10 pages of SMF for displaying 10 rows of line item from the table. how do i achieve it?

    Hi Raghav,
    Use can use Event on Sort End  option of Table .
    In there you need to give on which field you what the event to be triggered and what to do when that event triggers.
    Field you can give it as serial number or storage type  or etc..
    Under the event check(tick) 'Go to New Page' and give the page name.
    Regards,
    Dep

  • Total and Line Item dataload (1 or 2 datasources)

    Hi all,
    When realignment happens on R/3 it does not update line items, only totals.
    If you have been loading line items in BW how to you get the new "totals" when realignment happens?  I read the notes that state COPA will decide what table to read when loading (most appropriate).
    Do you need to create 2 datasources (1 for line item and 1 for totals) or does the system know (even when your loading line items) to update totals and read appropriate table?
    Thanks,  Mike

    Hi Manfred,
    Thanks for replying...
    I have a COPA extractor that has line items selected in addition to totals.
    When a realignment happens in R/3 I understand that it updates totals, but not line items. 
    When I load to BW I have a COPA ODS that I am leaving line item information in.  Then updating "totals" to the InfoCube.
    So I am not sure if the "totals" is getting updated after realignment because I have line item char's selected also in my datasource.
    Do I need to worry about this, or simply when a realignment happens all I have to do is re-init and the "totals" will be updated to BW.
    This is why I was asking if I should have 2 COPA datsources, 1 for line item the other for just totals (not selecting any line item char's).  Then just update the line item extractor to ODS and update total extractor to InfoCube.
    Thanks so much.
    Mike

  • GL Totals - Line Items Reconciliation

    Hi,
    Does anyone know a report with which you can compare the GL totals table (GLT0) with the line item tables (BSEG BKPF)?
    We have loaded line items and totals into two different BW cubes and the data doesn't reconcile.
    Thanks!

    Hi Simon,
    What about the S_ALR_87012332 transaction?
    (Accouting -> Financial Accounting -> General Ledger -> Information System -> General Ledger Reports -> Line Items -> G/L Account Statements -> S_ALR_87012332 - G/L Account Statements)
    Daniel Carvalho.

  • G/L Balance and Line items difference

    Dear Mates,
    We have a Inventory-Spare Parts G/L account
    When i see the FS10N g/l balances ,there is a figure appearing as 25,82,887/- in the period February and when i double click on the above said figure to see the line items whose total comes to 30,89,627/- with doc.type: WA.
    Can please tell me ,what could be reason for the difference between Balance appearing on the initial screen and line items total.
    Please treat it very urgent as auditors are sitting on my head.
    Thanks
    Subbu

    Hi,
    First let me know the SAP R/3 version and fiscal year.
    In the mean time, you can also check any changes has been made to your GL account master data related to line item display.
    all the best

  • Missing Line Items and '?' Symbols in some Reports

    I have upgraded the patch level of my production server and patch level
    list is given below
    SAP_BASIS 640 0022 SAPKB64022
    SAP_ABA 640 0022 SAPKA64022
    ST-PI 003C_640 0001 SAPKITLPS1
    PI_BASIS 2006_1_6400006 SAPKIPYL06
    SAP_BW 350 0021 SAPKW35021
    SAP_HR 500 0017 SAPKE50017
    SAP_APPL 500 0019 SAPKH50019
    PI 2004_1_5000004 SAPKIPZI64
    problem is that whenever I run SAP FICO standard reports FL3N, FBL5N,
    KB01, F.08 etc it generates the report correctly but when i am taking
    print out of these reports it misses some line items and total value as
    well screen shots are attached for information.
    my second problem is that there are some garbage entries with
    symbol '?' in SAP Menu and toolbars of some Reports. Screen shot is
    also attached for your information.
    i am facing lots of problem in executing my daily operations due to
    these errors.
    regards,
    Majid Khan

    Dear Subramanian,
    I am facing the same problem in Development and Quality Assurance Server
    Regards,
    Majid Khan

  • Freight Calculation based on the net value of the Line item

    Hi SAP Gurus,
    I have one requirement for Freight calculation(Sales order is created through an IDOC) :
    In the idoc,we will receive a freight dollar amount - which will be the total amount of freight.(example 100)
    We will also receive sales dollar for each line item ,which is then passed to the pricing procedure, for a total amount of sales for that Sales order.
    (examples below, for a total of 1500)
    The 100  is to be posted to a freight G/L account.
    The 100 is further divided by each profit center  of the materials on the Sales order.
    The freight is split out amongst the  profit center , based on the net value of the line item.
    Freight value to be allocated = Line item value/total value of the sales order * Freight amount.
    Total of the sales order =1500
         Line item value     Freight value calculation     Profit center
    Material A:      800          800/1500*100  = 53     Profit center A
    Material B:     500          500/1500*100  = 33     Profit center B
    Material C:      200          200/1500*100  = 13     Profit center C
    Please let me know how to achieve this functionality in pricing procedure or what changes i need to make in Freight condition type.
    Thanks in advance,
    Bhakar Saha

    Were you able to resolve this issue of allocating freight costs to line items/profit centers using the net value of the line items?

  • Stock deficit when line item changes in sales order

    Hi expert
    i am using 4.7,i am getting deficit when i am pgi for sales order
    Scenario
    i have assigned serial number for material
    i have sales order of 5 lines item with total QTY 5, with sales order, i make PR,purchase order and migo, now some reason one of of line item od sales order get rejected, so we reverse all the step of migo and PO, then we create a new line item for sales order, then PR,purchase order and migo.
    Now i am doing PG for that Quantity i show deficit of 1 Qty,
    But in MMBE be agiant the sales order its showing me 5 Qty.
    If it is development, how do we achieve this.
    Let me know if you need more details on this. Appreciate your possible solutions to this.
    Thanks
    Rgds
    Nabil

    solve by own

  • Selection of data from RSEG for various PO line items

    Hi ,
    We have a requirement to calculate the total goods receipt value and break up cost for transportation also. In purchase order there are various conditions (base price, transportation,surcharge). I am trying to get all the goods movement for a PO line item and total goods receipts. Similarly all the documents from RSEG(we are using split invoice)  for that PO line item, so for each PO line item RSEG has entries as many as  conditions (i am trying to get all the conditions for PO line item from KONV table) . If the total goods receipts and invoiced amounts are different, i need to calculate the expected value based on conditions on PO for the remaining quantity.
    The problem is each condition in PO line item has one RSEG entry, but in the field KSCHL(condition type) does not have any value for base price, but it has for other conditions.
    is there any specific reason for not updating that for base price.
    Thanks in advance

    Hi,
    The 'Free Items' indicator in the overview is only used to facilitate               
    the switching off of the Inv.Receipt flag and the GR-based IV flag.                 
    Note that the 'Free Items' indicator is not stored on the PO item                   
    table EKPO.                                                                         
    The Inv.Receipt flag (and the GR-based IV flag) are the fields that                 
    really controls if an item is 'free' or not.                                        
    So, the field is initiated based on the values in those fields rather               
    than from input from the user.                                                      
    When an invoice is expected it's not a free-item. This indicator 
    invoice receipt is chosen from the main-item and also from the          
    customization maintained for item category 0 in table T163.  
    I am afraid that I have to say that in standard SAP design                   
    it is not possible to default the "Free item" flag.   
    Regards,
    Edit

Maybe you are looking for

  • HP Envy m6 / Adding display via HDMI

    I have a Dell monitor that I used to use to extends the display for another laptop. I purchased a DVI-HDMI cable to use it on my Envy, but the notbook won't recognize the monitor.

  • LOV Values not reflecting in the ADF table

    Hi, I created to VO's one for the LOV and one which uses the LOV. When I select a value from the LOV three columns in the ADF Table needs to be reflected with the selected value, But the Only one column is reflecting the value. When I manually refres

  • Adobe form program

    can anyone please provide a adobe form program?? a sample one. i want to learn and practice a sample program to start on. driver program and form . please mail me to [email protected] or past here will reward points for the useful. Message was edited

  • How to register an instance as a windows service in SJWS 7

    Hi all, I need to backup my sites config and restore them on another machine. I found out that I could simply copy over the folders under the config-store and it'll work, I can see & even start my sites from the other machine through the Admin GUI. H

  • Pavilion dv9880ee speaker not working

    One of my two built-in laptop speakers has stopped working. I've already updated my Audio driver, but it seems like it has nothing to do with my audio channels because it works fine with my headphones. Notebook model: HP Pavilion dv9880ee OS: Windows