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

Module pool programming

Former Member
0 Likes
796

Hi

How to implement SELECT-OPTIONS in module pool programming thrrough Screen Painter SE51 ???

When to use Tabstrip control with wizard nd when to use W/O wizard ??

When to use TABLE control with wizard nd when to use W/O wizard ??

Thanks

Raj

9 REPLIES 9
Read only

Clemenss
Active Contributor
0 Likes
769

Hi Raj,

no SELECT-OPTIONS in Screen Painter SE51.

But you can define a selection-screen as sub-screen in program and integrate it via SE51.

Regards,

Clemens

Read only

Former Member
0 Likes
769

Hi,

We cant use the select options in screen paiter but u can call it through t leave to list proceesing either intht way or as the submit program < prog_name> via selection-screen..

Generally it is better to use tablecontrol with wizard because we need not write the code for each and evry row select or delete. As here the code automatically generates we go for this... mostly.

Regards,

Sana.

Award points if u found the answer as helpful!.

Read only

Former Member
0 Likes
769
Read only

Former Member
0 Likes
769

hi,

ther is no select-options in se51.

generally tab strips are used when there are so many fields in a record, inorder to represent clearly on the screen we will define fields under different tabs.

table controll is used when the no records to be displayed are high, we can display them with the help of vertical and horizontal scroll bars

rgds

Umakanth

Read only

harimanjesh_an
Active Participant
0 Likes
769

Hi raj,

You can't create a selection-options in SE51 but we can include a sub-screen containing select-options.

check this small program :

REPORT y_selectoptions_modulepool .

TABLES: mara.

DATA : ok_code TYPE sy-ucomm.

SELECTION-SCREEN BEGIN OF SCREEN 1010 AS SUBSCREEN.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.

SELECT-OPTIONS: s_matnr FOR mara-matnr,

s_matkl FOR mara-matkl,

s_mtart FOR mara-mtart.

SELECTION-SCREEN END OF BLOCK b1.

SELECTION-SCREEN END OF SCREEN 1010.

START-OF-SELECTION.

CALL SCREEN 100.

*&----


**& Module STATUS_0100 OUTPUT

*&----


MODULE status_0100 OUTPUT.

ENDMODULE. "status_0100 OUTPUT

*&----


**& Module USER_COMMAND_0100 INPUT

*&----


MODULE user_command_0100 INPUT.

CASE ok_code.

WHEN 'EXIT'.

LEAVE PROGRAM.

ENDCASE.

ENDMODULE. " USER_COMMAND_0100 INPUT

The screen flow logic for screen 100 is as follows:

PROCESS BEFORE OUTPUT.

MODULE status_0100.

CALL SUBSCREEN sub_1010 INCLUDING sy-repid '1010'.

*

PROCESS AFTER INPUT.

CALL SUBSCREEN sub_1010.

MODULE user_command_0100.

check this link for further help:

http://help.sap.com/saphelp_nw04s/helpdata/en/e7/deb237b9a9a968e10000009b38f8cf/frameset.htm

Reward me if useful,

Harimanjesh AN

Read only

Former Member
0 Likes
769

Hi,

You can not directly define select-options in screen paiter. You can create a screen with select-options and call that screen.

Here is the sample code.

In main program,

TABLES: sflight.

SELECTION-SCREEN BEGIN OF SCREEN 200 TITLE title.

PARAMETERS p_carrid TYPE sflight-carrid.

SELECT-OPTIONS: s_connid FOR sflight-connid.

SELECTION-SCREEN END OF SCREEN 200.

Call your screen when required by follwing statemetns

title = 'My selection-screen'.

call selection-screen '200'.

In other way: you can define your selection screen as subscreen and integrate the subsreen in your module pool

SELECTION-SCREEN BEGIN OF SCREEN 200 AS SUBSCREEN.

PARAMETERS p_carrid TYPE sflight-carrid.

SELECT-OPTIONS: s_connid FOR sflight-connid.

SELECTION-SCREEN END OF SCREEN 200.

Regards

Sailaja.

Read only

Former Member
0 Likes
769

Hi,

You can try using the fuction module 'COMPLEX_SELECTIONS_DIALOG' against the field for getting the select options. I haven't seen any option in screen painter as such.

You can use Wizard for Table Control and Tabstrip if you don't need to change the code frequently, because if you use wizard, it becomes difficult to edit the code. I prefer coding, so that the maintenance is easy.

Regards,

Renjith Michael.

Read only

abdul_hakim
Active Contributor
0 Likes
769

No Select-Options in Module Pool..SE51.

Instead you can include the selectionscreen with the select option option in the Module pool screen.

Read only

0 Likes
769

Hi Abdul,

thanks for quoting.

> Re: Module pool programming

>Posted: Dec 30, 2007 10:07 PM in response to: Raj in response to: Raj

>Click to edit this message... Edit Click to report abuse... E-mail this message E-mail this message Click to >reply to this thread Reply

>Hi Raj,

>

>no SELECT-OPTIONS in Screen Painter SE51.

>

>But you can define a selection-screen as sub-screen in program and integrate it via SE51.

>

>Regards,

>

>Clemens