Display query

hi
below is my code in put put it displays as
Advance License Information its fine..
now wn i give plant and date as input i want the output as
Advance License Infomation
Plant : wtvr plant i give as input that should be displayed
Date ; wtvr date i give that should be displayed...
i wil get these information in a single line...but i want the out put as above shown
data : IT_HEADER type SLIS_T_LISTHEADER,
         WA_HEADER type SLIS_LISTHEADER,
  WA_HEADER-TYP = 'H'.
  WA_HEADER-INFO = 'Advance License Information'.
  append WA_HEADER to IT_HEADER.
  clear WA_HEADER.
Plz help me on this
Regards
Smitha

Hello
  WA_HEADER-TYP = 'H'.
  WA_HEADER-INFO = 'Advance License Information'.
  append WA_HEADER to IT_HEADER.
  clear WA_HEADER.
if not P_PLANT is initial.
  WA_HEADER-TYP = 'H'.
  concatenate 'Plant' P_PLANT into WA_HEADER-INFO separated by space. " <- here P_PLANT - from import parameter
  append WA_HEADER to IT_HEADER.
  clear WA_HEADER.
endif.
if not P_DATE is initial.
  WA_HEADER-TYP = 'H'.
  concatenate 'Date' P_DATE into WA_HEADER-INFO separated by space. " <- here P_DATE - from import parameter
  append WA_HEADER to IT_HEADER.
  clear WA_HEADER.
endif.

Similar Messages

  • Problem display query in web

    Hi experts
    We trying to see query  to the web, from query designer we are klicking to display query to web, but that open only balnk page.
    Also need a detail or step by step help link for WAD
    Please help me and get points
    Thanks in advance

    Hi,
    http://help.sap.com/saphelp_nw04s/helpdata/en/1a/456a3badc1b315e10000000a114084/frameset.htm
    Web Application Designer
    urgent help on WAD(web application designer
    WEB APPLICATION DESIGNER
    WAD(Web Application Designer)
    Check these link's on Web application Desining:
    Web Application Designer for Beginners
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/749a4622-0a01-0010-36bf-b6b30a2a3a22
    http://service.sap.com/bi -> SAP BW InfoIndex -> Web Application Design (3.x)
    http://help.sap.com/saphelp_nw04/helpdata/en/1a/456a3badc1b315e10000000a114084/frameset.htm
    Have a look at these links
    http://help.sap.com/saphelp_nw04/helpdata/en/1a/456a3badc1b315e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/47/d4fed1c60a9743ade3b4cf306d5d48/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/40/8b174082fe1961e10000000a155106/content.htm
    Gothrough the how to guide "How to enhanace the standard web template" for step by step procedure with the screen shots.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/dc1d9990-0201-0010-16aa-db3c4eb8b642
    cheers
    sunil

  • Displaying query view name in web template.

    Hi all,
    In the standard web template (0ANALYSIS_PATTERN) there is a text box which displays the query title.  I need to change this so it displays the name of the query view instead of the query.  Does anyone know how to do this?
    Many thanks,
    Nick.

    Hi Nick,
    In the template you need not to do any special setting for Query View Name display.
    When You use a query view in template that becomes as a data provider, so for every data provider whether that's a query or query view it works same.
    You can select to display query technical name or description.
    Hope i understood your requirement correctly. If not than please correct me.
    Thanks
    Dipika Tyagi

  • How to display query result in seperated page.

    How to display query result in seperated page, if the results are very big (more than 5000 records) and there are so many concurrent users (about 500 - 1000 users).
    Are there any solutions or frameworks?
    Plese help me .........
    thanks,
    --bhasin

    Hi,
    How to display query result in seperated page?I think RowSet will be the better technology to use in this
    situation.For more information on this please visit http://developer.java.sun.com/developer/Books/JDBCTutorial/chapter5.html
    which explains in detail about RowSets.
    Hope this helps.
    Good Luck.
    Gayam.Srinivasa Reddy
    Developer Technical Support
    Sun Microsystems
    http://www.sun.com/developers/support/

  • Problem with the icon "Display query on the web" in Query Designer

    Hi Friends,
             I was told by my PM to give them all FI Modules standard business contenet reports, so for that reason i have installed all FI business content & loaded the data in the Dev Server, now i just want to show the reports, but i want excute these reports in Internet Explorer using the Icon "Display Query on the WEB" in query designer, when i click on that it isn't getting displayed in the browser.
             the URL coming like this, "http://itcchqbd:8100/sap/bw/BEx?sap-language=EN&bsplanguage=EN&CMD=LDOC&INFOCUBE=0FIAA_C11&QUERY=0FIAA_C11_Q0001&VARIABLE_SCREEN=X&DUMMY=1"
    getting the message in the page, the page can't be displayed,
              How to solve this problem & how do i have to show the standard business content reports to all FI Superiors ?
    awaiting for ur answers
    Regards,
    Balaji

    Balaji,
    first check if you have enabled web reporting on your BW server ( there is a how to paper for the same )
    another way to check out the same is to find out if there are existing web templates being published which would make the server web ready.
    As for FI content - activate the FI relevant areas in Business content and then activate the respective datasources and then load the data.. or go trough the best practices for BW-FI ( service.sap.com/bestpractices) wnd then activate the best practices for the same.
    Hope it helps.
    Arun
    Assign points if useful

  • Many to Many - display query result?

    Greetings
    In a help desk app, the manager can assingn more than one technician to a project.
    Whe he or she assigns a project, the tech ID & project ID are inserted in a junction table. This works fine.
    The description, assigned date & due date field are static- the resolution (textarea) needs to be added to as the project progesses, as well as hours spent by each tech.
    I am running into problems displaying what the technician sees on their "contol panel".
    When the tech views the details of an ongoing project, I am getting cartesian product results.
    The tech needs to add to the resolution (textarea),  view who else is working on the project, and how many hours each has contributed.
    The project display page query:
    SELECT DISTINCT project_ID, project_num, project_desc, project_res, assign_date, assign_time, due_date, complete_dte, complete_time, assigned,
    tech_1_hours, tech_2_hours, tech_3_hours, tech_4_hours, tech_ID, junc_tech_ID, junc_project_ID
    FROM main_projects, lookup_tech, junction_project_tech
    WHERE tech_ID = #Session.user_id#
    AND project_ID = #URL.project_ID#
    AND project_ID = junc_project_ID
    AND tech_ID = junc_tech_ID
    And the math;
    <cfset 'total' = (#tech_1_hours#+#tech_2_hours#+#tech_3_hours#+#tech_4_hours#)>
    The project display repeats itself for every technicain-
    Any help with this would be greatly apprecaited.
    24 month to retirement!
    Norman

    Hi,
    Will all Students have exactly two Teachers?
    If not picture your sample with two more Students.
    One having 1 Teacher
    One having N Teachers
    Think about N, what will it be? - How would you create a table with N columns?
    If you can't easily answer above, re-consider what you are trying.
    That said, it could still be done - even if all Students do not have exactly two Teachers - and is called Pivot a dynamic number of columns.
    Examples are in FAQ
    SQL and PL/SQL FAQ
    Still a bad idea, with or without known number of teachers
    Regards
    Peter

  • Problem with hierarchy variable while displaying query in Portal

    Hi,
    I came up with an problem with a query in the portal.  The problem is :
    I have one query which is displayed in the portal. The Query has hierarchial selection criteria. I am executing the same query using analyzer. Its taking the variable from the selection and displaying it on the analyzer. I have used the option to " display the query on web " from the BEX query designer. From there its opening and displaying the results with the given selection criteria.
    Where as when i open the query seperately in portal, its not displaying the results.
    I came to know from one of my colleague that the porblem is with the Web item and the hierarchial variable declared in WAD  was different from the variable declared in the BEX Query designer.
    I never Worked with WAD. I tried finding out the variable definition. But i was unable to find out where the Hierarchial variable was defined.
    Please help me out regarding the same.

    The problem is sovled.
    Poornima.

  • Display Query Description in Header in PDF Print

    Hi all,
           When using PDF Print option I would like to print the Query Description in the Header. From the dialog box I only see options for Data, Time, Pages and custom text. Can you please let me know how can I print the Query Description in the Header while using PDF Print.
    Thank you,
    Ram

    Yes I understand but that is not what I mean.
    1. I have assigned a document to a certain query element in the BW metadata repository. This document contains a short report description and the purpose with it.
    2. Now I want to display this information within a "information field" under the information tab when running a report.
    Is it possible to display this information with a standard sap text element web item?

  • Pb with language logon and data display Query designer

    Hello,
    I do the translations (FR => EN) via RSA1 and SE63 of my variables of my Query for the query designer.
    It works I have no technical name that appears in the query designer.
    But when I run my query using the query designer, the query is displayed in French while I am logged in English.
    I want the query is displayed in english when I'm logged into English.
    How can I do?
    Thank you pour votre aide.
    Edited by: KhalidTaibi on Jul 6, 2010 6:31 PM

    Hello,
    Per I can understand, you are executing the query from Query Designer.
    So, if you are using Query designer 7.0, you are calling the Enterprise Portal.
    Even with English on Query Designer, you have to logon as english on the
    Portal, as well.
    Try to check your Browser configuration.
    On Internet Explorer:
    Tools
    Internet Option
    Language
    Check if English is configured as the first language.
    Also, ensure the query1s objects exists on english version.
    Best regards,
    Edward John

  • Apex tab and page display query

    I am using Apex 4.1
    I have the following tabs set up.
    Home, Tab 1,Tab 2 and so on
    The home page is fine. Now the query is with regard to Tab 1. I need it to display Page 3 or Page 4 based on the location of APP_USER
    The region details are all stored in the table : employee_info
    How can I check or display Page 3 if the Region is APAC and Page 4 if EMEA(APAC and EMEA being values in table)
    Is there some way how I can set or achieve this? The default page I have set is as of now Page 3 but it has to pick Page 3 or 4 based on region value from employee table.
    Any guidance will be appreciable.
    Thanks,
    Swetha

    LKSwetha wrote:
    I am using Apex 4.1
    I have the following tabs set up.
    Home, Tab 1,Tab 2 and so on
    The home page is fine. Now the query is with regard to Tab 1. I need it to display Page 3 or Page 4 based on the location of APP_USER
    The region details are all stored in the table : employee_info
    How can I check or display Page 3 if the Region is APAC and Page 4 if EMEA(APAC and EMEA being values in table)
    Is there some way how I can set or achieve this? The default page I have set is as of now Page 3 but it has to pick Page 3 or 4 based on region value from employee table.
    Any guidance will be appreciable.Create 2 copies of Tab 1, one for page 3 and the other for page 4. Display them conditionally according to the user region.

  • BEx Analyzer Workbook, display query 2 under query 1

    Hello Guys,
    actually I got a problem and did not find a solution for that.
    I have a query, displaying all cars from one particular salesorg. Under this query I want to add a new query displaying all other cars, not belonging to that salesorg. Now I have two problems:
    1) Is there an automated way to display one query among another in bex analyzer, if the number of rows in each query is not constant?
    2) Can I negate the variable from my first query (not salesorg in first query)?
    Thank You!
    Markus

    Hi Markus Alber,
    why can't you do this in one query?
    You can create two selections:
        One for that particular salesorg can use restriction on "salesorg"
        another selection uses "salesorg" restrictions of excluding that particular salesorg
    Feng

  • 2.1 EA2 does not display query results, query works fine in sqlplus

    2.1 EA2/Windows XP 32-bit
    The following query does not show any results for Total(GB) and Free(GB) columns. The diskgroup name shows correctly.
    SELECT
    DG.name ,
    ROUND(SUM(DSK.TOTAL_MB)/1024,2) "Total (GB)",
    round(SUM(DSK.FREE_MB)/1024,2) "Free (GB)"
    FROM
    V$ASM_DISK DSK,
    V$ASM_DISKGROUP DG
    WHERE
    DSK.GROUP_NUMBER=DG.GROUP_NUMBER
    group by DG.name;
    The query works fine when run from SQL*Plus:
    SQL> SELECT
    2 DG.name ,
    3 ROUND(SUM(DSK.TOTAL_MB)/1024,2) "Total (GB)",
    4 round(SUM(DSK.FREE_MB)/1024,2) "Free (GB)"
    5 FROM
    6 V$ASM_DISK DSK,
    7 V$ASM_DISKGROUP DG
    8 WHERE
    9 DSK.GROUP_NUMBER=DG.GROUP_NUMBER
    10 GROUP BY DG.name;
    NAME Total (GB) Free (GB)
    DG1 707.98 162.32
    DG2 134.84 122.68
    SQL>
    This must be something unique to SQLDeveloper. I tested in 2.1 EA1 and 1.5.5.59.69 and the query does not show results for the Total (GB) and Free (GB) columns.

    I would like to update the problem. It seems like when SQLDeveloper is connected to ASM instance, it has trouble using the divide operator (/). For example, the following query works fine:
    SELECT
    name,
    TOTAL_MB
    FROM
    V$ASM_DISKGROUP;
    But if I try to divide the TOTAL_MB by any number, the column shows blank (the column is blank, not NULL). So, if I try to run the following query, the output will just display diskgroup names. The TOTAL_MB/1024 column shows blank.
    SELECT
    name,
    TOTAL_MB/1024
    FROM
    V$ASM_DISKGROUP;
    If I run the same query in SQL*Plus from the same desktop using the same TNS alias, it works just fine which tells me that it is a SQLDeveloper problem.
    When I am connected to a regular database, then the problem does not show up and SQLDeveloper is able to display the results even when I am using the divide operator (/).

  • Create SP that returns value and at the same time displays query result in output window

    I would like create an SP which will return the records from the table and also return value to my c# client application.
    For Example:
    Select * from employee returns all the query results in output window.
    Now I want to create an SP
    Create procedure Test
    As
    Declare @ret int,
    Select * from employee
    set @ret = Select count(*) from employee
    if @ret > 0
    return 1
    else
    return 0
    The above algo should return 1 0r 0 to c# client application and at the same time display all employees in sql query output window.
    Can u pls help in this regard.

    The above algo should return 1 0r 0 to c# client application and at the same time display all employees in sql query output window.
    Why?  and No!
    Why?  Your procedure generates a resultset of some number of rows.  You check the resultset for the presence of rows to determine if "anything is there".  You don't need a separate value to tell you this.  Note that it helps
    to post tsql that is syntactically correct.   While we're at it, if you just need to know that rows exist there is no need to count them since that does more work than required.  Simply test for existence using the appropriately-named function
    "exists".  E.g., if exists (select * from dbo.employee). 
    No!  A stored procedure does not display anything anywhere.  The application which executes the procedures is responsible for the consumption of the resultset; it chooses what to do and what to display. 
    Lastly, do not get into the lazy habit of using the asterisk in your tsql code.  That is not best practice.  Along with that, you should also get into the following best practice habits:
    schema-qualify your objects (i.e., dbo.employee)
    terminate every statement - it will eventually be required.

  • Displaying Query filters on a report to print

    I would like to display the query filters that I have used in my query filters display on the report, is there any way to do this? Are you able to create a variable and populate it with the query filters?

    yes
    you can use a function called
    UserResponse
    =UserResponse("My Filter Text here")
    or if you have more than one query
    =UserResponse([Query 1];"My Filter Text here")

  • How to display query result like this

    I got a query...gives list of names.
    i want to display
    11.  Peter
    12. Jessica
    32. Leo
    15. Jamie
    36. Edward
    how i get static number infront of my query result.
    static number is not in order.

    Amm85 wrote:
    I got a query...gives list of names.
    i want to display
    11.  Peter
    12. Jessica
    32. Leo
    15. Jamie
    36. Edward
    how i get static number infront of my query result.
    static number is not in order.
    You could use the function queryAddColumn to add the numbers as a separate column to the query.
    Let us suppose the name of the query is "myQuery". Then you could proceed as follows
    <!---Define your "static" list of numbers --->
    <cfset staticList = "11,12,32,15,36,13,23,14,33,16,44,31,17,34,18">
    <!--- Create an array from the static list. --->
    <cfset staticNrArray = ArrayNew(1)>
    <cfset staticNrArray = listToArray(staticList)>
    <!--- Add the array as a column to the query. --->
    <cfset nColumnNumber = QueryAddColumn(myQuery, "staticNr", "integer", staticNrArray)>
    <!--- Verify whether it works as expected--->
    <cfdump var="#myQuery#">
    The list I have given here has 15 numbers. This will naturally instruct ColdFusion to add a new column named staticNr, having 15 rows. You might like to know that the queryAddColumn function enables padding.
    Here is how it works. Suppose that the query originally had only 8 rows before you added the column(of 15 rows). Then, in the new query, ColdFusion would pad the last 7 rows of the other columns with null values. If the original query  had 20 rows instead, then Coldfusion would pad the last 5 rows corresponding to the staticNr-column with null values.

  • How to Display Query Results in a Max Width Formatted Way?

    Hi,
    I want to run a query to show the columns within headers to be formatted in a way that looks equal in width. I just want to get the max width for each column and display each item in a max width format in a query. Thanks.
    Ex.
    First Name Last Name City
    John Sumi New York
    Jay Heely Texas

    if you are spooling a file on sql*plus use the column formatting method.
    syntax:
      COL <column_name> FORMAT a<integer>example:
      COL emp_name FORMAT a40

Maybe you are looking for