Reducing the amount of code in htm pages :-)

Hi, I recently had to reduce the amount of abap business logic in a view.
The view was in a large multifunctional bsp that someone else had written, and to which I needed to add some code.
That view consisted of many htm includes, each include having an enormous amount of business logic determining the choice and parameters of htmlb expressions that were to be rendered by that view.
Thus I had view1 with many such includes: <%@include file="page_or_fragment.htm" %> and the includes would include further includes.
All this meant that the bsp was at its limit: adding 10 lines of htmlb code caused a dump : too much abap, branch offset limit reached.
End of project?
The solution was simple, once found with the help of discussions in this forum and the online documentation:
1) Set the main controller lifetime to session.
2) In the view called by that controller, replace the biggest include statement:
<%@include file="biggest.htm" %> with the statement:
<bsp:call url="controller_for_biggest.do" > </bsp:call>
3) Do not code comp_id on that call (it is prefixed to code later if you do, and the bsp has not been written that way).
4) Define a new view with the same content as the previous include, 'biggest.htm', let's call it 'biggest_view'.
5) Take out the begin and end tags for the htmlb content, page, and form extension elements from 'biggest_view'.
6) Define the new controller 'controller_for_biggest.do'
7) The new controller creates and then calls the new view in the normal way in via call_view( 'biggest_view' ).
So the project could restart.
I hope this is useful.
Kind regards David Lawn

This is sound advice.
I have an application that suffered from these "growing pains" and so I redesigned much of it with your advice.
Good stuff.

Similar Messages

  • How to Use the JAVA SCRIPT code in .htm page of the component

    Hi .
    In my requirement i have to use Java Script Function in .htm code ..how to use the java script code and functions in .htm???
    thank you
    B.Mani

    Check this document  [Arun's Blog|http://wiki.sdn.sap.com/wiki/display/CRM/CRMWebClientUI-TalkingwithJava+Script]
    Regards
    Kavindra

  • How can I reduce the amount of space between paragraphs in Pages?

    How can I reduce the amount of space between paragraphs in Pages?

    Let's pretend that you told us which version of Pages you are talking about, and that you are using Pages 5:
    click in the text > Format > Spacing > click on triangle to expand options > change Before/After
    Peter

  • Reducing the amount of space

    I'm attempting to use some code like this to make a tabbed
    page.
    <cfformgroup type="tabnavigator" style="indicatorGap:0;
    verticalGap:3;">
    <cfformgroup type="page" label="Contact Summary">
    <cfformgroup type="vbox" id="editForm">
    There is to much space between the tab (contact summary) and
    the first form element inside that tab. I've tried going over all
    the formatting style options at the following URL:
    http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm ?context=ColdFusion_Documentation&file=00000677.htm
    I just can't get that darn space out of there. I know it is
    tough to see what I'm talking about without an image, but no
    uploads to this forum that I can see.
    Anyone got a tip?

    Thanks for your reply. I was going to take a screen shot and
    link to it or something. Before I did that, I thought I would check
    out the site you have listed beta.killtheheart.com... Well, guess
    what! You have the same 'problem' that I am trying to fix.
    Looking at your form, you have a number of tabs. The default
    shows as the music tab for me. From the bottom of the music tab to
    the start of the search box you have a lot of space. This is
    exactly what I have, and I can't figure out what style will reduce
    the amount of space that is shown there. It is waisting an entire
    line, and I'm trying to squeeeze as much as possible on the form.
    quote:
    Originally posted by:
    jensen.axel
    gonna need more info... or a link to a website... or
    something.... i can help you out... but i need more code... or
    something....
    beta.killtheheart.com

  • What are the benefits of adding the Google Tracking Code to web pages.

    Hi everyone - I completed my site a few months ago but I'm not happy with the Google ranking I'm getting
    after typing "leadlight windows" into the Google search field.
    I've got Google verification and made sure I've got descriptive titles for my pages and alt text for photos
    plus plenty of "leadlight windows" in my text and headings.
    After months of doing a Google search, to my surprise other sites with what seems like less mention of "leadlight windows"
    are getting a much higher ranking than mine.
    I was wondering wether inserting the Google Tracking Code on each page might give me a higher ranking
    than I'm getting.
    My site is www.leadlightdlux.com
    Many thanks in advance for anyone that has clues about Google Tracking Code.

    Google Analytics is only half the battle.  The analytics starts the process for Google and they build off it.  What you need to examine next is Google Webmaster Tools: https://www.google.com/webmasters/tools/home?hl=en .  On that tool under "Your Site on the Web" you will see an option for keywords.  This will show you what Google sees.
    Lastly Google has recently updated their code whether you are subdomains, multiple domains, etc and this code is placed in the head of your document instead of the end of the document, so updating your code may help there as well.

  • How can I reduce the amount of storage my iPhone uses for messages?

    Is there any way to reduce the amount of storage space my iPhone uses for Messages?  Can I limit the storage to the last year or some other limit (specific date, specific amount of storage etc.)?
    Thank you

    I'm not sure there is a solution to your question, other than to not keep so many photos on your devices.  If you delete a photo from photo stream, it will delete it from all your devices.  To keep them, first save them to your camera roll (tap Edit, tap the photos, tap Share, tap Save to Camera Roll), then import them to your computer as explained here: http://support.apple.com/kb/HT4083.  However, given the number of photos you have, a much more practical solution would be to transfer them to your computer using an app like PhotoSync, which will select them all at once and transfer them over wifi.
    I'm not sure why you're seeing such a discrepancy in the amount of space taken up by your photos.  It's possible that something is corrupt given the large number of photos on your device.

  • HT201774 How do I reduce the amount of email being sent to my iPhone 5 with iOS 7.0?

    How do I reduce the amount of email being sent to my iPhone 5 with iOS 7.0

    As I delete email more mail populates on the phone.

  • How do you reduce the amount of mb used by other i dont know what this is?

    how do i reduce the amount of mb used by other on my itunes do i can record more videos?

    http://osxdaily.com/2013/07/24/remove-other-data-storage-iphone-ipad/

  • When I look in Add/Remove Programs in the Control Panel it reports Firefox as 5.44GB. Could this be true? If so how do I reduce the amount of space it is taking up?

    When I look in Add/Remove Programs in the Control Panel it reports Firefox as 5.44GB. Could this be true? If so how do I reduce the amount of space it is taking up?

    It is quite common for the program size listings to be wrong. To check the actual size of the Firefox installation, you can manually check the size of the Firefox [http://kb.mozillazine.org/Installation_directory installation directory]. It is is typically around 26-30Mb, and the default location on 32 bit Windows is C:\Program Files\Mozilla Firefox\
    There are also a couple of other locations where Firefox stores data, check the size of the following folders as well.
    Firefox also stores user data such as bookmarks and passwords in the [[profiles|profile folder]]. It should be inside this folder C:\Users\''username''\AppData\Roaming\Mozilla\Firefox\Profiles\
    Firefox stores temporary files in the cache. To find the location of the cache, type '''about:cache''' into the location bar. It should be inside this folder C:\Users\''username''\AppData\Local\Mozilla\Firefox\Profiles\
    The last 2 folders are normally hidden, you may need to set Vista to [http://www.bleepingcomputer.com/tutorials/tutorial130.html show hidden files and folders].

  • HT201318 Reduce the amount of iCloud storage you are using by September 30, 2013 emails

    I keep getting emails telling me to reduce the amount of storage you are using or purchase a storage plan, but when I click Manage my Storage Plan the plan I want isn't available. I've been trying to get help on this topic for a week.

    What is your current plan and what plan are you trying to choose?  Also, are you a former MobileMe user who's free upgrade is about to expire?

  • Reducing the amount of classes loaded

    Is it true that the amount of classes loaded can be reduced by having exclusive import statements in the code, as apposed to general package imports.
    eg import <package path>.<classname> as aposed to import <package path>.*

    all and only classes that are instantiated or referenced will be loaded
    specifying individual classes can help prevent name conflicts (ie 2 classes with the same name in different packages)
    importing whole packages will slow the compiler by a very very tiny ammount

  • N95- I want to reduce the amount of messages store...

    I am sick of my phone taking ages to open tx messages and to reply or move or delete them, I go into my inbox and there is about 1000 or so stored there, I can alter the amount of tx msg that I send that get saved, but nowhere can I find how to reduce the inbox to 100 or 200. It is too much to store and makes my phone slow! Please help.

    Keep on deleting the ones that you do not want to keep..its as simple as that.. In fact you can delete ALL by syncing the messages on your PC thru' the Nokia Suite. Refer them or drag them back to the phone whenever you want to do that...

  • How can I reduce the amount of storage a shared photo stream is taking on one of my devices

    I have over 8000 photos on the Cloud in various shared photostreams.  They all appear on all my devices which is great.  The devices show the photos using about 1GB of memory unless I plug into iTunes when it reveals they are in fact using circa 15GB!!  This is ok on the devices with large memory capacity but one of my 'phones is only 16GB in total and is now full.
    If I try to delete a photostream on this phone it threatens to delete the photostream on all my devices.
    It would appear that my cloud storage for photostream is limited by the device with the least memory. 
    Any ideas on solutions gratefully received.  Buy a new phone with more memory or delete some of the photostreams are the sub optimal ideas I have at present.
    Also why is the usage understated on the devices and only revealed when I plug in to iTunes?
    Many Thanks
    D

    I'm not sure there is a solution to your question, other than to not keep so many photos on your devices.  If you delete a photo from photo stream, it will delete it from all your devices.  To keep them, first save them to your camera roll (tap Edit, tap the photos, tap Share, tap Save to Camera Roll), then import them to your computer as explained here: http://support.apple.com/kb/HT4083.  However, given the number of photos you have, a much more practical solution would be to transfer them to your computer using an app like PhotoSync, which will select them all at once and transfer them over wifi.
    I'm not sure why you're seeing such a discrepancy in the amount of space taken up by your photos.  It's possible that something is corrupt given the large number of photos on your device.

  • Reducing File Size by reducing the amount of embedded fonts

    Currently we use coldfusion to generate a rather large PDF. We take the data and merge it with pdf forms and then combine all the forms into one large PDF. The end product of the PDF is rather large in size, when i do and audit of the space usage i notice that 89.40% is fonts which relates to almost 92.9 mbs. Is there a way i can strip some of these fonts either using coldfusion or adobe acrobat pro, and still maintain the integrity of the PDF?

    It may be you can subset the fonts and not include the full fonts in the file. You might also consider replacing some of the fonts with others to reduce the total number. Removing the fonts is dangerous as the PDF may not display properly in such a case. There are some preflight macros that deal with fonts that might help -- worth looking at.

  • How can I reduce the amount of user prompts for Email setup in Apple Configurator?

    I am working on deploying profiles via Apple's new Apple Configurator which allows me to install apps and settings exactly how I want them. My question pertains to the email setup where anything left blank in the payload gets prompted on the device for user input. Is there anyway to have the user only enter in their user name and password once and use that for the SMTP outgoing settings as well? I'd like to reduce the user interaction to a minimal.Currently they enter in their full name, email address, user name for incoming, password for incoming, and then user name AGAIN for outgoing (I checked the box for 'Outgoing password same as incoming'). Is there anyway to retain the username and avoid having the user enter it in twice?
    If not, I can make do with how it is, but was rather curious if this is possible. Any help would be greatly appreciated.

    I'll try this again starting it as new, but when I restored it before (after deleting all the apps and music off it) it didn't help.  Thanks for the suggestion!

Maybe you are looking for

  • How to import bookmarks from the hd of a dead laptop using Windows 8.

    Hello, I have tried the other solutions listed for this issue but none of them seem to work. My profile folder for the older version of firefox is empty, and I don't find APPDATA or any .json files even when files are unhidden. I would be grateful if

  • How to return subclass values in Web Service

    We are currently running AS 10.1.2.0.2 (J2EE and WebCache version). I don't have solution for the following case: 1) two classes are defined as: public class PartyName private String m_null_val; public class IndividualName extends PartyName private S

  • Application builder subvi

    I'm just learning to use the application builder, my interest is in creating a stand alone application & installer.    Is it possible to generate a single executable file which contains the top level VI as well as all of its sub-Vis ??  If the answer

  • Adding a button in selection screen of report ?

    Hi, My requirement is to add a Push Button to the selection screen of a report program. The button has to be position near the 'Variant' button which is already present. How to do this. Regards.

  • LAPTOP IS SLOW

    HEY EVERYONE...HOPE SOMEONE CAN HELP ME.  WHEN I AM TYPING I HAVE TO STOP AND WAIT UNTIL MY COMPUTOR CATCHES UP WITH MY TYPING.  IT HAS NEVER DONE THIS BEFORE...LIKE I WILL TYPE LETS SAY BEST BUY...I HAVE TO STOP AND WAIT FOR IT TO CATCH UP....ANY ID