HOW TO DECIDE IN A REPORT WHICH TABLE SHOULD LOOP FIRST?

MY Report contains 3 item table and one header table or 4 header tables then how to decide that this table should loop first.And how could i judge that this table contains duplicate entries.
HOW TO DECIDE IN A REPORT WHICH TABLE SHOULD LOOP FIRST?
Moderator message: please search for available information/documentation before asking, do not post in all upper case, these forums are not a substitute for ABAP training.
Edited by: Thomas Zloch on Dec 6, 2010 12:00 PM

Hi,
It is suggested to loop at the header table and then read the item table. Where in if you have multiple entries in the item table that matches, use the parallel cursors concept (Loop from index) as shown below
Loop at header....
Read table item with key......
If sy-subrc EQ 0.
Loop at item from sy-tabix.
-- Perform your processing.
endloop.
endif.
endloop.
Also make sure if you have duplicate entries in your internal tables, Use SORT and then DELETE ADJACENT DUPLICATES so that it avoids the performance issues as well
Hope this helps you.
Regards,
Shiva

Similar Messages

  • How can we put the report which is generated by the program into spool??

    How can we put the report which is generated by the program into spool??
    I had generated a file in Unix which had the report but now the requirement has changed.
    Regards,
    Shashank.

    Hi Shashank,
    If the program is executed in the background and it has the write statement then the spool will automatically generated.
    Reward points if useful.
    Regards,
    Atish

  • How the process starts in XI and which one should start first ?

    How the process starts in XI and which one should start first ?

    XI flow :
    1.File picked by the adapter,at the A.E it converts to XML format.
    2.Generate a msg ID for the file and creates XI header to that file  using CPA cache. CPA cache will be having the    information about all the Control(address) data.
    3.Module processor
    4.The file goes to send queue by the adapter engine, that file will be  picked by the internal XI adapter and the file    will be forwarded to the Integration engine.
    5.Pipeline steps follow the Integration Engine.
      Receiver determination, Interface determination, Msg split, Msg  mapping, Logical routing, Receiver aggrement, call adapter
    6.The file will go to receive queue, which was taken and forwarded to the adapter engine.

  • Which tables should I modify by SE16N for an error posting?

    Hi All,
    an user has posted some customer documents (with tax codes) with wrong document date and posting date.
    I have to modify these data by se16n.
    Which tables should I modify?
    Thanks
    Gandalf

    Hi  u can do 1 thing
    << Very bad advice removed >>
    Thnanks,
      Yog
    Edited by: Rob Burbank on Apr 6, 2009 10:49 AM

  • Which tables should i refer to know "A task is assigned to which employee?"

    Hi
    Which tables should i refer to know "A task is assigned to which employee?"
    I think pa_tasks.task_manager_person_id refers to the employee who is assigned a task. Please correct me if im wrong.
    Regards
    Vibhuti

    Vibhuti,
    pa_tasks.task_manager_person_id should not necessary be the person whom the task is assigned.
    You can try using following query:
    select distinct c.task_id TASK_ID,b.alias RESOURCE_NAME,c.task_name TASK_NAME
    from pa_resource_assignments a,
    pa_resource_list_members b,
    pa_tasks c
    where a.resource_list_member_id = b.resource_list_member_id
    and a.task_id = c.task_id
    and a.project_id = :project_id;
    --Sumit                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to Find out the from which table we can get the following fields?

    The following fields are from invoice data
    How to  know or from which table we get the following fields:
    Header Details:
    Manifest:, Finance Control #:, Alternate SID:, Carrier:, Container/Trailer #:, Hazmat Code:, Harmonizing Code, Freight Forwarder, Fiscal Rep., Ship From,  Notify Party
    Item Details:
    VAT/Tax Rate %, VAT/Tax Amount, Measurements, Net Weight, Gross Weight
    thanks

    Dear Krishnama
    Place your mouse on the required fields and press F1.  A box with header Performance Assistant will appear in front of you where you select "Technical information" (icon like hammer and spanner). 
    You can now see what table it is.
    thanks
    G. Lakshmipathi

  • Portal activity report, which tables in database?

    Hi,
    Could someone say, which tables in database have information for Portal Activity Report?
    I need to build my own report which I cant build using standart Portal Activity Report template.
    great thanks

    Hi,
    you really shouldn't access SAP portal db tables. These tables and the structure can change and SAP won't communicate this. This will give you more controll about the reports, as more data is collected.
    The data stored in the DB tables for the PAR are only aggregated data. If you need more detailed data, the PAR data won't help you. In fact, what can be displayed with the PAR data in the DB, can be achieved with the PAR reports.
    If you need to generate your own activity reports, you should considre using the other possibilities delivered with SAP Portal, like the Activity Data Collector:
    SAP Help: http://help.sap.com/saphelp_nw70/helpdata/en/47/873c99c84a199ce10000000a42189d/content.htm
    br,
    Tobias

  • If i have three numbers under one contact, how do i change or designate which one it dials first

    if i have three numbers under one contact, how do i change or designate which one to dial first

    in this case the third number down has a star and this is the number that gets dialed if i hit the left sit of the contact. how can i move the star?

  • How to get Cube Request Reportability From Tables?

    Hello,
    What table contains the reportability status on a request in a cube?  I want to know this so I can programitically figure out what cubes are reportable and which are not, thanks!

    Hope RSODSACTREQ will give you the loaded request and reporting availability information.
    Thanks,
    Arun

  • How to deploy Web Layout Report which is embedded in a JSP in 10.1.3 ??

    Hi there,
    we like to create a JSP report with web and paper layout. The paper layout is for pdf and the web layout to fit the page in the whole application. The whole application will be a JSF application running on 10.1.3. The reason why we like to use Reports is the capability of creating pdf and because of a couple of charts we have to build - using chart builder.
    Now the question is how the JSP has to be deployed because the Reports engine is running on another 10.1.2 server. So the JSP itself has to run on 10.1.3 but the Report has to run on 10.1.2 - is it possible, a problem or is it just easy?
    Regards, Peter

    Hi there,
    we like to create a JSP report with web and paper layout. The paper layout is for pdf and the web layout to fit the page in the whole application. The whole application will be a JSF application running on 10.1.3. The reason why we like to use Reports is the capability of creating pdf and because of a couple of charts we have to build - using chart builder.
    Now the question is how the JSP has to be deployed because the Reports engine is running on another 10.1.2 server. So the JSP itself has to run on 10.1.3 but the Report has to run on 10.1.2 - is it possible, a problem or is it just easy?
    Regards, Peter

  • How to find following data, from which tables

    Hi all,
    I want to display following fields in alv:
    total stock of a werks KG
    total stock of a werks EUR
    company total rated stock KG
    company total rated stock EUR
    MG blocked stock KG
    MG blocked stock EUR
    Purchase orders whose confirmation type is FG  KG
    Purchase orders whose confirmation type is FG  EUR
    All purchase orders whether it has confirmation type or does not have  KG
    All purchase orders whether it has confirmation type or does not have  EUR
    Thanks.
    deniz.

    hi,
    check these standard transactions.
    they may provide the data u required.
    EW82  MM Stock Value List
    AMRP  Send Stock/Requirements List
    LS26  Warehouse stocks per material
    LX02  Stock list
    MB5B  Stocks for Posting Date
    MB5K  Stock Consistency Check
    MB5L  List of Stock Values: Balances
    MB5L  List of Stock Values: BalancesMB5W  List of Stock Values
    MC.1  INVCO: Plant Anal. Selection: Stock
    MC.5  INVCO: SLoc Anal. Selection, Stock
    MC.9  INVCO: Material Anal.Selection,Stock
    MC50  INVCO: Analysis of Dead Stock
    MMBE  Stock Overview
    OMBX  Stock Balance Display
    OPPI  Available Stock

  • Available Stock status (MM) - which table should I take and what are the fields ??

    Kindly Suggest Me !!!
    Report that outputs stock, grouped by Material type and Plant. The output shows Material no, Storage location, unit of measure and description in addition to group table using ALV.
    Thanks in adv.
    Bunty ( New to SAP )

    Hello Bunty
    When you run the report put in current month in date fields, then when you are in the report you can add the different fields you need.
    At the top there is a button called 'Switch Drilldown', this enables you to view by Material Type etc. Fourth from the right is another button that looks like the standard variant button, here you can add or remove different figures for valuing the stock.
    Don't forget that this report views periods so you can use average stock etc by changing the month.  Also make sure that any stock reports you are using reconcile with each other.
    Michael

  • HT1443 I have a macbook with mac osx 10.5.8 and i have a new hp printer that requires mac osx v10.6 or mac osx v10.7. do i need to upgrade and if so how do i do it and which version should be downloaded

    I have a Macbook with Mac OSX 10.5.8 and i have a new hp printer that recommends version 10.6 or 10.7. Do i need to upgrade, what version, and how do I get and install this upgrade? Thanks

    Full instructions here:
    https://discussions.apple.com/thread/4540761

  • I now have two copies of the same song in iTunes.  One is "Matched" and one is "Purchased." How do I remove one, and which one should I remove?

    I subscribe to iTunes Match.  One day a couple months ago I noticed that my iTunes library was populated by a new collection of songs.  Songs I already had and were identified as Matched.  All of a sudden, I not only had the"Matched" copy, but also another copy labelled "Purchased."  When I went to "View" --> Duplicates, sure enough there was about 180 songs that had been added to duplicates.  All 180 were identified as "Purchased" and all were identified as purchased on the same date.  That common date was often several years after the date associated with the Matched version.  ALL had the SAME purchase date.  No one in our house of 4 Mac computers sharing the same Apple Account and having the same iTunes libraries had purchased any songs on that date...7/19/13.  All at around 10:30 PM, plus or minus a minute.
    Has anyone had this same experience?  I tried to remove the "Matched" copy of each song knowing that the "Purchased" copy would not count to my iTunes Match total.  But, that didn't work.  It appears I am stuck with both copies.
    When the recent update to iTunes (v11.0.5) came out, I thought it may address this issue.  No go.  I still have all these duplicates of the same song.  I mean...THE SAME SONG!  AT least as far as I can tell by checking all the information associated with each.  Same name,  same artist, same everything.  As far as I can tell, there is nothing that could "fake out" iTunes Match to think these were different versions.
    And ideas what happened and what I can do?

    Hello mracole,
    I checked my "purchases" and the 7/19/13 purchases don't show up.  However, the earlier versions from usually several years back...the ones that are Matched...often do show up in my Purchases.  I suspect that somehow those REALLY purchased several year old versions were deleted and redownloaded by me so I could change them to the 256 kbps versions under iTunes Match.  They were probably 128 kbps versions originally when purchased.
    Why the earlier versions that were really purchased are now identified as Matched is puzzling.
    Why I now have Purchased versions from 7/19/13 is puzzling too...especially since these versions do NOT show up in my purchases.
    Calling Apple Support if a good idea unless someone can explain this mystery.  I might even take one of my laptops to the Apple store and show a Genius.
    Thank you very much for taking the time to respond, Mr. Luigi

  • From which tables the data is coming in to transaction fields, how to find?

    Hi abapers,
    I am new to abap,
    I have some data in one transaction.
    I want to know that one particular record in a field from which table the data is coming, how do i know?
    How to find that for the transaction is haveing header and item tables?
    How to find that what are tables used for that transaction?
    by presseing f1 on a field we can find table name or structure name along with field name of that particular field?
    If structrure means how to find that field from which table it is coming?
    I  found table name for some of the fields like this by pressing f1,double clicking on structure name?
    but some fields in another transaction does not showing the table names only structure it is showing?
    Moderator Message: Basic Question. Please search.
    Edited by: kishan P on Nov 13, 2010 3:20 PM

    hi ,
    you can  do that by Transation st05
    where you have to 1) activate trace  ,
      2) execute transaction  
    3) deactivate trace after transaction complete 
    4) display trace 
    there you can find all  step by step flow from where data has been retirved and tables also  .
    if you dont no take help from Basis  People  .
    Regards
    Deepak.

Maybe you are looking for

  • Touch up text acrobat 9

    Howdy, I have a pdf printed from illustrator. I want to be able to use the touch up text tool to change text in the pdf. I have tried to embed the entire font in the PDF, but keep getting it reported (preflight) as a subset (but thats not the main is

  • In IE, triple clicking will select an antire paragraph. In Firefox, double-clicking will select a word, but it stops there. Is there a way to get the IE behavior?

    In IE and most Windows apps, double-click will select a word and triple click will select a paragraph. In Firefox on Windows WP, double-click selects a word, but triple click does nothing more. Is there some way I can get Firefox to select the paragr

  • SIMPLE PROBLEM DRIVING ME CRAZZY!!!...please help

    Hi, ive tried searching for this problem all over the forums, but it seems most people have more complicated ones related to this: I have a Jtable in a JtabbedPane... For the JTable i have RESIZE_ALL_COLUMNS chosen...but resize my application, the JT

  • BAM - Nor results on the bam weppage

    Hello everyone, Dose anybody know why there is no results to show on the BAM-Portal. I don't get any error or exceptions in the application log. Even the Tutorial 4: Business Activity Monitoring, there were no error messages during the implementation

  • Getting green or purple frames after render

    Ever since the latest updates, I am getting bright green or purple frames that appear in my footage after rendering.. it's HORRIBLE and make it's basically impossible for me to edit anything as I have to go back in and re-render every time a new gree