How to create a dropdown box in free hand sql??

Post Author: nalinipers
CA Forum: Desktop Intelligence Reporting
Hi every body,I have created a report by using free hand sql. My client wants to create a drop down box in that report.I do not know how to create the drop down box as i know how to create prompts in free hand sql.can you please help me to create the drop down box by using free hand sql. Periyasamy.

Post Author: jsanzone
CA Forum: Desktop Intelligence Reporting
Hi Periyasamy,
A drop down box is the same as a prompt that you would build when working in Designer.  If you already have the prompt in mind that you want to use and it exists in your universe, then the easiest way to make it work in free hand SQL is to first build your query in the normal fashion that you would for any other report and include that prompt.  Once you've got the objects and filters pretty much set, then capture the SQL, and modify it now as free hand SQL for your own situation.  You will notice that there may be some "@prompt" stuff scattered in your SQL, which will now run as a drop down box when you go to run your free hand SQL.  You can take note of how things were constructed and the next time you have to build your own free hand SQL you can either do it again the way just described, or build it totally on your own.

Similar Messages

  • How to Create a DropDown Box in a Selection Screen.

    Hi,
    I have a question. i.e, How to create a dropdown box in a Selection Screen. Could you please assist me.
    Thanks & Regards
    Sathish Kumar

    hi satish,
    The following can assist u to create a drop down ....
    Drop down list box can be created in a dialog screen(SE51) as well as selection screen.
      The sap list box allows to select a value from the list but we cannot enter our own value in the list box .The value list that will be displayed consists of two
    fields TEXT field of TYPE 80(C) and internal KEY field of TYPE 40(C).
    In screen painter to create a input/output field into list box we use
    'L" as a value for dropdown attribute for the i/o field.
    In screen painter to determine the type of method that will be used to fill the value
    list we use the attribute value list.
    If it is blank  the value list will be filled by the first column of the input help assigned to the screen field.This input help can be defined in the ABAP Dictionary, on screen using SELECT,VALUES screen statements or in event POV (PROCESS ON VALUE-REQUEST ) and the input help that will be passed to the field should consists of 2 columns ,the key column is filled automatically by the system.SAP recommends value list field should be blank.
    or
    The value  can be 'A' meaning that the value list will be filled in the event PBO(PROCESS BEFORE OUTPUT) or before the screen is displayed.In this method we use function module VRM_SET_VALUES to fill the values and pass it to the i/o field.
    If a function code is attached to the list box the selection of a value triggers a PAI
    otherwise PAI will not trigger.
    Example
    Dropdown list boxes
    REPORT DEMO_DYNPRO_DROPDOWN_LISTBOX.
    TYPE-POOLS VRM.
    DATA: NAME  TYPE VRM_ID,
          LIST  TYPE VRM_VALUES,
          VALUE LIKE LINE OF LIST.
    DATA: WA_SPFLI TYPE SPFLI,
          OK_CODE LIKE SY-UCOMM,
          SAVE_OK LIKE SY-UCOMM.
    TABLES DEMOF4HELP.
    NAME = 'DEMOF4HELP-CONNID'.
    CALL SCREEN 100.
    MODULE CANCEL INPUT.
      LEAVE PROGRAM.
    ENDMODULE.
    MODULE INIT_LISTBOX OUTPUT.
      CLEAR DEMOF4HELP-CONNID.
      SELECT  CONNID CITYFROM CITYTO DEPTIME
        FROM  SPFLI
        INTO  CORRESPONDING FIELDS OF WA_SPFLI
       WHERE  CARRID = DEMOF4HELP-CARRIER2.
        VALUE-KEY  = WA_SPFLI-CONNID.
        WRITE WA_SPFLI-DEPTIME TO VALUE-TEXT
                               USING EDIT MASK '__:__:__'.
        CONCATENATE VALUE-TEXT
                    WA_SPFLI-CITYFROM
                    WA_SPFLI-CITYTO
                    INTO VALUE-TEXT SEPARATED BY SPACE.
        APPEND VALUE TO LIST.
      ENDSELECT.
      CALL FUNCTION 'VRM_SET_VALUES'
           EXPORTING
                ID              = NAME
                VALUES          = LIST.
    ENDMODULE.
    MODULE USER_COMMAND_100.
      SAVE_OK = OK_CODE.
      CLEAR OK_CODE.
      IF SAVE_OK = 'CARRIER'
         AND NOT DEMOF4HELP-CARRIER2 IS INITIAL.
        LEAVE TO SCREEN 200.
      ELSE.
        SET SCREEN 100.
      ENDIF.
    ENDMODULE.
    MODULE USER_COMMAND_200.
      SAVE_OK = OK_CODE.
      CLEAR OK_CODE.
      IF SAVE_OK = 'SELECTED'.
        MESSAGE I888(BCTRAIN) WITH TEXT-001 DEMOF4HELP-CARRIER2
                                            DEMOF4HELP-CONNID.
      ENDIF.
    ENDMODULE.
    Reward if useful.
    Thank you,
    Regards.

  • WebI - free hand sql

    Hi,
    I am new to WebI. I am runiing BO Xi 3.1. Does anyone know how to create a Webi report using free hand sql?

    Hi Efstratios -
    I have to agree with the statement:
    There is no direct support for free hand SQL in Web Intelligence.
    If by "direct support" we're talking about an intuitive and manageable way to enter free-text SQL and "let Webi do the rest", then it's certainly not true. Currently, an end-user is required to endure several painstaking steps and cautions to align the SQL select of a freehand sql written in the Webi SQL pane with that's been dragged-and-dropped to the Result Objects pane in the Java Report Panel.  Even after this process is finished and the user has a report,  any change in # of result objects (columns) requires the user to once again re-create the SQL.
    The current superior method to accomplish this is to use Desktop Intelligence, or create the derived table in a Universe as Dave mentioned.

  • How to create a dropdown in Web Dynpro

    Hi,
        I just wanted to know how to create a dropdown box.
        Actually I am using a webservice and on the view I have to create a dropdown box with 4 values inside it.Also I have to map dat same field with one of the fields in the webservices request node.Is this possible???

    Hi,
    You can create Dropdown in two ways,
    1. Create a simpleType.(DictionariesLocal dictonarysimpleTypes)
    2. Go to enumeration , and add the data.
    3. Create a context and in the property of the context , choose select and select the local dictionary and select the one which you have created.
    4. You can create a DropDownKey and map to the context.
    Dropdown by Index.
    1.) Take DropDownByIndex UI Element in the Layout Tab.
    2.) Take One ValueNode Named "Employee" in the Context.
    3.) Take One Value Attribute Named "Id" for the Node "Employee".
    4.) Bind "Employee.Id" to the texts Property of the DropDownByIndex.
    5.) Set the "Employee" Node Properties in the Context Tab as
    a.) Cardinality --> 0..n
    b.) Selection --> 1..1
    c.) Singleton --> True
    6.) Write the Below Code in the Implementation Tab.
    IPrivate<View Name>.IEmployeeElement empEle;
    for(int i=0;i<3;i++)
    empEle = wdContext.createEmployeeElement();
    empEle.setId("Emp Id "+i);
    wdContext.nodeEmployee().addElement(empEle);

  • How to create a text box in ascreen painter?

    HI friends can anyone tell me how to create a text box in a screen painter?
    And attachment BROWSER like what we attach for any documents in over mail.
    Example when we click on browser the path of the computer has to be opened and by giving the document name attach and the document will be attached. Please tell me the procedure....
    Thks

    To get the best answers, I think you probably need to break down your post into several different one with a separate question in each, along with the business problem you are trying to solve... but here's a few pointers for you to research...
    Textbox - there's plenty of info in SDN on creating a custom control with a textbox e.g. Re: Text Editor on modulepool Screen and sample code in SAP too.
    Attachments - If this is for an email, then GUI_UPLOAD might help and the BCS class is the newer way to send messages... check out Re: Offline Approval: RBBP_NOTIFICATION_OFFAPP Vs RSWUWFMLEC for example... if this is an attachment for an SAP object such as an FI Document or Purchase Order, then the Generic Object Services (GOS) could be what you want e.g. https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0e6b0d95-0a01-0010-4696-ca0a48de5fb3
    Jonathan

  • Wondering how to create a text box with variables...

    Hi everyone,
    I was wondering how to create a text box, that at the beginning of the presentation, the audience fills in regarding what they think constitutes the role they have been chosen for.
    I would like that same box to then appear at the end of the presentation, with the text they typed in at the beginning, so they can reflect on what they think now, and what they thought then. I understand this is done using variables, but i'm not 100% sure.
    I hope I've worded this okay!

    This screenshot shows the properties panel, Style tab for the TEB. I relabeled it to My_TEB, used the X button  to create a user variable v_choice that will replace the generic Text_Entry_Box_1/
    This is the properties panel of a Shape, I went in Edit mode (double clicking)to make the Character section appear, where you find the X button. It opens the dialog box 'Insert Variable' and you can choose the var associated with the TEB. The Maximum Length will define how many characters will be displayed, the value of a variable has maximum 256 characters.

  • How-to create dependent list boxes in a table -Frank Sample

    hi everyone i would like to ask a suggestion about Frank's example on How-to create dependent list boxes in a table -Frank Sample ...
    i want to extend this example for 3 dependent lists... including locations, departaments and employes....
    this the ListboxBean java that Frank is using in his example.... and this is only for locations and departaments tables and it works ok... i want to add the third list for employers wich is dependent only from departaments list.... as i am not good in java i would like to ask u a suggestion on how to develop the third list in this java class ...
    public class ListboxBean {
    private SelectItem[] locationsSelectItems = null;
    private SelectItem[] departmentsSelectItems = null;
    public SelectItem[] getLocationsSelectItems() {
    if (locationsSelectItems == null){
    FacesContext fctx = FacesContext.getCurrentInstance();
    ValueBinding vbinding = fctx.getApplication().createValueBinding("#{bindings.LocationsView1Iterator}");
    DCIteratorBinding locationsIterBinding = (DCIteratorBinding) vbinding.getValue(fctx);
    locationsIterBinding.executeQuery();
    Row[] locRowsArray = locationsIterBinding.getAllRowsInRange();
    // define select items
    locationsSelectItems = new SelectItem[locRowsArray.length];
    for (int indx = 0; indx < locRowsArray.length; indx++) {
    SelectItem addItem = new SelectItem();
    addItem.setLabel((String)locRowsArray[indx].getAttribute("City"));
    addItem.setValue(locRowsArray[indx].getAttribute("LocationId"));
    locationsSelectItems[indx] = addItem;
    return locationsSelectItems;
    return locationsSelectItems;
    public SelectItem[] getDepartmentsSelectItems() {
    FacesContext fctx = FacesContext.getCurrentInstance();
    ValueBinding vbinding = fctx.getApplication().createValueBinding("#{row}");
    JUCtrlValueBindingRef rwJUCtrlValueBinding = (JUCtrlValueBindingRef) vbinding.getValue(fctx);
    Row rw = rwJUCtrlValueBinding.getRow();
    if (rw.getAttribute(6) != null){
    OperationBinding oBinding = (OperationBinding) fctx.getApplication().createValueBinding("#{bindings.ExecuteWithParams}").getValue(fctx);
    oBinding.getParamsMap().put("locId",rw.getAttribute(6).toString());
    oBinding.execute();
    ValueBinding vbinding2 = fctx.getApplication().createValueBinding("#{bindings.DepartmentsView2Iterator}");
    DCIteratorBinding departmentsIterBinding = (DCIteratorBinding) vbinding2.getValue(fctx);
    departmentsIterBinding.executeQuery();
    Row[] depRowsArray = departmentsIterBinding.getAllRowsInRange();
    // define select items
    departmentsSelectItems = new SelectItem[depRowsArray.length];
    for (int indx = 0; indx < depRowsArray.length; indx++) {
    SelectItem addItem = new SelectItem();
    addItem.setLabel((String)depRowsArray[indx].getAttribute("DepartmentName"));
    addItem.setValue(depRowsArray[indx].getAttribute("DepartmentId"));
    departmentsSelectItems[indx] = addItem;
    return departmentsSelectItems;
    public void setLocationsSelectItems(SelectItem[] locationsSelectItems) {
    this.locationsSelectItems = locationsSelectItems;
    public void setDepartmentsSelectItems(SelectItem[] departmentsSelectItems) {
    this.departmentsSelectItems = departmentsSelectItems;
    Thanks in advance :0

    Hi,
    I think that all you need to do is to look at how I implemented the dependent detail for querying the Employees select items
    Then you make sure the DepartmentsVO and the EmployeesVO have bind variable to query them according to the pre-selected value in their respective master list
    Frank

  • How to create conditional dialog box

    Hi Everyone
    I am creating a database application in APEX 4.0. In that application a page requires a dialog box, which has to appear when a user clicks on Submit button.
    It has to consider validations and appear after validations and submit button is clicked. Here the Submit button submits the entire page after validations by updating the database table.
    Please help me out how to create a dialog box which has to appear by the click of Submit button.
    Thanks in advance
    Regards
    Sandeep

    Hi Kiran
    Thanks for responding,
    Sorry for providing the complete details.
    Provided link is much more helpful, but its not meeting my needs. My requirement is to just show a popup box after the user clicks on submit button.
    Saying 'Thank you for answering' if he is done with all questions or if he has more questions to answer pop up with different message 'You have more questions to answer'.
    In both the cases page as to get submitted when clicked on Submit button.
    Thanks in advance
    Regards
    Sandeep

  • How to created a Report to calculate On-Hand inventory for pending sales

    hi,
        how to  created a Report to calculate On-Hand inventory for pending sales orders.for this report what are the tables and fields we have to use give me sample report.
    thank you
    radhakrishna.

    Hi!
    Tables:
    VBAK - sales order header data
    VBAP - sales order position data
    VBUK - sales order status header data
    VBUP - sales order status position data
    VBELN field is the key between the tables.
    Statuses in tables VBUK, VBUP: A-uncompleted, B-partially completed, C-fully completed
    Regards
    Tamá

  • Can we create LOV using free hand sql with out hardcoding

    Hi gurus,
    Dear All,
    For some of the reporst we don't have universe, so we use to get the report with the help of free hand sql,
    but here I have to hardcode the list of values by using @prompt, but instead of hardcoding is there any ways to get the list of vaues  by using @prompt, if then can any one help me out.

    Yes and no.
    When we use a LOV in a universe, the SQL is generated from the object definition. With Free Hand SQL (FHS) there is no universe. However...
    If you create a very simple universe to host your LOV, and then reuse the same prompt text in your FHS then you can fake the LOV. This is not a great solution, but to be honest, FHS is never really a solution that I would consider. You might consider using Crystal to replace Deski in these cases.

  • How to disable free hand sql option in deski stanadalone mode

    I have a requirement where in i need to disable free hand sql option in deski standalone mode. Id this possible?
    Regards,
    AK

    Hi Alok,
    Kindly implement the following steps:
    1. Logon to CMC > Applications > Desktop Intelligence > User Security.
    2. Click on Add Principals and add the user account/user group to which you want to restrict the access > Add and Assign Security
    3. If the account/group is already there, Click on Assign Security > Advanced > Add/Remove Rights
    4. Select Advanced tab  and click on 'Add or Remove rights'
    5. Under Application, Click on Desktop Intelligence and deny the following rights.
    Edit Free-hand SQL --> Denied
    Use Free-hand SQL --> Denied
    I hope this helps.
    Regards,
    Nakul Mehta

  • Find out free hand sql reports

    Hi All,
    I need find out free hand sql reports we have above 3000 reports and we are using business objects 6.5.
    Could you please tell me any one how track these reports which table these informations.
    Advance Thanks.
    Regards,

    Hi Sreenivas,
    The following information might help you to retrieve the information you require.
    There is a universe available as a part of Auditor product for which you need a separate license. This product helps you to have better control of your repository usage. The universe is REP_ORA.
    You can create a very simple universe using the OBJ_M_DOCATVAR table. This is a new table in version 6.5.x. This table gives the source of each dataprovider. Full client reports can have more dataproviders, so it is a one-to-many relationship.
    If you add the OBJ_M_DOCUMENTS table to the universe and join them by doc_id (OBJ_M_DOCATVAR.M_DOC_N_ID = OBJ_M_DOCUMENTS.M_DOC_N_ID), then you will have the proper document (report) names instead of just the ID numbers.
    The OBJ_M_DOCATVAR table is updated each time a BusinessObjects (6.5.x) or a WebIntelligence (2.5) document is exported to the repository (Send to users, Send to Broadcast Server, Publish to Corporate documents).
    The basic fields you will need in the report:
    OBJ_M_DOCUMENTS.M_DOC_C_NAME: The name of the document. The name of the document is unique for each given document domain.
    OBJ_M_DOCATVAR.M_DOC_N_ID: The unique identifier of the document. This value is referenced in OBJ_M_DOCUMENTS. The properties are therefore only applied to exported documents.
    OBJ_M_DOCATVAR.M_DOCATV_C_DPNAME: The name of the Data Provider (DP) for the current document.
    OBJ_M_DOCATVAR.M_SRC_C_NAME: The name of the source. You can see it in the end-user module by opening a document and choosing to view the data manager. It can be a universe name or a connection depending on the type of Data Provider.
    Regards,
    Sarbhjeet Kaur

  • Not Converted : Free-hand SQL connection problem

    While converting a Free Hand SQL report from Desktop Intelligence to Web Intelligence report in BI XI 3.1, I am faced with the problem
    Not Converted : <REPNAME> - Free-hand SQL connection problem
    It is be noted that there are some other Free Hand SQL Reports, that go converted and published without any error. The subject report has two Data Providers; one referring to the Universe and other from the Free Hand SQL tagged to a DB Connection

    Ajay,
    Some more points that can be of consideration to you to help understand my problems.
    The conversion from DeskI to WebI is in the same version BI XI 3.1 and not to BI 4.0 in which Free Hand SQLs is not supported.
    I have converted one other Free Hand SQL Report with an error "Partially Converted : <REPNAME2> - Conditional or permanent Hide Header not available in Web Intelligence", for which I had to edit the report in InfoView and un-tick the "Show When Empty" property of the table ( http://www.forumtopics.com/busobj/viewtopic.php?t=197157&view=next&sid=e6840aafa2d1267c66dae164d1dbf9db ). I think the solution mentioned in this link does not meet the purpose as the table is not displayed in the design time after the above untick.
    Coming back to our issue, further probing into this aspect I stumbled upon this link meant for RCT for BI 4.0 version
    https://csdwportal.dhhs.state.nc.us/downloads/Business%20Objects%20XI%20R4.0%20Docs/SAP%20BusinessObjects%20Report%20Con…
    where in Section 3.4.9, there is a mention of the limitation in conversion as under
    "Conversion of reports with free-hand SQL or stored procedures is only possible in Connected mode, since the Report Conversion Tool needs to use the secured connection to the database that is saved in the CMS."
    I want to how the secured connection to the database in REPNAME2 is different from the subject report REPNAME1 as REPNAME2 got partially converted. The error reported for Subject report is "Free Hand SQL Connection Problem" and not conversion problem which can occur after the connection is established.
    I did check the security properties of various FHSQL connections in the CMC and all of them are identical in nature.
    Please advise

  • Free hand SQL

    Hi
    I want to create a report without using the semantic layer.
    Can I build a request that based on SQL that I write (like in BOs' free hand SQL)?
    I'll be happy to have the documentation
    Thanks
    Moshe

    You get some limited interaction (Page sections, totals, etc) when you view sql results as pivot tables.
    irene

  • Migrating Free Hand SQL Reports

    Post Author: sureshan
    CA Forum: Migration to XI R2
    Hi Buddies,
    We are  going to work on Migration project.Totally +350 reports  from BO6.5 to BOXIR2
    Universes and BusinessObjects(Desktop Intelligence) Reports.And all of them are
    Free Hand SQL Reports.We are having Oracle10g,Windows Server2003,BusinessObjectsXIR2 SP2
    with Java ,Tomcat servers software.
    Can any body provide us what type of Basic Procedures to be followed and what type of common  errors
    will be bombed while migrating the Free Hand SQL Reports.
    Its Very Very Urgent.Because we have to give demo to our Client.
    Thanks in Advance,
    Sun

    Hi Sreenivas,
    The following information might help you to retrieve the information you require.
    There is a universe available as a part of Auditor product for which you need a separate license. This product helps you to have better control of your repository usage. The universe is REP_ORA.
    You can create a very simple universe using the OBJ_M_DOCATVAR table. This is a new table in version 6.5.x. This table gives the source of each dataprovider. Full client reports can have more dataproviders, so it is a one-to-many relationship.
    If you add the OBJ_M_DOCUMENTS table to the universe and join them by doc_id (OBJ_M_DOCATVAR.M_DOC_N_ID = OBJ_M_DOCUMENTS.M_DOC_N_ID), then you will have the proper document (report) names instead of just the ID numbers.
    The OBJ_M_DOCATVAR table is updated each time a BusinessObjects (6.5.x) or a WebIntelligence (2.5) document is exported to the repository (Send to users, Send to Broadcast Server, Publish to Corporate documents).
    The basic fields you will need in the report:
    OBJ_M_DOCUMENTS.M_DOC_C_NAME: The name of the document. The name of the document is unique for each given document domain.
    OBJ_M_DOCATVAR.M_DOC_N_ID: The unique identifier of the document. This value is referenced in OBJ_M_DOCUMENTS. The properties are therefore only applied to exported documents.
    OBJ_M_DOCATVAR.M_DOCATV_C_DPNAME: The name of the Data Provider (DP) for the current document.
    OBJ_M_DOCATVAR.M_SRC_C_NAME: The name of the source. You can see it in the end-user module by opening a document and choosing to view the data manager. It can be a universe name or a connection depending on the type of Data Provider.
    Regards,
    Sarbhjeet Kaur

Maybe you are looking for

  • Boot Camp not able to download Windows 7 Install Disk

    I am trying to install Windows 8 on my 2011 Mac Mini. I have a Windows 8 disk, 8GB bootable USB drive, and am trying to download from Boot Camp: 1) a Windows 7 install disk, 2) latest Windows support from Apple, all to install  3) the Windows 8 OS on

  • Recover missing files from FAT32 SD card?

    I got back from a trip and used the SD card slot in my MacBook Pro to import my photos -- first into Aperture, and then using Image Capture to make a second copy as regular image files. Then I used Image Capture to delete the files from the card. So

  • LSMW  ERROR LOG

    Hi All, I am working on error log created by LSMW, my work is to develop a program which can convert that error log to more user friendly log so that end user can easily identify the error....... The input parameter can be log id or queue id. If any

  • Facing Problem in SICF configuration

    Dear gurus I want to add logon data in CONTNETSERVER service located in SICF . my PRD is in modifiable state but it does not allow me to enter the username and password. can you guide me how to add this detail ? or is there anyway i can transport the

  • How to use Swing Worker

    Hello, I have an exe file which is to be called from my program and it runs as seperate thread. The main purpose of this exe file is to create two files within the application directory. Next my program check to see if these files exists if these fil