Skip to Content

Select-Options in Multiple Selection Screens

Hello Everyone,

I am trying to impletment the below code. When I go to check the code, I receive an error stating that P_DATE has been already defined. Is there any way to have this defined globally so I can reference the same select-option on both selection screens?

selection-screen begin of screen 100 title TEXT-T03.
parameters: P_BUKRS like PAYR-ZBUKR obligatory,
 	    P_HBKID like PAYR-HBKID obligatory.
select-options: P_HKTID for PAYR-HKTID,
 		P_DATE for SY-DATUM.
selection-screen end of screen 100.

selection-screen begin of screen 200.
parameters: P_FNAME(100) type c obligatory lower case,
 	    urb RADIOBUTTON GROUP ac,
 	    lrb RADIOBUTTON GROUP ac.
select-options: P_DATE for SY-DATUM.
selection-screen end of screen 200.
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jan 13, 2017 at 06:52 AM

    Use a statement SELECTION-SCREEN INCLUDE SELECT-OPTIONS.

    Regards,
    Raymond

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 12, 2017 at 11:53 PM

    Short answer....no. Longer answer...have two separate select-options values/variables/whiz-bangs and then have the value of which ever one you need assigned to a "global" variable you can then use for further processing. Keep in mind, this is REALLY old SAP tech and is well long-in-the-tooth now....like many of us who worked with this when it was "new". haha

    Add comment
    10|10000 characters needed characters exceeded