‎2006 Oct 09 3:19 PM
Hi, Abapers:
I have a Transaction Programming assignment, in main scren, I want to create selection-screen, select-options.
How to do that. Thanks in advance.
‎2006 Oct 09 3:21 PM
You can define like this:
SELECTION-SCREEN BEGIN OF BLOCK a1 WITH FRAME TITLE text-001.
SELECT-OPTIONS: s_cust FOR but000-partner OBLIGATORY, "Business Partner
s_status FOR zspa_supstat-zzsptstatus " Status
NO INTERVALS NO-EXTENSION
MATCHCODE OBJECT zs_supstat_es.
SELECTION-SCREEN END OF BLOCK a1.
You can assign the transaction for the program in SE93 by selecting the radio button Program and selection screen.
‎2006 Oct 09 3:21 PM
You can embed a selection screen in your dynpro very easily. Define the selection screen as a subscreen and then call this subscreen in your dynpro, here is an example program.
report zrich_0006 .
tables: mara.
* Custom Selection Screen 1010
selection-screen begin of screen 1010 as subscreen.
selection-screen begin of block b1 with frame title text-001.
parameters: p_rad1 radiobutton group grp1 default 'X',
p_rad2 radiobutton group grp1,
p_rad3 radiobutton group grp1.
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.
* SET PF-STATUS 'xxxxxxxx'.
* SET TITLEBAR 'xxx'.
endmodule.
*&---------------------------------------------------------------------*
*& Module USER_COMMAND_0100 INPUT
*&---------------------------------------------------------------------*
module user_command_0100 input.
endmodule.
* Screen screen 100 with a subscreen area called "subscreen_1010"
* Screen Flow Logic follows
*process before output.
*
* module status_0100.
*
* call subscreen subscreen_1010 including sy-repid '1010'.
*
*process after input.
*
* call subscreen subscreen_1010 .
*
* module user_command_0100.
REgards,
RIch Heilman
‎2006 Oct 09 3:24 PM
‎2006 Oct 09 3:27 PM
hi
1. In the main screen you can define subscreen areas.
2. Create subscreens and assing to the areas.
3. you may also create modal screens and call in the main screen.
If screen 9000 is your main screen.
PROCESS BEFORE OUTPUT.
CALL SUBSCREEN sub INCLUDING sy-repid dynnr.
PROCESS AFTER INPUT.
CALL SUBSCREEN sub.
Hope it helps.