What is BSP extension?

Could anyone please let me know what is BSP extension?
Thanks in Advance.
Best Regards,
Vijaya

Creation our own BSP Extensions
Advantages of BSP Extensions –
1.     Reduces the complexity of the BSP pages.
2.     Reuse.
3.     Clear-cut role distribution.
4.     Tool support within the workbench by the BSP extension editor.
Firstly while creating an element under the extension there is a provision for entering the attributes and then tin the element handler class Generally these are the methods that are to be redefined while creating our own BSP Extensions-
1.     COMPILE_TIME_IS_VALID
2.     RUNTIME_IS_VALID
3.     DO_AT_BEGINNING
4.     DO_AT_END
COMPILE_TIME_IS_VALID –
     Determines at compile time whether correct values have been assigned to element attributes. The validation result is written to the return parameter valid.  The possible values for valid are ‘X’ or ‘’ (blank).
RUNTIME_IS_VALID –
     Determines at runtime whether correct values have been assigned to the element attributes.
DO_AT_BEGINNING –
     This method is always accessed at the beginning of the element call when the BSP page is processed.
Using the return parameter RC you can control whether the content of the current BSP element is to be evaluated or not. The possible values of the return parameter RC are therefore: CO_ELEMENT_CONTINUE and CO_ELEMENT_DONE
DO_AT_END –
     This method is accessed, whatever the case, at the end of the element call. Since the entire element content is available at this point, this method can be used for Manipulation of the Element Content.
Using the return parameter RC, you can control whether the entire BSP page is to be evaluated further or not. The possible values are therefore: CO_PAGE_CONTINUE and CO_PAGE_DONE.

Similar Messages

  • Is XHTML better option than BSP extensions?

    Hi,
    for some strange reason my project team wants to use XHTML for layout rather than any of the existing BSP extensions...the reason being the HTMLB does not generate XHTML in the back-end or something like that. Is anyone aware of any such lackings in BSP extensions that we have? Are there any alternatives with in BSP extensions? I want to convince the team to use standard BSP extensions...
    Thanks
    Kiran

    Ahha... I have just seen as I logged on this...
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/developerareas/ibm">IBM integration area or somesuch</a>
    but I dont think it is going to have what you are looking for. I have had some experience with itegrating output from BSP into a Websphere portal and it wasnt that much fun. We used iframes to host the bsp application in portal which wasnt ideal. This was only for a prototype of a large application and the full blown applicaion would have probably used websphere making bapi calls to get the info from sap. One option was using EP between BSP and WebSphere but this is probably not an option due to budget  constraints.
    This isn't a great deal of help but hopefully it is food for thought.
    regards,
    Nigel

  • BSP extension on Pocket PC2003 doesn't work

    Hello,
    i have to write some mobile applications for t-moblie mdaII on Pocket PC2003-Platform. We work on webas SP 41.
    All application with bsp-extension are dumping:
    An exception occurred. This exception is dealt with in more detail below       
    . The exception, which is assinged to the class 'CX_BSP_ELEMENT_EXCEPTION', was
    not caught,                                                                   
    which led to a runtime error.                                                  
    The reason for this exception is:                                              
    <htmlb:content>:  (*) This browser is not supported.                           
    (IE>=550;NN>=700;Mozilla>=9999;IE=401)                                                                               
    What about the SAP Message to support mobile platforms?
    Does anyone knows how to fix this problem?
    Best regards, Stefan

    Stefan,
    I am interested in the solution that you mentioned in your last post. I made the change to the registry on a test iPac and was able to circumvent the error message, but find that no events are triggered once the page is loaded in the application.
    This is the content of the page:
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="classicdesign2002design2003" >
      <htmlb:documentHead title="Asset Inventory" >
        <link rel="stylesheet" href="../PUBLIC/BC/BSP/Styles/z_asset.css">
        <H1><LO>
        <htmlb:image src="../PUBLIC/BC/Icons/z_duke_icons/z_dukesh.JPG" />
        </LO>Asset Inventory</H1>
    <script language="JavaScript">
      </htmlb:documentHead>
      <htmlb:page title="Asset Inventory Main Page" >
        <htmlb:form>
          <P>
          <htmlb:button id      = "view"
                        text    = "View / Change Asset"
                        onClick = "onView" />
          </P>
          <P>
          <htmlb:button id      = "list"
                        text    = "Inventory by Department"
                        onClick = "onList" />
          </P>
          <P>
          <htmlb:button id      = "legend"
                        text    = "Icon Key"
                        onClick = "onLegend" />
          </P>
          <P>
          <htmlb:button id      = "help"
                        text    = "Application Help"
                        onClick = "onHelp" />
          </P>
        <a href="https://sapitsdev.oit.duke.edu/scripts/wgate/sapextauth/!?modwebauthcookiemagic=logout"
           style="font:10pt Arial; background:#F5DEB3;color:black; "
           onClick=exitBSPApplication('session.htm'); >Logoff</a><br>
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    Do you have any suggestions as to why the buttons don't trigger the event?
    Thanks for your input,
    Joanne.

  • BSP Extension Composite Element with Body

    Hello,
    I created an own BSP Extension element "myLink" which should be a composite element containing HTMLB:LINK element.
    The myLink-DO_AT_BEGINNING looks like follows:
      DATA: orgLink  TYPE REF TO CL_HTMLB_LINK.
      orgLink = CL_HTMLB_LINK=>FACTORY( id = id
                                      reference = reference
                                      text = text ).
      WHILE m_page_context->element_process( element = orgLink )
        EQ CO_ELEMENT_CONTINUE.
      ENDWHILE.
      rc = CO_ELEMENT_CONTINUE.
    This works fine for  - Tag (coming from DO_AT_END of HTMLB:LINK) is inserted before the body of my element.
    It is possible to add the text "LinkText" as a literal in the WHILE - loop. But: I don´t find a way to do this dynamically! The body of a myExtension:myLink can contain text, images, other BSP elements. How can I access this during runtime so that I can supply the BODY-parameter of method "element_process"? How to do this? Or isn´t this the solution for this problem?
    Maybe I´m to silly to see obvious things. I read a lot of articles about composite BSP elements - but I didn´t find an example handling dynamic or unknown element-bodies.
    Thank you for any help,
    best regards,
    Stefan

    Hi Stefan,
    I understand what you want to achieve - maybe you have to play around with the "delegated" attributes/methods to really achieve what you want using HMTLB:LINK from within your element this way.
    Here is what I did for a similar problem: I created my own tooltip-on-mouseover extension, which can be wrapped around any kind of other elements that are placed in the tooltip element body.
    I also have a special attribute in this element, "contentAsLink". If this attribute is set, I render the opening href HTML tag (<a>) in method DO_AT_BEGINNING, and the closing tag (</a>) in DO_AT_END. Not the best way if you really want to stick with HTMLB everywhere, but it's nice and easy.
    Here is the precise opening tag I use:
    <a class="urLnkFunction" href="javascript:void(0);">
    Hope this helps you to find a solution for your needs.
    Cheers,
    Max

  • Bindable attribute for BSP elements in BSP extensions

    Hey all
      Can anyone explain what the 'Bindable' attribute in BSP elements, in BSP extensions, is for? It has no F1 help documentation and is not documented in the SAP library with the rest of the BSP element attributes.
    Many thanks
    Mark

    Which field is? Has translate value content to spanish for this field?.
    In SAP CRM UI, press F2 and tell me which is the field

  • How to create an link to an BSP-Extension in documentation

    Hello everybody,
    I've got an perhaps easy question. I want to create an link in my documentation to the documentation of an BSP-Extension (for example <htmlb:inputField>) Is here someone who can tell me the best way to do this?
    If I use the function to insert links in docus, I don't find a Documentation Class that fits.
    I already looked to the docu of the BSP-Extension (in edit-mode) and see, that say use the function "Internet Service" but it don't run.
    What's to do?
    Thanks for help.
    Bye Matthias

    Hi Matthias,
    just go into your document e.g. via se61, in edit mode and do the following: Enter this link syntax:
    <DS:IS.HTMLB                         INPUTFIELD>inputfield</>
    Please note that IS is the technical name of the BSP-Extension objects, then comes the name of the extension itself, in this example it's htmlb, followed by several blanks (they are part of the name and thus very important) and then the name of the element in capital letters.
    You can find this technical name of an existing docu object if you are in the SAPscript editor and select Extras -> Information -> For document.
    Instead of using the syntax for links directly (i.e. <DS:IS:Extension-name followed by blanks and extension itself>name</>) you can also use this function in the SAPscript editor for long texts:
    Insert -> Link, then choose document class BSP-Extension-Object via F4 and enter the name of the extension, the extension element and the text to be displayed in the document. However, this document class is not always visible via F4, so you'd better use the direct link syntax mentioned above to be on the safe side.
    Hope this helps.
    Regards, Heidi

  • BSP Extensions Book - example application

    Hi all!
    I have bought the Book "BSP Extensions: How to master Web reporting with HTMLB" and i've tried to run the example application. But on half the way of the programming (the next chapter is checkbox & radioButton) i'm getting a JScript error that says "childNodes.0.tagName is null or not an object" and it occurs every time i want to create the text of a new treenode by focusing the inputfield.
    I've coded everything exactly like it is in the book so i don't know what's wrong. A little while ago i've searched the SDN forums for that case and found out that there is a SAP Note (949105) about it. After following the instructions and refreshing the cache the error still appeares. Does anyone read the book and faced the same problem?
    (I'm Using the Trial Version of Netweaver 2004s ABAP.)
    Regards
    Mark-André

    hi,
    can you tell me ..what kind of example you are trying..
    there are demo programs which are given by sap..first try it and then sort the error..
    program names :
    SBSPEXT_BSP
    SBSPEXT_HTMLB
    or
    choose bsp application from se80 and search as SB*
    you will find more programs:
    thanks
    jaideep
    if helpful reward points...

  • BSP Extensions: method implementation

    Hello together,
    I am currently trying to implement custom BSP Extensions (taglibs). Almost everything works, I can use my element, it is also shown in the Tag browser in SE80, but I really have no idea on how to implement the rendering.
    The documentation exactly leaves out the part on how to actually draw the custom HTML, I can only find info on how to manipulate the element's given content within the BSP. So far, I have overriden (redefined?) the methods DO_AT_BEGINNING and DO_AT_END and somewhere I found that M_OUT attrib. When calling m_out->print_string( 'Hello' ), nothing happens
    Has anyone some example coding on how to do the actual drawing of the component? I have taken a look on the standard BSP extensions in HTMLB (like button and so), but could nowhere find the actual rendering stuff.
    Please help me
    Thanks in advance for any hints or samples.
    Greetings, Timo

    Let me answer for you the final part of the puzzle.
    You write:
    <i><% extension ...%>, the elements got printed, otherwise</i>
    When we have a BSP page, we can have actually XML on the page. So the pre-processor sees something such as this:
       <myLib:myTag a1 = "v1">
       </myLib:myTag>
    It is going to say, aha, here we have some nice XML code coming down the pipe. Good for you. This XML is now placed as a string (what more is XML than a string?) and send to the browser. So if you do a view source in the browser, you should see your XML.
    In summary, we aim to please, and XML is high on our list things we like.
    So what is a man to do? You must write onto the page:
    <%@extension name="myFirstLib" prefix="myLib"%>
    This line the pre-compiler eats. And then after a moment of silence, it accepts that you don't like XML. Anything that now just looks like "<myLib:*>" is immediately understood to be a tag. Thus the compiler is informed, and it will generate the correct ABAP code to call this tag.
    And this pre-compiler believes in perfection: mylib is NOT equal to myLib. It is case sensitive!
    In summary: one slip of the finger, and you tag gets seen as XML and rendered out as raw string.
    (With a syntax check step, and not a compile step, you will also get a warning about this. Just to be a little helpful.)

  • I recently purchased a shutter release remote for my IPAD camera but the cord is only three feet long.  I purchased a 3 banded AV extension but it doesn't work.  Can anyone tell me what the correct extension cable is and where I can find one?  Thanks.

    I recently purchased a shutter release remote for my IPAD camera but the cord is only three feet long and I need an extension cord.  I purchased a 3 banded AV extension but it doesn't work.  I have been told that I need an extension cord that has AV and Mic to enable the remote shutter release to work with the extension cord.  Can anyone tell me what the correct extension cable is and where I can find one?  Thanks.

    Greetings,
    I've never seen this issue, and I handle many iPads, of all versions. WiFi issues are generally local to the WiFi router - they are not all of the same quality, range, immunity to interference, etc. You have distance, building construction, and the biggie - interference.
    At home, I use Apple routers, and have no issues with any of my WiFi enabled devices, computers, mobile devices, etc - even the lowly PeeCees. I have locations where I have Juniper Networks, as well as Aruba, and a few Netgears - all of them work as they should.
    The cheaper routers, Linksys, D-Link, Seimens home units, and many other no name devices have caused issues of various kinds, and even connectivity.
    I have no idea what Starbucks uses, but I always have a good connection, and I go there nearly every morning and get some work done, as well as play.
    You could try changing channels, 2.4 to 5 Gigs, changing locations of the router. I have had to do all of these at one time or another over the many years that I have been a Network Engineer.
    Good Luck - Cheers,
    M.

  • Is the BSP extension better than this solution(Text and Image in Button)?

    Hi guys,
    I have a  concept question to decide whether a BSP extension is needed.
    I want to put text and image in htmlb button, and used the solution like below:
    <%
      data image type ref to cl_htmlb_image.
      data: image_string type string.
      create object image.
      image->id = 'back'.
      image->src = cl_bsp_mimes=>sap_icon( id = '@9S@' ).
      image->tooltip = 'Go back'.
      clear image_string.
      image_string = image->IF_BSP_BEE~RENDER_TO_STRING( page_context ).
            %>
            <xhtmlb:toolbarButton id      = "back"
                                  onClick = "back"
                                  text    = "<%= image_string %>" />
    But this solution is not desired by customer, since they don't think it looks nice. So is it possible to create my own BSP extension to get a nicer element?
    Thanks for any hint.
    Regards,
    Liying

    Hi,
    By a nicer element...did you mean to display a better image...or a nicer image ????
    if yes, the you can upload any image you need and then use it here...
    Tell me if you need more information...!!
    Hope this helps.
    <b><i>Do reward each useful answer..!</i></b>
    Thanks,
    Tatvagna.

  • BSP Extensions doesn't work with Pocket PC2003

    hello,
    i faced out following problem, that i have alreday posted in the BSP-forum. They said the guys here may have a solution.
    I want to write an application using webas on abap 6.20 SP 41 using BSP-Extension. The Extension framework
    dumps:
    browser not supported!
    Any solution?
    On which platform can i write web-apps for pocketpc 2003.
    Also the ep 6.0 dumps, if called via browser on a handheld under pocketpc 2003.
    Best regards, Stefan

    HI,
    Where did u find the extension for the BSP pages for Pocket PC .
    I am also trying to do the same thing and not getting desired result .
    If u find the solution then please let me know the detail on [email protected] .
    Thanks
    Gyan

  • What is the extension for mac mail in lion

    What is the extension for mail in lion?

    What do you mean exactly, that you're looking for com.apple.mail.plist?
    If so, it should be in the Preferences folder like it always is. But Lion hides the Library folder, which holds the Preferences folder, so you'll probably have to use one of the techniques to reveal the Library folder.
    http://www.macworld.com/article/161156/2011/07/view_library_folder_in_lion.html

  • Problem in following the webblog "Using TimeStamps: BSP Extensions"

    I try to follow the webblog "Using TimeStamps: BSP Extensions for a TimeStamp UI."
    However, after I have created the method 'RESOLVE_MODEL_BINDING' and compiled it, it shows me an error message
    <b>'Method "ADD_TO_CHECK_TABLE" is unknown or PROTECTED or PRIVATE.'</b>
    This is some part of that code.
      model = m_page_context->get_model( model_name ).
      name = model->get_attribute_name( attribute_path = value_path ).
      valuelow = model->get_attribute( attribute_path = value_path ).
      IF id IS INITIAL.
        id = name.
      ENDIF.
      IF disabled IS INITIAL.
        bspmodel ?= model.
        bspmodel->add_to_check_table( control_id = name ).
      ENDIF.

    I defined the bspmodel above the if block like the tutorial code.
    DATA: model             TYPE REF TO if_bsp_model_binding,
          model_name        TYPE string,
          metadata          TYPE REF TO if_bsp_metadata_simple,
          metadata_base     TYPE REF TO if_bsp_metadata,
          value_path        TYPE string,
          is_valid          TYPE i,
          error_value       TYPE string,
          bspmodel          TYPE REF TO if_bsp_model.
    I further looked into the interface <b>if_bsp_model</b> in my system. It doesn't include any interface, and only five methods were found:
    1) INIT
    2) GET_BINDING_INTERFACE
    3) GET_ERRORS
    4) INSTANTIATE
    5) RESET_ERRORS

  • What video file extensions can be uploaded to the samsung galaxy s lll?

    I've tried uploading different videos to my S lll and none of them are working. Can someone please tell me what video files will play on the device?

    Hello and thank you for your reply. The video format I was trying to upload and play was WMV, MPEG, MOV AND AVI. Any help that you can give me would be greatly appreciated. Thank you in advance.
    Michael
    From: Verizon Wireless Customer Support
    Sent: Friday, January 11, 2013 10:09 AM
    To: <Full name removed for privacy per the Verizon Wireless Terms of Service.>
    Subject: Re: What video file extensions can be uploaded to the samsung galaxy s lll? - Re: What video file extensions can be uploaded to the samsung galaxy s lll?
            Re: What video file extensions can be uploaded to the samsung galaxy s lll?
                created by Verizon Wireless Customer Support in Samsung Galaxy S III - View the full discussion
    Message was edited by: Verizon Moderator

  • Search for qt file??? what are some extension letters?

    i probably inadvertantly deleted my 11 gb file and I've searched spotlight..finder etc.....
    what are other extension letter for quicktime.?
    .mov .qt anything else?

    "Inadvertently deleted"?
    Wouldn't the file then be found in the Trash?
    Use the Finder to search by "Size" should help.

Maybe you are looking for