2010 Jan 05 6:14 AM
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
2010 Jan 05 6:27 AM
2010 Jan 13 5:46 AM
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
2010 Jan 13 5:49 AM
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.
2010 Jan 13 6:06 AM
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
2010 Jan 13 6:15 AM
hi neha,
Try to use this in se38
INCLUDE PROGRAMNAME_TOP.
CALL SCREEN 100.
INCLUDE SCREEN_NO_PBO.
INCLUDE SCREEN_NO_PAI.regards
Gaurav
2010 Jan 13 9:28 AM
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