How to display URL images and URL link (html) from Smartforms?

Hi Gurus,
I'm having difficulty on how to display targeted URL images and URL link from the smartforms, after i sending it out as html mail. The mail i sent just can be preview as a plain text, which can't execute the html code that i put inside the smartforms itself. I follow a few step from this very useful blog.. Hopefully, you guys can give me some solutions or ideas on this.
/people/pavan.bayyapu/blog/2005/08/30/sending-html-email-from-sap-crmerp -thanks to Pavan for his useful blog.
My code is like this..
<--- Start Code.
FORM call_smartforms.
  DATA : lv_subject TYPE so_obj_des,
         lc_true(1) VALUE 'X',
         lw_control_parameters TYPE ssfctrlop,
         lw_output_options TYPE ssfcompop,
         lc_graphics(8) VALUE 'GRAPHICS',
         lw_xsfparam_line TYPE ssfxsfp,
         lc_extract(7) VALUE 'EXTRACT',
         lc_graphics_directory(18) VALUE 'GRAPHICS-DIRECTORY',
         lc_mygraphics(11) VALUE 'mygraphics/',
         lc_content_id(10) VALUE 'CONTENT-ID',
         lc_enable(6) VALUE 'ENABLE',
         lw_job_output_info TYPE ssfcrescl,
         lw_html_data TYPE trfresult,
         lw_graphics TYPE ssf_xsf_gr,
         lt_graphics TYPE tsf_xsf_gr,
         lv_html_xstr TYPE xstring,
         lw_html_raw LIKE LINE OF lw_html_data-content,
         lv_incode TYPE tcp00-cpcodepage VALUE '4110',
         lv_html_str TYPE string,
         lv_html_len TYPE i,
         lc_utf8(5) VALUE 'utf-8',
         lc_latin1(6) VALUE 'latin1',
         lv_offset TYPE i,
         lv_length TYPE i,
         lv_diff TYPE i,
         lt_soli TYPE soli_tab,
         lw_soli TYPE soli,
         lc_mime_helper TYPE REF TO cl_gbt_multirelated_service,
         lv_name TYPE mime_text VALUE 'sapwebform.htm',
         lv_xstr TYPE xstring,
         lw_raw TYPE bapiconten,
         lt_solix TYPE solix_tab,
         lw_solix TYPE solix,
         lv_filename TYPE string,
         lv_content_id TYPE string,
         lv_content_type TYPE w3conttype,
         lv_obj_len TYPE so_obj_len,
         lv_bmp TYPE so_fileext VALUE 'BMP',
         lv_description TYPE so_obj_des VALUE 'Graphic in BMP format',
         lc_doc_bcs TYPE REF TO cl_document_bcs,
         lc_bcs TYPE REF TO cl_bcs,
         lc_send_exception TYPE REF TO cx_root,
         lw_adsmtp TYPE lty_adsmtp,
         lv_mail_address TYPE ad_smtpadr,
         lc_recipient TYPE REF TO if_recipient_bcs,
         lc_send_request TYPE REF TO cl_bcs,
         lv_sent_to_all TYPE os_boolean.
  DATA : v_language TYPE sflangu VALUE 'E',
         v_e_devtype TYPE rspoptype.
  v_form_name = 'ZTEST_EMAIL'.
  CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
      formname           = v_form_name
    IMPORTING
      fm_name            = v_namef
    EXCEPTIONS
      no_form            = 1
      no_function_module = 2
      OTHERS             = 3.
  IF sy-subrc = 0.
   break mhusin.
  ENDIF.
starting here. ***
Set title for the output
  lv_subject = 'Smartforms.'.
Set control parameters to "no dialog"
  lw_control_parameters-no_dialog = lc_true.
IF lw_service_subject-code = lc_fm1.
*--- To get output device type
  CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
    EXPORTING
      i_language    = v_language
      i_application = 'SAPDEFAULT'
    IMPORTING
      e_devtype     = v_e_devtype.
  lw_output_options-tdprinter = v_e_devtype.
  lw_control_parameters-getotf = 'X'.
  IF sy-subrc = 0.
   break mhusin.
  ENDIF.
Set output options
  lw_output_options-xsf        = lc_true.
  lw_output_options-xsfcmode   = lc_true.
  lw_output_options-xsfoutmode = 'A'.
  lw_output_options-xsfoutdev  = space.
  lw_output_options-xsfformat  = lc_true.
  lw_xsfparam_line-name  = lc_graphics.
  lw_xsfparam_line-value = lc_extract.
  APPEND lw_xsfparam_line TO lw_output_options-xsfpars.
  lw_xsfparam_line-name  = lc_graphics_directory.
  lw_xsfparam_line-value = lc_mygraphics.
  APPEND lw_xsfparam_line TO lw_output_options-xsfpars.
  lw_xsfparam_line-name  = lc_content_id.
  lw_xsfparam_line-value = lc_enable.
  APPEND lw_xsfparam_line TO lw_output_options-xsfpars.
Get the smartform content
  CALL FUNCTION v_namef
    EXPORTING
      control_parameters   = lw_control_parameters
      output_options       = lw_output_options
*pass other application specific parameters (eg order number, items ).
  IMPORTING
      job_output_info    = lw_job_output_info
  TABLES
      tt_tabh              = tt_tabh
      tt_tabb              = tt_tabb
      tt_tabf              = tt_tabf
  EXCEPTIONS
      formatting_error = 1
      internal_error   = 2
      send_error       = 3
      user_canceled    = 4
      OTHERS           = 5.
  IF sy-subrc = 0.
   break mhusin.
  ENDIF.
  lw_html_data  = lw_job_output_info-xmloutput-trfresult.
  lt_graphics[] = lw_job_output_info-xmloutput-xsfgr[].
  CLEAR lv_html_xstr.
  LOOP AT lw_html_data-content INTO lw_html_raw.
    CONCATENATE lv_html_xstr lw_html_raw INTO lv_html_xstr IN BYTE MODE.
  ENDLOOP.
  lv_html_xstr = lv_html_xstr(lw_html_data-length).
  CALL FUNCTION 'SCP_TRANSLATE_CHARS'
    EXPORTING
      inbuff       = lv_html_xstr
      incode       = lv_incode
      csubst       = lc_true
      substc_space = lc_true
    IMPORTING
      outbuff      = lv_html_str
      outused      = lv_html_len
    EXCEPTIONS
      OTHERS       = 1.
*HACK THE HTML CODE GENERATED BY SMARTFORM TO MAKE THE
*EXTERNAL IMAGES APPEAR AS <IMG> TAG IN HTML
  REPLACE ALL OCCURRENCES OF '<IMG' IN lv_html_str WITH '<IMG' IGNORING CASE.
  REPLACE ALL OCCURRENCES OF '/>' IN lv_html_str WITH '/>' IGNORING CASE.
  REPLACE ALL OCCURRENCES OF '</A>' IN lv_html_str WITH '' IGNORING CASE.
  REPLACE ALL OCCURRENCES OF '<' IN lv_html_str WITH '<' IGNORING CASE.
  REPLACE ALL OCCURRENCES OF '>' IN lv_html_str WITH '>' IGNORING CASE.
CALL METHOD html_control - >load_mime_object
   EXPORTING
     object_id  = 'ZWN'
     object_url = 'ZWN.GIF'
   EXCEPTIONS
     OTHERS     = 1.
  REPLACE ALL OCCURRENCES OF lc_utf8 IN lv_html_str WITH lc_latin1.
REPLACE ALL OCCURRENCES OF lc_utf8 IN lv_html_str WITH 'iso-8859-1'.
   break mhusin.
  lv_html_len = STRLEN( lv_html_str ).
  lv_offset = 0.
  lv_length = 255.
  WHILE lv_offset < lv_html_len.
    lv_diff = lv_html_len - lv_offset.
    IF lv_diff > lv_length.
      lw_soli-line = lv_html_str+lv_offset(lv_length).
    ELSE.
      lw_soli-line = lv_html_str+lv_offset(lv_diff).
    ENDIF.
    APPEND lw_soli TO lt_soli.
    ADD lv_length TO lv_offset.
  ENDWHILE.
  CREATE OBJECT lc_mime_helper.
  CALL METHOD lc_mime_helper->set_main_html
    EXPORTING
      content     = lt_soli
      filename    = lv_name
      description = lv_subject.
  LOOP AT lt_graphics INTO lw_graphics.
    CLEAR lv_xstr.
    LOOP AT lw_graphics-content INTO lw_raw.
      CONCATENATE lv_xstr lw_raw-line INTO lv_xstr IN BYTE MODE.
    ENDLOOP.
    lv_xstr = lv_xstr(lw_graphics-length).
    lv_offset = 0.
    lv_length = 255.
    CLEAR lt_solix[].
    WHILE lv_offset < lw_graphics-length.
      lv_diff = lw_graphics-length - lv_offset.
      IF lv_diff > lv_length.
        lw_solix-line = lv_xstr+lv_offset(lv_length).
      ELSE.
        lw_solix-line = lv_xstr+lv_offset(lv_diff).
      ENDIF.
      APPEND lw_solix TO lt_solix.
      ADD lv_length TO lv_offset.
    ENDWHILE.
    CONCATENATE lc_mygraphics lw_graphics-graphics text-001 INTO lv_filename.
    CONCATENATE lc_mygraphics lw_graphics-graphics text-001 INTO lv_content_id.
    lv_content_type = lw_graphics-httptype.
    lv_obj_len      = lw_graphics-length.
*Add images to the email
    CALL METHOD lc_mime_helper->add_binary_part
      EXPORTING
        content      = lt_solix
        filename     = lv_filename
        extension    = lv_bmp
        description  = lv_description
        content_type = lv_content_type
        length       = lv_obj_len
        content_id   = lv_content_id.
  ENDLOOP.
  TRY.
      lv_subject = lv_subject.
      lc_doc_bcs = cl_document_bcs=>create_from_multirelated(
               i_subject          = lv_subject
               i_multirel_service = lc_mime_helper ).
    CATCH cx_document_bcs INTO lc_send_exception.
    CATCH cx_bcom_mime INTO lc_send_exception.
    CATCH cx_gbt_mime INTO lc_send_exception.
  ENDTRY.
Create send request
  TRY.
      lc_bcs = cl_bcs=>create_persistent( ).
    CATCH cx_send_req_bcs INTO lc_send_exception.
  ENDTRY.
  TRY.
      lc_bcs->set_document( i_document = lc_doc_bcs ).
    CATCH cx_send_req_bcs INTO lc_send_exception.
  ENDTRY.
Set-up email receiver
  lv_mail_address = '[email protected]'.
TRANSLATE lv_mail_address TO UPPER CASE.
  TRY.
      lc_recipient = cl_cam_address_bcs=>create_internet_address(
          i_address_string = lv_mail_address ).
    CATCH cx_address_bcs INTO lc_send_exception.
  ENDTRY.
  TRY.
      lc_bcs->add_recipient( i_recipient = lc_recipient ).
    CATCH cx_send_req_bcs INTO lc_send_exception.
  ENDTRY.
Send smartforms as HTML email
  TRY.
      lc_bcs->send( ).
    CATCH cx_send_req_bcs INTO lc_send_exception.
  ENDTRY.
  COMMIT WORK.
  WRITE:/ 'Mail sent'.
ENDFORM.                    "call_smartforms
End Code --->
Thanks and Regards.

1- put your images in a directory under the web app directory. Example: app/images/
2- in your jsp, use: String file = application.getRealPath("/images/"); to get the images directory. See http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletContext.html#getRealPath(java.lang.String)
3- it's not the right forum to post this kind of question. Post them in the JSP/Servlet JSTL forum instead

Similar Messages

  • How to display an image and add axis labels

    Hey everyone,
    I just had a really quick question on a program I created. It uses the vision module to open a file in a new display window, and I would like to add axis to the image simlilar to the picture below (With both the x and y axis labels as pixel, and a cursor which displays the pixel value or intensity). I have attached the simple program, as well as an example of the type of image I would like to open. Thank you for the help! =]
    Attachments:
    TEST1.zip ‏2223 KB

    I've updated the open_img.vi file so that it works with the generic sample picture provided, but the program does not work with the image within the ZIP file from the previous post.
    Or if anyone has any other ideas how to add axis labels to an image, I am by all means open to suggestion. Thanks
    Attachments:
    open_img.vi ‏47 KB
    Water lilies.jpg ‏82 KB

  • How to display the image which in KM folder using url iview

    Hi Friends
    How to display the image, which is under KM folder structur using the url iview.
    i trying using url iview url as  \document\testfolder\abc.jpg as url for the iview.
    but its now working .. so please help me how to slove this problem
    If is not the correct way then please suggest me best way to achive this.
    Thanks
    Mukesh

    Hi Mukesh,
    I think this may work,
    1, Create a HTML Layout.
        You can put your image wherever  u want with HTML Codes.
        Check this, [Article|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3915a890-0201-0010-4981-ad7b18146f81] & [Help|http://help.sap.com/saphelp_nw04/helpdata/en/cc/00c93e9b2c3d67e10000000a114084/frameset.htm]
        With this, u can use the standard KM commands also.
    2, U need to use KM Navigation iView for this rather than KM Doc iView.
    3, In the Nav iView, u can use &rndLayoutSet=nameOfUrHTMLLayout to force the view with this new layout.
    Regards
    BP

  • How do i send an html file exported from muse as email blast with images and live links?

    My question it:
    How do i send an html file exported from muse as email blast with images and live links?
    I have designed a "website" in adobe muse and exported it as an html file. I am not sure how to send my .html file in an email!
    Best,
    Nicole

    Unfortunately, the answer is, you don't. The requirements for HTML displayed in an e-mail reader are very different than those for HTML displayed in a browser. The output of Muse won't work as an HTML e-mail. You could upload the Muse site as a website and provide a link to it in an e-mail, but the HTML generated by Muse is not suitable for direct display by an e-mail program.

  • How to compare two images and display the difference on Front Panel

    HI..
    I have attached two images.
    I want to compare these two images and subtract the differenc from these two images and display the difference(the mouse) on the front panel
    Anyone can help me?
    Really thanks
    Attachments:
    IMG_2117.JPG ‏1677 KB
    IMG_2118.JPG ‏1650 KB

    The missing thing. You have to keep in mind that what you see is not the same as the camera sees.
    So when using IMAQ Substract it gives you the difference of the value of every single pixel!
    In order to find the mouse as only difference you have to manage that every other pixel value stays the same, e.g. with a proper lightening.
    At the other hand you can combine different filters or alogorithms to get the object, e.g. if the object is darker or brighter then everything else in the image you could use a threshold and then use morphologic operations to get the objects size and position.
    Christian

  • How to Display an Image on my FORM

    Good Day!
    I would like to ask some help from you guys with my problem on how to display an image on my form. I would like to display my uploaded image on my form but instead of an image, the get_blob_file is showing. By the way, I'm using Apex 4.1
    I downloaded the Order Entry Sample Application and followed the Page 6, the Product Details. I even made snapshots of each details from Page Rendering to Page Processing in order not to miss a thing.
    At the moment, I was able to upload or store the image on my created Oracle table and also able to retrieve it on the Download Link Text with Content Disposition value of Inline, provided by APEX Settings. If I invoke the Download link beside the file browser, a page with the image will be shown, below is the address:
    http://127.0.0.1:8080/apex/apex_util.get_blob_file?a=200&s=339877802936975&p=230&d=7107921433296839&i=7107601420296838&p_pk1=54&p_pk2=&p_ck=7D6512D967336C4B94258EEA3CDF1BE6&p_content_disposition=inline
    However, instead of showing the image on a region, below is the one showing on my Form:
    <img src="apex_util.get_blob_file?a=200&s=339877802936975&p=230&d=7107921433296839&i=7107601420296838&p_pk1=54&p_pk2=&p_ck=7D6512D967336C4B94258EEA3CDF1BE6" />
    As you can see the parameter values are the same but I know I missed something that's why I'm here :)
    I would highly appreciate all the help you can provide and many thanks in advance.
    I tried to change gear by making an html region of type PL/SQL (anonymous block) and a procedure but still no image :(
    Below are the scripts.
    declare
    cursor cur is
    select *
    from wsemployee
    where empid = :P230_EMPID;
    begin
    for rec in cur
    loop
    IF rec.mime_type is not null or rec.mime_type != '' THEN
    htp.p( '<img src="my_image_display?p_image_id='||NVL(rec.empid,0)||'" height="'||100||'"/>' );
    else
    htp.p( 'No Image ');
    END IF;
    htp.p( ' ');
    end loop;
    end;
    PROCEDURE
    create or replace PROCEDURE my_image_display( p_image_id IN NUMBER)
    AS
    l_mime VARCHAR2 (255);
    l_length NUMBER;
    l_file_name VARCHAR2 (2000);
    lob_loc BLOB;
    BEGIN
    SELECT MIME_TYPE, PHOTO_BLOB_CONTENT, PHOTO_FILENAME,DBMS_LOB.GETLENGTH(photo_blob_content)
    INTO l_mime,lob_loc,l_file_name,l_length
    FROM wsemployee
    WHERE empid = p_image_id;
    -- set up HTTP header
    -- use an NVL around the mime type and
    -- if it is a null set it to application/octect
    -- application/octect may launch a download window from windows
    owa_util.mime_header( nvl(l_mime,'application/octet'), FALSE );
    -- set the size so the browser knows how much to download
    htp.p('Content-length: ' || l_length);
    -- the filename will be used by the browser if the users does a save as
    htp.p('Content-Disposition: attachment; filename="'||replace(replace(substr(l_file_name,instr(l_file_name,'/')+1),chr(10),null),chr(13),null)|| '"');
    -- close the headers
    owa_util.http_header_close;
    -- download the BLOB
    wpg_docload.download_file( Lob_loc );
    END my_image_display;
    Edited by: user13831927 on Dec 22, 2012 3:24 PM

    Hi Ying,
    you can add a UDF to the table spp2 with a programm
    but the table is not yet listed in the 'Manage User Fields' form.
    there's no way to "enable" it - sorry

  • How to display an image in an alv grid in each corresponding row?

    Hi,
    please tell me how to  display an image in an alv grid in each corresponding row, like;;
    tony            23   newyork      <image>
    Mkitharyan  63   washington  <image>
    NOT BY HOTSPOTS/URL.

    you can put image in each cell you want:
    data lo_cmp_usage type ref to if_wd_component_usage.
      lo_cmp_usage =   wd_this->wd_cpuse_alv( ).
      if lo_cmp_usage->has_active_component( ) is initial.
        lo_cmp_usage->create_component( ).
      endif.
      DATA lo_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .
      lo_INTERFACECONTROLLER =   wd_this->wd_cpifc_alv( ).
        DATA lo_value TYPE ref to cl_salv_wd_config_table.
        lo_value = lo_interfacecontroller->get_model(    ).
    data col type ref to  CL_SALV_WD_COLUMN.
    col = lo_value->IF_SALV_WD_COLUMN_SETTINGS~GET_COLUMN( 'IMAGE' ).
    data image type ref to cl_salv_wd_uie_image.
    CREATE OBJECT image.
    image->SET_SOURCE_FIELDNAME( 'IMAGE' ).
    COL->SET_CELL_EDITOR( image  ).

  • How to display an image, which is stored in a database?

    Hi All,
    I would like to display an image with Web Dynpro.
    I already know how to display an image which is stored in the path src/mimes/Components/...
    But does anybody knows, how to display an image which is stored in a database (e.g. MaxDB)as a datatype of binary?
    Thanks in advance!
    Regards,
    Silvia

    Hallo John,
    yes, you can use the Image UI element.
    Further you have to create a String for the URL. Implement like as follows:
    IWDCachedWebResource cachedResource = null;
    String imgUrl = null;
    WDAttributeInfo attInfo = wdContext.getNodeInfo().getAttribute(IPrivateXYView.IXYElement.PIC_DB);
    IWDModifiableBinaryType binaryType =
                   (IWDModifiableBinaryType) attInfo.getModifiableSimpleType();
    binaryType.setMimeType(WDWebResourceType.JPG_IMAGE);//Example *.jpg
    WDWebResourceType type = binaryType.getMimeType();
    byte[] file = wdContext.currentXYElement().getPicDB();
    if (file != null)
    cachedResource = WDWebResource.getWebResource(file, type);
    try
    imgUrl = cachedResource.getURL();
    catch (WDURLException e)
    IWDMessageManager msgMgr = wdComponentAPI.getMessageManager();
                        msgMgr.reportException(e.getLocalizedMessage(), true);
    I hope it will help you.
    Regards,
    Silvia

  • How to display a image in webdynpro view using a bytearry

    Hi Frndz..
    How to display an image in a view using webdynpro java ..i have bytearry object in context ..like
    *byte[] img = wdContext.nodeYywwwdataImport_Input().nodeOutput().nodeOutMime().currentOutMimeElement().getLine();*_
    by using this i need to show image in view..
    Kindly help me ....
    Thankas in Advance
    Regards
    Rajesh

    Hi,
    byte[] img = wdContext.nodeYywwwdata_Import_Input().nodeOutput().nodeOutMime().currentOutMimeElement().getLine();
    use this code to create resource and you need to set this value to the context created to display the image suppose in the image UI and set the source property with this attribute:-
    IWDResource res=WDResourceFactory.createCachedResource(b,"MyImage",WDWebResourceType.JPG_IMAGE);
    IPrivateAppView.IVn_ImageTabElement imageEle=wdContext.createVn_ImageTabElement();
           imageEle .setVa_Name(res.toString());
    wdContext.nodeVn_ImageTab().addElement(imageEle);
    Hope this may help you.
    Deepak

  • How to display BMP image.

    Hai
    I have a problem in displaying bmp image and I came to know that BMP format is not supported by java se 1.4.
    How can i display the image?
    OR
    Is there any third party tool (open source) that can solve my problem
    Thank you

    hey
    i need to display the an image.
    I am using apache commons codec for encoding and decoding.
    I have base64 encoded image data, i am decoding this and trying to create an image icon object by passing decoded byte array.
    That encoded and decoded byte array is BMP formatted data.
    or Is it possible to convert BMP data to any other format like png, jpg ....
    thanks

  • How to display your email and a message to finder on the lock screen of an iPhone?

    Hi,
    I loose things, including phones and keys...
    To prevent a worst case scenario: How to display your email and a message to finder on the lock screen of an iPhone? (6 plus, current iOS)
    That is, I assume most people finding an iPhone would want to try to contact me to give it back to me, if they know how: how can leave my contact information in the phone? This needs to be on the lock screen, naturally, as this is the only view the finder can see. It would be useful to be able to add a message of sorts a la "if found please call my wife ### or email me ###".
    How can this be done other than editing the JPG of the wallpaper, or sticking a business card to the back of the phone (these are the only solutions I came up with, there must be something better).
    Cheers!

    Greetings _daniel_, 
    Thank you for contributing to the Apple Support Communities. 
    It seems like you'd like to display a message on your iPhone 6 Plus in the event it is lost. Good news--you can do this with the Find my iPhone feature of iCloud.
    Check out these links for more information:
    iCloud: Set up iCloud
    iCloud: Use Lost Mode
    If you can’t find your device, use Lost Mode right away to lock it with a passcode, display a custom message on the screen, and keep track of its location.
    Cheers, 
    Jeremy

  • How to display Current Year and Month in Drop Down list

    Hi Dear friends,
    I am devloping a report. It has got 2 pages--input and output(Report) page.
    IN input page, user will select Month and Year from drop down list as one of the input parameters. (seperate drop down list 4 month and year)
    Now, my problem is:
    HOw to display current month and year by default in the dropdown list...........
    I hope my question is clear.
    Please help.
    Regards,
    ASh

    NO da,
    it is not working.
    First i tired with for-loop. I initialized variable "i" to -2 (i=-2) I would get the year drop down list from 2003 but, by default 2003 would come.
    So, i posted the question.
    I tried your code. It is giving following error.
    A Servlet Exception Has Occurred
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occured between lines: 122 and 127 in the jsp file: /test/inpt.jsp
    Generated servlet error:
    C:\Program Files\Apache Tomcat 4.0\work\localhost\general\test\inpt$jsp.java:182: Invalid type expression.
    first.set(Calendar.YEAR, 2003)
    ^
    An error occured between lines: 127 and 131 in the jsp file: /test/inpt.jsp
    Generated servlet error:
    C:\Program Files\Apache Tomcat 4.0\work\localhost\general\test\inpt$jsp.java:186: Invalid declaration.
    out.write("\r\n \r\nYear : \r\n \r\n"); ^ An error occured between lines: 198 and 203 in the jsp file: /test/inpt.jsp Generated servlet error: C:\Program Files\Apache Tomcat 4.0\work\localhost\general\test\inpt$jsp.java:282: Invalid type expression. first1.set(Calendar.YEAR, 2003) ^ An error occured between lines: 203 and 207 in the jsp file: /test/inpt.jsp Generated servlet error: C:\Program Files\Apache Tomcat 4.0\work\localhost\general\test\inpt$jsp.java:286: Invalid declaration. out.write("\r\n \r\nYear :\r\n \r\n");
    ^
    4 errors
    Pls. Help.
    Regards,
    Ashu

  • How to display an Image which is on Panel behind JScrollPane - Please Help

    Hiii All,
    How to display an Image which is on Panel behind JScrollPane. I have set the setOpaque() method of JScrollPane to false still when i run the program the JScrollPane is set as Opaque.. Can some one please help me in this...
    Thanks,
    Piush

    you need to set both
    scrollPane.setOpaque(false);
    scrollPane.getViewport().setOpaque(false);

  • How to upload the image and diplay the image in the browser using jsp

    How to upload the image and diplay the image in the browser using jsp
    thanks
    shan

    i'll suggest looking for sample code or tutorial with a relevant query in google, which as far more time than us to answer this type of reccurent question

  • ALV: how to display only subtotals and total rows in the output

    ALV: how to display only subtotals and total rows in the output
    i am getting output
    i am getting subtotals for respective fields
    but i want to display only subtotals and totals rows in the output
    i have tried the
    totals_only   parameter in slis_layout_alv
    but it is not working.

    hi,
    For TOTAL
    For the amount field / quantity field in the field catalog give DO_SUM = 'X'    for WHOLE total
    For SUBTOTAL
    For subtotal you will have to create an internal table sort..Let's say you want to do subtotal for each customer..
    DATA: lt_sort type SLIS_T_SORTINFO_ALV,
    ls_sort type slis_sortinfo_alv.
    CLEAR ls_sort.
    ls_sort-spos = 1.
    ls_sort-fieldname = 'Give the field name that you do the sum'.
    ls_sort-up = 'X'.
    ls_sort-subtot = 'X'.
    APPEND ls_sort TO lt_sort.
    fieldcatalog-do_dum = 'X'.
    for subtotals
    WA_SORT-FIELDNAME = 'ERSDA'.
    WA_SORT-SPOS = '2'.
    WA_SORT-UP = 'X'.
    WA_SORT-SUBTOTAL = 'X'.
    APPEND WA_SORT TO IT_SORT.
    Refer
    http://help.sap.com/saphelp_erp2004/helpdata/en/ee/c8e056d52611d2b468006094192fe3/content.htm
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/doesnt-function-event-subtotal_text-in-alv-713787
    regards,
    Prabhu
    reward if it is helpful

Maybe you are looking for

  • Select * into table_name in oracle

    Hi, I would like to create a table in Oracle much like the way I do it in Sybase SELECT * INTO mytable FROM t WHERE 1 = 2 gothanks, Ashok

  • Install Process for solaris 10 6/06

    After installation, Solaris prompts me for a login and pass What is the default admin pass??

  • Clear ALV Data

    Hi All, I am very new to Webdynpro (ABAP) and have run into an issue, I have a main screen from which I am calling the ALV report screen. First time data coming fine, but when I go back and change the selection parameters and then execute the report

  • Profibus indicator lights/Comsoft Configurator "Online" menu not displaying

    Questions from customer having trouble with recent PCI profibus card. 1. I have not seen any of the three indicators light up on the card since I have installed it. The card shows up in the Windows device manager as well as the NI-Max "Devices and In

  • [SOLVED] msmtp: Gmail sends empty mails, Yahoo ignores "from"

    I have recently embarked on the atrocious adventure of migrating from Thunderbird to mutt. So far however, msmtp has consistently refused to properly send mail. Using echo "Yet another test" | msmtp -a <account> <test>@gmail.com with this config defa