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: 

how to write select options with extension in module pool program

Former Member
0 Kudos
721

hi,

M having the following fields through screen painter.

1. sales offfice

2.sales district

3.customer no

for those three fields no extension is not provided and no search help is there.

i want write seletion options to get extension in that module pool

screen.

plese send coding for me , please let me know how to get that

select options with the above all three fields.

Thanks & Regards

Raji

3 REPLIES 3

Former Member
0 Kudos
184

Check it

In top include

DATA: number(4) TYPE n VALUE '9005',

PROCESS BEFORE OUTPUT.

MODULE status_9001.

CALL SUBSCREEN AREA1 INCLUDING SY-REPID number.

PROCESS AFTER INPUT.

MODULE user_command_9001.

CALL SUBSCREEN AREA1.

&----


*& Module status_9001 OUTPUT

&----


  • text

----


MODULE status_9001 OUTPUT.

SELECTION-SCREEN BEGIN OF SCREEN 9005 AS SUBSCREEN.

PARAMETER pa_bukrs TYPE t001-bukrs.

select-options matnr for wa_matnr.

SELECTION-SCREEN END OF SCREEN 9005.

ENDMODULE. " status_9001 OUTPUT

Former Member
0 Kudos
184

Dear All,

Myself i got the answere how to write the multiple select options in module pool program for different fields.

The logic is mentioned below.

1.First place bush button whereever u want in selection screen.

2.And give the FCT CODE name as PB_SO for that push button.

3.And the ICON NAME in layout as 'ICON_DISPLAY_MORE'

from icon list.

If push button name is PB_SO. (SO= sales office = knvv-vkbur)

when 'PB_SO'.

call function 'COMPLEX_SELECTIONS_DIALOG'

EXPORTING

TITLE = 'Sales Office'

tables

range = gr_vkbur (gr_vkbur = Dummy ranges)

EXCEPTIONS

CANCELLED = 0

OTHERS = 1.

Plese let me know if there is any other option.

Thanks & Regards

raji

former_member196064
Active Participant
0 Kudos
184

Excellent rajyam... works like a charm.

Doug -