How to add drop down list for query manager report in sap business one

Hi Every one,
I need drop down list for parameter selection in sap business one Query Manager.I have two Parameters 'Sales Order','Invoice'.
Please suggest.
Thanks and Regards
DEV

Hi,
you need to use this :
/*select from [dbo].[OINV] T2*/
DECLARE @Invoice varchar(100)
/*where*/
set @Invoice =/* T2.DocNum  */N'[%2]'
you can change the tables and the parameter number but you have to write it exactly that way.
when you run the query within the SBO you will get list of objects ( in this case list of invoices)
hope it was helpful
Shachar

Similar Messages

  • How to add drop down list through personalization on seeded page with value

    Hi All
    I am trying add add drop down list through personalization on seeded page with value
    I have go through with anill passi's block
    still I am getting problem to create

    I have download that page from server via mds
    but when I open that page in Jdev it doesnt shows any options like
    status
    even I have open that page in xml also but still doesnt shows any options like status
    following is xml file
    <?xml version="1.0" encoding="UTF-8" ?>
    - <!-- dbdrv: exec java oracle/jrad/tools/xml/importer XMLImporter.class java &phase=dat+24 checkfile:~PROD:~PATH:~FILE &fullpath_~PROD_~PATH_~FILE -username &un_apps -password &pw_apps -dbconnection &jdbc_db_addr -userId "1" -rootPackage /oracle/apps/~PROD -rootdir &fullpath_~PROD_mds_directory
    -->
    - <page xmlns="http://xmlns.oracle.com/jrad" xmlns:ui="http://xmlns.oracle.com/uix/ui" xmlns:oa="http://xmlns.oracle.com/oa" xmlns:user="http://xmlns.oracle.com/jrad/user" file-version="$Header: VacSrchPG.xml 120.3 2006/04/27 09:08:34 gganesan noship $" version="9.0.3.8.7_942" xml:lang="en-US">
    - <content>
    - <oa:pageLayout helpTargetAppShortName="per" id="IRC_VAC_SEARCH_PAGE" akRegionCode="IRC_VAC_SEARCH_PAGE" regionName="Vacancy Search Page" shortDesc="Page to enable managers to search for vacancies" amDefName="oracle.apps.irc.vacancy.server.VacancySearchAM" controllerClass="oracle.apps.irc.vacancy.webui.IrcVacSearchCO" helpTarget="PER_vacancy_VacSrchPG" function="IRC_CM_VACANCY_SEARCH" windowTitle="Vacancies" title="Vacancies">
    - <ui:corporateBranding>
    <oa:image id="corporateBranding" source="/OA_MEDIA/FNDSSCORP.gif" />
    </ui:corporateBranding>
    - <ui:productBranding>
    <oa:image id="productBranding" source="/OA_MEDIA/IRCBRAND.gif" />
    </ui:productBranding>
    - <ui:contents>
    <oa:query mode="autoCustomizationCriteria" dispSimple="true" dispCustomized="true" prompt="Search" id="VacancySearchQuery" user:akAttributeCode="FND_NESTED_REGION1" user:akAttributeApplicationId="0" extends="/oracle/apps/irc/vacancy/webui/VacSrchQueryRN" />
    <oa:formParameter id="IrcAction" adminCustomizable="false" user:akAttributeCode="FND_ACTION_NAME" user:akAttributeApplicationId="0" />
    <oa:formParameter id="IrcActionValue" adminCustomizable="false" user:akAttributeCode="FND_PRIMARY_KEY_VALUE" user:akAttributeApplicationId="0" />
    <oa:formParameter id="IrcActionType" adminCustomizable="false" user:akAttributeCode="FND_ACTION_TYPE" user:akAttributeApplicationId="0" />
    <oa:formParameter id="IrcFunction" adminCustomizable="false" user:akAttributeCode="FND_FUNCTION_NAME" user:akAttributeApplicationId="0" />
    <oa:formValue prompt="IRC_VAC_SEARCH_FLEX_PAGE" id="VacancyIdFlexDrill" promptTranslationExpansion="100%" user:akAttributeCode="FND_LINK_1" user:akAttributeApplicationId="0" />
    <oa:formValue id="IRC_SEARCH_INSTR_TEXT" rendered="false" />
    </ui:contents>
    - <ui:copyright>
    <oa:messageStyledText id="ICX_COPYRIGHT" extends="/oracle/apps/irc/common/webui/StandardFooterRN.ICX_COPYRIGHT" />
    </ui:copyright>
    - <ui:privacy>
    <oa:link id="ICX_PRIVACY" extends="/oracle/apps/irc/common/webui/StandardFooterRN.ICX_PRIVACY" />
    </ui:privacy>
    </oa:pageLayout>
    </content>
    </page>

  • How to add drop down list in toolbar?

    Hi SAP CRM Experts,
    After save the personalization of the view, there will be a drop down list appeared in the toolbar in the view, the drop value contain the personalization you just saved and the standard one.
    Could someone let me know how to enhance this functionality to create not only the view configuration but also customizing field drop down list?
    That means we want drop down list in toolbar which contain several options also it's value could pass to view controller.
    Thanks in advance...
    Tony

    Could someone kindly help?

  • Drop down list for User ID's and SAP List viewer format

    Couple of quick questions. Any help will be greatly appreciated.
    1) I need to put User ID on the selection criteria screen. And also, I need to build a dropdown list for user ID selection by finding all user IDs in the Finance department and put it on the list.
    2) I need to display the report in the SAP List viewer format, which enable these functions including sorting, hiding fields, filtering, exporting to an excel file as necessary. My output is currently plain vanilla as follows
    loop at ibkpf where belnr = ibseg-belnr.
           read table iskat with key saknr = ibseg-hkont.
           read table icepct with key prctr = ibseg-prctr.
           read table icskt with key kostl = ibseg-kostl.
           write:/
           iBKPF-BELNR,     " Accounting document number
           iBKPF-BUKRS,    " Company code
           iBKPF-GJAHR,     " Fiscal Year Range
           iBKPF-MONAT,     " Period
           iBKPF-USNAM,     " Username
           iBSEG-BELNR,      "Document #
           iBSEG-BUZEI,      "Item #
           iBSEG-BSCHL,      "Posting Key
           iBSEG-SHKZG,      "Debit/credit indicator
           iBSEG-PRCTR,      "Profit Center
           icepct-ktext,
           iBSEG-KOSTL,      "Cost Center
           icskt-ltext,
           iBSEG-HKONT,      "G/L Account
           iskat-TXT20,
           iBSEG-DMBTR,      "Local currency
           iBSEG-WRBTR,      "Document currency
           iBSEG-SGTXT,      "Explanation
           iBSEG-KOART.      "Account type

    Hello Syed
    Here is a sample coding for a dropdown listbox:
    *& Report  ZUS_SDN_DROPDOWN_LIST
    REPORT  zus_sdn_dropdown_list.
    TYPE-POOLS: vrm. " Value Request Manager: Typen und Konstanten
    DATA:
      gt_values   TYPE vrm_values.
    PARAMETERS:
      p_usrid    TYPE xubname AS LISTBOX VISIBLE LENGTH 13.
    INITIALIZATION.
    * Select the allowed values for dropdown listbox
      SELECT bname AS key FROM  usr02 INTO TABLE gt_values
             WHERE  bname  LIKE 'S%'.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id              = 'P_USRID'
          values          = gt_values
        EXCEPTIONS
          id_illegal_name = 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.
    START-OF-SELECTION.
    END-OF-SELECTION.
    You have two fields for the listbox available:
    - KEY (obligatory)
    - TEXT (optional)
    Regards
      Uwe

  • How to change number of remembered items which would be shown in drop down list for edit controls. This use to be at least 5 I think, but now it is only 2!

    I need to see 3 different remembered usernames in drop-down list for username input.

    Works fine here. I can see at least four user names in the drop down list of a login form.
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Custom drop down list for the filter for BEX report

    Hi, all:
    I am writing a query for a BEX report that prompts the user to enter a value for a field "GL account".  I would like to have the user select from a limited number of GL options rather than have the whole Chart of accounts show up. Is there a way to make a "custom" drop down list for the filter?
    Thanks!
    Jenny

    You need to make your GL account info object as an authorization object. And in the info object ,for BEx you need to select the option "only authorized values".
    Create an analyis authorization on gl account and assign the restricted set of GL accounts to the user. Asign this analysis authorization to the user.In the query restrict this infoobject with an authorization variable. This would solve your purpose.user would be able to see only a selected set of GL accounts for which he is authorized.

  • How to get drop down list (list of values) in selection-screen

    Hi al,
       This is anilreddy. Please let me knew the solution
    How to get the drop down list for a fieldin selection-screen (not in dialog programming)
    (not as POV)
    Regards,
    anilreddy

    REPORT ZTESTPRG.
    TYPE-POOLS: VRM.
    DATA: NAME  TYPE VRM_ID,
          LIST  TYPE VRM_VALUES,
          VALUE LIKE LINE OF LIST.
    PARAMETERS: PS_PARM(10) AS LISTBOX VISIBLE LENGTH 10.
    AT SELECTION-SCREEN OUTPUT.
    NAME = 'PS_PARM'.
    VALUE-KEY = '1'.
    VALUE-TEXT = 'LINE 1'.
    APPEND VALUE TO LIST. VALUE-KEY = '2'.
    VALUE-TEXT = 'LINE 2'.
    APPEND VALUE TO LIST.
    CALL FUNCTION 'VRM_SET_VALUES' EXPORTING ID = NAME VALUES = LIST.
    START-OF-SELECTION.
    WRITE: / 'PARAMETER:', PS_PARM.
    Thanks
    Mahesh

  • How to put drop down list

    Hi All,
    I have added Z_field in Va01 Transaction. I want to put drop down list for that .
    Can you please suggest me how to do that.
    Regards
    Radha

    Hi Radha Konjeti,
    To have a dropdownlist/listbox in your report, use this demo code for creating a listbox with a set of values in it and select a single value for processing:-
    REPORT  Y_MOVIE MESSAGE-ID ZMSG.
    TABLES : Y_MOVIES.
    TYPE-POOLS: VRM.
    TYPES : BEGIN OF MOVIE,
            YR LIKE Y_MOVIES-YR,
            CATEGORY LIKE Y_MOVIES-CATEGORY,
            WINNER LIKE Y_MOVIES-WINNER,
            NOTES LIKE Y_MOVIES-NOTES,
            END OF MOVIE.
    DATA: NAME TYPE VRM_ID,
          LIST TYPE VRM_VALUES,
          VALUE LIKE LINE OF LIST,
          MOVIETAB TYPE STANDARD TABLE OF MOVIE INITIAL SIZE 10 WITH HEADER LINE.
    PARAMETERS: CATEGORY(10) AS LISTBOX VISIBLE LENGTH 10.
    AT SELECTION-SCREEN.
      IF CATEGORY EQ ''.
        MESSAGE E006.
      ENDIF.
    AT SELECTION-SCREEN OUTPUT.
      NAME = 'CATEGORY'.
      VALUE-KEY = 'PIC'.
      VALUE-TEXT = 'PIC'.
      APPEND VALUE TO LIST.
      VALUE-KEY = 'MAL'.
      VALUE-TEXT = 'MAL'.
      APPEND VALUE TO LIST.
      VALUE-KEY = 'FEM'.
      VALUE-TEXT = 'FEM'.
      APPEND VALUE TO LIST.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          ID     = NAME
          VALUES = LIST.
    START-OF-SELECTION.
      WRITE : / 'Category Selected :', CATEGORY.
      ULINE.
      SELECT
      YR
      CATEGORY
      WINNER
      NOTES
      FROM Y_MOVIES INTO TABLE MOVIETAB
      WHERE CATEGORY = CATEGORY.
    END-OF-SELECTION.
      WRITE : /1 'Year', 6 'Category', 16 'Winner', 50 'Notes'.
      ULINE.
      LOOP AT MOVIETAB.
        WRITE : /1 MOVIETAB-YR, 8 MOVIETAB-CATEGORY, 16 MOVIETAB-WINNER, 50 MOVIETAB-NOTES.
        ULINE.
      ENDLOOP.
      IF SY-SUBRC <> 0.
        MESSAGE I005.
      ENDIF.
    Hope this solves your problem.
    Thanks & Regards.
    Tarun Gambhir.

  • Lotus Notes Missing in Drop Down List for Calendar Synch

    Hello there,
       A) I am attempting to synch my blackberry tour with my calendar in Lotus Notes 8.5.2.  I was able to previously synch my calendar when I had Lotus Notes 8.5.1, but since our upgrade to 8.5.2, I get an error saying it could not find a supported version of Lotus Notes. 
      B)  When I try to go in and configure the organizer section of the desktop software, there is no option for the drop down list for Lotus Notes.  I have tried uninstalling, rebooting and then reinstalling (based on info from other posts), but none of that seems to work.  I have checked and all the connectors are there, but for some reason, they are not being recognized.  Is there some specific key or file that intellisynch is looking for to know that Lotus Notes is installed on the machine?
    Now, I am assuming A&B are symptoms of a common problem, but I am at a loss as to how to move forward.  Any ideas on how I can get this software to recognize Lotus Notes?  I appreciate any help you can give.
    Thanks,
    Rick

    While calling method SET_TABLE_FOR_FIRST_DISPLAY pass 'A' to paramater I_SAVE .
    CALL METHOD grid1->set_table_for_first_display
          EXPORTING i_structure_name = 'SFLIGHT'
                    is_variant       = gs_layout           
                    i_save           = 'A'
                    i_default        = p_def
          CHANGING  it_outtab        = gt_sflight.

  • How to modify drop down list values of a screen field in UDM_DISPUTE?

    Hi All,
    I have a requirement wherein i need to modify the drop down list for a screen field depending on the value of the other screen field in transaction UDM_DISPUTE. 
    Please suggest how this can be achived.
    Any BADI 's or any other approach is available?
    Thanks in advance,
    Srilakshmi.

    Hi,
    At what time do you want to modify the drop down list, while creating or after creating the dispute case. There are some BADI's where we can change the attribute drop down list values.
    Thanks,
    Sunil

  • Drop down list for a field in table maintainance

    Hi,
    I have created a table maintainance for ztable. I need a drop down list for field so that user can select values present in the list while giving entries.
    I can not use fixed values in domain, because feild length is more and it wont fit into fixed values.
    I am trying to use VRM_SET_VALUES FM but not getting output. Can any one help me on this.
    Thank you,
    Regards,
    Kusuma K.

    TYPE-POOLS: vrm.        Include this in your program
    DATA: l_name  TYPE vrm_id,
          l_list  TYPE vrm_values,
          l_value LIKE LINE OF l_list.
      LOOP AT it_paym INTO w_paym.
        l_value-key = w_paym-pay_method.
        l_value-text = w_paym-text.
        APPEND l_value TO l_list.
      ENDLOOP.
      l_name = 'Table-field'.   change it as per your requirement this has to be perfect
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id              = l_name
          values          = l_list
        EXCEPTIONS
          id_illegal_name = 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.
    Hope it helps you,
    Abhijit G. Borkar

  • How to add drop down in SAP screen module pool

    Hi,
    Can you please advise me on how to add drop down in SAP module pool screen (a drop down with fixed set of values).
    Thanks
    Mohit

    Hi,
    Hope it helpful.
    Refer the Program : rsdemo_dropdown_listbox
    Regards,
    Venkat.

  • How to create drop down option in service manager 2012 incident portal

    Hii,,
    Please assist how to create drop down option in service manager 2012 SP1 default incident portal. We would like to provide the drop down option in "Please enter the title for the Issue" to our users.
    Regards, Syed Fahad Ali

    As was already referenced, you could use a Simple List for the prompt, however if you are referring to the default General Incident that is available out-of-the-box, you might be limited in what you can modify. 
    I did some work for a client, that wanted to have a list and other options for the General Incident through the Portal. So, I ended up having to create a custom General Incident instead of using the default one, which will then allow you to add any type
    of prompts, and configure them as you want (i.e. with a simple list). 

  • How to add a parameter to sql query in report

    Hi
    How to add a parameter to sql query in report.
    Parameter is from Visual studio
    example:
    select * from tab1 where dl=parameter???
    I have VS 2008 prof CR XI R2, mysql

    Hello,
    If you have this API available then you can modify the record selection formulae in code to add filtering:
              string recordSelectionFormula = "{T_INV_RPT_ADDR.IND_PROMUS} = {?P_PROMUS?} AND {T_INV_RPT_POINT.INVOICE_DATE} = DATE(2008, 05, 31) AND {T_INV_RPT_POINT.CHECKOUT_DATE} = date(2008, 04,29)";
                CrystalDecisions.CrystalReports.Engine.ReportDocument.RecordSelectionFormula = recordSelectionFormula;
    You have to format and follow the rules as in the Designer so not too much work to get this to work.
    CR for .NET may not have the ability so you will need to upgrade to a Developer version of Crystal Reports.
    Thank you
    Don

  • How to display a static drop down list for af:query

    Hi
    can anyone tell how to display a static drop down list in af:query panel. JDeveloper version 11.1.1.5.0
    Thanks in advance

    Here is my Usecase
    My View Object consists of (Student ID, Name,Roll No) now i want to include one more attribute say No.of Rooms(i added it as a Transient attribute).
    Now i want to display the transient attribute values in the form of LOV.
    Thanks

Maybe you are looking for