BSP extension

hello,
In the weblog by Thomas 'BSP Programming: HTMLB TableView Iterator': i try to test it but i've got a message: 'Field "M_CURRENCIES_REF" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement.
I've decalared it like that:
  DATA: M_ROW_REF TYPE REF TO SFLIGHT.
  DATA: M_CURRENCIES_REF TYPE REF TO DATA,
        table1 TYPE TIHTTPNVP.
  GET REFERENCE OF table1 INTO M_CURRENCIES_REF.
and the code of te exemple:
    WHEN 'CURRENCY'.
      IF P_EDIT_MODE IS NOT INITIAL.
        P_REPLACEMENT_BEE = CL_HTMLB_DROPDOWNLISTBOX=>FACTORY(
                         ID       = P_CELL_ID
                         SELECTION= M_ROW_REF->CURRENCY
                         TABLE    = ME->M_CURRENCIES_REF
                         NAMEOFKEYCOLUMN   = 'NAME'
                        NAMEOFVALUECOLUMN = 'VALUE' ).
I've not a long experience in coding and if someone can help me. How to declare M_CURRENCIES_REF and M_ROW_REF.
Thanks by advance.
Farid BERRA

Hello,
In the attribute of the class ZCL_BCM_SDN_ITERATOR, I put:
Attribut     ...                  Type réf
M_ROW_REF       ...     SFLIGHT
I ‘ve a problem with this declaration of m_row_ref (also with  M_CURRENCIES_REF).
However, i respected the model of the weblog of Brian McKellar and also that of Craig Cmehil. I’ve always have this message!!!
‘Classe ZCL_BCM_SDN_ITERATOR, Méthode IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START  "M_ROW_REF"  is not a reference variable.     ‘     
In the code of  RENDER_CELL_START , i have:
    WHEN 'FLDATE'.
      IF P_EDIT_MODE IS NOT INITIAL.
        DATA: DATE TYPE STRING.
        DATE = M_ROW_REF->FLDATE.
        P_REPLACEMENT_BEE = CL_HTMLB_INPUTFIELD=>FACTORY(
                              ID        = P_CELL_ID
                              VALUE     = DATE
                              TYPE      = 'DATE'
                              SHOWHELP  = 'TRUE'
                              CELLVALUE = 'TRUE' ).
      ENDIF.
      I'm blocked... So, thanks for your help.
    Farid BERRA

Similar Messages

  • 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

  • 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

  • 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

  • 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

  • BSP-Extension Event

    Hi everybody!
    I've made a simple BSP-Extension which generates a button like this:
    data: htmlb_button type ref to cl_htmlb_button.
    htmlb_button = cl_htmlb_button=>factory(
                                id = 'Knopf01'
                                text = 'Knopf 1'
                                onclick = 'test'
    while me->m_page_context->element_process( htmlb_button ) = co_element_continue.
    endwhile.
    And now i want to handle the fired event from that button in the same BSP_Extension. I did it like this:
    DATA: event       TYPE REF TO if_htmlb_data,
          htmlb_event TYPE REF TO cl_bsp_htmlb_event.
    event = cl_htmlb_manager=>get_event_ex(mc_runtime->server->request  ).
    IF event IS NOT INITIAL AND event->event_class = 'CL_BSP_HTMLB_EVENT'.
        htmlb_event ?= event.
    ENDIF.
    So i can check the event by getting event->event_id. That works fine. But now my Question:
    Can i send some parameters with the event, so that i can handle them after the event was fired?
    regards,
    Fabian

    Fabian,
    No and yes. The HTMLB button itself does not have any way to carry your additional parameters. But the one thing it does offer you is the onclick string. And this is the yes part. This is a simple string, that has a meaning only for you, and not interpreted in any way by the framework. So do something such as:
    data: on_click type ref to string.
    concatenate 'test~~' 'parm~' value ... into on_click.
    htmlb_button = cl_htmlb_button=>factory( ...
                                onclick = on_click
    Effectively, you are just storing your parameters in the event string.

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

  • New BSP Extensions book

    I noticed that there is a new BSP book available from the SAP Press, BSP Extensions: How to Master Web Reporting with HTMLB by Frédéric Heinemann.  Has anyone had a chance to get a copy of this yet?  I'm wondering if the 95 page book is worth $85.00 (USD).

    Hello,
    I just bought the book. It is great for learning BSP Extensions.
    I noticed that a wiki page has been created on the book. Is it intended as a place for remarks, and suggestions.
    I am half way through the writing of the ZCCM web application on a WAS 6.4? (SAP_BASIS 700, SP11) and I have stumbled into a JScript error in some of the *.js files called up by the htmlb extension.
    The error is "childNodes.0.tagName is null or not an object".
    I found a SAP Note (949105) explaining how to correct a similar error in sapUrMapi_ie6.js
    After applying the note I still get the error. Has anyone played with that?
    Also, for those that are going to create the ZCCM application there is a typo page 39 in the 2005 english edition.
    wa_treenode-client should be
    wa_treenode-mandt
    wa_treenode-comment should be
    wa_treenode-remark
    i_comment should be
    i_remark.
    Claudio Ciardelli

  • Custom BSP Extension

    Hi to all,
    I need to have one more attribute in button element for selecting picture for displaying on it.
    For this I made a copy of htmlb button element into custom bsp extension,
    and copied CL_HTMLB_BUTTON  into ZCL_HTMLB_BUTTON, but I am getting some error while activating this.
    Please suggest me some way to make this happen.
    Regards,

    <% data image type   ref to cl_htmlb_image.
            data: image_string type string.
            create object image.
            image->id = 'UserSelectionCancel2'.
            image->src = cl_bsp_mimes=>sap_icon( 'ICON_CHECKED' ).
            image->tooltip = ''.
            clear image_string.
            image_string = image->IF_BSP_BEE~RENDER_TO_STRING( page_context ).
          %>
          <htmlb:button id            = "UserSelectionEnter"
                        onClientClick = "closeiframe();"
                        text          = "<%= image_string %> ENTER"
                        encode        = "FALSE" />
    I had seen following code to make icons, now if I have lot of icons to make I need write this code several times,
    If I write one method of mine application class using above code and use one parameter to change icon name. will it work??

  • Clientu00B4s BSP-Extensions

    Hello,
    I need to correct the code for some BSP-pages and have finally located the problem, which seems to be in a BSP-extension, which was created by the client:
          <tmo:header title       = "<%= otr(MAIN_TITLE) %>"
                      help        = "help_overview.htm"
                      button_quit = "<%= otr(sotr_vocabulary_basic/exit) %>"
                      button_help = "<%= otr(sotr_vocabulary_basic/help) %>" />
    I just can´t find a place where the code reacts when the user presses the button, like OnInputProcessing or Do_Handle-Event. Can some one help me ??
    Thanks.

    I just found it. SAP creates clases ZCL_HEADER and ZCLG_ZTMO_HEADER.

  • XSLT BSP extensions

    Hi,
    is there any documentation on the XSLT BSP extensions? There are two, <xslt:apply> and <xslt:param>, but I haven't been able to find any documentation anywhere. I presume these can be used to call an XSLT transformation directly in the layout of a BSP page, which would be a nice way to insert XML...
    Trond

    these tags are for XSLT programming. You can use the XLST programs inside your BSP not the tags itself.
    Regards
    raja

  • Integrate bsp-extension into htmlb_manager

    I have problems integrating my BSP extension in the HTMLB-manager.
    My BSP extension has a "table" attribute (TYPE REF TO DATA). In DO_HANDLE_EVENT of the controller, i try to get this reference but I don't get it to work.
    I call
    lorv_tt ?= cl_htmlb_manager=>get_data(
                       request      = request
                       name         = 'ZpuGen:tt'
                       id           = 'my_id' ).
    and a reference to my handler class is returned. however, the table attribute is empty (while id is not).
    probably i have to modify event_initialize or restore_from_request, but i am not sure how.
    any ideas?

    Hi,
    Just for future references, please add this code in the OnInitialization Event:
    DATA: event TYPE REF TO if_htmlb_data.
    event = cl_htmlb_manager=>get_event_ex(
    runtime->server->request ).
    IF event IS NOT INITIAL
    AND event->event_name = cl_xhtmlb_buttongroup=>co_event_name.
    ELSE.
       DATA: bee_html TYPE REF TO cl_bsp_bee_html.
       CREATE OBJECT bee_html.
       bee_html->add(
       html1 = '' ).
       bee = bee_html.
    ENDIF.
    The issue in this example seems to be related with the constructor method of BEE, so it is useful to manually initialize the content.
    I hope this helps.
    Regards,
    Eze.

Maybe you are looking for

  • Kernel Panic with 10.7.4 - Frequently occurring

    Currently running Mac OSX 10.7.4. Kernel panics started around the time I upgraded to 10.7.4 but they were intermittent (once every couple of months and it didn't bother me). Since last week, I have been having kernel panics occur at least 2-3 times

  • Can I have multiple hotspots on the same ALV grid?

    Hi, I have a simple ALV grid report with a hotspot.  I can't seem to find any examples or information on whether I can have 2 hotspots on the same ALV grid line. Is this possible and is there an example somewhere that I can look at? Thanks for your h

  • World of Tanks connection issues

    Having an issue since yesterday 6th September 2012 with World of Tanks World of Tank client keeps disconecting, then has issues logging back in to the client. This is a game I pay a monthly suscriction to, so being unable to use its service is extrem

  • Does a MacBook pro 13 have the ability to convert digital audio to analog audio ?

    I don't like clutter and would like my computer to do the job of a good DAC. What should I be considering to accomplish this?

  • URL LINK -DMS

    Dear all, My requirement was hyperlinking to a original file which is stored in one DIR from another file which is stored in same or another DIR. MY client requirement is to open of original of nay document thrperlinkough giving hyperlink . he wants