Skip to Content

Store select-options on database

Hello ABAP community,

I would like to store select-options on the database. Of course, beforehand they need to be entered by the user. From this, the two questions arise:

• Is here a way to put select-options on a regular dynpro?

• Is there a re-usable mechanism of saving select-options to the database. Such a mechanism should exist because saving variants of a report is doing basically this.

Thanks for your input,

Christian

Add a comment
10|10000 characters needed characters exceeded

Related questions

5 Answers

  • Best Answer
    Posted on Dec 06, 2004 at 08:59 AM

    Hi,

    You can put the selection options and parameters to an itab by function module 'RS_REFRESH_FROM_SELECTOPTIONS'

    And you can do anything with it storing to database or exporting to memory.

    Sample Code:

    DATA:

    seltab like RSPARAMS occurs 5 with header line.

    CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'

    EXPORTING

    CURR_REPORT = 'REPORTNAME'

    • IMPORTING

    • SP =

    TABLES

    SELECTION_TABLE = seltab

    EXCEPTIONS

    NOT_FOUND = 1

    NO_REPORT = 2

    OTHERS = 3

    .

    SUBMIT zprogrep

    EXPORTING LIST TO MEMORY

    AND RETURN

    WITH SELECTION-TABLE seltab .

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 05, 2004 at 01:38 PM

    Hi Christian

    To use select-options features at an ordinary screen you can use the FM <b>"COMPLEX_SELECTIONS_DIALOG"</b>.

    <b>OR</b>

    You can code a selection screen

    (

    SELECTION-SCREEN BEGIN OF SCREEN 1001 .
    ...
    SELECTION-SCREEN END OF SCREEN 1001 .

    )

    within your program and call it as a subscreen at your screen.

    "Variant Management" feature of selection screens is a whole process. That is you can find and utilize it using its FMs (e.g. RS_CHANGE_CREATED_VARIANT, RS_CREATE_VARIANT, RS_REFRESH_FROM_SELECTOPTIONS,...) conveniently. However, I guess it will be sophisticated, i.e. variant id's, and other stuff...

    Regarding to your scenario you can prefer storing them by your own procedure at whose basis again the structure <b>"RSPARAMS"</b> exists.

    Hope this helps...

    *--Serdar

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 05, 2004 at 11:52 AM

    Sorry for hasty incorrect answer, thanks Serdar.

    Message was edited by: Sergei Korolev

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 10, 2004 at 12:10 AM

    Hi Christian,

    Did the replies help? If so, don't forget to assign points. I gave them some, but feel free to increase them!

    See: </people/mark.finnern/blog/2004/08/10/spread-the-love for directions.

    Click on the Yellow Star icon in each reply.

    You can give:

    1 - 10 pointer (solves problem, marks as answered)

    2 - 6 pointers (very helpful)

    Lots of 2 pointers (helpful)

    Thanks!

    Linda (and Mark Finnern)

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 10, 2004 at 06:56 AM

    Thank you all for your answers,

    I will implement this in the near future and let you know about the result.

    @Serdar: The idea od coding a subscreen is brilliant. This will be my first try.

    Thanks a lot Christian

    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.