Changing sequence in selection screen of ABAP query

Hi,
I have added a field(ZEXTLTCA - Exclude LTCA lots) as SELECTION in a Infoset selections.We can add additional fields and selection fields to infoset.I am using the option selection field.This will appear in the selection screen when we execute query.
Few more fields i have declared as part of table in infoset.
These table fields will be visible in the query to change the sequence and its characteristics.
Now the problem is as selection fields of infoset are taking priority over infoset table fields ( which will be visible in query) selection fields are coming top when i execute query.
Ex:
Exclude Cancelled Lots
Material number
Plant
Material type
Inspection Lot Origin
I need to change the order of appearance in the selection screen.
As
Material number
Plant
Material type
Inspection Lot Origin
Exclude Cancelled Lots
Can anyone help me in solving this.
Thanks
Nirmala
Message was edited by: Nirmala  Reddy

Hello Nirmala,
Go to Sq01, select the query and goto to change mode.go to the next screens till u reach Selection fields. Here u enter the NO field in the sequence which u want ot appear in the selection screen and it is done. Save and execute.
Ex:
Selection fields          No
Exclude Cancelled Lots     5
Material number            1   
Plant                      2
Material type              3
Inspection Lot Origin      4

Similar Messages

  • Wrong sequence in selection screen generated by ABAP Query

    Hi,
    I am developing a query to display the data in the view.
    My query has 8 selection fields totally.
    As part of my requirement I have added selection parameter in the
    selections tab of the infoset and maintained the sequence as 9.
    Inspite of maintaining the sequence number as 9 in the infoset, It is
    appearing first in the selection screen of the query.
    I tried putting different numbers in the sequence number, but even it
    is appearing first in the selection screen.
    Can you please let me know how to display the selections declared in
    the infoset as per the sequence required.
    Thanks,
    Madhuri.

    Actually what happen when you declare your own fields in ABAP query . you have to care about the sequence . As an example if you’re selecting lets say state name , you have two variables
    <b>1-state
    2- land</b>
    for state you have to select land first , if your state is first and land is 2nd it gave you the error of sequence .
    Because you have to get data in land first in order to get state specific to the land .
    it should be
    1-Land
    2-State
    Just see the your fields , I’m sure you’re missing that .
    <b>You can also see the NO ( field ) in Query ( Sq03 ) . where you can define the seqence on selection.</b>
    hope this’ll help you .
    Pl...Award the points .
    Thanks
    Saquib<b></b>
    Message was edited by: Saquib Khan

  • How to set default value in select option for ABAP query

    Hi experts,
    What is the way to set up default values for select-options in ABAP query.
    e.g.
    I have one field 'Year' in my ABAP query selection screen.
    I want value of current year to be appeared here whenever user execute report
    Thanks in Advance
    -Harkamal

    Hi Harkamal,
    execute your Query via SQ01. On Selection-Screen
    goto save Variant. Mark your field
    as selection variable an press Button election variable.
    Take variable from TVARV and use it.
    Than save the Variant.
    Look at TVARV if the 'Year' is updated to the actualYear!
    regards, Dieter

  • How to add customize message on the variable selection screen in the query

    Hi all,
    Can we add an customise message on the variable selection screen in the query? If yes please let me know how it can be achevied?
    Thanks,
    Rani

    Hi Rani,
    I faced a similar issue (for what I understand your request is).
    My requirement for the Variable Screen was to do:
       1) place a link to a ppt file
       2) remove buttons "Save", "Save As...), "Delete"... the standard buttons come when running the Query or WebTempl
    We were using a Web Templ for BI7.0
    I struggled trying to find out how to do it. My conclusions are:
    - WAD, not sure we can accomplish it using a Web Template but i did not "play" a lot with the Web_Template Properties in order to know
    - XHTML, I was told in my post HTML modification was the way, but I have close to nil background in HTML and couold not find the way of accessing the Variable Entry screen
    For instance, I had to remove similar buttons and change some font size from a link on the Web Template (WAD), which was pretty straight forward. In WAD the buttons come with its own icon and to increase the Font size for that link we used XHTML (<font size="2" >). But the heck of the variable screen...well, i just did not get trhough to it to modify it in any way.
    Good luck,
    Definetly in a Query I would say that no.
    alex
    PS: If anyone had a better insight, please feel free to share it.

  • Selection Screen for BW Query

    Hi,
    We have a requirement where, in the Selection Screen of the Query we have to show a Table, the data will be fetch from a Info Object. There will be a last column for taking data from the User.
    Once the selection screen is filled and executed Report will be outputed.
    This can be achieved in R/3 ABAP by using Table Control on the screen.
    but have no idea how this can be achieved in BW.
    Can anyone help me out ?

    Hi Muthu,
    Thanks for replying. Let me explain the scenario little more in detail.
    We have a selection screen which will have some slection fields and a table like structure for displaying some values by default. When the execute button is pressed the final report is generated.
    There is no link between table structure and the final report except one of the coulmn field is used to derive a flag value in the final report.
    The problem we are facing is how the Selection fields and table structure be displayed when the Report transaction is called.
    Pankaj

  • Dynamic selection screen with ABAP web dynpro

    Hi all.
        How can I create dynamic selection screen with ABAP web dynpro? Thank you in advance.

    hi yinglak.....
             this is possible........ all the ui elelments has the property called visible and enabled.... just assign an attribute of type wdui_visibility to the visible property....
    in the wddomodify method..... check for the radio button value and pass the value true or false to this attribute and it gets changed automatically.
    ---regards,
       alex b justin

  • Change Layout in Selection Screen for OO ALV-Grid

    Hello everyone,
    I got a problem regarding layouts for objectoriented ALV Grid. I want to make it possible that user can take the layout for ALV he wants to on the selection screen. So far thats no problem and it works. But there are some little problems which I do not know how to fix them. But first the facts:
    (1) I got my parameter for layout
    PARAMETER: p_vari  TYPE disvariant-variant.
    (2) I fill my global layout structure in initialization
    INITIALIZATION.
    * Variante vorbelegen
       gs_variant-username = sy-uname.
       gs_variant-report   = sy-repid.
    * Layout holen
       CALL FUNCTION 'LVC_VARIANT_DEFAULT_GET'
         EXPORTING
           i_save        = 'A'
         CHANGING
           cs_variant    = gs_variant
         EXCEPTIONS
           wrong_input   = 1
           not_found     = 2
           program_error = 3
           OTHERS        = 4.
       IF sy-subrc = 0.
         p_vari = gs_variant-variant.
       ENDIF.
    (3) I got my handling for F4-value help on variant parameter
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_vari.
       CALL FUNCTION 'LVC_VARIANT_F4'
         EXPORTING
           is_variant    = gs_variant
           i_save        = 'A'
         IMPORTING
           es_variant    = gs_variant
         EXCEPTIONS
           not_found     = 1
           program_error = 2
           OTHERS        = 3.
       IF sy-subrc <> 0.
         MESSAGE text-m01 TYPE 'S'.
       ELSE.
         p_vari = gs_variant-variant.
       ENDIF.
    (4) I give back my parameters content into the variant structure at start of selection
    START-OF-SELECTION.
       gs_variant-username = sy-uname.
       gs_variant-report   = sy-repid.
       gs_variant-variant  = p_vari.
    This works all fine but I got some problems when using default variants/layouts. For example I got a default variant only for me. When starting the selection screen it works fine that the default layout was written. It is displayed automatically in the variant parameter. But I want that if i I empty the content (blank it out) from my variant parameter, that report should start with "normal" layout how it was written in the report and NOT with default layout.
    When I clear the gs_variant it works like I want it, but then the alv layout button looks like (without functions for layout), because I do not have the reference to my report.
    So what to do? :-)
    Regards
    Michael

    Wow that was fast, works great, thanks :-)
    I did not use this parameter in set table method but now I fill it dynamically.
    Ok next problem, one step harder ;-)
    Now I have one selection screen for one ALV-Grid, but four radio buttons which control with which data the ALV gets filled (four different fieldcats, data tables and so on). Each Grid got an own HANDLE so that the layouts can be separated in four categories.
    Now I want that by changing the radio button the individual standard layout for the chosen alv grid is getting filled.
    This works fine when using it in selection screen output.
    AT SELECTION-SCREEN OUTPUT.
       CLEAR gs_variant.
    * Layout-Handles individuell für Klausel-Radiobuttons setzen
       IF     p_py IS NOT INITIAL.
         gs_variant-username = sy-uname.
         gs_variant-report   = sy-repid.
         gs_variant-handle   = 'KLPY'.
       ELSEIF p_rh IS NOT INITIAL.
         gs_variant-username = sy-uname.
         gs_variant-report   = sy-repid.
         gs_variant-handle   = 'KLRH'.
       ELSEIF p_aj IS NOT INITIAL.
         gs_variant-username = sy-uname.
         gs_variant-report   = sy-repid.
         gs_variant-handle   = 'KLAJ'.
       ELSEIF p_sr IS NOT INITIAL.
         gs_variant-username = sy-uname.
         gs_variant-report   = sy-repid.
         gs_variant-handle   = 'KLSR'.
       ENDIF.
    * Layout holen
       CALL FUNCTION 'LVC_VARIANT_DEFAULT_GET'
         EXPORTING
           i_save        = 'A'
         CHANGING
           cs_variant    = gs_variant
         EXCEPTIONS
           wrong_input   = 1
           not_found     = 2
           program_error = 3
           OTHERS        = 4.
       IF sy-subrc = 0.
         p_vari = gs_variant-variant.
       ELSE.
         CLEAR p_vari.
       ENDIF.
    But unfortunately selection screen output is getting passed by EACH changing in the selection screen. This means when I try to clear the default layout in my parameter field, it gets refilled automatically with default layout. If I do a condition around the filling (only if not initial) the default value filling does not work fine in every case, e.g. when clearing the parameters field and then change the radiobutton -> then it does not get filled automatically.

  • Selection screen fields in query

    experts
    i have created a query with 5 selection screen fields, now i want to change the order of the fields in the selection screen.
    Earlier:
    Material
    order
    delivery
    qty
    amount
    Now i want
    order
    material
    delivery
    amount qty
    In sq01 i tried but there are possibility to change the output fields but not selection screen field sequence.

    Hi,
    In SQ01, enter the query name and click on the change button.
    Next click on the next screen (top left) arrow button until you reach Change query xxxxx: Selections.
    Here under the column No  enter the number like 1,2,3, 4 ... against the checked fields that want to see in order. Then save the query.
    Regards,

  • Short Dump While selecting Variant for ABAP query

    Hi,
    ABAP query is going to short dump (CONNE_IMPORT_WRONG_COMP_LENG) while selecting a Variant. If i create and use variant then i am able to see Output of Variant.But not able to use Earlier created variants .
    I think some mismatch between variant values and selection screen fields.Can anyone tell me how to rectify this ?
    I am not able to debug the code as dump is coming in a System program(RSDBSPVD).Can anyone tell me which database table i can use to get values of the Variant.
    Thanks in Advance.
    Nirmala K

    Hi nirmala,
    chk the links:
    http://help.sap.com/saphelp_webas620/helpdata/en/c0/980398e58611d194cc00a0c94260a5/content.htm
    http://help.sap.com/saphelp_webas620/helpdata/en/c0/9803a7e58611d194cc00a0c94260a5/content.htm
    regards,
    keerthi.

  • How to make changes on the selection screen of a logic database?

    I want to make one of the select-options of logic database PNP no-interval no-extension, what should I do? Is there any links for manipulating LDB? thx~

    Hi,
    This blog on SDN will help you on this.
    [Re: Change selection screen in LDB (KDF logical database - NOT HR);
    Regards
    Abhii....

  • ALV using OOABAP  fieldnames changing in the selection screen

    Hi
    I am new to OOABAP.Here is the requirement.
    I need to create a ALV report, in the selection screen field label can change and it needs to display in ALV report. selection screen contains 4 checkboxes. based on selection hide the columns in ALV display.
    Can anyone help me in this?
    Thanks
    sapien

    u build field cat "at selection-screen event.
    LET S_A, S_B, S_C, S_D BE THE SELECTION SCREEN FIELD.
    AT SELECTION-SCREEN.
    PERFORM BUILD_FIELDCAT USING S_A S_B S_C S_D.
    form build_fieldcat using s_a type ... s_b type .... so on
    if s_a = 'X'.
    FIELDCAT-FIELDNAME = '......'.
    append fieldcat.
    if s_b = 'X'.
    FIELDCAT-FIELDNAME = '......'.
    append fieldcat.
    IF S_C = 'X'.
    FIELDCAT-FIELDNAME = '......'.
    append fieldcat.
    IF S_D = 'X'.
    FIELDCAT-FIELDNAME = '......'.
    append fieldcat.

  • Change PNP standard selection screen attributes

    Hi experts,
    I need to change the standard PNP selection screen parameter BUKRS into "obligatory".
    I know it can be done for all reports using PNP through SPRO, but I need it only for one customer report.
    Best regards,
    A. Cepa.

    You can hide the standard field on the screen using this -
    INITIALIZATION.
    LOOP AT SCREEN.
    IF screen-name = 'PNPBUKRS-LOW'.
    screen-active = '1'.
    screen-input = '0'.
    screen-invisible = '1'.
    ENDIF.
    IF screen-name = 'PNPBUKRS-HIGH'.
    screen-active = '1'.
    screen-input = '0'.
    screen-invisible = '1'.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    Regards,
    Amit

  • Change Color of SELECTION-SCREEN COMMENT

    Hello!
    I want to change the color of the text of my comments for parameters in my selection-screen. Is that possible?
    What kind of design option do I have within the selection-screen? (Background, Colors, etc...)
    Regards Michael

    check out this sample code.
    REPORT YRJKSJKJFKD
           NO STANDARD PAGE HEADING.
    SELECTION-SCREEN COMMENT /1(50) comm1 MODIF ID mg1.
    SELECTION-SCREEN ULINE.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN COMMENT /1(30) comm2.
    SELECTION-SCREEN ULINE /1(50).
    PARAMETERS: r1 RADIOBUTTON GROUP rad1,
                r2 RADIOBUTTON GROUP rad1,
                r3 RADIOBUTTON GROUP rad1.
    SELECTION-SCREEN ULINE /1(50).
    AT SELECTION-SCREEN OUTPUT.
      comm1 ='Selection Screen'.
      comm2 ='Select one'.
      LOOP AT SCREEN.
        IF screen-group1 = 'MG1'.
           screen-intensified = '0'.
           screen-color = '0' .
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    for screen-color the possible values are
    Syntax of color value in col color
    { COL_BACKGROUND } 0 GUI-specific
    { 1 | COL_HEADING } 1 Gray-blue
    { 2 | COL_NORMAL } 2 Light gray
    { 3 | COL_TOTAL } 3 Yellow
    { 4 | COL_KEY } 4 Blue-green
    { 5 | COL_POSITIVE } 5 Green
    { 6 | COL_NEGATIVE } 6 Red
    { 7 | COL_GROUP } 7 Violet
    Regards
    Raja

  • Change Status in Selection Screen

    Hi Experts!
    Is possible change de status in a Selection Screen?
    In Dynpro 1000  there is MODULE %_PF_STATUS, but i don't is is possible change it.
    Thanks

    Yes, use the FM [RS_SET_SELSCREEN_STATUS|http://help.sap.com/abapdocu_70/en/ABENSELECTION_SCREEN_OVERVIEW.htm] (ref [Changing the Standard GUI Status|http://help.sap.com/saphelp_nw04/helpdata/en/e7/0eb237e29bc368e10000009b38f8cf/frameset.htm]) - If you only need to add some new functions use [SELECTION-SCREEN FUNCTION KEY|http://help.sap.com/abapdocu_70/en/ABAPSELECTION-SCREEN_FUNCTIONKEY.htm] (ref [Pushbuttons in the Application Toolbar|http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba80935c111d1829f0000e829fbfe/frameset.htm])
    Regards,
    Raymond

  • Selection Screen in Target Query in BEx RRI

    Can I get a selection screen when I am drilling down from source to target query.
    Thanks,

    Hi Gokul,
    You can get it ..provided the target query should have some different variables then the source query selection varaibles..
    Thanks and regards
    Kiran

Maybe you are looking for

  • How Do I add my ipod (and all its songs), to a new computer

    hi, my husbands computer which had all his nano 3g library on has died, we have set up a new library on another computer, but how do we sync all the songs from the ipod onto the library? as it says it can only be used with one library, and I dont wan

  • Integrating InDesign with WebCenter Sites

    We are looking at implementing WebCenter Sites but need a print component as well. Has anyone intergrated InDesign with OWS? We want OWS to be the central place for all content. Most of that content is served for the Web, but some of it needs to be s

  • CE with Ironport

    Customer has a standalone CE (7326) and all traffic is redirected to an Ironport device. The Ironport device prompts for a username/password, once those credentials are correct, the user can view webpages. Is there a way to enter a username / passwor

  • Update vbup/vbuk from user-exit for sales document

    Dear All. Is it possible to update the sales document status for an item (vbup) from a user exit , customer function, badi, or other, in the billing document? We'd like to make the control of updating the status tables dynamic, rather than based on t

  • How to Enable Authentication to Selected Users

    1. How to enable SAP and AD authentication only for selected users in infoview login page ? 2. How to disable(remove) enterprise options in down arrow selection in infoview login page for some users? We have to make some changes in web.xml? Can anyon