Skip to Content
author's profile photo
Former Member

selection screen query

Can anybody please tell me how to pick the values from the selection screen and use them in internal tables for manupulation.

I mean after the inputs i receive from the selection screen i want to use them for my internal table operations

Regards

Mave

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • author's profile photo
    Former Member
    Sep 30, 2005 at 11:14 AM

    Can you describe your requirement in more detail way with example.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Sep 30, 2005 at 11:17 AM

    Hi Mave,

    You can use

    Loop at Screen.

    Endloop.

    Inside this all the values entered in the selection screen will be available. You can assign to your internal table for further proceedings.

    The fields of the internal table are as follows:

    Sign

    Option

    Low

    High

    Regards,

    Baburaj

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Baburaj,

      When you are using loop at screen...endloop, you will get the selection screnn fields name and not the values enter in those fields.

      Also Sign, Option, low and high you will get for only select-options and not for parameters.

  • author's profile photo
    Former Member
    Sep 30, 2005 at 11:52 AM
    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Sep 30, 2005 at 12:02 PM

    Hi mave,

    try this.

    Selection-screen : matnr foe mara-matnr.

    Data : Begin of itab,

    matnr like mara-matnr,

    End of itab.

    .

    .

    .

    Loop at matnr.

    itab-matnr = matnr-low.

    append itab.

    .

    .

    endloop

    Reg,

    Viswanath Babu

    Add comment
    10|10000 characters needed characters exceeded

    • If you are using a select-option in your selection screen you can do something like this.

      
      select-options: s_matnr for mara-matnr.
      data: imara type table of mara with header line.
      
      select * from mara into table imara
                where matnr <b>IN</b> s_matnr.
      
      

      If you are using a parameter in your selection screen you can do something like this.

      
      parameters: p_matnr type mara-matnr.
      data: imara type table of mara with header line.
      
      select * from mara into table imara
                where matnr = p_matnr.
      
      

      Is this what you are asking?

      Regards,

      Rich Heilman