Application Development 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: 

Select option in modul pool

Former Member
0 Kudos

Hi All,

I have a made a select option in module pool ike this .

 SELECTION-SCREEN  BEGIN OF SCREEN 200 AS SUBSCREEN.
SELECTION-SCREEN  BEGIN OF BLOCK b1 with frame title text-001.
selection-screen  begin of line.
SELECT-OPTIONS     so_time1 FOR syst-timlo.
SELECTION-SCREEN COMMENT 1(20) text-022 FOR FIELD pa_thrh.
parameters: pa_thrh like G_THRSH.
SELECT-OPTIONS     so_time2 FOR syst-timlo.
selection-screen   end of line.
SELECTION-SCREEN   END OF BLOCK b1.
SELECTION-SCREEN   END OF SCREEN 200. 

I need the pa_thrh field just parallel to the so_time1 but when i tried i am getting a error like error in generating the screen?

Can any advice how to place the fileds side by side in module pool select options?

Tnx,

Joe

1 ACCEPTED SOLUTION

former_member1245113
Active Contributor
4 REPLIES 4

former_member1245113
Active Contributor

Former Member
0 Kudos

Hi,

In your code the problem is with the


SELECTION-SCREEN COMMENT 10(20) text-022 FOR FIELD pa_thrh.

try by changing the position of pa_thrh.

I mean,


SELECTION-SCREEN COMMENT 52(20) text-022 FOR FIELD pa_thrh.

Note:

If You add 'SELECTION-SCREEN COMMENT' statement also to so_time1 then you have to change position according to size and position. suppose you declare as like this,


SELECTION-SCREEN COMMENT 2(10) text-022 FOR FIELD so_time1.

then add 12 positions to pa_thrh field.


SELECTION-SCREEN COMMENT 64(20) text-022 FOR FIELD pa_thrh 

but at this point , You have no choice to use another field i.e, so_time2 because it crosses the line .

for more information refer this sap help,

http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba7e235c111d1829f0000e829fbfe/content.htm

hope this resolves Your issue.

Regards,

Raghava Channooru

0 Kudos

Hi All,

I am doing some validation in my subscreen and if i want to move out of subscreen ie i want to navigate to the other transaction or leave to screen 0 means how to make it?? i am getting sme error like in subscreen submit to screen is not allowed.

Tnx,

joe

Former Member
0 Kudos

tnx