‎2007 Dec 30 6:52 PM
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
‎2007 Dec 30 9:07 PM
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
‎2007 Dec 31 3:58 AM
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!.
‎2007 Dec 31 4:09 AM
HI friend,
See the following links for tabstrips and table controls with and without wizard.
Table Control
http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/802338454211d189710000e8322d00/frameset.htm
Table Control Wizard
http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/802338454211d189710000e8322d00/frameset.htm
Tab Strip
http://help.sap.com/saphelp_erp2005vp/helpdata/en/04/10f2469e0811d1b4700000e8a52bed/frameset.htm
Tab Strip wizard
http://help.sap.com/saphelp_erp2005vp/helpdata/en/04/10f2469e0811d1b4700000e8a52bed/frameset.htm
There is no select-options in module pool programming.
Reward points if it is useful.
Regards,
Swetha.
‎2007 Dec 31 4:20 AM
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
‎2007 Dec 31 4:24 AM
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
‎2007 Dec 31 4:28 AM
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.
‎2007 Dec 31 8:19 AM
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.
‎2007 Dec 31 8:22 AM
No Select-Options in Module Pool..SE51.
Instead you can include the selectionscreen with the select option option in the Module pool screen.
‎2007 Dec 31 4:01 PM
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