Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Select-Options in Multiple Selection Screens

Former Member
0 Likes
797

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.

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.
2 REPLIES 2
Read only

ChrisSolomon
Active Contributor
0 Likes
712

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

Read only

RaymondGiuseppi
Active Contributor
712

Use a statement SELECTION-SCREEN INCLUDE SELECT-OPTIONS.

Regards,
Raymond