SAP query wild char on the selection screen.

hi,
i have developed SAP query but on the selection screen if i give for ex for biliing docs 251* it doe snot fetch any data.
Does wild chars work on selction screens of SAP  query?
Regards,
Chandan

Hi Chandan,
By default select option does accept wild cards.
I have used some thing like this and it works properly :
SELECT-OPTIONS:
  s_kunnr FOR w_kunnr            DEFAULT 'SE*',    "Customer Number
Now while you want to SELECT
Replace '*' with '%' and then use LIKE to fetch data.
  CONSTANTS:
            lc_aster      TYPE c VALUE '*',
             lc_percent    TYPE c VALUE '%'.
w_kunnr = s_kunnr-low.
REPLACE ALL OCCURRENCES OF lc_aster IN w_kunnr WITH lc_percent.
* for selecting
    SELECT     kunnr
    INTO TABLE lint_kunnr
    FROM       kna1
    WHERE      kunnr LIKE w_kunnr.
I hope this helps you !!

Similar Messages

  • Error while using selection option variable in the selection screen

    Hi All,
    I am facing an issue while using selection option variable in the selection screen for one of my reports.
    Scenario: For the field "Region From" we need to have wild card logic () in tes selection screen, for example if we put "BE" in the selection screen for the field Region From then the query should be executed only for those "Region From" values which begin from "BE".
    Approach: For the above requirement I have made a selection option variable for "Region From". This allows use wild card
    But when the report is executed we get the following error:
    "System error in program CL_RSR_REQUEST. Invalid filter on ETVRGNFR".
    (ETVRGNFR is technical name of the info object Region From)
    Though the report is executed it displays all the values for the field "Region From" irrespective of the selection given in the selection screen.
    Please give suggestions / alternate solutions to crack this issue.
    Thanks in advance
    Regards
    Priyanka.

    Hi,
    Try to use a variable of type Customer Exit and do the validation inside the exit to display according to your request.
    This is just my view, i am not sure if u are already using this or Char. Variable.
    Cheers.
    Ranga.

  • Controlling the blank variable on the selection screen

    Hi, I have a query with five keyfigures and each keyfig is restricted by a variable. The variables are BP, ID, Street, City, Country, Postcode. And when I input the value in one variable or two i just wnat to display that data relates to the input criteria.
    Eg: When I enter BP: 1019089 and City: NewYork, here i jsut wnat to see bp and the BPs relates to Newyork. But in my case I'm also getting info relates to all coutries, streets and postcode (I want to restrict this data how ?).
    Because ID, Street, Country and Postcode variable are blank on the selection screen, it is displaying everything.
    How to restrict displaying data for blank variables. Please suggest. Thanks

    You will need to use custom exit variables. Check out "Using Customer Exit Variables in BW Reports". Parts 1 - 4:
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/20f119d9-922d-2c10-88af-8c016638bd90
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/f002c608-2533-2c10-25a1-d0e7f7b5b662
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/10fc4382-afa6-2c10-1380-fa224fe4324f
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/f0fefc77-40e3-2c10-8da3-d4bfcb013387

  • Display "without PGI" & "PGI done not invoiced" in the selection screen

    Hi All,
    I am preparing a query to track the status of outbound deliveries and would greatly appreciate it if you could guide me on the following requirement.
    Is there a way to display the following two fields in the "Selection Screen" of a query (TCode: SQ00).
    1. Without PGI (Delivery document saved but the delivery is yet to do a PGI).
    2. PGI done but not invoiced (PGI is done but the invoice is not raised).
    I have already added, joined LIKP and LIPS and retrieving a host of information from these two tables but stuck on the two points above.
    Thanks in advance.

    SAP SD_Newbie wrote:
    > The user wants these fields in the "Selection Screen" of the query (SQ00).
    >
    > 1. Without PGI (Delivery document saved but the delivery is yet to do a PGI).
    > 2. PGI done but not invoiced (PGI is done but the invoice is not raised).
    >
    > Importantly, I am a bit reluctant to use any other table apart from LIKP and LIPS  (I tried joining other tables but the performance was drastically slow because of too many inner / left outer joins).
    I do agree that standard transactions should be considered instead. The users always want the darndest things...
    Query is not a custom report and has some limitations, which needs to be understood by the users. We can't add such buttons/checkboxes on the screen in a query, but we can add the status fields as selection criteria.
    Since query is at the line item level (LIPS), the statuses also are needed at the line item level, which is VBUP table. WBSTA is GM status, FKSTA is billing status. I'd guess that if WBSTA is 'A' then it's not PGIed and if FKSTA is 'A' then it's not invoiced. But I'd check in your system to make sure the statuses are updated as expected.
    VBUP can be joined by primary key, so it shouldn't have a huge negative effect on performance. In any case, this is the only way to deliver such information in a query, I believe.

  • Restrict filter values that are shown in the selection screen

    Hi Experts
    1) Is it possible to restrict the filter values that are shown in the selection screen in BEx web? When a user are asked to enter a material number and uses the selection button in BEx web, he should only see material numbers for one specific plant. How is this done? 
    2) Is it possible to remove the selection button for å characteristic filter in the selection screen in BEx web? The selection button I am talking about is the button to the right of where you enter the filter value (two white papers on top of each other). If there is no solution for question 1 we have to go for question 2 solution.
    We are using BI 04s, SP 09.
    Kind regards
    Erik

    Hi Erik,
    It seems that you would like the user to see value for 1 single plant. If the Plant Value is fixed then you can use this value in the Query and hardcode it.> in the query go to the Plant Chrac and keep a constant value of the Plant.
    How ever if you need this value to be dynamic then use a variable for customer exit and populate this value using ABAP.
    Regards,
    Jasprit

  • F4 Help for the selection screen field

    Hi Gurus,
    I have to display F4 help for a selection screen field. i am using following code:
        CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
             EXPORTING
                  retfield        = 'CODE'
                  dynpprog        = lw_repid
                  dynpnr          = sy-dynnr
                  VALUE_ORG       = 'S'
             TABLES
                  value_tab       = gi_text
                 field_tab       = li_fields_tab
                  return_tab      = pi_return_tab
             EXCEPTIONS
                  parameter_error = 1
                  no_values_found = 2
                  OTHERS          = 3.
    My internal table gi_emp has two fields CODE & TEXT. When i select 1 particular value, it returns the CODE value in the pi_return_tab table.
    But my requirement is i have to capture the corresponding TEXT value for the Returned CODE. Ex: following is the F4 help being displayed: -
    001    test
    001    test1
    but is i select code 001(First Value), i also need to capture it's corresponding Text value. In return table pi_return_tab i have only Code value.
    Please help me out.
    Note: Based on return code i can't search into the internal table gi_code, because as shown in the example, code has multiple text.

    Sachin,
    I think this is what you need. The following code will return the key and the text (OR any other columns), if both columns are in the selection screen the selected values (both columns) will also be passed to the corresponding parameters. If you only need the text to be in the return table and not passed to the selection screen then set the parameter for text with NO-DISPLAY option.
    REPORT zktest01 .
    DATA :
      BEGIN OF value_tab OCCURS 0,
        field  LIKE e070-trkorr,
        text   LIKE e07t-as4text,
      END OF value_tab.
    DATA: t_fldtab LIKE dfies OCCURS 0 WITH HEADER LINE,
          t_rettab LIKE ddshretval OCCURS 0 WITH HEADER LINE,
          t_dynmap LIKE dselc OCCURS 0 WITH HEADER LINE.
    PARAMETERS : p_field  LIKE value_tab-field,
                 p_text   LIKE value_tab-text. "NO-DISPLAY.
    INITIALIZATION.
      t_fldtab-tabname   = 'VALUE_TAB'.
      t_fldtab-fieldname = 'FIELD'.
      t_fldtab-langu     = 'E'.
      t_fldtab-position  = 1.
      t_fldtab-offset    = 0.
      t_fldtab-fieldtext = 'Key'.
      t_fldtab-reptext   = 'Key'.
      t_fldtab-leng      = 20.
      t_fldtab-intlen    = 20.
      t_fldtab-outputlen = 20.
      t_fldtab-datatype  = 'CHAR'.
      t_fldtab-inttype   = 'C'.
      t_fldtab-headlen   = 20.
      t_fldtab-keyflag   = 'X'.
      t_fldtab-lowercase = ' '.
      APPEND t_fldtab.
      t_fldtab-tabname   = 'VALUE_TAB'.
      t_fldtab-fieldname = 'TEXT'.
      t_fldtab-position  = 2.
      t_fldtab-offset    = 20.
      t_fldtab-fieldtext = 'Text'.
      t_fldtab-reptext   = 'Text'.
      t_fldtab-leng      = 60.
      t_fldtab-intlen    = 60.
      t_fldtab-outputlen = 60.
      t_fldtab-headlen   = 60.
      t_fldtab-keyflag   = ' '.
      t_fldtab-lowercase = ' '.
      APPEND t_fldtab.
      value_tab-field = '101'.
      value_tab-text = 'dddd'.
      APPEND value_tab.
      value_tab-field = '202'.
      value_tab-text = 'aaaa'.
      APPEND value_tab.
      t_dynmap-fldname = 'FIELD'.
      t_dynmap-dyfldname = 'P_FIELD'.
      APPEND t_dynmap.
      t_dynmap-fldname = 'TEXT'.
      t_dynmap-dyfldname = 'P_TEXT'.
      APPEND t_dynmap.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_field.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
           EXPORTING
                retfield        = 'FIELD'
                dynpprog        = 'ZKTEST01'
                dynpnr          = '1000'
                dynprofield     = 'P_FIELD'
                value_org       = 'S'
           TABLES
                field_tab       = t_fldtab
                value_tab       = value_tab
                return_tab      = t_rettab
                dynpfld_mapping = t_dynmap
           EXCEPTIONS
                parameter_error = 1
                no_values_found = 2
                OTHERS          = 3.
      IF sy-subrc EQ 0.
      ENDIF.
    START-OF-SELECTION.
    Jeffrey Satriadi

  • How to Display my Form in the selection screen.(without print format)

    Hi all,
    I did one gate pass form and i want to view the form in my selection screen or output screen(just in monitor) as  a display by giving one Z-code.
    i.e, we can view the form thru Print preview...the same preview, i want to display after i give my parameter in the selection screen.
    For example.ZGPOUT if i enter as a t-code.
    it should ask my Gate Pass number in the Selection screen...if its right then my Form will come out to the display screen. (instead of going by Print method).,
    Pls post ur comment and reply me with examples,if possible.
    thanks & regards
    sankar.

    Hi Prasad,
    Pls refer the below link.
    << Moderator message - Point begging removed >>
    http://wiki.sdn.sap.com/wiki/display/Snippets/Displayimagesontheselection-screen
    Thanks
    Arjun
    Edited by: Rob Burbank on Aug 17, 2011 2:24 PM

  • How to Add a new fields in the selection screen of LDB.

    Hi All,
    I want to add a new fields in the selection screen of LDB & then i need to select the data for that fields.
    So could you please tell me for that where i need to add the code for selecting the data.
    Thanks
    Roli

    Hi
    welcome to SDN forum
    If you are designing your own LDB with your own tables you can define tree structure and then the selection screen for the tables
    if you wants to modify the std LDB of SAp means take the access key and to modify that code
    if you add the extra field you have to modify the where conditions in the code also
    see the doc
    A logical database is a special ABAP/4 program which combines the contents of certain database tables. You can link a logical database to an ABAP/4 report program as an attribute. The logical database then supplies the report program with a set of hierarchically structured table lines which can be taken from different database tables.
    LDB offers an easy-to-use selection screens. You can modify the pre-generated selection screen to your needs. It offers check functions to check whether user input is complete, correct, and plausible. It offers reasonable data selections. It contains central authorization checks for data base accesses. Enhancements such as improved performance immediately apply to all report programs that use the logical database.
    Less coding s required to retrieve data compared to normal internel tables.
    Tables used LDB are in hierarchial structure.
    Mainly we used LDBs in HR Abap Programming.
    Where all tables are highly inter related so LDBs can optimize the performance there.
    Check this Document. All abt LDB's
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=%2flibrary%2fabap%2fabap-code-samples%2fldb+browser.doc
    GO THROUGH LINKS -
    http://www.sap-basis-abap.com/saptab.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9bfa35c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c6/8a15381b80436ce10000009b38f8cf/frameset.htm
    /people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
    Re: **LDB**
    www.sapbrain.com/FAQs/TECHNICAL/SAP_ABAP_Logical_Database_FAQ.html
    www.sap-img.com/abap/abap-interview-question.htm
    www.sap-img.com/abap/quick-note-on-design-of-secondary-database-indexes-and-logical-databases.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9bb935c111d1829f0000e829fbfe/content.htm
    Gothru the blog which provides info on LDB's:
    /people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
    Sample code
    TABLES: SPFLI,
    SFLIGHT,
    SBOOK,
    SCARR.
    START-OF-SELECTION.
    GET SPFLI.
    WRITE:/ ’SPFLI: ’, SPFLI-CARRID, SPFLI-CONNID,
    SPFLI-AIRPFROM, SPFLI-AIRPTO.
    GET SFLIGHT.
    WRITE:/ ’ SFLIGHT: ’, SFLIGHT-CARRID, SFLIGHT-CONNID, SFLIGHT-FLDATE.
    GET SBOOK.
    WRITE:/ ’ SBOOK: ’, SBOOK-CARRID, SBOOK-CONNID,
    SBOOK-FLDATE, SBOOK-BOOKID.
    GET SFLIGHT LATE.
    WRITE:/ ’ GET SFLIGHT LATE: ’, SFLIGHT-FLDATE.
    Regards
    anji

  • How to find out the selection screen values

    Hi All,
    in BI we are having the maximum allowed cells as 500000 for a report.
    for some of the reports execution fetching the data morethan 500000 by different users.
    i could findout the report and user who has executed, But i wanted to findout for which selection user has executed.
    is it possible to find out...please help.
    Thanks,
    Krishna.

    Hi,,
    Yes it is possible.
    Open your query result in the design mode by going to BEx Analyzer->Design ToolBar
    Now take one text element and assign it to the variable which you have used for the selection screen.
    Take the same number of text element as there are in selection screen.
    Exit the design mode. In place of the text element you will find the value of the variables assigned to them.

  • Functional area(FKBER( field in the selection screen))

    Hi,
       I have a requirement to add functional area field in the selection screen for a report painter report. This report using library 1VK and table 'CCSS'. I added functional area field in the general data selection . After the execution of report with functional area field filled with value. report not giving any output. do i need to maintain any setting to achieve?
    Regards,
    Palani

    Hi,
    How you have filled the values?
    It is 16 CHAR long.

  • Creating a transaction variant doesn't catch the selection screen

    Hi,
    I am trying to create a transaction variant for RERAPP transaction, which calls the report RFRERAPP on selection screen 1000.
    I have used SHD0, specifying the t. code and a name for a transaction variant, then pressed the "Create" button. the selection screen is displayed, I enter the relevant values for the transaction, and press enter. the system prompts me to create some screen variants, but none of them have fields listed, and none of them is for the screen 1000.
    SAP Release 600.
    Any hint on the reason behind this behavior?
    I found another related, unanswered [topic|Transaction Variant for a standard report without transaction code;

    Hi,
    I have faced similar problem..
    Here is the work around.. Might be useful for you..
    1. Create Selection screen variant for report (Modify selection screen 1000 for display/hide in variant maintaince)
    2. Then create "parameter Transaction" with report on Transaction START_REPORT
    D_SREPOVARI-REPORT = <Your Report Name>
    D_SREPOVARI-VARIANT = <Newly created variant>
    Nag
    Edited by: Naga Mohan Kummara on Dec 31, 2009 10:46 AM
    Edited by: Naga Mohan Kummara on Dec 31, 2009 10:49 AM

  • How to get a check box on the selection screen

    Hi all
    can any body tell me how to get a check box on the selection screen

    parameter: pa_check   as checkbox.
    To define the input field of a parameter as a checkbox, you use the following syntax:
    PARAMETERS <p> ...... AS CHECKBOX ......
    Parameter <p> is created with type C and length 1. In this case, you may not use the additions TYPE and LIKE. Valid values for <p> are ' ' and 'X'. These values are assigned to the parameter when the user clicks the checkbox on the selection screen.
    If you use the TYPE addition to refer to a data type in the ABAP Dictionary of type CHAR and length 1 for which 'X' and ' ' are defined as valid values in the domain, the parameter automatically appears as a checkbox on the selection screen.
    REPORT DEMO.
    PARAMETERS: A AS CHECKBOX,
    B AS CHECKBOX DEFAULT 'X'.

  • Problem in enabling the selection screen

    Hi ,
    I have problem in enabling the selection screen.
    i have radio button and based on the radio button i need to make the date field as mandatory.
    When i tried this with at selection screen on radio button group XXX, itu2019s not triggering.
    Could you please help me by resolving the above problem?
    Vijay

    Hi,
    see the sap documentation
    ... RADIOBUTTON GROUP group [USER-COMMAND fcode]
    Effect:
    This addition specifies that the input field is displayed as a radio button in the first position on the selection screen, and the output field is displayed next to it on the right. The radio button is selected if the value of para is "X" or "x". Otherwise, it is not selected.
    group is used to define the radio button group for the parameter. The name group is entered directly as a character string with a maximum of 4 characters. Within a selection screen, there must be a minimum of two parameters in the same radio button group. There cannot be more than one radio button group with the same name in one program, even if they are defined in different selection screens.
    The parameter must be specified with the type c and length 1. Explicit length specification using len is not permitted. If the addition TYPE is used, it can only be followed by the generic type c or a non-generic data type of type
    In a radio button group, only one parameter can be defined with the addition DEFAULT, and the specified value must be "X". By default, the first parameter in a radio button group is set to the value "X", and the rest are set to " ".
    The addition USER-COMMAND can be used to assign a function code fcode to the first parameter in a radio button group. The function code fcode must be specified directly, and have a maximum length of 20 characters. To evaluate the function code, an interface work area of the structure SSCRFIELDS from the ABAP Dictionary must be declared using the statement TABLES. When the user selects any radio button of the radio button group on the selection screen, the runtime environment triggers the event AT SELECTION-SCREEN and transfers the function code fcode to the component ucomm of the interface work area sscrfields. If a function code used in the GUI status of the selection screen is specified for fcode, the selection screen processing is affected accordingly.
    Note:
    It is recommended to define the radio buttons of a radio button group directly underneath each other. If the selection screen also contains other elements, it is recommended to define each radio button group within a block surrounded by a frame.
    Regards,
    Venkatesh

  • Display Output on the Selection-screen

    Hi all ! Could anybody tell me to how to display the name of the vendor/customer next to the input box on the selection screen area ? e.g. As soon as one presses the enter key after entering the vendor code on 'XK03' transaction screen, the name of the respective vendor is shown right next to the vendor code input box on the selection screen area.

    Hi,
    In AT-selection screen event write the code for getting the the Customer/vendor Name and display it on the screen.
    In-order for the Radiobutton selection process to initiate the 'AT selection-screen' event you need to add the 'USER_COMMAND' option to the parameter declaration. See code below.
    *Code used to Initiate the 'AT selection-screen' EVENT from radiobuttons.
    selection-screen begin of block group with frame title text-s04.
    parameters: p_sel1 type c radiobutton group sel user-command upd.
    parameters: p_sel2 type c radiobutton group sel.
    parameters: p_sel3 type c radiobutton group sel.
    selection-screen end of block group.
    AT SELECTION-SCREEN ON RADIOBUTTON GROUP RAD1.
      IF  p_sel1 = 'X'.
        Write select query to get teh customer/vendor name and display it.
      ENDIF.
    You can use LFA1 or KNA1 to get vendor/customer name

  • SQ01 - Adding a field to the Selection Screen

    Hi All,
    I need to add a new Selection Criteria in the Selection Screen for an existing SQ01 Query.
    Please advise the procedure to do the same.
    Regards,
    RR

    Hi,
    You have marked this thread as being answered, however, neither of your questions has been specifically addressed in the answers provided. 
    You can make any field from any infotype a selection field in SQ01.  First, in Settings --> Settings uncheck the Graphical Query Painter.  Enter the query and use the yellow arrows to the right to reach the Selection screen.  Here, any field in your query can be checked to become a selection field.  If the Graphical Query Painter is checked, go to your query.  On the left you have your infotypes and fields.  Checking the right hand box will make any field in your query a selection field. 
    For your second question, if you create your query in SQ01 in the "Global Area" it is transportable when saved and you should get a pop-up requesting the transport number.  If you save a selection screen for that query with the starting designation "CUS&", it is also transportable when saved the pop-up should also appear. 
    Paul

Maybe you are looking for

  • Socket and threads.

    I have written a socket client and a socket server. The client sends a directory name and the server sends directory files and their content. The client asks for files every five seconds (it has to be made once every day, but for trials I have reduce

  • Only one sound at a time work

    Hi Installed arch linux a couple of days ago and got most stuff up and running. Altho one problem I just noticed it that I can only play one sound at a time. For example, if I have music playing from mpd I don't get any sound from youtube or from urb

  • The end of my Creative Cloud/Business account would be the end of my account at Behance?

    Hi There!! I'm a bit worried cuz I just get started at behance and I linked my business account (with the company email and so on) to my new account at behance. And I was wondering, If I stop working for this company, and lose my email and the Adobe

  • How do change the settings in my music to hear more bass

    how do I change settings in my music so I can hear more bass???

  • Cannot switch to open finder windows

    when i command-tab to finder, my currently open finder windows do not appear! if i re-launch finder, finder behaves normally for a little while, but at some point open finder windows simply do not appear when i switch to the finder. i've properly swi