Skip to Content
author's profile photo Former Member
Former Member

SAP Query

i have created a program using Query.. IN selection screen i wanna Display Default value. How to do this in Query...

Regards

Prajwal K.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 21, 2007 at 04:14 AM

    HI

    declare the parameter values under the INITIALIZATION EVENT

    then it will display

    like this

    INITIALIZATION.

    P_WERKS = '00'.

    Also try this:

    parameters: p_quant1 type labst.

    parameters: p_quant2 type labst.

    parameters: p_quant3 type labst.

    Reward points if found helpful.....

    Cheers,

    Chandra Sekhar.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 21, 2007 at 04:22 AM

    hai,

    just you use ....

    parameter : variable......value ' '.

    or

    tables : str.

    select-options : variable.................

    initialization.

    variable-high = ' '.

    variable-low = ' '.

    plzz reward points if useful.

    regards,

    jai.m

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 21, 2007 at 04:37 AM

    Dear Prajwal,

    I undeststand that you are interested displaying default values in the selection screen.You can supply the selection screen with default values at INITIALIZATION.

    You can determine which selection screen is currently processing with the AT SELECTION-SCREEN event. You can do so with a CASE control structure and evaluate the system field sy-dynnr.

    You can create any number of selection sets (variants) for a program. The variants are allocated to the program uniquely.

    Creating variants makes sense when you frequently start a program with the same selection default values.

    >You can mark Start with variants in the program attributes. Users (system, services, reporting) can then start the program only with a variant.

    If the program uses several selection screens, you can choose to create a variant for all the selection screens or individually for each selection screen.

    Naming conventions and transporting variants

    "SAP&xxx" are supplied by SAP

    "CUS&xxx" are created by customers (in client 000)

    Variants that follow these naming conventions are client-independent and will automatically be transported along with the report. If these naming conventions are not followed, an entry for a request (task) must be added to the object list: LIMU VARI .

    You have to assign a name and a description to each variant. By default, variants are available for both online and background processing. You can also define a variant exclusively for use with background processing.

    You can protect the variant itself and the individual selection criteria and parameters against unauthorized changes. If you select Display only in catalog, this variant will not be displayed in the general value help (F4).

    The type of a selection is determined in its declaration: Type s for SELECT-OPTIONS, type p for PARAMETERS. If you select Selections protected, then the field(s) will not be ready for input. You can use the hide attribute to suppress selection criteria and parameters on the screen, if required, resulting in a less cluttered selection screen.

    When you use selection variables, there are three basic ways of supplying your selections with values at runtime:

    From table TVARV (type T)

    Date fields using dynamic date calculation (type D), such as today's date

    User-specific variables (type B); Prerequisite: The selection must be declared with the MEMORY ID addition.

    Best Regards,

    Rajesh

    Please reward points if found helpful.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 21, 2007 at 05:47 AM

    thank u all

    i got the ans

    Reards

    Prajwal

    Edited by: prajwal k on Dec 21, 2007 7:21 AM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 21, 2007 at 06:24 AM

    Hi Prajwal,

    You need to write in at Selection-screen output.

    Plzz Reward if useful,

    Mahi.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.