Order by in Parameter form for a formula col

Hi,
I have made a report for fast moving products and have ordered by on a formula column. Is there any way to select the order by (ascending or descending) in the parameter form at runtime for the same formula column. Instead of making two different reports one for ascending and one for descending, is there any way the user can select at runtime in the parameter form?
For the same report, how can I specify Top 100, Top 50, Top 25 etc.
Your reply or comments would be highly appreciated.
Thanks
Rgds
Fahad Hanif

I think by declaring one additional variable in which
u will ask from user in which order he requires the
outpu ascending/descending. and in second variable u
assign the order,
For exp
your query in as
select * from table
&<var 2>
if after parameter trigger of the report mention
if <var1>='asc'
<var2>:='Order by fieldname asc';
else
<var2>:='Order by fieldname desc';
if;
ill solve ur requirement.
Thanks
Shishu PaulHi,
Thanx for your reply but unfortunately it dint work. It dint show me any error as such but the ordering did not take place.
The issue is that I need to do the ordering on the Formula Column. Simply adding an order by statement like ' order by :cf_4 ' shows an error. Though routing it through the variable dint show any error it neither did serve the purpose.
I need to find a way in getting the ordering on the formula column. Then I need is Top n number of products to be displayed based on the order by of the formula column.
Pls help me out on this.
Thanks
Rgds
Fahad Hanif

Similar Messages

  • Parameter form for web report

    Hello,
    Using rwservlet on the web I can specify paramform=yes and I'll get a parameter form for my reports, which is really handy as it saves me from having to build my own forms. However when I run JSPs directly I cannot seem to get the automated form. Am I missing something obvious or is the parameter form just not available when you run JSPs directly?
    Cheerio,
    Robert

    Hi Robert,
    The description of the command line keyword PARAMFORM in Publishing Reports manual says:
    Use PARAMFORM to specify whether to display the Runtime Parameter Form when you execute a report via CGI or a servlet. PARAMFORM is used only to supply parameters to paper layout reports, not Web source reports.
    For JSP reports you need to create an HTML parameter form which calls the JSP and submits the parameters selected.
    You can find Reports documentation (incl Publishing Reports here):
    http://www.oracle.com/technology/documentation/reports.html
    Navneet.

  • How the show parameter form for the report over the web by using an url ?

    hello,
    my url to call my report is :
    http://server/reports/rwservlet?report=rtm0350.rep&desformat=html&userid=un/pw@hostring&server=rep_server&paramform=yes
    but it doesn't show me the parameter form to introduce the parameters and I get :
    'FINISH SUCCESSFULLY'
    has anybnody any idea ?
    thank's

    If this is a 'paper' report then =yes has always worked for me as long you have parameters declared in the report.
    Description Use PARAMFORM to specify whether to display the Runtime Parameter
    Form when you execute a report through CGI or a servlet. PARAMFORM is used only to
    supply parameters to paper layout reports, not JSP-based Web reports.
    Syntax PARAMFORM=YES|NO|HTML
    Values
    &#9632; YES Display the Parameter Form.
    &#9632; NO Do not display the Parameter Form.
    &#9632; HTML Display the Parameter Form in HTML format.
    Message was edited by:
    Bob C

  • Parameter form for a report portlet

    Hi,
    What's the best/easiest method of creating a form that a user can enter parameter values which are then used to restrict query in a report portlet?
    Is there any way of doing this via the wizards / without coding? The a report portlet generated via the wizard only seems to let a user be able to specify parameter values by them first clicking the "Customize" link on the portlet.
    The form portlet wizard does not seem geared to generating a form that is simply used to enter parameters...
    Help!

    Hi,
    You cannot right now make the customization form a portlet. You can use the form to accept parameters and call the report in the success procedure by passing the columns of the form. There are lots of question answered in the forum on passing form field values to a report. That could help.
    Thanks,
    Sharmila

  • I am unable to get order by column name in oracle report parameter form

    i created query like following in query builder
    SELECT CASE_NO, COURT_ID, CASE_TYPE,
    INITCAP(PLAINTIFF) PLAINTIFF,INITCAP( DEFENDENT) DEFENDENT,
    INITCAP(COUNSEL) COUNSEL, START_DATE, PREVIOUS_HEARING_DATE,
    NEXT_HEARING_DATE,INITCAP( DESCRIPTION) DESCRIPTION,
    INITCAP(RELIEF) RELIEF,INITCAP(EXTENT) EXTENT,
    DECREE_DATE,INITCAP(STATUS) STATUS,INITCAP( LOCATION) LOCATION,
    LEGAL_FILE_NO, MSNO
    FROM L_CASE_MASTER_MAIN
    WHERE to_char(NEXT_HEARING_DATE,'DD-MON-YYYY')=:P_NHD ORDER BY :P_COL
    and i created parameter form for these two bind variables :P_NHD,:P_COL
    in,:P_COL i wrote lov as Select trim(COLUMN_NAME) from user_tab_columns where table_name='L_CASE_MASTER_MAIN'  to get all the columns.
    in parameter form i am able to get all the columns but when i am generating report it is not giving results as per my ordered column.
    kindly let me know the solution
    Report Version :Oracle Reports 11g
    Db Version:Oracle  11g

    Hi,
    Ordering the column first takes place from the Data Model Itself.
    Please Check your column ordering in the report data model. If it is not ordered in a right way then Rearrange it.
    Remove your order by in query...
    If any issues... let me know
    Regards,
    Soofi

  • Parameter values are not showing in in the Organization Parameter form

    We have done a setup for an Inventory Organization.
    Everything was working fine.
    Values were showing everywhere.
    We have lot of transactions done in the org also.
    But suddenly yesterday when I was trying to open the Organization Parameter form for that specific organization, the form came up as blank and in the bottom the error is Query caused no records.
    I have checked data is there in the base table mtl_parameters.
    Value is coming for other organizations. Only one specific organization is having this issue.
    Even in Examine, I have taken the last query run on that form and ran the same in back end database, I can see all values are there in the database.
    But in frontend screen the values are not showing. even organization code also not showing.
    Navigation is: Inv Super user --> Setup --> Organization --> Parameter

    Have you checked Organization Access to ensure that no one restricted that org?
    Or shipping grants and roles?
    I think there are quite a few places that you can restrict access.

  • REP-52007 with parameter form

    Hi,
    I've been trying to run parameter forms for 2 days now, and i'm getting desperate.
    For the moment, I can see the parameter form (not like it shows in Report Builder though...)
    When I give my two parameters (it are dates) into the parameter fuild, and i try to execute the query, following error shows :
    REP-52007: Opmaakfout parameterformulier
    java.lang.IllegalStateException: Writer already retrieved     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.EvermindHttpServletResponse.getOutputStream(EvermindHttpServletResponse.java:969)     at javax.servlet.ServletResponseWrapper.getOutputStream(ServletResponseWrapper.java:136)     at oracle.reports.rwclient.RWWriter.getOutputStream(RWWriter.java:263)     at oracle.reports.rwclient.RWReportRunner.sendFile(RWReportRunner.java:355)     at oracle.reports.rwclient.RWReportRunner.getMainFile(RWReportRunner.java:161)     at oracle.reports.rwclient.ServletCmdMgr.handleCmdGetjob(ServletCmdMgr.java:1343)     at oracle.reports.rwclient.CommandManager.handleWebCommand(CommandManager.java:92)     at oracle.reports.rwclient.ServletCmdMgr.handleWebCommand(ServletCmdMgr.java:295)     at oracle.reports.rwclient.RWClient.handleWebCommand(RWClient.java:958)     at oracle.reports.rwclient.RWClient.processRequest(RWClient.java:1442)     at oracle.reports.rwclient.RWClient.doPost(RWClient.java:504)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)     at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)     at java.lang.Thread.run(Thread.java:534)
    My OC4J is running, and also the reportserver is active.
    I'm using forms 10g and forms builder 10g.
    This is my code to make the report show :
    PROCEDURE SHOW_REPORT
    (type VARCHAR2, rep_obj VARCHAR2)
    IS
    rep_id REPORT_OBJECT;
    rep_status VARCHAR2(100);
    rep_svr VARCHAR2(21) := 'birserver';
    rep_format VARCHAR2(20) := 'HTMLCSS';
    rep_locatie VARCHAR2(100) := 'C:\PISAD\TEMP\';
    reportserverjob VARCHAR2(100);
    rep_job_id VARCHAR2(100);
    BEGIN
    IF type = 'PDF' THEN
         rep_format := 'PDF';
    ELSIF type = 'XLS' THEN
         rep_format := 'SPREADSHEET';
    ELSIF type = 'HTML' THEN
         rep_format := 'HTMLCSS';
    END IF;
    rep_id := find_report_object(rep_obj);
    set_report_object_property(rep_id, report_comm_mode, synchronous);
    set_report_object_property(rep_id, report_server, rep_svr);
    set_report_object_property(rep_id, report_desname, rep_locatie || rep_obj || '.' || type);
    set_report_object_property(rep_id, report_desformat, rep_format);
    set_report_object_property(rep_id, report_destype, FILE);
         SET_REPORT_OBJECT_PROPERTY(rep_id,REPORT_OTHER,'paramform=yes');
    reportserverjob := run_report_object(rep_id);
    rep_job_id := substr(reportserverjob,length(rep_svr) + 2);
    WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'|| rep_job_id ||'?server='||rep_svr,'_blank');
    The report destination type is preview, execution mode is runtime, communication mode is synchronous
    I really hope someone can help :(
    thanks alot!

    Your code seems to be implementing metalink note 139546.1 - Using Reports parameter forms with RUN_REPORT_OBJECT on the web.
    For what I can see, the P_ACTION parameter should end in ?...
    i.e.
    P_ACTION=http://<hostname.domain:port>/reports/rwservlet?'
    set_report_object_property (
    repid,
    report_other,
    'paramform=yes P_USER_CONNECT='
    || vc_connect
    || ' P_SERVERNAME='
    || v_reportserv
    || ' P_ACTION='
    || v_report_url
    || '/reports/rwservlet?'
    );If this does not fix your problem, then to troubleshoot further you would have to post the code in your Before Parameter Form trigger of your report.
    Hope this helps,
    UPDATE:
    If the above does not fix your problem, my guess is that report name is not being generated in the hidden runtime values build by the code in the Before Parameter Form trigger.
    i.e.
    http://localhost:8889/reports/rwservlet?report=&destype=cache&desformat=PDF
    The above code will throw error REP-52005: The specified key report does not exist in key map file.
    Edited by: Rodolfo Ferrari on Jul 8, 2009 9:43 PM

  • Show parameter form and then print directly to client printer

    I have few reports that show parameter form for user entry. After the user enters the parameter and hits Submit query, the report should automatically get printed on the client's default printer. I tried to use ORARRP but I could get that to work only for reports do not open parameter form before going directly to the printer. Can someone please guide me how to achieve this?
    Thanks!

    I would like it to go to the client PCs default printer. Can you please tell me how do I do that?

  • Web reports parameter form is huge!

    has anyone encountered a problem where the parameter form for a
    web report is abnormally huge?
    a look at the html source indicates that the sizes used for the
    height, width, etc are in the thousands. the same report and its
    parameter form work fine in client server mode.
    compaq true 64 unix
    reports 6i + patch 5

    hello,
    this might be related to the X environment your DISPLAY is
    pointing to. some x-environments cause the parameterform to be
    rendered too big.
    regards
    the orcle reports team --pw                                                                                                                                                                                                                                                                                                                                                                                                       

  • Reports Portlet Parameter Form LOV Format

    Hi,
    I have created several LOV's that I want to use in the Reports Portlet Parameter Form for running Oracle Reports, but the format I am choosing when creating the LOV's is not showing correctly on the parameter form. I am picking 'Check Box' and 'Radio Group' for several of the LOV's, but they are still displaying as Dropdowns on the parameter for. Am I doing something wrong here, can the parameter form show check boxes and radio buttons?
    Thanks

    hello,
    i am afraid the answer to both questions is 'no'. i would suggest you create some HTML/JSP parameter forms for your reports. the parameter form editor of reports is very limited and for more complex requirements we suggest using other tools (or the JSP web source of reports, which is available from 9i onwards).
    thanks,
    ph.

  • PLEASE HELP: PDF Forms, creating average formula for text?

    Hello,
    I really hope somone can help. I cannot find any answers to my questions on the internet, google etc.
    First time using Acrobat. Im pretty quick learning on compters however the formulas my boss has asked me to do I have no idea if they are possible.
    We have a report form for exams and each section I need to calculate the average mark for that section.
    There are 3 questions for the first section. There are dropdowns for distinction, Merit, Pass and Below pass to select for each questions.
    Please see picture attached to show you what I mean.
    I want to be able to calculate the most selected/average dropdowns selected and not count the N/A's into award1 field?
    The fields must be text and cannot be numbers.
    so for example, track 1 got a distinction, track 2 got a Merit, Track 3 got a distiction. all other fields left n/a
    is there anyway to do this also is there any way to exactly the same as above as check boxes? - please see picture attached
    I appriciate any help. I am working on a mac
    Thanks
    Lauren

    Thank you so much reply
    Yes on the dropdowns the distincion, merit, pass or below pass values are in the correct areas ready for selection. For example on the distiction row you can only drop down for distinction and so on for Merit row dropdowns etc
    Check box is the way I rather do it as its quicker, however I created the dropdown option just incase check boxes average was not possible
    On the check boxes if i select merit for rtack 1 I would just tick the box and leave the the rest of the colum blank with no ticks. So just by seeing the tick I know its in the merit section for Track 1. However I donts know if I can do an average formula for with check boxes.
    If I check boxed/slected distinction for track 1, distnction for track 2 and merit for track 3 (obvisley any box could be ticked depeneding how the exam went so need then all in the script). I would like it to then calculate the avergae mark which would be distinction in the award1 field. While the none ticked boxes or N/A fields not affecting the average.
    This is just the start to a huge form Im doing Im dreading the rest of formulas I have to do lol
    sorry if im confusing you

  • Standard form for payment order creation

    Hi,
    I got a requiremnt to create a form for payment order creation,
    can one plzzz guide me, do v hav any standard form available in sap, n also let me know the program for it.
    Regards
    ashwini

    Hi Aswini,
               FPY1_CH_DTA_EZAG
    FPY1_CH_DTA_LSV
    FPY1_DE_DTA
    FPY1_DE_DTA
    FPY1_DE_DTAZV
    FPY1_DE_DTA_ZZV
    FPY1_DE_DTA_ZZV
    FPY1_DE_EURO
    FPY1_DE_EURO
    FPY1_FR_BANQUE
    FPY1_NL_DTA
    FPY1_NL_DTA
    FPY1_NZ_MTS
    FPY1_NZ_MTS
    check these forms
    Regards,
    Venkat

  • To create varaibles in Mail Forms for Order Confirmation

    Hi All,
    I am having an requirement to send an email for order confirmation with some customer dependent data and some product data to be sent along in the mail, This has to be done through action.
    I want to use mail forms for this but in this I am not able to create variables in the mail form through which i can pass th value to the variables in the mail form.
    Please suggest what to do for variable creation in mail form.........
    Is there any standard oder confirmation template available as it is available for campaign??????
    Thanks and Reagrds
    Mayank

    Hi Mayank,
    I am not sure but u can try below standard smartforms :
    CRM_SERVICE_CONF_EXT
    CRM_ORDER_SERVICE
    Regards,
    Dipesh.

  • SMART FORM FOR PURCHASE ORDER

    Hii Experts,
    I am developing a smart form for purchase order. I am customizing the existing PO smart form according to the clients requirements. The customer needs fields Discount percentage, Excise duty and VAT/CST%... all these fields when i explored in transaction me23n come from a structure so the values come only at run time.. can anyone tell me the exact table and fields from where these comes so that i can retrieve it from there and display it in my smart form. The fields i need are discount percentage, excise duty and VAT/CST%. its urgent.

    REPORT  ZMR_PURCHASE_ORDER.
    types: BEGIN OF ty_lfa1,
              LIFNR TYPE lfa1-LIFNR,
              MCOD1 TYPE lfa1-MCOD1,
              STRAS TYPE lfa1-STRAS,
              MCOD3 TYPE lfa1-mcod3,
          END OF ty_lfa1.
    TYPES: BEGIN OF ty_ekpo,
              ebeln TYPE ekpo-ebeln,
              ebelp TYPE ekpo-ebelp,
              txz01 TYPE ekpo-txz01,
              menge TYPE ekpo-menge,
              peinh TYPE ekpo-peinh,
              brtwr TYPE ekpo-brtwr,
          END OF ty_ekpo.
    TYPES: BEGIN OF ty_ekko,
            ebeln TYPE ekko-ebeln, "purchase doc
            LIFNR TYPE ekko-LIFNR, "vendor
            MCOD1 TYPE lfa1-MCOD1, "vendor name
            STRAS TYPE lfa1-STRAS, "vendor add
            MCOD3 TYPE lfa1-MCOD3, "vendor city
            bedat TYPE ekko-bedat, "doc date
            unsez TYPE ekko-unsez, "contact person
            verkf TYPE ekko-verkf, "attn
            telf1 TYPE ekko-telf1, "tele
            ihrez TYPE ekko-ihrez, "ref
            KNUMV TYPE ekko-KNUMV, "doc condition
           ebelp TYPE ekpo-ebelp, "item
           txz01 TYPE ekpo-txz01, "message desc
           menge TYPE ekpo-menge, "qty
           peinh TYPE ekpo-peinh, "rate
           brtwr TYPE ekpo-brtwr, "gross
        END OF ty_ekko.
    TYPES: BEGIN OF ty_t685t,
            kschl TYPE t685t-KSCHL,
            vtext TYPE t685t-vtext,
          END OF ty_t685t.
    TYPES: BEGIN OF ty_line_item,
            KNUMV TYPE konv-KNUMV, "condition number
            STUNR TYPE konv-STUNR, "step
            kposn TYPE konv-kposn, "item
            KSCHL TYPE konv-KSCHL, "condition type
            vtext TYPE t685t-vtext, "condition name
            KAWRT TYPE konv-KAWRT,  "base amt
            KRECH TYPE konv-KSCHL,  "calculation type
            qty(13) TYPE n,         "qty
            kbetr TYPE konv-kbetr, "condition rate
            kwert TYPE konv-kwert, "condition value
        END OF ty_line_item.
    data: wa_ekko TYPE zms_ekko,
          wa_item TYPE zms_konv,
          wa_lfa1 TYPE ty_lfa1,
          wa_t685t TYPE ty_t685t,
          wa_ekpo TYPE ty_ekpo.
    data: it_ekko TYPE TABLE OF zms_ekko,
          it_item TYPE TABLE OF zms_konv,
          it_lfa1 type TABLE OF ty_lfa1,
          it_t685t TYPE TABLE OF ty_t685t,
          it_ekpo TYPE TABLE OF ty_ekpo.
    SELECTION-SCREEN : BEGIN OF BLOCK ss_block WITH FRAME TITLE text-001.
       PARAMETERS: pa_ver(2) TYPE c DEFAULT '0'.
        SELECT-OPTIONS: pa_pord FOR wa_ekko-ebeln,
                        pa_date for wa_ekko-bedat.
    SELECTION-SCREEN : END OF BLOCK ss_block.
    SELECT EBELN LIFNR bedat unsez verkf telf1 ihrez knumv from ekko
        into CORRESPONDING FIELDS OF TABLE it_ekko.
      if pa_pord is not INITIAL.
        DELETE it_ekko WHERE ebeln not in pa_pord.
      endif.
      if pa_date is not INITIAL.
        DELETE it_ekko WHERE bedat not IN pa_date.
      endif.
    if it_ekko is not INITIAL.
      SELECT lifnr MCOD1 STRAS MCOD3 from lfa1
        INTO CORRESPONDING FIELDS OF TABLE it_lfa1
        FOR ALL ENTRIES IN it_ekko
        WHERE LIFNR = it_ekko-LIFNR.
      SELECT ebeln ebelp txz01 menge peinh brtwr from ekpo
        INTO CORRESPONDING FIELDS OF TABLE it_ekpo
        FOR ALL ENTRIES IN it_ekko
        WHERE EBELN = it_ekko-ebeln.
      loop at it_ekko into wa_ekko.
        READ TABLE it_lfa1 into wa_lfa1 WITH KEY lifnr = wa_ekko-LIFNR.
        wa_ekko-MCOD1 = wa_lfa1-MCOD1.
        wa_ekko-stras = wa_lfa1-stras.
        wa_ekko-MCOD3 = wa_lfa1-MCOD3.
        MODIFY it_ekko FROM wa_ekko TRANSPORTING MCOD1 STRAS MCOD3 WHERE ebeln = wa_ekko-ebeln.
      ENDLOOP.
      SELECT KNUMV STUNR KPOSN KSCHL KRECH kbetr kwert KAWRT from konv
        into CORRESPONDING FIELDS OF TABLE it_item
        FOR ALL ENTRIES IN it_ekko
        WHERE KNUMV = it_ekko-KNUMV.
      SELECT kschl vtext from t685t
        INTO CORRESPONDING FIELDS OF TABLE it_t685t
        FOR ALL ENTRIES IN it_item
        WHERE spras = 'EN' and KSCHL = it_item-KSCHL.
      LOOP AT  it_item into wa_item.
        READ TABLE it_t685t into wa_t685t with key KSCHL = wa_item-KSCHL.
        wa_item-vtext = wa_t685t-vtext.
        if wa_item-kschl = 'ZBP1'.
          wa_item-qty = wa_item-KAWRT / wa_item-kbetr.
        endif.
        if wa_item-KRECH = 'A'.
         wa_item-kbetr = wa_item-kbetr / 10.
        endif.
        if wa_item-kschl = 'NAVS'.
          wa_item-vtext = 'Sales Tax'.
        endif.
        MODIFY it_item from wa_item TRANSPORTING vtext kbetr kschl qty
          WHERE stunr = wa_item-STUNR and
                kposn = wa_item-kposn.
      ENDLOOP.
      DELETE it_item WHERE kposn = '000000'.
      DELETE it_item WHERE kschl <> 'ZBP1' and kschl <> 'ZD01' and kschl <> 'ZE01'
          and kschl <> 'NAVS' and kschl <> 'ZSRV'.
      sort it_item by kposn STUNR.
    CALL FUNCTION '/1BCDWB/SF00000025'
      EXPORTING
        ARCHIVE_INDEX              =
        ARCHIVE_INDEX_TAB          =
        ARCHIVE_PARAMETERS         =
        CONTROL_PARAMETERS         =
        MAIL_APPL_OBJ              =
        MAIL_RECIPIENT             =
        MAIL_SENDER                =
        OUTPUT_OPTIONS             =
        USER_SETTINGS              = 'X'
      IMPORTING
        DOCUMENT_OUTPUT_INFO       =
        JOB_OUTPUT_INFO            =
        JOB_OUTPUT_OPTIONS         =
        TABLES
          it_ekko                    = it_ekko
          it_item                    = it_item
      EXCEPTIONS
        FORMATTING_ERROR           = 1
        INTERNAL_ERROR             = 2
        SEND_ERROR                 = 3
        USER_CANCELED              = 4
        OTHERS                     = 5
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    endif.

  • Parameter Form-How to use a user parameter to retrieve list of values for another par

    I am developing a report in Reports 6i. There are 2 parameters on parameter form namely year and month.
    LOV for Year is retrieved from database. After user selects a value from LOV for year, I want to retrieve another LOV for month parameter based on selected year. That is how can we use a user parameter's value to dynamically retrieve an LOV for another parameter on the same parameter form.
    Pl. guide.
    Thanks in anticipation.

    You can't restrict the "List of Values" of one parameter based on the value of another parameter within the Reports Builder/Runtime parameter form.
    The SQL select statements within LOV's are only executed once. They aren't re-calculated when you enter, leave or change other field values in the parameter form. This is mainly because there is no event model in the Reports parameter form and it only supports basic form functionality.
    To do what you're after in a client-server environment you need to create an Oracle Forms "parameter form" and use that to execute the Report using the run_product() call. Actually, you should probably use Oracle Forms for any more generic "form" functionality such as radio buttons or check boxes.
    If you're in a Web rather than Client-Server environment, it may be easier to create a JSP based parameter form. You can then use Reports 9i since it has JSP support to assist here.

Maybe you are looking for