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

how to create selection-screen with Transaction Programming?

Former Member
0 Likes
710

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.

4 REPLIES 4
Read only

Former Member
0 Likes
619

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.

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
619

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

Read only

ibrahim_u
Active Participant
0 Likes
619

What do you mean Transaction Programming assignment. I think you are working on a Module. I think this thread will help you.

ibrahim

Read only

Former Member
0 Likes
619

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.