Top include
hi,
what is the meaning of tp include.
regards,
dhiraj
Hi,
top include is usually meant for global delcarations
for eg you have written a function module
and obviously it will be in afunction group
then by default it will be creating two includes
one of it is top include
in a function group we can have many function modules
and we will use so many variables in that
and some times the same variables may be used in many function modules
in that case we used todeclare them in the top include so that all the function
modules can access it..
<b>so top include is a common space for all the related program to declare the
variables and internals tables or what ever the declarations...</b>
same as for the reports
thanks & regards,
Venkatesh
Similar Messages
-
Reg:table declaration in a top include
Hi gurus,
I have declared few tables in the top include of a function module,but while activating the FM it's throwing error that "the table has already been declared".Where as I have not declared those tables anywhere else.
Please give me a solution regarding this.
Thanks in advance.hi,
it might be dat u have declared the required tables in ur Function module and also declared in Top Include. check this. when ever you declared all required elements in ur Top include then try to avoid them declaring in ur FM.
if helpful reward some points.
with regards,
Suresh Aluri. -
My hard drive crashed and I lost everything on my Mac desk top, including my Adobe Lightroom. I had my hard drive replaced but how do I download to my new hard drive? I have my previous serial number but when I entered that, it said it was invalid.
Lightroom - all versions
Windows
http://www.adobe.com/support/downloads/product.jsp?product=113&platform=Windows
Mac
http://www.adobe.com/support/downloads/product.jsp?product=113&platform=Macintosh
Contact Adobe Support by chat for serial number issues:
http://helpx.adobe.com/x-productkb/global/service1.html ( http://adobe.ly/1aYjbSC ) -
Problem with variable declared in TOP Include
Hi,
I have declared a variable P_TEXT in TOP include ZPGM_TOP. In main program ZPGM, I have declared this TOP include ZPGM_TOP and another include ZPGM_F01.
I am accessing P_TEXT in include ZPGM_F01, but it is giving me following error when I do syntex check.
Error : Field P_TEXT is unknown. It is neither in one of the specified tables nor defned by DATA statement.
But when I double click on P_TEXT in ZPGM_F01, it takes me to TOP include declaration.
Please advise what I am doing wrong.
Thanks.Check the sequence in which your includes are declared e.g.
include zpgm_top. "data
include zpgm_f01. "code
would work, but:
include zpgm_f01. "code
include zpgm_top. "data
will give syntax error in "zpgm_f01".
Jonathan -
How to create a top include for module pool program
hi all..
I want to add my global declarations in one top inlcude.. There are so many other includes in my pgm. But how can i create top include explicitly. Also I have one normal report pgm attached with this module pool.hi Cynthia ,
there are two ways of creating a top include at your situation ,
1) Insert an include <Prog name >TOP in your mpool program and cut n paste your declarations there .. check if this works ...
2)else .. create another m pool program in SE80 , while creating a pop up will ask for with TOP include ... check mark that and then proceed ..
anything of these two will work ...
Reward if helpful !!
Regards,
Ranjita -
How to include Standard Top include in custom FM ?
Hi Experts ,
I have copied a standard FM to custom RFC. (and also all declarations in a custom TOP include) .
I have a variable that is declared in the Standard TOP include also .
How I can include that Include in my Custom RFC .
This is because the standard TOP include is geting called at run time and overwriting the variable.
Regards,
SunithaHi Rahul,
You will not find the "CatalogItemImpl" in the 'businessobject.xml'. The 'businessobject.xml' is there to define session based API of modules. Those API have properties and web channel builder values injected when the user start a web session.
For the "CatalogItem", you will have to use the Generic Factory concept. The Generic Factory is used to allocate instance given a configuration. If no configuration exists, the default implementation is used. By adding an entry in the Generic Factory you can choose to allocate your class instead of the default class.
Within the catalog module, the alias to use for classes extending "CatalogItemImpl" is "com.sap.wec.app.common.module.catalog.businessobject.ext.interf.CatalogItemExtInterf".
Please refer to the extension guide on how to manage the Generic Factory configuration file.
Regards,
Robin -
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,
NehaHi 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 -
How to use a TOP INCLUDE of my_function_module for/into my_report?
Hello Experts,
I put the below code in my_function_module
PERFORM my_routine
IN PROGRAM my_report_prog
USING xyz.
Now, i want to use the TOP INCLUDE/Data declaration part of my_function_module for/into my_report_prog, because i do not want to declare all again.
Pls. let me know how to use a TOP INCLUDE of a my_function_module for/into my_report?
Thank youHi,
I think we can directly use the include using INCLUDE stat.
Go to your function group get the top include name
and use it in your report.
Thanks,
Anmol. -
Hallo,
I hope someone can help me.
I would like to know if is it allowed this program under ?
Program with Top Includes.
Type 1 Exucutable Program.
Developement class $TMP - Temporary Objects.
Logical Database ABS. ABAP Book: Customer and bookings.
(DB Selection Screen 1000)
If it is allowed where can I use Events GET in flow logic ?
Thank in advance.
Kindest regardes.
ClaudiaHi Claudia,
Welcome to SDN Forum. Don't forget to read the [rules of engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement].
Take a look at Report "EXAMPLE_PNP_GET_PAYROLL" it demonstrate how to use Logical database and GET events.
Logical database PNP HR Master Data
Selection screen 900 Selection screen on payroll results
* These three tables need to be declared for the selection screen-.
* Currently, the declarations of pyorgscreen, pytimescreen HAS to
* be done in addition to setting selection screen = 900 .
TABLES: pernr.
* Declare the country specific structure:
* payXX_result with XX = country code, e.g. payDE_result for Germany
* Country = 99 is an exception: If this structure is used, the
* international part of every payroll result is returned regardless
* of country code. In the other case, pernr's whose country code do
* not fit the structure are skipped.
NODES: payroll TYPE pay99_result.
DATA: wa_wpbp LIKE LINE OF payroll-inter-wpbp.
GET pernr.
WRITE: / 'Currently working on:'(021), pernr-pernr.
GET payroll.
LOOP AT payroll-inter-wpbp INTO wa_wpbp.
WRITE: / 'Personal Area ='(018), wa_wpbp-werks,
'Sub Area ='(019), wa_wpbp-btrtl.
ENDLOOP.
Don't forget to close this thread and all yours previous when your question be answered !
Best Regards.
Marcelo Ramos -
Using the same top include of a function group inside a report
I have a function group .
I want my report to use the top include of the function group.
Is this possible.How?
I tried the use the include statement inside report it didnt work...TOP INCLUDE of FG starts with FUNCTION-POOL statement, hence you ge the error.
Solution: create new include to encapsulate your definitions there, then include it in TOP INCLUDE of FG + your program.
Regards
Marcin -
Errors in activating Program with TOP INCLUDE
Hi,
I have a report with TOP INCLUDE. In the global declaration include, I keep encountering an error for a deferred class definition. The codes were working perfectly fine previously, before I changed from a report WITHOUT TOP INCLUDE to report with TOP INCLUDE. Can anyone help? Thanks..
============================================
Main Program
INCLUDE ZXXX_RULES_ENGINE_TOP. " Global Data
INCLUDE ZXXX_RULES_ENGINE_C01. " CLASS-Objects
============================================
ZXXX_RULES_ENGINE_TOP
REPORT ZXXX_RULES_ENGINE.
CLASS CL_TREE DEFINITION DEFERRED.
" ==> Error encountered: "CLASS CL_TREE DEFINITION DEFERRED" does not have "CLASS CL_TREE DEFINITION".
CLASS CL_GUI_CFW DEFINITION LOAD.
============================================
ZXXX_RULES_ENGINE_C01
CLASS CL_TREE DEFINITION.
PUBLIC SECTION.
ENDCLASS.
CLASS CL_TREE IMPLEMENTATION.
ENDCLASS.
============================================
Edited by: Kian Keong on Mar 17, 2008 6:37 PMHi,
Go to ur main program in display mode and press CntrlShiftf5.
On the left hand side select your main program and click on activate button.
Hope ur problem will be solved.
If still sm error is there then tell me the error message.
Award Points If Useful -
Top include in Function module
Hi All,
I have written a select statment in a FM.I want to retain the values selected so that it is available even when the FM is executed next time.Is it possibe to retain values selected by declaring the internal table in the TOP include?
Thanks,
Rakesh.hi Rakesh,
if you declare the internal table in the TOP include, that only means it will be avaliable for each FM in the function group. The internal table will be avaliable, not the data (which is filled with the SELECT statement)!
The question is when do you execute the FM next time? It it's only a while, you can export the data into the memory, import by the next FM call and you don't need to select again. but it only works if it is still the same user, same session. can you enlight the scenario?
thanks
ec -
Hi all
Im trying to create a program from the Object Navigator tool, and select 'With TOP Include', however i get an error that goes like this...
'Error in Object Editing'
'System does not allow changes to be made to Object PROG TEST_TOP' (even though im creating a new program)
(The name of my program is ZBAP_TEST)
What I wanted to know is:
What are the components that are created if 'With TOP Include' is selected?
and what are the advantages of creating a program with the 'With TOP Include' option?
Thanks
AdamIf you create a report with TOP include, a new include (source code) is created and you can define your global variables here and links to other includes qnd structure your program instead of having everything grouped in one include.
-
Hi,
I'm new in ABAP. I have created a report program and want to add a top include. Is it possible to add this after program creation?? Or delete the existing one and create it again??
Regards,
Kithi.,
you can create TOP INCLUDE after creating report program also.
no need to delete the existing program.
instead delete what ever the contents you want to include in TOP INCLUDE and place them in TOP INCLUDE.
and this top include program name should be at the top of the report program.
Chandra -
Type pools VS Top Include.
Hi all,
Is there any difference between a top include and Type pools.
As both are used for data declaration purpose, i would like to know any differences between these two.
Please kindly clarify me on this.
Thanks in advance.It might come as a surprise to some, but this is all information that can be easily derived from the online SAP documentation. Here we go...
A type group (which can be defined via the [TYPE-POOL|http://help.sap.com/abapdocu_70/en/ABAPTYPE-POOL.htm] statement) is more or less a historical artifact, which allowed you since release 3.0 to define any type globally in the data dictionary (and at that time the data dictionary was limited and didn't allow for example types for internal tables). For further reading I recommend the online help on [data types in the ABAP dictionary|http://help.sap.com/saphelp_nw70ehp2/helpdata/en/fc/eb3138358411d1829f0000e829fbfe/frameset.htm].
Now, a type group is not like any include, because it only allows certain statements (see [TYPE-POOL|http://help.sap.com/abapdocu_70/en/ABAPTYPE-POOL.htm] in the online ABAP help) and is designed as a global object for re-use. E.g. in TOP includes you would also define your global data (e.g. if you have a module pool for a dialog program), whereas in type groups you cannot do that. And obviously a TOP include is not necessarily a global object that should be shared across programs (though of course you can do that).
As Clemens already pointed out, type groups are nowadays considered obsolete, because you have different alternatives (see comments in [data types in the ABAP dictionary|http://help.sap.com/saphelp_nw70ehp2/helpdata/en/fc/eb3138358411d1829f0000e829fbfe/frameset.htm]). Note also that with 7.0 EhP2 the ABAP compiler automatically loads type groups on demand (which also shows you their global nature) and thus making the statement [TYPE-POOLS|http://help.sap.com/abapdocu_70/en/ABAPTYPE-POOLS.htm] obsolete (see the comments there).
Cheers, harald
Maybe you are looking for
-
hi, I have the following data in the table Account_Num Payment_type TEST0001 Credit Card TEST0001 Auto Debit TEST0001 EFT TEST0001 Credit Card TEST0001 Cash TES
-
Test Stand 3.5 install problem
I'm having problems installing Test Stand 3.5 Development Edition on a WinXP SP1 machine - would anyone have any suggestions. I'm performing a custom install and selecting all components other than "Device Drivers". The install fails on "NI TestStand
-
hello! can anyone please explain what is code page? I came across a problem, while opening dataset in text mode, i use the command transfer few times, but instead of getting few lines in the file i get a string of all the lines. I was told to use cod
-
Hi, i have a scenario from idoc to flat file.There is two idoc that send message in same file.Without flat file content messages come succesfully.the format should be following: at the first row should be the first idoc, at the second row should be
-
Problems with a adaptec ash-1233 card
i am tryin to install a pci card in my computer so i can use the full 200 gigs of my HD and this is the only pci/ ata adapter card i could find. does anyone know how i can get this to work with my computer that i have now? i have a blue and white g3