‎2008 Feb 12 3:23 PM
‎2008 Feb 12 3:31 PM
Like this -:)
SELECTION-SCREEN BEGIN OF SCREEN 101 AS SUBSCREEN.
SELECT-OPTIONS: S_CARRID FOR SPFLI-CARRID,
S_CONNID FOR SPFLI-CONNID.
SELECTION-SCREEN END OF SCREEN 101.
In your Dynpro you assign that SubScreen and voila -:) You're ready to go -;)
Greetings,
Blag.
‎2008 Feb 28 3:29 AM
Hi
As said by Alvaro in the above reply,we will define a selection screen in the program but how to assign this subscreen in the dynpro? Can anyone here please let me know.
Thanks,
K.Kiran.
‎2008 Feb 28 4:26 AM
Hi,
I am trying to define a select-option at Module Pool level.
In the program
SELECTION-SCREEN BEGIN OF SCREEN 1010 AS SUBSCREEN.
SELECT-OPTIONS: V_BWTAR FOR MSEG-BWTAR.
SELECTION-SCREEN END OF SCREEN 1010.
In the Screen flow logic it is as follows
PROCESS BEFORE OUTPUT.
MODULE STATUS_0600.
CALL SUBSCREEN sub_1010 INCLUDING sy-repid '1010'.
PROCESS AFTER INPUT.
CALL SUBSCREEN sub_1010.
MODULE USER_COMMAND_0600.
At SE51 it is showing an error
"Include block not specified or spelt incorrectly.".
Please let me know how to correct this.
Thanks,
K.Kiran.
‎2008 Feb 12 3:33 PM
‎2008 Feb 12 3:46 PM
‎2008 Feb 13 6:37 AM
hi,
The ABAP statement SELECT-OPTIONS <selname> FOR <field> declares an internal table called <selname>, containing four fields - SIGN, OPTION, LOW, and HIGH.
The fields LOW and HIGH have the same type as the field <field>.
The SIGN field can take the value 'I' (for inclusive) or 'E' (for exclusive).
The OPTION field can contain relational operators (EQ, NE, LE, LT, GE, GT), pattern operators (CP, NP), and operators that allow you to enter intervals (BT, NB).
SELECT-OPTIONS: so_car FOR wa_sflight-carrid.
Hope this helps, Do reward.
‎2008 Feb 13 6:55 AM
Hi.
Select-option using for give the Range of values.but its not possible in Module pool.you need to do logic if u want ranges in module pool.so create ranges with select-option and create next screen in module pool,
its better.
To be reward all helpfull anwsers.
Jay
‎2008 Feb 28 4:24 AM
Hi,
TABSTRIP CONTROLS:
-
Using normal screen, we can add only 40 components to the screen. To add more than 40 components, make use of tabstrip control. You can specify any number of tab fields for a tabstrip control and create subscreen for each tab field created.
Navigations to create tabstrip control:
-
Create an MPP program -> Create a screen -> Drag and drop tabstrip control from toolbar -> Specify name for the tabstrip created (KARTHIK) -> Specify required number of tab fields (2) -> Drag and drop subscreen area for each tab field -> Name the subscreen areas (SUB1, SUB2) -> Specify attributes for each tab field (NAME, TEXT, FCTCODE, REF_FIELD) -> Create two pushbuttons (DISPLAY, EXIT) Save the screen painter -> Click on Flow logic editor.
Now create two subscreens (10, 20) for each tab field subscreen areas. Create required screen components for each subscreen (input fields namely IO1, IO2, IO3, IO4) -> Save -> Come back to Flow logic editor.
In TOP INCLUDE FILE, specify following code:
DATA : IO1(10), IO2(10), IO3(10), IO4(10).
CONTROLS KARTHIK TYPE TABSTRIP.
DATA SCREEN LIKE SY-DYNNR .
CONTROLS statement is used to create a memory for tabstrip component in AS.
SY-DYNNR is a system variable to hold screen number.
Save -> Activate.
In the FLOW LOGIC EDITOR, Specify following code for PBO and PAI modules:
PROCESS BEFORE OUTPUT.
MODULE STATUS_0100.
CALL SUBSCREEN SUB2 INCLUDING 'SAPMYONCEMORE' '20'.
CALL SUBSCREEN SUB1 INCLUDING 'SAPMYONCEMORE' '10'.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_0100.
CALL SUBSCREEN SUB1.
CALL SUBSCREEN SUB2.
Save -> Activate.
Specify following code in PAI event between module-endmodule statements:
CASE SY-UCOMM.
WHEN 'DISPLAY'.
LEAVE TO LIST-PROCESSING.
WRITE 😕 IO1, IO2, IO3, IO4, IO5.
WHEN 'EXIT'.
LEAVE PROGRAM.
WHEN 'TAB1'.
SCREEN = '10'.
KARTHIK-ACTIVETAB = 'TAB1'.
WHEN 'TAB2'.
SCREEN = '20'.
KARTHIK-ACTIVETAB = 'TAB2'.
ENDCASE.
Create Tcode -> Activate all components -> Execute the program.
Regards,
Priya.