Sie sind auf Seite 1von 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

Das könnte Ihnen auch gefallen