Simple Queries on Reports

Hi, I have some simple queries on reports, which are following. Any help is appreciated!!
Q1. Where does following information go ??
a. The heading that I want to print on only the first page of the Report, like Report Name,
Company name, should go to Margin or Header or Body ?
b. Where does the page numbers go ?
c. Field titles/labels, that should print on the beginning of every page of the report
Q2. How can I restrict the printing of a cloumn to once, when a same value is repeating more than once.
This is the first column of the report, so if it's value is same in the next rows, i need to print it only once.
Should I use format trigger or that can be simply done my setting some properties ? If format trigger,
then how ?
Q3. Is it possible that I have two parameters in my Parameter Form and after accepting first parameter
value I show the the list of second parameters on the basis of first value choosen by the user ?
e.g. If somebody chooses dept# 10, and then second field displays all the employees of dept# 10.
Q4. Im my report, I want always a last page that is dipalying data from altogether different query which is no
way related to my other main query. This is query is pretty simple and I just want to display the
data always on the last page of the report. How would I handle the layout of this page ??
Thanks!!
Shalu

Hi Shalu,
Q1-
a)If you want to Print heading on the First Page ONLY then it sholud be
in MAIN SECTION/BODY olny.(Fields Property- Print OBject On- Should be
First Page).
b)Bottom-Right of the MARGIN Section.
c)if Report Heading is in Main Section then in the layouts Main Frame,
inside that you can keep (Field titles/labels).
Q2- Go to Report Wizard try these two Report Style(Group Above and Group Left)
i think this will solve your Problem...
Q3- I thinnnnnnnk this is not possible.
Q4- You can use Trailer Section of the Report.
Regards,
Ravi

Similar Messages

  • Simple queries in portal

    I am having some difficulty writing what I think should be simple queries for the portal. I cannot find any documentation about the tables and how they are linked. For instance, I need a report that gives information about items such as what folder they are in and what content area. I cannot determine how to link the content area into the query.

    Hi ,
    general structure to display an iview
    Role -> Work set-> Page-> Iview .
    If u want to create all these u have to go
    1) Content Administration .-> In the list u will End Conten provided by SAP -> Right Click on -> select create iview (or) page (or ) Work Set or (Role )
    selecte Create role -> U will seee ne page - > give name of role  , role id . -> click on next-> finish .
    u will get like
    u want edit the object right .
    just click on object editing .
    in right side u will get one  page there u will see Entry point should be enabled thats .
    ur role is created now .
    now u have to assign this role partcular user right
    go to User Administration ->give user name -> search -> u will get ur user name -> select it user -> then u will sear for availa ble role -> type ur role id there click on search - > ur role is displayed over there -> Click on ADD -> Save it .
    thats it ur role is added ur required user
    now logoff from poratl and relogin u will see ur role .in top level navigation .
    if u want measn i will send u with screen shot k .
    Regards ,
    venkat

  • Simple PL/SQL Report - Using Break on and Compute Sum - Not So Simple

    Good morning, All:
    I have a simple pl/sql report that is not so simple. Basic on the code below, would like to add a blank line/row after the resulting "sum" row to make it easier to read. Any and all help would be appreciated.
    Thank you.
    Preston@Large
    Code:
    =======================
    BREAK ON ALM_OG_CAMPAIGN_CODE
    COMPUTE SUM OF ALM_OG_AMOUNT ON ALM_OG_CAMPAIGN_CODE
    set linesize 1024
    set pagesize 60
    set newpage 0
    set serveroutput on
    SPOOL &so_outfile;
    ttitle center 'Wayne State University' skip 1 Left 'WSU Online Giving Essentials Report' skip 2
    select TO_CHAR(sysdate, 'mm/dd/yyyy hh:mm AM') "Report Date" from dual;
    CLEAR COLUMNS
    column ALM_OG_ACCI_CODE heading "ACCI|CODE" format a10
    column ALM_OG_AMOUNT heading "AMOUNT|DONATED" format $999,999,999.99
    column ALM_OG_CAMPAIGN_CODE heading "CAMPAIGN|CODE" format a14
    select
    ALM_OG_CAMPAIGN_CODE,
    ALM_OG_ACCI_CODE,
    ALM_OG_AMOUNT
    From WSUALUMNI.WSU_ONLINE_GIVING_TABLE
    ORDER BY ALM_OG_CAMPAIGN_CODE;
    CLEAR COLUMNS
    spool off
    Output:
    WSU Online Giving Essentials Report
    Report Date
    ======================
    06/05/2009 10:06 AM
    1 row selected.
    Wayne State University
    WSU Online Giving Essentials Report
    CAMPAIGN ACCI AMOUNT
    CODE CODE DONATED
    ====== ======== ==========
    sum $560.00
    NUR 444814 $10.00
    ***** =======
    sum $10.00
    PHS 445216 $10.00
    ***** =======
    sum $10.00
    PRES 445211 $450.00
    445211 $60.00
    445211 $250.00
    ***** =======
    sum $760.00
    SBA 444216 $10.00
    ***** =======
    sum $10.00
    SSW 444469 $10.00
    ***** =======
    sum $10.00

    Prestone,
    Welcome to the Forum!
    I have used skip 2 lines you can use 1
    SQL> break on job report skip 2
    SQL> compute sum of sal on job report
    SQL> select job , sal from emp order by job ;
    JOB              SAL
    ANALYST         3000
                    3000
    sum             6000
    CLERK           1300
                     950
                     800
                    1100
    sum             4150
    MANAGER         2850
                    2975
                    2450
    sum             8275
    PRESIDENT       5000
    sum             5000
    SALESMAN        1500
                    1250
                    1250
                    1600
    sum             5600
    14 rows selected.READ
    Quick SQL*Plus Guide
    http://download.oracle.com/docs/cd/B14117_01/server.101/b12171/toc.htm
    SQL*Plus Reference
    http://download.oracle.com/docs/cd/B14117_01/server.101/b12170/toc.htm
    SS

  • Simple queries

    Hiya,
    I'm trying to run simple queries against my database but get the following error:
    Error: Could not fetch DOM element for doc id: 9167 in ..../mydbxml/lib/i386-linux-thread-multi/Sleepycat/DbXml.pm, line 497
    Some simplified test code that still generates this error is:
         $fullQuery = 'collection("/local/scratch/ar283/anthology/dbxml/anthology.dbxml")//PAPER';
         $txn = $mgr->createTransaction();
         $context = $mgr->createQueryContext();
         $expression = $mgr->prepare($txn,$fullQuery,$context);
         $results = $expression->execute($txn,$context);
         my $value;
         while( $results->next($value) ) {
    print "$value\n";
    print $results->size() . " objects returned for expression '" . "$fullQuery'\n" ;
         $txn->commit();
    I've also tried variations on the $results = $expression->execute($txn,$context); line, e.g.
         $results = $mgr->query($txn,$fullQuery,$context);
         $results = $mgr->query($txn,$fullQuery);
    But the same error occurs. Can anyone tell me what I'm doing wrong?
    Thanks,
    Anna

    Have you removed
    any environment files by accident.Not that I'm aware of. What files? From within my code? How could I be doing this?
    Once you are in this situation, it won't be fixed
    other than by recreating the data.Okay, thanks.
    How far do you get in your application before you hit
    this problem? I.e. what is
    working?Well, in the case of the the test query at the end of the building script, I successfully create the database as follows:
    my $theContainer = "/local/scratch/ar283/anthology/dbxml/anthology.dbxml";
    my $env = new DbEnv(0);
    $env->set_cachesize(0, 64 * 1024, 1);
    $env->open("/local/scratch/ar283/anthology/dbxml/",
    Db::DB_INIT_MPOOL|Db::DB_CREATE|Db::DB_INIT_LOCK|Db::DB_INIT_LOG|Db::DB_INIT_TXN|Db::DB_RECOVER, 0);
    my $mgr = new XmlManager($env);
    my $txn = $mgr->createTransaction();
    if ($mgr->existsContainer($theContainer)){
    $mgr->removeContainer($txn,$theContainer);
    $txn->commit();
    $txn = $mgr->createTransaction();
    my $container = $mgr->openContainer($txn, $theContainer, Db::DB_CREATE);
    $txn->commit();
    Then I populate it in a for loop of transactions like:
    my $xmlDoc = $mgr->createDocument();
    $xmlDoc->setContent( $recordString );
    $xmlDoc->setName( $theName );
    $container->putDocument($txn, $xmlDoc);
    $txn->commit();
    That all seems to work fine. When I tag on the following code for querying the container, I get the error message:
    $fullQuery = 'collection("/local/scratch/ar283/anthology/dbxml/anthology.dbxml")//PAPER';
    $txn = $mgr->createTransaction();
    $context = $mgr->createQueryContext();
    $expression = $mgr->prepare($txn,$fullQuery,$context);
    if ($debug){
         print "$0: full query is $fullQuery, expression is $expression\n";
    $results = $mgr->query($txn,$fullQuery);
    $txn->commit();
    I get my debug output of "full query is collection("/local/scratch/ar283/anthology/dbxml
    /anthology.dbxml")//PAPER, expression is XmlQueryExpression=ARRAY(0x87a7770)" then the next line causes the error.

  • Simple queries, but vital!!

    I have 3 very simple queries which I cannot figure out. I
    have little experience on Dreamweaver MX, and am in a position of
    having to edit and launch an existing site...
    1) I am trying to add a basic border around images and tables
    - just a thin black line to make them look neater - how do I go
    about this?
    2) to prepare for publishing, I assume I need to save all my
    pages and images in one place, and assign each link/image an
    address from my C-drive. At the moment everything is stored in, for
    instance, C:\Documents and Settings\Adam Lucas\My Documents\website
    updates\images etc - is this OK or do I need a more simple address
    to prepare for publishing?
    3) how do I go about publishing my website once all the
    finalised elements exist on my C-drive?
    any advice massively appreciated...

    > I have little experience on Dreamweaver MX,
    1. What is your knowledge level of HTML and CSS?
    2. Which Dreamweaver - is it 6.0 or 6.1? If it's the former,
    please update
    it to the latter from the updater on the Adobe site - there
    were quite a few
    quirks in the former that will make your life miserable.
    > 1) I am trying to add a basic border around images and
    tables - just a
    > thin
    > black line to make them look neater - how do I go about
    this?
    Andy has your answer - use CSS.
    > 2) to prepare for publishing, I assume I need to save
    all my pages and
    > images
    > in one place, and assign each link/image an address from
    my C-drive. At
    > the
    > moment everything is stored in, for instance,
    C:\Documents and
    > Settings\Adam
    > Lucas\My Documents\website updates\images etc - is this
    OK or do I need a
    > more
    > simple address to prepare for publishing?
    You *MUST* start with a local defined site. Do you have one?
    Have you read
    DW's F1 help about how to define a local and a remote site,
    and how to PUT
    and GET files?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "marcoppizio" <[email protected]> wrote in
    message
    news:[email protected]...
    >I have 3 very simple queries which I cannot figure out. I
    have little
    > experience on Dreamweaver MX, and am in a position of
    having to edit and
    > launch
    > an existing site...
    >
    > 1) I am trying to add a basic border around images and
    tables - just a
    > thin
    > black line to make them look neater - how do I go about
    this?
    >
    > 2) to prepare for publishing, I assume I need to save
    all my pages and
    > images
    > in one place, and assign each link/image an address from
    my C-drive. At
    > the
    > moment everything is stored in, for instance,
    C:\Documents and
    > Settings\Adam
    > Lucas\My Documents\website updates\images etc - is this
    OK or do I need a
    > more
    > simple address to prepare for publishing?
    >
    > 3) how do I go about publishing my website once all the
    finalised elements
    > exist on my C-drive?
    >
    > any advice massively appreciated...
    >

  • Extensive IO and CPU for simple queries

    Hi,
    I have a machine using oracle 9.2.0 and solaris 10.
    For every simple queries, it very big IO and a lot of CPU. This is only happend on one particular machine(We have same version db and soalris on other mahcine and it works fine).
    One example queris is when I use Enterprise Manager to get the "configuration" information of the instance,it use 50% IO. I get the trace file and tkprof as following:
    SELECT UNIQUE sp.name, sp.sid, DECODE(p.type, 1, 'Boolean', 2, 'String', 3,'Integer', 4, 'Filename', ' '), sp.value, p.issys_modifiable, p.description FROM v$spparameter sp, v$parameter p WHERE sp.name = p.name ORDER BY sp.name,sp.sid
    call count cpu elapsed disk query current rows
    Parse 4 0.02 0.01 0 0 0 0
    Execute 4 0.00 0.00 0 0 0 0
    Fetch 9 4.36 34.12 7980 0 0 783
    total 17 4.38 34.13 7980 0 0 783
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 5 (SYSTEM)
    Rows Row Source Operation
    261 SORT UNIQUE (cr=0 pr=0 pw=0 time=1214116 us)
    261 HASH JOIN (cr=0 pr=0 pw=0 time=1221296 us)
    361485 MERGE JOIN CARTESIAN (cr=0 pr=0 pw=0 time=370609 us)
    261 FIXED TABLE FULL X$KSPSPFILE (cr=0 pr=0 pw=0 time=19777 us)
    361485 BUFFER SORT (cr=0 pr=0 pw=0 time=6413 us)
    1385 FIXED TABLE FULL X$KSPPCV (cr=0 pr=0 pw=0 time=4180 us)
    1379 FIXED TABLE FULL X$KSPPI (cr=0 pr=0 pw=0 time=7001 us)
    It seems Oracle FTS the X$KSPPCV and X$KSPPI.
    Can anybody give me some suggestion to improve the performance?
    thanks.

    Is there a difference in the query plans on the two machines?
    Did you analyze the SYS and SYSTEM schemas on one system and not the other?
    Are there different initialization parameters on the two machines?
    What do you mean by "it use 50% IO"? I'm not sure what that means and I'm not sure how you're measuring that.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Copy queries and reports from production to qa

    Hi,
    One of our customers has up to now created their BEx queries and reports directly in production
    But from now on they are going to create them in dev and then transport to qa and prod.
    Is there any way to transport the already existing queries/reports from prod to qa?
    BR,
    Linda

    Hello,
    You have to set up the transport ( Your BASIS can prepare transport landscape )  to bring the query transported from Prod to test environment
    But you can copy Workbooks from Production to develpment.Open the workbook from Production ,disconnect from server,then save as new workbook or existing workbook..now log into Dev system and save workbook under required role.
    Regards,
    SRIKANTH

  • Simple data extraction reports by SAPu2019s SQL

    Hi,
    Can you please let me know how can I develop simple data extraction report using SAP's sql.
    Regards,
    Koushik

    HI,
    I have to do a PoC on Data Quality checks. In which there will be few reporting tables. One will be daily agreegate, one weely agreegate etc. Now I have to show those the data in form of reports. and Option is also required to drill down and drill up for those reports.
    Please let me know if I am able to clarify my question or not.
    Regards,
    Koushik

  • Simple Disk Space report

    Hi All,
    Can you guys have any simple disk space report to get total Disk and free Space for a group of servers

    For disk free space report for a group computers
    1) Create a computer groups
    2) Reporting--> Microsoft Generic Report Library --> Performance Detail
    3) Create data series with object is computer group which you defined in 1) and rules as logical disk free megabytes 2008 and logical disk free megabytes windows server 2012
    4) Run the report
    5) View detail of each machine, you should click performance detail for each object
    For total disk,
    1) Create a custom group which contains all logical disk drive of conscious servers
    2) Reporting--> Microsoft Generic Report Library --> Custom Configuration
    3) In the object, select the group defined in 1)
    4) In reprt fields, select "Size MegaBytes"
    Roger

  • Multiple queries in reports with XSL-FO and without BI Publisher

    Hello,
    I'm trying to find out how to create a complex report in APEX for printing. The report contains multiple queries in different layout, images and static text.
    I don't have the possibility to use BI Publisher and I'm not an XSL-FO expert. However I'm trying to find out if it's possible at all not using BI Publisher.
    I'm having the impression that multiple report queries and layouts in APEX can only be used in combination with BI Publisher. I'd be glad if someone could give me an example of how to do multiple queries and layout in a single report only using XSL-FO.
    Thanks in advance,
    Jan Willem

    Hello,
    I'm trying to find out how to create a complex report in APEX for printing. The report contains multiple queries in different layout, images and static text.
    I don't have the possibility to use BI Publisher and I'm not an XSL-FO expert. However I'm trying to find out if it's possible at all not using BI Publisher.
    I'm having the impression that multiple report queries and layouts in APEX can only be used in combination with BI Publisher. I'd be glad if someone could give me an example of how to do multiple queries and layout in a single report only using XSL-FO.
    Thanks in advance,
    Jan Willem

  • Multiple queries on report builder?

    I know how to create a report in report builder with a single
    query but in this case i would like to create a single page report
    that consist of 3 sections containing results from 3 seperate
    queries. how do i do something like this?

    Using subreports
    Subreports let you nest a report within your report. The data
    you
    display in a subreport is typically related to the data in
    the main
    report and you enable this by passing one or more subreport
    parameters
    to the subreport. However, the data displayed in a subreport
    can also be
    unrelated to the data in the main report.
    http://www.adobe.com/livedocs/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm? context=ColdFusion_Documentation&file=part_dev.htm
    If that link doesn't work, it is located here in either the
    bundled or
    on line documentation.
    ColdFusin MX Developer's Guide > Creating Reports for
    Printing >
    Creating reports with the ColdFusion MX 7 reporting >
    Using subreports

  • Create Simple Printable SQL Reports in APEX 3.2 Without a Print Server

    Oracle Apex 3.2
    Oracle 11g
    OHS
    I thought I'd post an answer on how to get a printable SQL report in Oracle Apex without having to configure a print server. I'm sure that similar things have been posted in various other places, but I found the documentation for using custom row templates (to create a printable report) to be incomplete at best. For my needs, I was not looking for an awe inspiring report printout, but rather simple directory information printouts. For example, if you wanted a printable report to look like this:
    =================================
    CURRENT ACTIVE EMPLOYEES REPORT
    =================================
    First Name: Bob                  Employee ID: 0000000000
    Last Name: Swarts              Company Credit Card Number: 0000-0000-0000-0000
    Middle Initial: F                  Social Security Number: 000-00-0000
    First Name: Sue                  Employee ID: 1111111111
    Last Name: Johnson           Company Credit Card Number: 1111-1111-1111-1111
    Middle Initial: G                 Social Security Number: 111-11-1111
    etc.....In MS Access, doing this is very easy. From what I understand, this is also very easy to do this using PDF software with a print server. However, if you are like me, you don't want to waste time and money by obtaining and configuring a print server (even if it is free). However, never fear because you can create simple reports like this with relatively minimalistic effort; and you can do so without having to configure a print server.
    1.) Create a new page
    2.) Create a new sql query report region on the page
    3.) Make your query just as you would normally.
    For this example the query would be:
    select first_name, employee_id, last_name, company_credit_card_number, middle_initial, social_security_number from employee_table4.) Go to "Shared Components"
    5.) Under "User Interface" click on "Templates"
    6.) Click on the "Create" button
    7.) Select "Report"
    8.) Select "From Scratch"
    9.) For the "Template Class," choose one of the "custom" classes. For the "Template Type," choose "Named Column"
    10.) Click the "Create" button
    11.) Now that you created a custom row template, go back to "Shared Components" and then to "Templates"
    12.) Find your custom template and click on it
    CUSTOM TEMPLATE HOW TO
    1.) In the "Row Template 1" textbox, you are going to create some custom css that will display the data on the page. The css to make the report look like the report above would be:
    <div style = text-align: justify">
    <table>
    <tr>
    <td style = "width: 200px"><b>First Name: #1#</b></td>
    <td style = "width: 225px">&nbsp</td>
    <td style = "width: 215px"><b>Employee Id: #2#</b></td>
    <tr>
    <td style = "width: 200px">Last Name: #3#</td>
    <td style = "width: 225px">&nbsp</td>
    <td style = "width: 215px">Company Credit Card Number: #4#</td>
    <tr>
    <td style = "width: 200px">MI: #5#</td>
    <td style = "width: 225px">&nbsp</td>
    <td style = "width: 215px">Social Security Number: <b>#6#</b></td>
    </tr>
    </table>
    <p style = "page-break-after: always">----------------------------------------------------------------</p>
    </div>
    {code}
    As you probably figured out, the numbers between the two pound signs ("#") are substitution strings for the variables in your select query in the SQL report.  As you have also probably noticed, the "page-break-after: always" line will always make it so that only one report is shown on a page.  To fix this, we will need to use logic and row template 2.
    2.)  For the "Row Template 1 Condition," select "Use Based on PL/SQL Expression" from the select list.
    3.)  In the textbox for the row template 1 expression enter in the following:  {code}substr('#rownum#',-1) = 0 or substr('#rownum#',-1) = 5{code}
    ***** This condition will make sure that this template is applied when the last digit in the row number is either a "0" or a "5."  So, only 5 reports will be displayed per page.
    4.)  Now go down to "Row Template 2" and enter in the following in the textbox:
    {code}
    <div style = text-align: justify">
    <table>
    <tr>
    <td style = "width: 200px"><b>First Name: #1#</b></td>
    <td style = "width: 225px">&nbsp</td>
    <td style = "width: 215px"><b>Employee Id: #2#</b></td>
    <tr>
    <td style = "width: 200px">Last Name: #3#</td>
    <td style = "width: 225px">&nbsp</td>
    <td style = "width: 215px">Company Credit Card Number: #4#</td>
    <tr>
    <td style = "width: 200px">MI: #5#</td>
    <td style = "width: 225px">&nbsp</td>
    <td style = "width: 215px">Social Security Number: <b>#6#</b></td>
    </tr>
    </table>
    <p>----------------------------------------------------------------</p>
    </div>look familiar? that is because it exactly the same code as above, except without the page-break-after piece.
    5.) For the "Row Template 2 Condition," select "Use Based on PL/SQL Expression" from the select list.
    6.) In the textbox for the row template 2 expression enter in the following: substr('#rownum#',-1) != 0 or substr('#rownum#',-1) != 5***** This condition will make sure that this template is applied when the last digit in the row number IS NOT a "0" or a "5."
    7.) Scroll down to column headings and enter this in the textbox for the "Column Heading Template": OMIT
    8.) Click the "Apply Changes" button
    9.) Now go back to your application and the page you want to apply the custom report to
    10.) On the report, click on the report tab
    11.) Scroll down to "Layout and Pagination"
    12.) Click on the "Report Template" select list
    13.) Select your custom template
    14.) Click the "Apply Changes" button and run the page
    Try printing the report, if it does not print correctly, try it in Opera, Safari, Internet Explorer, Firefox, and Google Chrome. Please note that it is my understanding that only Firefox does not understand the css "page-break-after: always"
    If needed, add some css to the page to hide tabs and other items when you print.
    ~Andrew Schulltz

    DOH. Too much copy/paste.
    In my code, I was setting an application variable to contain the email address I was retrieving from AD. Once commented out, it worked fine.
              IF l_attr_name = 'mail' THEN
                 APEX_UTIL.SET_SESSION_STATE('F111_USER_EMAIL',l_vals(i));
              END IF;

  • Are there any examples of queres or reports for the Access DB TS can generate?

    I am currently useing the default TestStand SPC database storage routine to store the results of all runs. Are there any tools, queries, reports, etc. to help me post process this database? I thought I would check here before making something myself. Mainly looking for something that will do a scatter plot for a certian test so I can see where all the data is falling within the limits.

    Currently NI does not have any post processing tools to assist you in formating the result information specifically for TestStand databases. Obviously using LabVIEW or LW/CVI or some other programming language you could write your own program to do such post processing.
    Scott Richardson - NI
    Scott Richardson
    National Instruments

  • Simple Abap PO report with Item text

    Hello Abap,
    Need some help as am more on functional side and our abaper is 2months holiday.
    Need to develop simple reports with the following information.
    EKKO-EBELEN,
    EKKO-WAERS,
    EKPO-EBELP
    EKPO-TXZ01
    EKPO-MENGE
    EKPO-NETPR
    EKPO-NETWR
    ITEM TEXT (TEXT ID-F01) - 100char to be printed.
    Tried to developed from scratch but no luck. Need it asap. Thanks in advance.

    Hi,
    I don't have test data but I think the following code will give you an idea, try to fill in the FM "READ_TEXT" below with your own parameter (check with table STXH).
    REPORT ZTEST.
    TYPES: BEGIN OF TY_RESULT,
       EBELN TYPE EKKO-EBELN,
       WAERS TYPE EKKO-WAERS,
       EBELP TYPE EKPO-EBELP,
       TXZ01 TYPE EKPO-TXZ01,
       MENGE TYPE EKPO-MENGE,
       NETPR TYPE EKPO-NETPR,
       NETWR TYPE EKPO-NETWR,
       ITEM_TEXT TYPE CHAR100,
       END OF TY_RESULT.
    DATA: GT_EKPO TYPE STANDARD TABLE OF EKPO,
           GS_EKPO TYPE EKPO,
           GT_EKKO TYPE STANDARD TABLE OF EKKO,
           GS_EKKO TYPE EKKO,
           GT_RESULT TYPE STANDARD TABLE OF TY_RESULT,
           GS_RESULT TYPE TY_RESULT,
           LV_TAB_IND TYPE SY-TABIX,
           GT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
           GS_FIELDCAT TYPE LINE OF SLIS_T_FIELDCAT_ALV,
           GV_NAME TYPE CHAR70,
           GS_TLINE TYPE TLINE,
           GT_TLINE TYPE STANDARD TABLE OF TLINE.
    SELECT-OPTIONS: SO_EBELN FOR GS_EKKO-EBELN,
                     SO_WAERS FOR GS_EKKO-WAERS.
    START-OF-SELECTION.
       PERFORM SELECTION.
       PERFORM BUILD_FIELDCAT.
       PERFORM DISPLAY.
    *&      Form  SELECTION
    *       text
    FORM SELECTION.
       SELECT EBELN WAERS FROM EKKO INTO CORRESPONDING FIELDS OF TABLE GT_EKKO
         WHERE EBELN IN SO_EBELN
         AND WAERS IN SO_WAERS.
       IF GT_EKKO[] IS NOT INITIAL.
         SELECT EBELN EBELP TXZ01 MENGE NETPR NETWR FROM EKPO INTO CORRESPONDING FIELDS OF TABLE GT_EKPO
           FOR ALL ENTRIES IN GT_EKKO
           WHERE EBELN EQ GT_EKKO-EBELN.
         SORT GT_EKPO BY EBELN.
       ENDIF.
       LOOP AT GT_EKKO INTO GS_EKKO.
         CLEAR GS_RESULT.
         CLEAR LV_TAB_IND.
         MOVE-CORRESPONDING GS_EKKO TO GS_RESULT.
         READ TABLE GT_EKPO TRANSPORTING NO FIELDS WITH KEY EBELN = GS_EKKO-EBELN BINARY SEARCH.
         IF SY-SUBRC EQ 0.
           LV_TAB_IND = SY-TABIX.
           LOOP AT GT_EKPO INTO GS_EKPO FROM LV_TAB_IND.
             IF GS_EKKO-EBELN NE GS_EKPO-EBELN.
               EXIT.
             ENDIF.
             MOVE-CORRESPONDING GS_EKPO TO GS_RESULT.
             CONCATENATE GS_RESULT-EBELN GS_RESULT-EBELP INTO GV_NAME.
             CONDENSE GV_NAME NO-GAPS.
             CALL FUNCTION 'READ_TEXT'
               EXPORTING
                 CLIENT         = SY-MANDT
                 ID             = 'F01'
                 LANGUAGE       = SY-LANGU
                 NAME           = GV_NAME
                 OBJECT         = 'TEXT'
               TABLES
                 LINES          = GT_TLINE
               EXCEPTIONS
                 NOT_FOUND      = 1.
             LOOP AT GT_TLINE INTO GS_TLINE.
               IF SY-TABIX EQ 1.
                 GS_RESULT-ITEM_TEXT = GS_TLINE-TDLINE.
               ELSE.
                 CONCATENATE GS_RESULT-ITEM_TEXT GS_TLINE-TDLINE INTO GS_RESULT-ITEM_TEXT.
               ENDIF.
             ENDLOOP.
             APPEND GS_RESULT TO GT_RESULT.
           ENDLOOP.
         ENDIF.
       ENDLOOP.
    ENDFORM.                    "SELECTION
    *&      Form  BUILD_FIELDCAT
    *       text
    FORM BUILD_FIELDCAT.
       CLEAR GS_FIELDCAT.
       GS_FIELDCAT-COL_POS         =  1.
       GS_FIELDCAT-TABNAME         =  'GT_RESULT'.
       GS_FIELDCAT-FIELDNAME       =  'EBELN'.
       GS_FIELDCAT-SELTEXT_L       =  'Purchasing Document Number'.
       APPEND GS_FIELDCAT TO GT_FIELDCAT.
       CLEAR GS_FIELDCAT.
       GS_FIELDCAT-COL_POS         =  2.
       GS_FIELDCAT-TABNAME         =  'GT_RESULT'.
       GS_FIELDCAT-FIELDNAME       =  'WAERS'.
       GS_FIELDCAT-SELTEXT_L       =  'Currency Key'.
       APPEND GS_FIELDCAT TO GT_FIELDCAT.
       CLEAR GS_FIELDCAT.
       GS_FIELDCAT-COL_POS         =  3.
       GS_FIELDCAT-TABNAME         =  'GT_RESULT'.
       GS_FIELDCAT-FIELDNAME       =  'EBELP'.
       GS_FIELDCAT-SELTEXT_L       =  'Item No'.
       APPEND GS_FIELDCAT TO GT_FIELDCAT.
       CLEAR GS_FIELDCAT.
       GS_FIELDCAT-COL_POS         =  4.
       GS_FIELDCAT-TABNAME         =  'GT_RESULT'.
       GS_FIELDCAT-FIELDNAME       =  'TXZ01'.
       GS_FIELDCAT-SELTEXT_L       =  'Short Text'.
       APPEND GS_FIELDCAT TO GT_FIELDCAT.
       CLEAR GS_FIELDCAT.
       GS_FIELDCAT-COL_POS         =  5.
       GS_FIELDCAT-TABNAME         =  'GT_RESULT'.
       GS_FIELDCAT-FIELDNAME       =  'MENGE'.
       GS_FIELDCAT-SELTEXT_L       =  'Purchase Order Quantity'.
       APPEND GS_FIELDCAT TO GT_FIELDCAT.
       CLEAR GS_FIELDCAT.
       GS_FIELDCAT-COL_POS         =  6.
       GS_FIELDCAT-TABNAME         =  'GT_RESULT'.
       GS_FIELDCAT-FIELDNAME       =  'NETPR'.
       GS_FIELDCAT-SELTEXT_L       =  'Net Price'.
       APPEND GS_FIELDCAT TO GT_FIELDCAT.
       CLEAR GS_FIELDCAT.
       GS_FIELDCAT-COL_POS         =  7.
       GS_FIELDCAT-TABNAME         =  'GT_RESULT'.
       GS_FIELDCAT-FIELDNAME       =  'NETWR'.
       GS_FIELDCAT-SELTEXT_L       =  'Net Order Value'.
       APPEND GS_FIELDCAT TO GT_FIELDCAT.
       CLEAR GS_FIELDCAT.
       GS_FIELDCAT-COL_POS         =  8.
       GS_FIELDCAT-TABNAME         =  'GT_RESULT'.
       GS_FIELDCAT-FIELDNAME       =  'ITEM_TEXT'.
       GS_FIELDCAT-SELTEXT_L       =  'Item Text'.
       APPEND GS_FIELDCAT TO GT_FIELDCAT.
    ENDFORM.                    "BUILD_FIELDCAT
    *&      Form  DISPLAY
    *       text
    FORM DISPLAY.
       CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
         EXPORTING
           I_CALLBACK_PROGRAM      = SY-REPID
           IT_FIELDCAT             = GT_FIELDCAT[]
         TABLES
           T_OUTTAB                = GT_RESULT
         EXCEPTIONS
           PROGRAM_ERROR           = 1
           OTHERS                  = 2.
       IF SY-SUBRC <> 0.
         MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
       ENDIF.
    ENDFORM.                    "DISPLAY
    Thanks.
    Regards,
    Keng Haw

  • Export - custom queries and reports, and security profiles

    We would like to keep a copy of our customizations to the application. 
    There are ways to import queries, reports and profiles into the app.  Is there any way to export the following to something like a CSV file for the following:
    - custom queries (all tabs)
    - custom reports (all tabs)
    - security profiles (custom and out of box u2013 all access rights)
    Thanks,
    Jerry

    Jerry,
    There are no standard queries that extract security profiles, Query Groups, Reports or Query Defintiions from the system. 
    However you can build custom queries that support this functionality.  During an implementation project I created some custom queries which allowed you to extract these objects for documenting purposes  We likely could supply these to you through SAP Consulting.  Please reach out to your SAP rep and have them Contact Me.  I have created some instruction that explain how to create these.
    Regards,
    James

Maybe you are looking for

  • HELP ME PLEASE!All my downloaded VIDEOS turn off on their own while playing

    PLEASE HELP ME !! All Videos downloaded to my I phone turn off ON THEIR OWN while playing. Some play for two or three minutes then turn off--some play for 15 minutes, then turn off. Plus rather than letting me resume play from the point at which they

  • HT201303 How to change Apple ID security questions

    I received and email saying my Apple ID security questions/answers had changed.  I immediately changed my Apple ID password... and again the next day had to change it again because it would not work when trying to update apps on my Iphone. So here is

  • PHP Email form, need help...

    Heya, I have a flash form that uses PHP to send the data to an email, but it causes all of the data to display on the same line with no spaces when recieved via email, can anyone help? Thanks! Code: <?php $sendTo = "[email protected]"; $subject = "Co

  • Differences between suite products and standalones

    I understand that there are differences between the versions of Ps and Soundbooth bundled in the eLearning Suite and the standalone versions. Does anyone know if there's a complete list of the differences for both the eLearning Suite and Technical Co

  • Distorted font when exporting to pdf

    I'm using Tahoma font and trying to bold certain sections.  The bolded portions look odd (strange little boxes and fill is not quite solid)   when exported to pdf and viewed digitally,  The printed document is just fine however.   The bolded portion,