Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
2K views

How To Create Select Options in Module Pool

This document provides steps for creating select options in a module pool using a subscreen in ABAP. It involves declaring a subscreen in the main program, creating a new screen layout with the subscreen, calling the subscreen in process before and after events, and declaring conditions to select data from a database table based on the subscreen input.

Uploaded by

Kabil Rocky
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2K views

How To Create Select Options in Module Pool

This document provides steps for creating select options in a module pool using a subscreen in ABAP. It involves declaring a subscreen in the main program, creating a new screen layout with the subscreen, calling the subscreen in process before and after events, and declaring conditions to select data from a database table based on the subscreen input.

Uploaded by

Kabil Rocky
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

How to create select Options in Module Pool

Select options in module pool will be created with


the help of sub screen.

Step 1: Declare the sub screen in Main Program


SELECTION-SCREEN BEGIN OF SCREEN 3000 AS SUBSCREEN.
SELECT-OPTIONS: s_vbeln FOR ztransports-vbeln.
PARAMETERS
: p_lr TYPE ztransports-lr_nr,
p_date TYPE ztransports-lr_date.
SELECTION-SCREEN END OF SCREEN 3000 .

Step 2 : Create new screen as shown below.

Step 3: After creating screen Select Layout it will


navigate to Design sub screen.

Step 4 :
4.1: Select Sub screen and draw sub screen
4.2: You can see Sub Screen in Box size
4.3: Provide Sub Screen name as SUB.

Step 5: Call your sub screen in Process before Output event.


Call your sub screen in Process after input event
as shown below.
PAI EVENT:

Declare the below conditions

SELECT * FROM ztransports INTO CORRESPONDING FIELDS OF TABLE gt_trans


WHERE vbeln IN s_vbeln AND lr_nr = p_lr AND lr_date = p_date.

If you are not calling the sub screen in PAI event datas will not retrieve from
the database .

Step 6: Input Screen

After providing inputs. Output as shown below

Thread Finished Thanks

You might also like