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-options

Former Member
0 Kudos

how can we create select-options for a field in a module pool?

4 REPLIES 4

Former Member
0 Kudos

For module pool, u have to drag and drop the controls similar to that in ur screen painter.

Eg: see this link for Table control

http://www.sapdevelopment.co.uk/dialog/tabcontrol/tchome.htm

Former Member
0 Kudos

Hi

You can use CALL SELECTION-SCREEN statament.

- You have to define a selection-screen in the TOP-INCLUDE:

SELECTION-SCREEN BEGIN OF SCREEN 101.

SELECT-OPTIONS: SO_.... FOR ....

PARAMETERS: P_....

SELECTION-SCREEN END OF SCREEN 101.

- Create a main dynpro where selection-screen has to be called:

PROCESS PBO.

MODULE CALL_SEL_SCREEN.

PROCESS PAI.

MODULE CALL_SEL_SCREEN.

CALL SELECTION-SCREEN 101.

IF SY-SUBRC = 0. "=> User has pressed F8

ELSE. "=> User has pressed BACK or EXIT

ENDIF.

ENDMODULE.

max

0 Kudos

Hi Max,

Thanks for your replay,

I have writen the code as per your suggesion but its throughing me the syntax error like:

"SUBSCREEN..." or "CUSTOMER-SUBSCREEN..." expected after 'CALL.

please give me some idea where i am doing the mistake

former_member188685
Active Contributor
0 Kudos

Hi,

after creating the field, just double click on it , in the window select the tab program there you have option

Possible entries just choose <b>'1'</b> from dropdown. this will behave like a select option.

regards

vijay