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

Top Include in Module Pool

Former Member
0 Kudos
876

Hi Experts,

Can anybody will suggest me how I can create TOP include in module pool program?

Actually wanted to create select option in module pool.

Please suggest.

Regards,

Neha

6 REPLIES 6
Read only

viquar_iqbal
Active Contributor
0 Kudos
622

Hi Neha,

This question is much discussed in SCN. Check out this link

[select-option|;

Thank you,

Viquar Iqbal

Read only

Former Member
0 Kudos
622

Hi Neha,

Please find the below code for creating a select-options in Module pool

Note: dont create a Screen first.

TABLES VBAP.

SELECTION-SCREEN BEGIN OF SCREEN 100 .
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS S_VBELN FOR VBAP-VBELN.
PARAMETER P_WERKS LIKE VBAP-WERKS.
SELECT-OPTIONS S_ERDAT FOR VBAP-ERDAT.
SELECTION-SCREEN END OF BLOCK B1.
SELECTION-SCREEN END OF SCREEN 100.

Thanks

Surendra P

Read only

Former Member
0 Kudos
622

Hi Neha ,

Please search SDN before posting .

Check this link

http://wiki.sdn.sap.com/wiki/display/ABAP/SELECT-OPTIONSonDialogprogrammingscreen

Hope this resolves your issue.

Read only

Former Member
0 Kudos
622

Hello Neha ,

I suggest you a way to do that . You create a report program in se38 for which u can create top include.

if u create a screen for that report program , issue is solved.On the application tool bar u can find display object list but when u click on that u can that object list , place the cursor on the program, right click for create option in which u fine screen option.

Hope this helps you.

Regards,

Laxmi.

Edited by: laxmi on Jan 13, 2010 7:08 AM

Read only

Former Member
0 Kudos
622

hi neha,

Try to use this in se38

INCLUDE PROGRAMNAME_TOP.


CALL SCREEN  100.

INCLUDE SCREEN_NO_PBO.

INCLUDE SCREEN_NO_PAI.

regards

Gaurav

Read only

0 Kudos
622

hi neha,

u can easily include anyfile.

goto SE80

if you are creating the program for the first time then it will ask for with top include. you have to check the checkbox.

or waht you can do is right click in the programname in se80 and create include file.

in se38 also you have to click on Display obect list button and you can create top include.

other method is just write

include includename_top.

double click on it , it will crearte the top include file.

you can declare the data in the top include

hope this will help you

Thanks

Tanmaya