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

Selection Screen Values

Hi,

I want to create a common include or a function module to write the Selection Screen Input values in each report I write(at the end of the report as the last page).

I want to pass just the Program name (SY-CPROG) to the fn module or include. The fn module may use LOAD statement.

Is there someone who has already done this before?

Thanks,

Bala

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 15, 2004 at 07:50 AM

    Hi,

    Function module RS_LIST_SELECTION_TABLE could provide you with the info you need.

    Cheers

    Colin 😊

    PS. If this fixes your issue, please award me the points as so few people do !

    Thanks.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 15, 2004 at 06:17 AM

    Yes, it is possible. I have done that before.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi all,

      I used the RS_LIST_SELECTION_TABLE function module to print the input fields, and I have a problem:

      The <b>DATE</b> fields are printed in format YYYYMMDD, and I need it to be in the format <b>DD.MM.YYYY</b>

      How can I do it?

      Thanks,

      Itzhak.

  • author's profile photo Former Member
    Former Member
    Posted on Oct 15, 2004 at 12:30 PM

    Hi Bala,

    If you were to do something like this, then you'd get your desired result:

    <b> DATA : PRGNAME LIKE SY-REPID.

    DATA: BEGIN OF ITAB_VAR OCCURS 0.

    INCLUDE STRUCTURE RSPARAMS.

    DATA: END OF ITAB_VAR.

    PRGNAME = SY-REPID.

    CALL FUNCTION 'RS_LIST_SELECTION_TABLE'

    EXPORTING

    REPORT = PRGNAME

    NEWPAGE = ' '

    SELTEXT = 'X'

    TABLES

    SEL_TAB = ITAB_VAR.</b>

    I hope this helps.

    Hafeez

    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.