'With TOP Include'

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
Adam

If 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.

Similar Messages

  • Program with Top includes

    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.
    Claudia

    Hi 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

  • 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 PM

    Hi,
    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

  • 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 create TOP include?

    Hi,
      How to Create TOP include?Because i want to move all data declarations into TOP include?
    Thanks,
    sairam

    Hi ,
    in SE38,
    Right after your report statement, type INCLUDE ZXXXXTOP and double click on it , it will ask for creation of a new object , say yes and then it will be created . next copy all the data declarations and paste it in that TOP include and activate it.
    in SE80 , when you create a program, you will get a popup saying PROGRAM ZXXX, and one option will be there for creating it with TOP Include , tick mark that and save it, it will create  a program with a top include .
    Reward if helpful ,
    Regards,
    Ranjita

  • 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

  • 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.

  • Top Include in Module Pool

    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

    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

  • 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

  • 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

  • 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

  • I want to sync my Voice Memos but iTunes 10.5 will not let me even with the "include voice memos" checkbox selected.

    I want to sync my Voice Memos but iTunes 10.5 will not let me even with the "include voice memos" checkbox selected. As well Ive deselected all the music in itunes so when I sync there will be none on my phone but itunes also ignores this request and puts purchased music back on. I do not have autofill selected. Also wondering where the backup of my iphone 4s is located on my hard disk. Any help greatly appreciated.

    Sorry thats itunes 11.5

  • I have a water damage iPhone 5s would like to change to new set with top up the money. But the staff told me it couldn't be done due to some of my minor parts are missing according to company policy. I need advise as I want to change it.

    Hi all,
    I have a water damage iPhone 5s was bring to service center to have new set change with top up the money. Well, the staff were told me that the phone can't be change due to some of minor parts are missing in the phone. He said this is due to company policy. I would like to check is that nothing can do with this missing minor parts? I really doubt the policy of the Apple as I was told as long as you bring to the service center, they will assists. As Apple is a well known brand top of the world, but the servicing is really make me so disappointed! I really doubt should I still continue to support the Apple product with helpless service!
    Would like to take this opportunity to seek the professional advise in order to get my phone change back.
    Appreciate very much!
    Thanks.

    Well, your service is handled by an Authorized Apple Service Center. If they refuse to handle the claim, that is well within their rights. Apple as well could void a claim under the same circumstances. I'm not saying that you did or did not modify the device, but you could try and talk to a supervisor there and make another request. You can also try and contact Apple by obtaining a number with this support document and describe your problem. http://support.apple.com/kb/HE57

  • How to register multiple xsd with relative include references?

    Hi there,
    unfortunately I'm a newbie to XDB and maybe this is a basic question. But I didn't get it solved right now (also Google wasn't my friend helping me out)...
    I try to register a set of xsd to XML DB (11g Release 2 11.2.0.1.0) with the given structure:
    Folder 'demo' contains:
    mainmodel.xsd
    types.xsd
    Subfolder 'demo/details' contains:
    submodel_a.xsd with <xs:include schemaLocation="../types.xsd"/>
    submodel_b.xsd with <xs:include schemaLocation="submodel_a.xsd"/>
    First I created the folders 'demo' and 'demo/details' in the XML DB repository using dbms_xdb.CreateFolder.
    Then I added the xsd as resources to the XML DB, e.g.
    declare
          v_result boolean;
          v_schema xmltype := xmltype(bfilename('DEMO', 'types.xsd'), nls_charset_id('ISO-8859-1'));
        begin
          v_result := dbms_xdb.CreateResource('/demo/types.xsd', v_schema);
        end;
    Then I registered my types.xsd:
    begin
    DBMS_XMLSCHEMA.REGISTERSCHEMA(
            schemaurl => 'types.xsd',
            schemadoc => BFILENAME ('DEMO','types.xsd'),
            csid => 0
            end;
    When trying to register submodel_a.xsd the same way I get the following error:
    ORA-31000: Ressource '../types.xsd' is not an XDB schema document.
    How can I resolve this?
    Best regards
    Matthias

    As Marco mentioned, you have to resolve and update the relative urls in a local copy of the schema, just before registration.
    That way you can keep the original file untouched while correctly register the schema using absolute urls.
    Here's a short example, assuming all XSDs have been loaded as resources in the repository, using the same folder structure :
    - This registers "types.xsd" at URL "/demo/types.xsd"
    begin
      dbms_xmlschema.registerSchema(
        schemaURL => '/demo/types.xsd'
      , schemaDoc => xdburitype('/demo/types.xsd')
      , local     => true
      , genTypes  => false
      , genTables => false
    end;
    - This gets a local copy of "submodel_a.xsd" located at "/demo/details/submodel_a.xsd" in the repository, resolves and updates the include location(s), then registers it :
    declare
      v_schema_url varchar2(2000) := '/demo/details/submodel_a.xsd';
      v_schema_doc xmltype := xdburitype(v_schema_url).getxml();
    begin
      for r in (
          select x.*
          from xmltable(
                 'for $i in fn:doc($url)/xs:schema/xs:include
                  return fn:resolve-uri($i/@schemaLocation, $url)'
                 passing v_schema_url as "url"
                 columns idx        for ordinality
                       , schema_loc varchar2(4000) path '.'
               ) x
      loop
        select updatexml(
                 v_schema_doc
               , '/xs:schema/xs:include[' || to_char(r.idx) || ']/@schemaLocation'
               , r.schema_loc
               , 'xmlns:xs="http://www.w3.org/2001/XMLSchema"'
        into v_schema_doc
        from dual;
      end loop;
      dbms_output.put_line(v_schema_doc.getclobval);
      dbms_xmlschema.registerSchema(
        schemaURL => v_schema_url
      , schemaDoc => v_schema_doc
      , local     => true
      , genTypes  => false
      , genTables => false
    end;
    (in this case the xs:include/@schemaLocation will be updated from '../types.xsd' to '/demo/types.xsd')

  • I downloaded the Special Edition of 'Avatar' with the included 'Extras'... I use to see them in my iTunes library, but, can no longer locate them anywhere on my computer or in the iTunes library files! What happened?

    I purchased 'Avatar' The Special Edition with the included Extras with a gift card. I had enough money in my account to cover this purchase. I only got to watch the 'Extras' for one or two times, and now, they have vanished! They no longer appear in my iTunes library or anywhere on my computer! Where are they and how do I regain access? The movie, itself, is still in the library...only the downloaded 'Extras' are gone!

    Visibility of the Podcasts section is controlled from within the Edit > Preferences dialog.
    Empty/corrupt library after upgrade/crash
    Hopefully it's not been too long since you last upgraded iTunes, in fact if you get an empty/incomplete library immediately after upgrading then with the following steps you shouldn't lose a thing or need to do any further housekeeping. In the Previous iTunes Libraries folder should be a number of dated iTunes Library files. Take the most recent of these and copy it into the iTunes folder. Rename iTunes Library.itl as iTunes Library (Corrupt).itl and then rename the restored file as iTunes Library.itl. Start iTunes. Should all be good, bar any recent additions to or deletions from your library.
    See iTunes Folder Watch for a tool to catch up with any changes since the backup file was created.
    Missing tracks
    Typically this can happen because a file or folder is accidentally shunted to the wrong location. iTunes can also get confused if it expects to be talking to an external drive which isn't there. If will often reset the default media folder location and may have trouble finding files in the old folders.
    Select one of your tracks that is missing in action. Press CTRL-I to Get Info. Cancel when asked to try to locate the file, then look at the location given on the summary tab. This where iTunes thinks the file ought to be? Now find out where it actually is. Post back the two locations for comparison. I should be able to give you some steps to reconnect everything once I can determine which of the things that might have gone wrong is most likely in your case.
    When you get it all working make a backup!
    tt2

Maybe you are looking for

  • Procedure Confirmed with Comparing Dates

    Trying to compare two dates, and there's so many ways I'm just getting a bit confused. I have a date stored in my database in a timestamp field with this format: 2006-03-05 19:13:05 I have a term defined in months (in the database) of how long the ac

  • Problem reinstalling Mountain Lion OS! Urgent!

    Hey everyone, I just got a macbook pro from work, i reformatted it because there was alot of useless sutff in it. WHen i try to reinstall with internet recovery and chosen the mountain lion os it asks me for my apple id and password. I have created t

  • Reading a text file and putting it in a textarea

    hi can u tell me how to read a text file and display the contents in a text area using jsp please? thanks :o)

  • Outlook 2010 Question

    Does anyone know a way to create a template or something similar in Outlook to where I could have a "pre-filled" form or something similar that would allow me to enter in data and email it securely (as secure as can be)?  I know I can do it with Adob

  • Sub directories foto's

    I use the IPOD Video, and want to try to get all my foto's on the IPOD. This is not a problem. I give the name of the directorie where the foto's are, and all the foto's are on the IPOD. But I have one probleem. My First level directory, named Holida