Re:css with BSP application in htmlb

Hi,
Iam new to BSP. i have a task to design a pages with css in htmlb.Please give me small examples step by step procedure of CSS coding and also page layout coding.how to call the CSS clasess in different UI elements.Please give me sample examples.

Hi,
take a look at this [Thread|;. The topic is similar to your topic.
Regards
Mark-André

Similar Messages

  • Get DATA with BSP Application

    Hello Everyone,
    I want to get data from table SFLIGHT with BSP Application.
    I have used <htmlb:tableView and tableViewColumn tags
    but i am only getting the structure displayed in the browser, not the data, pls suggest some code to achieve that.
    Thank U
    Ravi Aswani

    Example:
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select xmltype('<?xml version="1.0" encoding="UTF-8"?>
      2  <m:report xmlns:m="http://www.bea.com/alsb/example">
      3     <m:startTime>2013-06-04T14:02:08.168+04:00</m:startTime>
      4     <m:endTime>2013-06-04T14:02:23.417+04:00</m:endTime>
      5     <m:duration>PT15.249S</m:duration>
      6     <m:queryId>dummy</m:queryId>
      7  </m:report>') as xml from dual)
      8  --
      9  -- end of test data (in XMLTYPE datatype)
    10  --
    11  select x.*
    12  from   t
    13        ,xmltable(xmlnamespaces('http://www.bea.com/alsb/example' as "m"),
    14                  '/m:report'
    15                  passing t.xml
    16                  columns startTime varchar2(30) path './m:startTime'
    17                         ,endTime   varchar2(30) path './m:endTime'
    18                         ,duration  varchar2(30) path './m:duration'
    19                         ,queryId   varchar2(30) path './m:queryId'
    20*                ) x
    SQL> /
    STARTTIME                      ENDTIME                        DURATION                       QUERYID
    2013-06-04T14:02:08.168+04:00  2013-06-04T14:02:23.417+04:00  PT15.249S                      dummyNote, this is based on XMLTYPE input (you'll have to convert your data to that type)
    As for your timestamps etc. if you require those in TIMESTAMP or DATE datatypes you can convert those in the query

  • WAD template with BSP Application - how to read selection screen values

    Hello,
    I've created Web template with Web Application Designer (WAD).
    I would like to extend  that page with BSP Application...
    Purpuse of this application is to read some information from tables
    on BW transaction server and display them within Web page.
    Question: How to read selection screen values from a Web template ?
    Thanks for any help,
    Pawel Borowiec

    Hi,
    The selection screen parameters will be on an inputField, so try and get the is of the inputfield generated by doing View source...
    And once you get the inputfield Id, you can read the value in the InputField(InF) by
    using the following code...!
    data : if_value type ref to cl_htmlb_inputfield.
    data : variable type string.
    if_value ?= cl_htmlb_manager=>get_data( request = request
                                                name    = 'inputField'
                                                id      = 'InF_ID_here'
           if if_value->value is not initial.
             variable  = if_value->value.
           endif.
    Hope this helps.
    <b><i>Do reward each useful answer..!</i></b>
    Thanks,
    Tatvagna.

  • Problem with BSP Application

    Hi all,
    We have three BSP applications running on Production Environment, but after applying Support Patches only two are running , and the third one is not running. But all three applications are running fine in Development, and Consolidation. Here are some inputs which we figure out while trying to fix this problem:
    1) When we point the Production Server to Test Server's Web Dispatcher all three applications executed well, and when we point the test server to Production Server's Web Dispatcher, two applications which were running fine executed, but the third one failed. So this excercise gave us a conculsion that problem is with Web Dispatcher of Production . but we couldn't figure what.
    2) After debugging both successful applicationa and failed application both are indeed passing some basic URL to HTML Viewer, here are the URL's
    Successful Application : https://sun109.pseg.com:443/sap/bc/bsp/sap/zhr_ta
    Failed Application :
    https://sun109.pseg.com:443/sap/bc/bsp/sap/zhr_poe
    (sun109 is host for Production Web Dispatchure)..
    and following are the URL's which i have got after i did right click on the HTML viewer when the application is pulled up.(In case of failed application i am getting blank page).
    SuccessFul Application:
    https://sun109.pseg.com/sap(bD1lbiZjPTEwMCZ0PVpQU0VHJnc9NjE1NzcyMCs=)/bc/bsp/sap/zhr_ta/ta_intro.htm?sap-htmlb-design=
    Failed Application:
    https://sun109.pseg.com/sap/bc/bsp/sap/zhr_poe
    One more point when i took the URL of successful application and changed the application name like this, and pasted it on browser :
    https://sun109.pseg.com/sap(bD1lbiZjPTEwMCZ0PVpQU0VHJnc9NjE1NzcyMCs=)/bc/bsp/sap/zhr_poe/default.htm
    it worked.
    So i think if we compare the URL's ( both input to Web Dispatcher and on properties) of both successful and failed ,  we notice somepart of URL is missing (some kind of encryption) is missing in failed application.
    I want to know why this conversion of URL is happenning , where and how can i fix this problem.
    Regards,
    Akash
    PS: It's very urgent.

    Hi,
    https://sun109.pseg.com:443/sap/bc/bsp/sap/zhr_poe
    is the url of the failed application and under SAPGui we are opening applications in HTML viewer control.This is the url which is passed to the HTML viewer control.
    Contrary, this is the URL of successful application
    https://sun109.pseg.com:443/sap/bc/bsp/sap/zhr_ta
    I have checked this URL while debugging, and this URL is getting passed to HTML Viewer control.
    Also, please let me know how to close the thread.
    Regards,
    Akash Modi

  • Not able to integrate the Adobe flex4 with BSP application.

    HI,
    I have created one flex4 application using the BSP(XML).  I am able to run the flex application, data retriving properly and working fine.but when I imported the SWF file into BSP application(MIME Repository) and  if  I run  the application from  the BSP (HTMLfile ).  it's  giving the Error # 2302.
    and at  the same time I have created flex application using  flex builder 3 using BSP then  its working fine again.I am able to execute the application from the BSP also.
    Is it possible to integarte the Flex4 with BSP?
    Thanks and Regards
    Aravind.

    flash 4 is very much compatible.
    can you check in your falsh builder whats set at
    Project->Properties->Flex Build Path->Framework Linkage
    is it merge into code or RSL?
    you should use merged into  code.
    Also when you refer the swf file in your bsp page are you using relative url for the swf  ?

  • Problems with BSP application using HTTPS in EP6.0

    We developed a custom BSP which uses HTTPS protocol and HTMLB tags.  The BSP page has a date field (htmlb inputfield of type date..which allows the user to pick a date).  If I run this BSP in its own browser window, clicking on the date field will display a calendar.  However, if I run this BSP as an iView in the portal (we use EP6.0) and click on the date, I see a Javascript error message (in the browser status area) that says "access is denied" and the calendar isn't displayed.                           
    Also, this BSP is a stateful application with the portal integration flag checked.  However the DSM terminator is not invoked when I close the iView.                                                                 
    If I change the BSP settings to use HTTP, I can run it as a portal iView without any such problems.  Has anyone experienced this and/or know how to resolve it?  Any feedback would be greatly appreciated? Thanks,                         
    Pradeep

    Hi Pradeep,
    You replied that you have "I fixed the date dropdown issue by specifying the theme in iView definition", could you please let us know where to specify the theme because when i ty to create the BSP iView i never get the option for specifying the theme,your assistance would be highly appreciated,do we have any Note on this issue.
    Regards,
    Rohit Pathak

  • Why to use htmlb elements in bsp applications

    Hi All,
       I have a doubt that why to use htmlb elements for implementing user interface in bsp applications .Implementing bsp application using htmlb is difficult than html because we have handle event triggering in oninputprocessing but this is not required in html.Can anybody help me out in understanding the advantages of htmlb over html. 
    Thanks in Advance......

    Dear Srilalitha
    Re: Why htmlb is prefered to normal html code ?
    Please go thorught this. This will surely help.
    Regards
    Vijay.M

  • How to secure BSP applications for external users on the internet?

    I posted this question under Enterprise Portal forum but got no response. I am hoping some of you experts in this area can help.
    We have developed BSP applications and set them up as iViews in Enterprise Portal 6. Our portal implementation will be used by external users.
    We have security concerns that the access to the BSPs  allows external users direct access to the R/3 system. We were told that we should use ITS application instead of BSP application for external users.
    Do any of you have any insight into how we could work around the security problem with BSP applications, or BSP applications in EP6? Your help will be greatly appreciated.

    In sense they are correct as to whether it is more secure or not would have to be a call by people who are more of an expert than myself.
    But I can see there point the BSP runs directly on the system and uses the system security where as the ITS is basically just an RFC call. However for us we use a 620 server with BSP's and make RFC calls to our R/3 systems thus keeping people of the R/3 directly - however we are not opened to the Internet.
    If your message is answered please remember to mark it solved so others searching in the future can find the solved ones quicker - just click on the yellow star.

  • Calling a BSP application with MVC and send one start value

    Hi,
    I developed a BSP application with BSP. The application has a start page with one input field. The user gives a number and click the send button. The controller creates the modeler and gives the userinput as start parameter for the data search. After the data are read/found, the controller calls a view to show the data.
    This is very easy and does work.
    I have to call this simply application from another one: the caller application sends the start value.
    I don't know, if is better to send the start value in the URL or not. I tried it, but the controller cannot read it.
    How can I call the controller with a start value?
    Thank you!
    Bye
    Patrizia

    Hi ,
    what you need to do is
    1) for the "Send" button attach a java script.
    <htmlb:button id="myButton" text="Submit ...." onClick="sendRequestWrapper()"/>
    this javascript should take the inputfrom the field,
    then in the javascript create the URL.
    function sendReqeustWrapper(){
    sendRequest(InputField);
    function sendRequest(InputField)
    var URL;
    URL  = window.location.protocol + "//" ;
    URL += window.location.host ;
    <b>Note: its only Example link,</b>
    URL += "/sap/bc/bsp/sap/<BSPApplication>/controller.do";
    URL +="?InputFieldName=";
    URL +=InputFieldValue;
    <b>then use</b>
    Your URL will look like:
    http://ld0507.wdf.sap.corp:50007/sap/bc/bsp/sap/<bsp appl>/controller.do?InputFieldName=XXXXX
    window.open(URL,"_self","");
    so once this URL is triggered  you need to goto the respective controller and handle the input. You can see the reply from Mr. Akshaya Rao .
    regards,
    Vijaya Kumar M.
    Message was edited by: Vijaya Kumar

  • Problem with My First BSP Application

    Hi
    I have developed my BSP Application using the tutorial at http://help.sap.com/saphelp_nw04/helpdata/en/c8/101c3a1cf1c54be10000000a114084/frameset.htm
    I created a Package, a BSP application and htm page.
    I copied the code and activated both the BSP App and the page.
    When i execute i get the following on the browser.
    The page cannot be displayed
    The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings
    What is the problem
    Sharath

    Hi,
    In order to see if the service is activated simply right click on it in SICF. There you will see whether or not the service is activated. Additionaly when you are activating the services from the OSS note you will see 2 YES buttons. Be sure to click the one on the right. Its the one with the little arrow and folder picture on it. Clicking this button will also activate the sub nodes.
    Your BSP will be in the following path:
    default_host/sap/bc/bsp/sap/yourbspname
    Although you shouldn't have to activate it in SICF if its properly activated via SE80 and all the system services listed below are active.
    Here are the BSP services that must be activated:
    /default_host/sap/bc/bsp/sap
    /default_host/sap/bc/bsp/sap/system
    /default_host/sap/bc/bsp/sap/public/bc
    /default_host/sap/public/bc
    /default_host/sap/public/bc/ur
    /default_host/sap/public/bsp/sap/public
    /default_host/sap/public/bsp/sap/public/bc
    /default_host/sap/public/bsp/sap/system
    /default_host/sap/public/bsp/sap/htmlb
    /default_host/sap/bc/bsp/sap/it00
    /default_host/sap/bc/bsp/sap/sbspext_htmlb
    /default_host/sap/bc/bsp/sap/sbspext_xhtmlb
    /default_host/sap/bc/bsp/sap/htmlb_samples
    Like I said make sure you click on the right hand side YES button to ensure all the sub node get activated as well.
    It is not enough to just activate your BSP application node. All parents should be activated also. Doesn't hurt thats for sure
    Let me know if this helps
    Cheers,
    Rich

  • How to use Portal SSO with existing BSP application

    Hi all,
    we run SAP EP 6.0 here and have a single start BSP page of
    an application integrated with the SAP appintegrator for BSP. The rest of the existing BSP application still uses
    the login functionality based on CL_BSP_LOGIN_APPLICATION
    and is not integrated in the portal.
    Problem: If a user directly accesses one of the "old" BSP pages, he should be redirected to the portal to auth. him via SSO and afterwards the original BSP page with all its parameters should be processed.
    How to deal with that? Is there a similar mechanism like with the BSP_LOGIN_APP in between for the SAP EP?
    Thanks for your help!
    -RAINER-

    I think that doesnt solve the problem.
    I have 2 systems: SAP ECC with all BSPs and the portal on another system. So I have to entry points: Via portal using the appIntegrator BSP or directly to the ECC.
    As-is: If the auth. for the BSP appl. fails, the user is re-directed via the error page given in the service (SICF)
    to a BSP login app. and from there to the requested page.
    No portal in this concept.
    Must-be: A user is still able to directly access a BSP on the SAP ECC by entering the URL in the browser. It's not a must entering via the portal first.
    So when the login failed on the ECC (no SSO ticket), he should be redirected to the portal for getting his SSO.
    After he signed in successfully the user will be forwarded to the BSP page he entered in the browser the first place.
    I can't see a way to use the URL iView. I am thinking of simply changing the login mechanism of the BSP using the portal login functionality.
    The link you gave me offers an implementation of CL_ICF_SYSTEM_LOGIN. Any ideas?
    Regards,
    -RAINER-

  • How to Use Interactive Forms in BSP Applications - trouble with demo

    Is anyone else out there having trouble with the subject how to guide? https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d0e58022-2a39-2a10-69a8-c1a892e2b3f4
    I think I have everything built out correctly but I get the following run time error.
    Business Server Page (BSP) error
    What happened?
    Calling the BSP page was terminated due to an error.
    SAP Note
    The following error text was processed in the system:
    An exception with the type CX_SY_REF_IS_INITIAL occurred, but was neither handled locally, nor declared in a RAISING clause
    Exception Class CX_SY_REF_IS_INITIAL
    Error Name 
    Program Z_PROCESS_BOOKING_FORM========CP
    Include Z_PROCESS_BOOKING_FORM========CM002
    ABAP Class Z_PROCESS_BOOKING_FORM
    Method DO_REQUEST
    Line 33 
    Long text An attempt was made to execute a dynamic method callon an initial(NULL-) object reference. The reference must refer to an object.
    Following is my code:  line 33 reads as strChecked = node->get_value( ).
    method DO_REQUEST.
    *CALL METHOD SUPER->DO_REQUEST
      data: bookingxml type string.
      bookingxml = request->get_cdata( ).
      data: streamFactory type ref to
      if_ixml_stream_factory.
      data: iStream type ref to if_ixml_istream.
      streamFactory = g_ixml->create_stream_factory( ).
      iStream =
      streamFactory->create_istream_string(
      bookingxml ).
      data: document type ref to if_ixml_document.
      document = g_ixml->create_document( ).
      data: parser type ref to if_ixml_parser.
      parser = g_ixml->create_parser( stream_factory =
      streamFactory
      istream =
      iStream
      document =
      document ).
      parser->parse( ).
      data: node type ref to if_ixml_node.
      data: strChecked type string.
      node = document->find_from_name( name = 'RESERVED'
      strChecked = node->get_value( ).
      data: reserved type BAPISBODAT-RESERVED.
      data: checked type i.
      move strChecked to checked.
      if ( checked = 1 ).
        reserved = 'X'.
      else.
        reserved = ''.
      endif.
      data: custbook type BAPISBONEW.
      node = document->find_from_name( name = 'AIRLINEID'
      custbook-airlineid = node->get_value( ).
      node = document->find_from_name( name = 'CONNECTID'
      custbook-connectid = node->get_value( ).
      data: fd type BAPISBONEW-FLIGHTDATE.
      data: strFd type string.
      node = document->find_from_name( name =
      'FLIGHTDATE' ).
      strFd = node->get_value( ).
      CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
      EXPORTING
      DATE_EXTERNAL = strFd
    * ACCEPT_INITIAL_DATE =
      IMPORTING
      DATE_INTERNAL = custbook-flightdate
      EXCEPTIONS
      DATE_EXTERNAL_IS_INVALID = 1
      OTHERS = 2
      IF SY-SUBRC <> 0.
    * Do something
      ENDIF.
      node = document->find_from_name( name =
      'CUSTOMERID' ).
      custbook-customerid = node->get_value( ).
      node = document->find_from_name( name = 'CLASS' ).
      custbook-class = node->get_value( ).
      node = document->find_from_name( name = 'AGENCYNUM'
      custbook-agencynum = node->get_value( ).
      node = document->find_from_name( name = 'PASSNAME'
      custbook-passname = node->get_value( ).
      data: pb type BAPISBONEW-PASSBIRTH.
      data: strPb type string.
      node = document->find_from_name( name = 'PASSBIRTH'
      strPb = node->get_value( ).
      CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
      EXPORTING
      DATE_EXTERNAL = strPb
    * ACCEPT_INITIAL_DATE =
      IMPORTING
      DATE_INTERNAL = custbook-passbirth
      EXCEPTIONS
      DATE_EXTERNAL_IS_INVALID = 1
      OTHERS = 2
      IF SY-SUBRC <> 0.
    * Something
      ENDIF.
      data: bn type BAPISBOKEY-BOOKINGID.
      data: return type bapiret2_tab.
      data: errmsg type string.
      CALL FUNCTION 'BAPI_FLBOOKING_CREATEFROMDATA'
      EXPORTING
      RESERVE_ONLY = reserved
      BOOKING_DATA = custbook
    * TEST_RUN = ' '
      IMPORTING
    * AIRLINEID =
      BOOKINGNUMBER = bn
    * TICKET_PRICE =
      TABLES
    * EXTENSION_IN =
      RETURN = return.
      data: wa type bapiret2.
      loop at return into wa.
        if wa-type = 'E'.
          move wa-message to errmsg.
          response->append_cdata( errmsg ).
          response->append_cdata( '<BR>' ).
        endif.
      endloop.
    response->append_cdata( 'Flight booked, booking reference number: ').
      data: strBn type string.
      move bn to strBn.
      response->append_cdata( strBn ).
    endmethod.
    The first page works fine but when I submit my form it fails.  I debugged and the request object doesn't look right.
    Any ideas would be greatly appreciated.
    Regards,
    Dan
    Message was edited by:
            Dan Scheck
    Message was edited by:
            Dan Scheck

    Hi Surija,
    there is an issue with Internet Explorer that causes this problem when you launch the BSP applicaiton using the test menu in SE80. The issue does not occur with Firefox...very strange I know.
    Anyway, to get around this you just copy the BSP application URL and open a browser and paste the URL in...so essentially do not use the "Test" in SE80 to launch your application.
    Hope this fixes your problem!
    Cheers,
    Jeff

  • Issue with : Stateful BSP Applications: New State Management Option

    Reference:weblog by Thomas Jung -  /people/thomas.jung3/blog/2004/11/09/updated-stateful-bsp-applications-new-state-management-option
    I see a comment by one user to send the complete code... I am not sure what else can be sent   - try it out rather than getting spoon-fed. - getting offline - sorry...
    I had two issues with this ITSM way of session handling.
    First - if you are using an SP42 environment, check CL_BSP_RUNTIME=>ON_SESSION_CMD() to see if CANCEL is defined as an option. If not make sure that you use &sap-sessioncmd=CLOSE" instead of the &sap-sessioncmd=CANCEL" . If CANCEL is not defined , it will give you shortdumps...
    Second - when I closed the window, the session was not terminated. I used onbeforeUnLoad="exitBSPApplication(); instead of onUnLoad="exitBSPApplication(); and it worked fine. Not sure if it has any other issues.
    But now I am facing a new issue... all but one application is not ending... I have no clue on why this is happening.. I am still checking..
    Thanks Thomas, you are the best, as always...

    Thanks for checking the code in your system.
    After some investigation, I found the behavior as explained below.
    If the actual url has any fields passed as parameters, e.g.. /default.htm?var1=a&var2=2 ...
    - if I use CANCEL as the option, a shortdump is created and the session is not closed. if I use CLOSE, Session is terminated and no shortdump happens.
    If the actual url does not have any parameters, e.g.. /default.htm ...
    - CANCEL does the work, but CLOSE does not exit the session.
    In my applications I used request->get_form_fields to see if there are any parameters, and if there are, then I use CLOSE as the option and else, I use CANCEL. So now, the session
    management works beautifully...
    There is a good chance that I am doing something wrong here too.

  • Hi people, I've a problem with my BSP application (updating IE6 to IE7)

    Hi,
    Right, I had a BSP application runs with IE6(internet Explorer 6), but now I updated my explorer to 7 version.
    Now, when I go to my BSP application, when loads, makes an Error, like 'An Error was ocurred in the sript on this page'.
    Someone Can help me?
    Thanks,
    Sergio.

    Ok!, with design2003, Runs Ok!, but... my question is, Only runs ok with "design2003"?
    Thanks.

  • Problems with encoded parenthesis in URL of BSP application

    Hi,
    our BSP application has following url:
    http://sap-host/sap/bc/bsp/sap/zapp/index.html
    After login we addionaly get a parentheses-part in the url (url mangling):
    http://sap-host/sap(bD4JHFSIBSF==)/bc/bsp/sap/zapp/index.html
    Everything works fine as far as we access the sap-host dircetly. When we want to access over Websphere-Portal with a proxy-servlet (reverse-proxy), the login is correct and after login we get an error 404 (not found). This happens because the proxy encodes the parentheses in the url with %28 and %29. Another problem is, that i have no chance to change the proxy-configuration, because it´s not in my responsibility.
    Is there any possibility to get the icm/icf work with these encoded parenthesis?
    I didn´t find anything helpful in the sdn/forums/wiki...
    Thx a lot!

    Hi,
    You have to manage the URL mangling when using reverse proxies.
    For exemple with Apache as a reverse proxy you need this kind of rewrite rule :
    RewriteRule  ^/(sap\(.*)    https://internalHost:internalPort/$1  [P,L]
    If you have no chance of changing the proxy configuration, you are in trouble...
    Good luck !
    Olivier

Maybe you are looking for

  • PROXY to SOAP ; HTTP403 error in PI 7.1

    Hi team, it was proxy to HTTP scenario. Receiver : webportal . We have chnged it to Proxy to SOAP ,due to HTTP does not support multi message generation . I have checked Do NOT USE SOAP Envelope in SOAP rcv channel. Pls find the config details. Adapt

  • Increased Slide Size resolution and everything shrunk

    after I set it back to 800x600 (the res I want). Is there a way to get it all to show at the original size that I had prior to the change? Thanks, John iMac 24"   Mac OS X (10.4.9)  

  • My dock does not show what files are open... Any way to fix?

    My dock does not show if a file is open. No little arrow shows up, and when I click and hold on an icon of an open program it acts as if it is not open (still giving me the open program option, and not showing me force quit options, etc...). Advice p

  • Problem with email reception-- Having some success!!

    After downloading the 2.2 update, I was having trouble with receiving emails automatically and manually. I have been tinkering with the phone all morning trying to figure out what could have changed. I seem to be having some success, at least manuall

  • 4S Touchscreen, Orientation and Speak Text problems?

    Hello my Fellow Nerds and/or iPhone lovers, I have been having a number of problems using my touch screen on the iPhone 4S and I'm not sure if it's directly a hardware problem or simply I don't know how to use it. It seems as though when I make an at