0% found this document useful (0 votes)
14 views3 pages

Select Options in Module Pool Program

Select Options in Module Pool Program

Uploaded by

Sampath Bs
Copyright
© Public Domain
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views3 pages

Select Options in Module Pool Program

Select Options in Module Pool Program

Uploaded by

Sampath Bs
Copyright
© Public Domain
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

9/26/25, 12:22 AM Select Options in Module Pool Program - LearnSapAbap

HOME ABOUT US CONTACT US 

Discover more SAP Database ABAP for Hana

ABAP Development for SAP HANA SAP ERP

HOME BASICS STATEMENT CONTROL BREAK DATABASE QUERY ADVANCE ABAP DOWNLOAD APPLICATION 

SUBSCRIBE
Select Options in Module Pool Program LearnSapAbap
2:29 PM  YouTube 5K

Select Options in Module Pool Program


We can make Select Option for input element in the module pool program. Following are the steps
GOOGLE TRANSLATE
Step-1 Go to SE80 and create a program (here it is zsandip_mod).
Select Language ​▼
Step-2 Create top include with naming convention.
Here the names are:

INCLUDE zsandip_top . " global Data


INCLUDE zsandip_o01 . " PBO-Modules
SEARCH THIS BLOG
INCLUDE zsandip_i01 . " PAI-Modules
INCLUDE zsandip_f01 . " FORM-Routines
Search

SLIDEBAR

Step-3 Create a screen that contains a number (here 9000).

Step-4 Inside the screen create a sub screen by using the sub screen tool bar. There is no
need to create that sub screen separately.
Discover more Database SAP
Step-5 In the Top Include mention the select option like below:
SAP ERP
TABLES mara.
ABAP Development for SAP HANA
DATA: ok_code TYPE sy-ucomm.
ABAP for Hana
SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.
SELECT-OPTIONS s_matnr FOR mara-matnr.
SELECTION-SCREEN END OF SCREEN 100.

Step-6 Now write the code in the flow logic of the screen 9000. In PBO we are calling sub
screen 'SEL' which is including the program name with the sub screen number '100'
After that we have to call sub screen 'SEL' at first in the PAI block. If here it is not
declared then the Select Option will remain blank.

PROCESS BEFORE OUTPUT.


MODULE status_9000.
CALL SUBSCREEN sel INCLUDING sy-repid '100'.

PROCESS AFTER INPUT.


CALL SUBSCREEN sel.
MODULE user_command_9000.

Here in the Element List we have to declare the ok_code. FOLLOW US

Step-7 After that create the GUI status and PF status in the PBO module.
  
Step-8 Next in PAI module mention the code shown below:

https://www.learnsapabap.com/2017/09/select-options-in-module-pool-program.html 1/3
9/26/25, 12:22 AM Select Options in Module Pool Program - LearnSapAbap
3 0 2
5 4
CASE ok_code. .
WHEN 'BACK'. 4
PERFORM leave.
WHEN 'EXIT'.
PERFORM leave.
WHEN 'CANCEL'.
PERFORM leave.
ENDCASE. SUBSCRIBE

Step-9 Next declare the subroutine in INCLUDE zsandip_f01 and mention the following
code:
Subscribe via Email
Enter email address he Submit
LEAVE TO SCREEN 0.
LEAVE LIST-PROCESSING.

Step-10 Finally create a transaction code (here zsr_mod) and run that by separately.

Layout is as follows (to view large click on the figure): POPULAR POSTS

Parallel Cursor in SAP


ABAP | Parallel cursor in
abap | Parallel cursor in
sap

Extra Programs

Object Oriented ABAP -


Events

How to Display ALV table


Output is as follows as pop up screen | ALV
table | Display ALV output
table.

PAGEVIEWS PAST WEEK

4 0 6 0
(to view large click on the figure):

    

RELATED POSTS

PREVIOUS NEXT
Check Boxes and Push Buttons Simple Table Control

POST A COMMENT
No comments

https://www.learnsapabap.com/2017/09/select-options-in-module-pool-program.html 2/3
9/26/25, 12:22 AM Select Options in Module Pool Program - LearnSapAbap
To leave a comment, click the button below to sign in with Google. 

SIGN IN WITH GOOGLE

Discover more ABAP Development for SAP HANA Database SAP

ABAP for Hana SAP ERP

RECENT POSTS POPULAR POSTS

ABAP CDS View With Input Parallel Cursor in SAP ABAP |


parameters | Parameters in CDS Parallel cursor in abap | Parallel
Views | CDS View with Parameters cursor in sap
 May 01, 2020

Extra Programs
ABAP For Iteration with Where
condition | For Statement with
Where clause | For syntax with
Where condition
 April 25, 2020 Object Oriented ABAP - Events

ABAP 7.40 For Iteration Expression |


For Iteration in SAP ABAP | For
Statement in SAP ABAP 7.40 | For
syntax in ABAP
 April 19, 2020

CREATED BY SORATEMPLATES | DISTRIBUTED BY GOOYAABI TEMPLATES

https://www.learnsapabap.com/2017/09/select-options-in-module-pool-program.html 3/3

You might also like