Abap code in HTML Tag in Web Interface

Hello,
in a text tag im my web interface for a BPS a added the sap example code "How to Integrate BEx Web Applications into BPS Web Interfaces".
Now I want to open a web template with a query containing the user and the date as filter object. this filter i want to fill already while creating the url.
I inserted a command like <%sy-uname%>  but it doesn't get the users name. Do I miss a command to make abap available in this context, or do i have to use javascript. -> can someone give me a tip where i can find the javascript functions ?
I add the coding below.
Thanks for your help.
Dieter
<iframe id="BWReport03" name="BWQUERY" src="/sap/bw/mime/bex/icons/pixel.gif" width="1000" height="700"></iframe>
<script language="JavaScript" type="text/javascript">
function varValueConvert(dispValue){
/* Expected formatting of variable selector: Text(Key) or Key
   If there are more than one (...) expression the first is taken.
  var keySection = dispValue.match(/(.*?)/);
  if (keySection){
    var keyValue = keySection[0].replace(/(|)/g,"");
    alert(dispValue + ' : ' + keySection + " : " +keyValue);
     return keyValue;
   } else {//alert(dispValue);
    return dispValue;
var frame = document.getElementById( 'BWReport03' );
var url = '/sap/bw/BEx?cmd=ldoc&TEMPLATE_ID=';
var filter1 = '&FILTER_IOBJNM_1=ZIPBTCUSR&FILTER_COLLAPS_1=&FILTER_VALUE_EXT_1=';
var filter2 = '&FILTER_IOBJNM_2=0CALDAY&FILTER_COLLAPS_2=';
var filter2low  = '&FILTER_VALUE_LOW_EXT_2=';
var filter2high = '&FILTER_VALUE_HIGH_EXT_2=';
var appl = 'WZIPBTCLOG_S_LOG001';
var varvl1 =<b> '<%=sy-uname%>';</b>
var varvl2 = <b>'<%=sy-datum%>';</b>
var varvl3 = <b>'<%=sy-datum - 7%>';</b>
// create URL
url = url + appl + filter1 + varvl1 + filter2 + filter2low + varvl2 + filter2high + varvl3;
// remove possible white spaces
url = url.replace(/ /,"");
// set source attribute of iframe to new URL
frame.src = url;
</script>

Hi,
There's a disjoin here when we write the java script it's run at the front end and cannot read any standard SAP variables(unless you code for some kind of rfc call not sure). It can only read what's displayed on the web page. If you can somehow display the user id on the web page you will be able to read it back in the script. Regarding date that's a standard functionality in script
please refer
<a href="http://www.w3schools.com/js/js_obj_date.asp">Java script</a>
hope this was helpful.
thanks

Similar Messages

  • Help with HTML tags and web page creating

    I have a project that is supposed to use an HTML class we make. He has given us the basics but we have to fill it in. My question is: How do you code a value that has been passed to a method into an html tag. For instance we have one that is called makeEmail and it is supposed to place an email address on a webpage. Here is the method, I just need to figure out how to code it correctly. Any suggestions on how to do this?
    public void makeEmail(String address)
    webPage += "" + address + "";
    }

    An email tag in html is very similar to a hyperlink. The string you want the makeEmail method to create is as follows:
    <a href="mailto:(email address")>(email address or description or whatevber you want displayed on screen)</a>So using for example my email address, you use the following line:
    <a href="mailto:[email protected]">Send an email to Mr_Silly</a>It is very much worth looking into an html tutorial, try searching for one on the web, cos there a thousands out there. It is a very simple language to learn.
    :-)

  • Display HTML Tags on web browser

    My problem is display Html code in web browser.
    i try TextArea.htmlText, Label.htmlText... but they don't
    work...
    i'm searching in google.com and i know Html Component can do
    that, but it not well because i don't have money for that.
    Some body help me for my problem.
    Thanks so much. !
    nice day every body.

    The htmlText property should work however only a few basic
    html tags are supported as far as I know.

  • Write PHP code above HTML tag

    I've created a toolset that allows me to add Form fields that
    we use in our system. But now I want to take that a step further. I
    want to be able to write corresponding PHP code above the HTML tag
    at a specific location. This while looping through the formfields
    in the form and dynamically write the INSERT and/or UPDATE query.
    The last bit I can probably figure out. What I would like to
    know is how to write the code above the HTML tag between <?
    ?> or with a search/replace of the INSERT or UPDATE line in the
    code.
    Can anyone give me some hints or tips on this?
    Thanks in advance!

    Hi Bahare,  
    The <script> tag is used to define a client-side script, such as a JavaScript.
    The <script> element either contains scripting statements or it points to an external script file through the src attribute.Common
    uses for JavaScript are image manipulation, form validation, and dynamic changes of content.
    You should write C# code inside asp.net (C#)(.cs).page. For more infomation,Please check
    http://msdn.microsoft.com/en-us/library/vstudio/k33801s3(v=vs.100).aspx
    In addition,
    This forum is to discuss problems of C# development.
    You'll need to post it in
    ASP.NET forum for more efficient responses, where you can contact ASP.NET experts.
    Best Regards,
    Kristin

  • Convert abap code to HTML

    Hi Experts,
    Can any body tell me, how to convert all abap codes in my SAP system to HTML format for creating backup, in one go.
    Thanx
    Rajiv Ranjan

    HI,
    I don't know if it wil be of any help. But you could always convert a ABAP report into a TXT file
    DATA: I_LINES TYPE T_LINES OCCURS 1000.
    DATA: BEGIN OF I_TEXT OCCURS 1000,
            TEXT(72).
    DATA: END OF I_TEXT.
    Read the source code into the internal table
      READ REPORT ABAP INTO I_TEXT.
      Loop over the source lines
        LOOP AT I_TEXT.
        Setup Transfer
          MOVE C_ID_SOURCE TO S_SOURCE-ID.
          MOVE I_TEXT-TEXT TO S_SOURCE-LINE.
        Fill up download file
           MOVE S_SOURCE-LINE TO WA_LINES.
          APPEND WA_LINES TO I_LINES.
        ENDLOOP.
      CALL FUNCTION 'WS_DOWNLOAD'
           EXPORTING
              BIN_FILESIZE        = ' '
              CODEPAGE            = ' '
                FILENAME            = FILENAME
                FILETYPE            = 'ASC'
                MODE                = ''
              WK1_N_FORMAT        = ' '
              WK1_N_SIZE          = ' '
              WK1_T_FORMAT        = ' '
              WK1_T_SIZE          = ' '
              COL_SELECT          = ' '
              COL_SELECTMASK      = ' '
           IMPORTING
                FILELENGTH          = W_FILE_LENGTH
           TABLES
                DATA_TAB            = I_LINES
           EXCEPTIONS
                FILE_OPEN_ERROR     = 1
                FILE_WRITE_ERROR    = 2
                INVALID_FILESIZE    = 3
                INVALID_TABLE_WIDTH = 4
                INVALID_TYPE        = 5
                NO_BATCH            = 6
                UNKNOWN_ERROR       = 7
                OTHERS              = 8.
    Edited by: Jürgen Degraeve on Jan 15, 2008 3:52 PM
    Edited by: Jürgen Degraeve on Jan 16, 2008 6:42 AM
    Edited by: Jürgen Degraeve on Jan 16, 2008 6:49 AM

  • Are templates able to update code above html tag?

    Is it possible to use templates to update code preceding the
    doctype declaration and/or the html tag? I am trying to insert php
    code (relating to sessions) and have tried (I believe) all possible
    variants of codeOutsideHTMLIsLocked="false" or "true", combined
    with trying to insert an editable region at the top, etc. I am not
    able to find a solution that works. I may trick DW to insert the
    code site wide, but then it will not update the code nor delete it.
    colin

    Cole.Mountain please try the steps listed in Error "Failed to Install" Creative Cloud Desktop application - http://helpx.adobe.com/creative-cloud/kb/failed-install-creative-cloud-desktop.html to install the updated version of the Creative Cloud Desktop application.

  • Why some HTML tag display in interface????

    I have installed Apex3.2 based on oracle10g,
    when I create application and enter it,there alway are some incomplete html tag in IE.
    How to do it ????
    for example: '<html','<image'

    Check the DAD character set is AL32UTF8 and version of the PL/SQL Web Toolkit >= 10.1.2.0.6.
    The DAD may be at the location indicated in the documentation link below, or it may be somewhere else depending on the local configuration. The PL/SQL Web Toolkit can be checked using the query select owa_util.get_version from dual in the SQL Workshop.
    http://download.oracle.com/docs/cd/E14373_01/install.32/e13366/db_install.htm#HTMIG236
    http://download.oracle.com/docs/cd/E14373_01/install.32/e13366/pre_require.htm#BABGBJJD

  • Integrate WAD 7.0 Template into BPS Web Interface

    Dear all,
    We recently migrated to BW 7.01. We have an existing planning application running as a BPS Web Interface.
    I now want to integrate a query output (data and chart) by using a web template designed with WAD 7.0 into the existing BPS web interface. I know how to do this with a web template designed with WAD 3.5. There is also a How-to paper available that explains it for 3.5. I'm struggling now to do the same with WAD 7.0. The syntax for the URL generation changed, that's one problem. There maybe more when actually calling the web template from the web interface(?).
    I found some threads here in the forum dealing with this issue but no clear solution. Some posts even mentioned that integration of 7.0 web templates into BPS web interfaces is not possible at all. I would appreciate any information on this issue.
    Thanks in advance!
    Regards,
    Ulrich Meier

    Hello Ulrich,
    the 7.0 web templates run on your BI Java server which has a different host name (and port) than you BW ABAP server which run the BPS web interface. The servers are different in Dev/QA/Prod so you need to generate the URL dynamically.
    One way is to hardcode it in JavaScript. Something like: if CurrentDomain = ABAPDevDomain. Domain = JavaDevDomain. if CurrentDomain = ABAPQADomain. Domain = JavaQADomain. etc
    A fancy alternative would be to put the Java domain and port into an exit variable which you could include in the BPS web interface (in a hidden DIV tag for example). Fill the exit variable using function RSWR_GET_DEPLOY_PORTAL_INFO. Then your JavaScript can pick up this value to generate the proper URL for the web template.
    Regards,
    Marc
    SAP Techology RIG
    PS: Posting JavaScript directly is limited for security reasons (certain JS keywords are not allowed). You can put your JS into a text file and attach it to your posting.

  • Muse CC Emails sent by Form widget are shown as html-tags

    Hi,
    I´ve got the following problem that emails sent by the Muse CC form widget are shown as html-code or html-tags in my inbox.
    Though the message contains all filled in data this is a quite unreadable format similarily as in post http://forums.adobe.com/message/5818028#5818028
    I already read the discussions here in the community but as it seems the issue though already known seems not be fixed yet nor does any of the answers which refer to the ISP configurations regarding message handling apply to me. Actually this is a first time issue with mails - haven´t had this problem up to now so I guess it´s a Muse thing.
    Though the mail is shown in some kind of html-tag format as mentioned it is actually marked as "text only" message?
    Furthermore the message is UTF-8 so there shouldn´t be any problems with special characters either but also German consonants like "ä,ü,ö" are not formatted correctly.
    I am using Windows 7, Outlook 2013 by the way.
    The Muse site was exported as html and then uploaded via ftp, I am not using catalyst.
    No idea what´s going wrong here hopefully someone has a solution to this problem.
    Help would be very much appreciated. Thanks in advance.
    (Hope my English is understandable)

    I have the same situation (( what to do?

  • Unallowed RFC-XML Tag (SOAP_EINVALDOC) - Web Service using ABAP Proxy

    Hi there
    I am trying to consume a Web Service using ABAP Proxies.  I have done the following in the system:
    I configured the HTTP and HTTPS Proxy settings. 
    I created a package with package interfaces SAI_TOOLS and SAPPINT included under the Use Access tab.
    I created the proxy classes by using the WSDL provided by the system I'm trying to interface with. 
    I created my HTTP destination RFC via SM59. 
    I configured a logical port for the proxy. 
    I developed the ABAP code for calling the proxy. 
    In the code the exception CX_AI_SYSTEM_FAULT gets raised with error message <b>"Unallowed RFC-XML Tag (SOAP_EINVALDOC)"</b> when I call the method for passing data to the destination system in the proxy class.
    I had a look at SM21 and the following message was written in the log:
    <b>"SOAP Runtime: SOAP Runtime exception: 111 occurred in method XP_READ_TAG of class CL_SOAP_XP at position 1
    SOAP Runtime: Exception message: Unallowed RFC-XML Tag (SOAP_EINVALDOC)"</b>.  I also looked at SAP Note 919886 which states that it can be dumps in the system, missing configuration or the path prefix of the RFC destination that is incorrect.  I cannot find any ST22 entries.  The trace file looks as follows:
    SAP System ID: DGH
    Client: 009
    User: COLESKG
    System time: 072910
    System date: 20070531
    SAP Release: 700
    Host: hd307c
    Operating system: AIX
    DB System: ORACLE
    Program: ZUK_IPA00003
    Processing State: 0
    Location: Client
    Transport Binding: http://schemas.xmlsoap.org/soap/http
    SOAP Application: urn:sap-com:soap:runtime:application:client
    SOAP Runtime Protocol: http://www.sap.com/webas/630/soap
    /runtime/protocol
    SOAP Protocols: <initial>
    Request Message: <initial>
    Response Message: <initial>
    Fault: <initial>
    Registry: <initial>
    SOAP Roles: <initial>
    Trace Level: 3
    Logging Level: 2
    Monitoring Level: 0
    Security Profile: <initial>
    WS Security Protocol: <initial>
    INFO 07:29:10: SOAP LP Registry CL_SRT_LP_MAINTENANCE->CREATE_CLIENT_APPL() Try to create client application for Proxyclass:
    ZES_CO_PROCESS_EMPLOYEE_BATCH LP name: DEFAULT
    INFO 07:29:10: SOAP LP Registry CL_SRT_LP_MAINTENANCE->CREATE_CLIENT_APPL() Client application created
    INFO 07:29:10: SOAP LP Registry CL_SRT_LP_MAINTENANCE->CREATE_CLIENT_APPL() Try to initialize client application
    INFO 07:29:10: SOAP Application CL_SOAP_APPLICATION_CLIENT->IF_SOAP_APPLICATION_CS~INIT() Try to initialize application
    urn:sap-com:soap:runtime:application:client
    INFO 07:29:10: SOAP Application CL_SOAP_APPLICATION_CLIENT->INTERNAL_CLIENT_INIT() Create new runtime CL_SOAP_RUNTIME_CLIENT
    INFO 07:29:10: SOAP Runtime CL_SOAP_RUNTIME_CLIENT->REGISTER_APPLICATION() Try to register application
    INFO 07:29:10: SOAP Runtime CL_SOAP_RUNTIME_CLIENT->REGISTER_APPLICATION() Application registered
    INFO 07:29:10: SOAP Application CL_SOAP_APPLICATION_CLIENT->INTERNAL_CLIENT_INIT() Read type of transport binding from
    configuration
    INFO 07:29:10: SOAP Application CL_SOAP_APPLICATION_CLIENT->INTERNAL_CLIENT_INIT() Create new transport binding type
    http://schemas.xmlsoap.org/soap/http
    INFO 07:29:10: SOAP Transport Binding CL_SOAP_TRANSPORT_BINDING_ROOT->IF_SOAP_TRANSPORT_BINDING~INIT() Try to initialize
    http://schemas.xmlsoap.org/soap/http
    INFO 07:29:10: SOAP Transport Binding CL_SOAP_TRANSPORT_BINDING_ROOT->IF_SOAP_TRANSPORT_BINDING~INIT() http://schemas.xmlsoap
    .org/soap/http initialized
    INFO 07:29:10: SOAP Transport Binding CL_SOAP_TRANSPORT_BINDING_ROOT->IF_SOAP_TRANSPORT_BINDING~REQUEST() Try to create request message
    INFO 07:29:10: SOAP Transport Binding CL_SOAP_TRANSPORT_BINDING_ROOT->IF_SOAP_TRANSPORT_BINDING~REQUEST() Request message created
    INFO 07:29:10: SOAP Transport Binding CL_SOAP_TRANSPORT_BINDING_ROOT->IF_SOAP_TRANSPORT_BINDING~RESPONSE() Try to create response message
    INFO 07:29:10: SOAP Transport Binding CL_SOAP_TRANSPORT_BINDING_ROOT->IF_SOAP_TRANSPORT_BINDING~RESPONSE() Response message
    created
    INFO 07:29:10: SOAP Runtime CL_SOAP_RUNTIME_CLIENT->INIT() Try to initialize
    INFO 07:29:10: SOAP Runtime CL_SOAP_RUNTIME_CLIENT->INIT() Check transport binding
    INFO 07:29:10: SOAP Runtime CL_SOAP_RUNTIME_CLIENT->INIT() Create runtime protocol
    INFO 07:29:10: SOAP Runtime Protocol CL_SOAP_RUNTIME_PROTOCOL->IF_SOAP_PROTOCOL~INIT() Try to initialize SOAP Runtime-intrinsic
    Protocol as SENDER with Priority 5
    INFO 07:29:10: SOAP Runtime Protocol CL_SOAP_RUNTIME_PROTOCOL->INIT_MODULES() Try to create trace header/part
    INFO 07:29:10: SOAP Runtime Protocol CL_SOAP_RUNTIME_PROTOCOL->INIT_MODULES() Trace header/part created
    INFO 07:29:10: SOAP Runtime Protocol CL_SOAP_RUNTIME_PROTOCOL->INIT_MODULES() Try to create logging header/part
    INFO 07:29:10: SOAP Runtime Protocol CL_SOAP_RUNTIME_PROTOCOL->INIT_MODULES() Logging header/part created
    INFO 07:29:10: SOAP Runtime Protocol CL_SOAP_RUNTIME_PROTOCOL->IF_SOAP_PROTOCOL~INIT() Protocol initialized
    INFO 07:29:10: SOAP Runtime CL_SOAP_RUNTIME_CLIENT->INIT()
    Initialized
    INFO 07:29:10: SOAP Protocol CL_SOAP_PROTOCOL_FACTORY->CREATE()
    Try to create instance for http://www.sap.com/webas/630/soap
    /runtime/session/protocol::http://www.sap.com/webas/630/soap
    /runtime/session/protocol/srt640_impl
    INFO 07:29:10: SOAP Protocol CL_SOAP_PROTOCOL_FACTORY->CREATE()
    Instance of CL_SOAP_SESSION_PROTOCOL created for http://www.sap.com/webas/630/soap/runtime/session/protocol::http://www.sap.com/webas/630/soap/runtime/session/protocol/srt640_impl
    INFO 07:29:10: SOAP SESSION Protocol CL_SOAP_SESSION_PROTOCOL->IF_SOAP_PROTOCOL~INIT() Try to initialize SOAP Session Protocol
    as SENDER with Priority 5
    INFO 07:29:10: SOAP SESSION Protocol CL_SOAP_SESSION_PROTOCOL->IF_SOAP_PROTOCOL~INIT() Protocol initialized
    INFO 07:29:10: SOAP Application CL_SOAP_APPLICATION_CLIENT_GEN->CONFIGURE_FEATURES() Try to configure features
    INFO 07:29:10: SOAP HTTP Binding CL_SOAP_HTTP_TPBND_ROOT->IF_SOAP_HTTP_TRANSPORT_BINDING~SET_CLIENT_BY_DESTINATION() Try to
    create ICF Client for DESTINATION = ALSB
    INFO 07:29:10: SOAP HTTP Binding CL_SOAP_HTTP_TPBND_ROOT->IF_SOAP_HTTP_TRANSPORT_BINDING~SET_CLIENT_BY_DESTINATION() ICF
    Client created by DESTINATION
    INFO 07:29:10: SOAP HTTP Binding CL_SOAP_HTTP_TPBND_ROOT->IF_SOAP_HTTP_TRANSPORT_BINDING~SET_DESTINATION_URL_PATH() Set
    DESTINATION PATH = /SapHRSmartIntegrationWeb/processes/ProcessEmployeeBatch.jpd
    INFO 07:29:10: SOAP Application CL_SOAP_APPLICATION_CLIENT_GEN->CONFIGURE_FEATURES() Features configured
    INFO 07:29:10: SOAP Application CL_SOAP_APPLICATION_CLIENT->IF_SOAP_APPLICATION_CS~INIT() Application urn:sap-com:soap
    :runtime:application:client initialized
    INFO 07:29:10: SOAP LP Registry CL_SRT_LP_MAINTENANCE->CREATE_CLIENT_APPL() Client application initialized
    Trace file opened at 20070531 073030 GMT SAP-REL 700,0,95
    Error in module XMLParserGetNextElement:773
    Id @(#) $Id: //bas/700_REL/src/krn/rfc/xrfcpars.c#2 $
    Unallowed RFC-XML Tag
    Error in module XMLConverterReadTag:3061
    Id @(#) $Id: //bas/700_REL/src/krn/rfc/xrfccnvrt.c#5 $
    Unallowed RFC-XML Tag(24)
    Error in module ab_soap:4392
    Id @(#) $Id: //bas/700_REL/src/krn/rfc/abxrfccal.c#2 $
    failed with return code 1
    It then must be something in the config.  Has anyone got any idea why this message is encountered?
    Kind Regards
    Gustav Coleske
    Message was edited by:
            Gustav Coleske

    Hi,
    I have the same problem as described.
    Can you give me a little more information about the error you have solved in the proxy.
    Thanks for help
    John

  • HTML Tags in the Webdynpro ABAP

    Hi Experts,
                    How to create a html page in the webdynpro ABAP, we have existing page in the HTML format. I have tried the Formatted Text View it is not supporting all existing HTML tags like <table>
    .Can u suggest me how to integrate the HTML in the Application ...

    As you stated, the SAP recommendation is to not use iFrames.  That UI element is depricated.  The recommended solution is to use the NetWeaver Portal or NetWeaver Business Client.  You create two iViews and place them both in the same page if you need to mix Web Dynpro with more free form HTML coding.  The one iView can be Web Dynpro and the other can be one of many types of technologies (static HTML, BSP, JSP, JSF, ASP.NET, etc).  You can use portal eventing to communicate between these two separete iViews if needed.

  • Extra pair of HTML /HTML tag included at web source

    I have created a report of JSP format. The charset of the file was UTF-8 and the report contained some Chinese words. When I previewed the file using Reports Developer, it displayed the Chinese words correctly. Then I deployed the report to Oracle AS server. However, when I browsed the report from web browser using "rwservlet?report=abc.jsp&userid=system/manager@ccc&destype=cache&desformat=html" command, it could not display the Chinese words correctly because the charset encoding is set to ISO-8859 (English).
    I have already set the report to use charset UTF-8. Then I opened the file in the "cache" directory at web browser. It displayed the Chinese words correctly and the default encoding was UTF-8. The next step was viewing the source code of the content displayed using "rwservlet" command. I finally found that there was an extra pair of <HTML></HTML> tag at the beginning of source code. The source code therefore looks like:
    <HTML>
    <Head>
    <base href="http://dev.abc.com:7777/reports/rwservlet/getfile/rep_dev/1/06587041.htm">
    </Head>
    </HTML>
    <HTML>
    <Head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    </Head>
    <Body>
    </Body>
    </HTML>
    There are two pairs of <HTML></HTML> tag!
    The content of the pair of tag include a reference to the corresponding file at the "cache" directory, but it did not specific any charset encoding. When I manually changed the encoding from ISO-8859 to UTF-8, the Chinese words were displayed correctly.
    Can someone tell me why there is an extra pair of <HTML></HTML> tag at the beginning of source code? Where can I set the charset encoding of the extra pair of tag?
    Actually I face the same problem when sending the output to printer by setting the "destype" to printer. The Chinese words are not printed correctly.
    Thank you very much for any help and idea.
    - Man Ip

    Sorry that there is some problem on the displayed source code.
    The 3rd line should be as follow:
    base href="http://dev.abc.com:7777/reports/rwservlet/getfile/rep_dev/1/06587041.htm"
    - Man Ip

  • Read HTML tags and Save Images in web page

    I had problem with reading HTML tags and save all images in that page. I can source code in web page but I dont know how to Identifly the image tag ( IMG tag ). I think i want to use string tokenizer class.
    But i dont know how to use it in my problem. If any one know how to do it. reply this.

    cnapagoda wrote:
    I had problem with reading HTML tags and save all images in that page. I can source code in web page but I dont know how to Identifly the image tag ( IMG tag ). I think i want to use string tokenizer class.
    But i dont know how to use it in my problem. If any one know how to do it. reply this.If you have a big, long string with HTML content in it you might try splitting on a regex like so:
    String html = ...
    String[] imgTags = html.split("<img.*?>");[http://java.sun.com/javase/6/docs/api/java/lang/String.html#split(java.lang.String)|http://java.sun.com/javase/6/docs/api/java/lang/String.html#split(java.lang.String)]
    to get your image tag data and then parsing that to get the src attribute. You can either treat this problem as a big string-parsing problem, or getting some HTML DOM library and using that to structure the page as a tree for easier access.
    If you want more help you'll have to show the code you have so far. We can't write this for you.

  • Calling a web service in an ABAP code

    Hello Experts,
          Is it possible to consume a web service in an ABAP code?
    Note: I am using SAP R/3 4.7.
    Thanks!
    Jeffrey

    Do you mean opening the web browser through our ABAP source code?
    If yes, then please use the function module: "CALL_INTERNET_ADDRESS". This will do the job for you..
    Reward points if I have helped you.
    Regards

  • Error in my CODE- replace data in html tags in APPLET

    MY REQUIREMENT:
    I'm trying to send html format of output to an excel file....As you can see my data in the td tag had data as: 
    BRANCHOFFICE<125 & BRANCHOFFICE>176 where < is interpreted as an html tag....So I want to replace
    < -> <
    < -> >
    & -> &
    <HTML>
    <table border="1">
    <tr>
    <td>BRANCHOFFICE<125 & BRANCHOFFICE>176</td>
    </tr>
    </table>
    </HTML>
    MY ERROR IN CODE:
    So I'm testing my replace method in a small snippet.........
    So the steps my code works is:
    1)BRANCHOFFICE<125 & BRANCHOFFICE>176 gets converted to
    BRANCHOFFICE<125 & BRANCHOFFICE>176
    2)BRANCHOFFICE<125 & BRANCHOFFICE>176 gets converted to
    BRANCHOFFICE<125 & BRANCHOFFICE>176
    3)when it comes to the third & conversion it goes to a infinte loop....
    CAN U PLS HELP ME TO SOLVE THIS BUG........
    import java.applet.Applet;
    import java.io.*;
    public class escape
    public static void main(String arg[])
    String s1 = "BRANCHOFFICE<125 & BRANCHOFFICE>176";
    System.out.println("s1 = " + escape(s1));
    private static String escape(String s)
    while( true )
    int index = s.indexOf('<');
    if ( index != -1 )
    String before = s.substring( 0, index );
    String after = s.substring( index+1, s.length() );
    s = before + "<" + after;
    continue;
    index = s.indexOf('>');
    if ( index != -1 )
    String before = s.substring( 0, index );
    String after = s.substring( index+1, s.length() );
    s = before + ">" + after;
    continue;
    index = s.indexOf('&');
    if ( index != -1 )
    String before = s.substring( 0, index );
    String after = s.substring( index+1, s.length() );
    s = before + "&" + after;
    continue;
    break;
    return s;
    }

    Jdk 1.4:import java.applet.Applet;
    import java.io.*;
    public class escape
         public static void main(String arg[])
              String s1 = "BRANCHOFFICE<125 & BRANCHOFFICE>176";
              System.out.println("s1 = " + escape(s1));
         private static String escape(String s)
              s = s.replaceAll ("&", "&");
              s = s.replaceAll ("<", "<");
              s = s.replaceAll (">", ">");
              return s;
    }<= Jdk 1.3:import java.applet.Applet;
    import java.io.*;
    public class escape
         public static void main(String arg[])
              String s1 = "BRANCHOFFICE<125 & BRANCHOFFICE>176";
              System.out.println("s1 = " + escape(s1));
         private static String escape(String s)
              s = replace (s, "&", "&");
              s = replace (s, "<", "<");
              s = replace (s, ">", ">");
              return s;
         private static String replace(String original, String find, String replacement) {
              int i=0;
              if ((i=original.indexOf(find)) > -1) return original.substring(0, i) + replacement
                   + replace(original.substring(i+find.length()), find, replacement);
              else return original;
    }

Maybe you are looking for

  • My "Home" is a GIF file on my C: drive, but the Home button will not display the file anymore.

    I am now on Firefox 6.0.2. Prior to this upgrade when I clicked the Home button I would see a GIF file from my hard drive displayed. This is how it was coded in my Options: file:///C|/$USER/OTHER/BITMAPS/THINK.GIF This file is also a Bookmark of mine

  • Read LabVIEW Measurement File VI Multiple Times

    I Get Error 4 When Calling the Read LabVIEW Measurement File VI Multiple Times. I've searched and found a paper on this issue. http://digital.ni.com/public.nsf/allkb/0576444C8FD4DC0F86256E83007FA540 So I have a question: Is there a way to fix this to

  • Financial Statement Version vs item

    HI Pros what is the diff between Financial Statement Version 0GL_FSVERSN versus Financial Statement item       0GLACCEXT kris

  • Question on Generics

    Consider a type-parameterized class declared as follows public class Box<T> { }Is there any way to get the Class object for whatever type was passed into T? For instance I would like to be able to use something like the following code: Box<Integer> b

  • I can't find which version of itunes I am using on windows

    I can't find which version I am using of itunes on windows.  Everything says go to help and check for update.  I don't have that option.