Display a photo via web dynpro (jpg files)

Hi
I have photo's of employees which I would like to display via my Web dynpro (it is jpg files).  I was able to do it using an Interactive form element, but then I cannot resize the photo; it is to big.  I was hoping to display it via an Image element, but then I only see the icon, but not my photo.
Could someone please assist me in helping to display my photo better?
Regards
Debbie

Hi Debbie,
Below is the code to generate the URL using ICM cache
"l_image is the variable that has your image in XSTRING format.
DATA:gx_mimetype TYPE string VALUE 'JPG'.
****Create the cached response object that we will insert our content into
  DATA: cached_response TYPE REF TO if_http_response.
  CREATE OBJECT cached_response
    TYPE
      cl_http_response
    EXPORTING
      add_c_msg        = 1.
  TRY. " ignore, if compression can not be switched on
      CALL METHOD cached_response->set_compression
        EXPORTING
          OPTIONS = cached_response->co_compress_based_on_mime_type
        EXCEPTIONS
          OTHERS  = 1.
    CATCH cx_root.
  ENDTRY.
****set the data and the headers
  DATA: l_app_type TYPE string.
  DATA: l_xstring TYPE xstring,
        i_cache_timeout  TYPE i VALUE '300'.
  cached_response->set_data( l_image ).
  l_app_type = gx_mimetype.
  cached_response->set_header_field( name  = if_http_header_fields=>content_type
                                     value = l_app_type ).
****Set the Response Status
  cached_response->set_status( code = 200 reason = 'OK' ).
****Set the Cache Timeout - 60 seconds - we only need this in the cache
****long enough to build the page and allow the Image on the Client to request it.
  cached_response->server_cache_expire_rel( expires_rel = i_cache_timeout ).
  DATA: r_url TYPE string.
  DATA: i_path TYPE string VALUE '/sap/public',
        i_format TYPE string VALUE 'JPG'.
****Create a unique URL for the object
  DATA: guid TYPE guid_32.
  CALL FUNCTION 'GUID_CREATE'
    IMPORTING
      ev_guid_32 = guid.
  CONCATENATE i_path '/' guid '.' i_format INTO r_url.
****Cache the URL
  cl_http_server=>server_cache_upload( url      = r_url
                                       response = cached_response ).
" bind the generated url with the image uielement attribute
  DATA lo_el_context TYPE REF TO if_wd_context_element.
  DATA ls_context TYPE wd_this->element_context.
  DATA lv_url LIKE ls_context-url.
* get element via lead selection
  lo_el_context = wd_context->get_element(  ).
* set single attribute
  lo_el_context->set_attribute(
    EXPORTING
      name =  `URL`
      value = r_url ).
Hope this  helps!
Radhika

Similar Messages

  • Display Pre-Formatted HTML via Web Dynpro

    Hi,
    Does anyone know of a way to display preformatted HTML via web dynpro, can any of the standard UI elements do this?
    Thanks in advance,
    Simon

    Hi,
    can you explain what do you mean by HTML string? is it binary data that you have?
    if it is a binary data i.e. in bytes then you can do this way also..
    Store the binary data in a context varaible named Data and to store the url to be generated, create another context variable Url;
    String formattedStr = wdContext.currentContextElement()
        .getData();
    try
      IWDCachedWebResource resource = WDWebResource.getWebResource
        formattedStr.getBytes("UTF-8"),
        WDWebResourceType.HTML
      resource.setResourceName("<Give a filename>");
      resource.setAttachement( false );
      resource.setReadOnce( false );
      wdContext.currentContextElement().setUrl
         resource.getAbsoluteURL()
    catch (Exception ex)
      wdComponentAPI.getMessageManager()
        .reportException( ex.getMessage, false );
    Set source of the Iframe as context variable Url.
    regards,
    Mahesh

  • Unable to upload File to DMS (Document Managemt Sys) Via web Dynpro App

    Hi .
    I want add file to DMS i,e, SAP Document Management System .
    I first tried calling BAPI : BAPI_CREATE_DOCUMENT2 in Report and I was successfull.
    I am trying out same thing via Web Dynpro Application but I am getting error in Return of BAPI .Error is Error while checking in and storing: C:\Documents and Settings\Desktop\Hi.doc.
    I am pasting code I have written on click of Upload .
    method ONACTIONON_UPLOAD .
    implicitly available data objects
    wd_Context type ref to if_wd_context_node.
    wd_This type ref to if_FileUpload.
    DATA: gv_documento TYPE draw-doknr ,
    gv_clase TYPE draw-dokar VALUE 'Z99' ,
    gv_version TYPE draw-dokvr VALUE '00',
    gv_part TYPE draw-doktl VALUE '000',
    gv_descripcion TYPE drat-dktxt VALUE 'Description111',
    gv_return TYPE bapiret2,
    filename(60) type c ,
    lt_documentdata TYPE STANDARD TABLE OF bapi_doc_draw2,
    ls_documentdata LIKE LINE OF lt_documentdata,
    lt_characteristicvalues TYPE STANDARD TABLE OF bapi_characteristic_values ,
    lt_classallocations TYPE STANDARD TABLE OF bapi_class_allocation ,
    lt_documentfiles TYPE STANDARD TABLE OF bapi_doc_files2 ,
    ls_documentfiles LIKE LINE OF lt_documentfiles ,
    lv_content type xstring ,
    size type i.
    DATA lo_el_context TYPE REF TO if_wd_context_element.
    DATA ls_context TYPE wd_this->element_context.
    DATA lv_filename LIKE ls_context-filename.
    get element via lead selection
    lo_el_context = wd_context->get_element( ).
    get single attribute
    lo_el_context->get_attribute(
    EXPORTING
    name = `FILENAME`
    IMPORTING
    value = lv_filename ).
    ls_documentdata-documenttype = 'Z99'.
    ls_documentdata-documentversion = '000'.
    ls_documentdata-documentpart = '00'.
    ls_documentdata-description = 'Test Document Created Parag'.
    ls_documentdata-STATUSEXTERN = 'WR'.
    ls_documentdata-USERNAME = 'I046361'.
    ls_documentdata-WSAPPLICATION1 = 'DOC'.
    ls_documentdata-DOCFILE1 = lv_filename.
    ls_documentdata-DATACARRIER1 = 'DEFAULT'.
    ls_documentfiles-wsapplication = 'DOC'.
    ls_documentfiles-docfile = lv_filename.
    ls_documentfiles-storagecategory = 'DMS_C1_ST'.
    ls_documentfiles-checkedin = 'X'.
    APPEND ls_documentfiles to lt_documentfiles.
    CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
    EXPORTING
    documentdata = ls_documentdata
    pf_http_dest = 'SAPHTTP'
    IMPORTING
    return = gv_return
    TABLES
    documentfiles = lt_documentfiles.
    IF gv_return-type CA 'AE'.
    WRITE gv_return-message.
    ELSE.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    wait = 'X'.
    ENDIF .
    endmethod.
    Now Can anyone tell
    In case of Web Dynpro what Is this code right ?
    Do I need to change value of Parameters I have Set ?
    Do i need to some change as I am trying to Upload file Via WebApplication ?
    Do I have to change data Carrier ?
    Please let me know urgently .Points will be surely Given ...
    Regards ,
    Parag

    Hi ,
    Finally I was successfull in Uploading Docs.It seems I was not getting right Parameters ..anyways correct code is as follows ...
    method ONACTIONON_UPLOAD .
      implicitly available data objects
      wd_Context type ref to if_wd_context_node.
      wd_This    type ref to if_FileUpload.
    DATA:     gv_documento    TYPE draw-doknr            ,
              gv_clase        TYPE draw-dokar   VALUE 'Z99'  ,
              gv_version      TYPE draw-dokvr              VALUE '00',
              gv_part         TYPE draw-doktl VALUE '000',
              gv_descripcion  TYPE drat-dktxt VALUE 'Description111',
             gv_return       TYPE  BAPIRETURN ,
              gv_return       TYPE  BAPIRET2 ,
              gv_ruta         TYPE bapi_doc_files2-docfile VALUE 'C:\BAPI_DMS.doc' ,
              filename(60) type c ,
              lt_documentdata         TYPE STANDARD TABLE OF bapi_doc_draw2,
              ls_documentdata         LIKE LINE OF  lt_documentdata,
              lt_characteristicvalues TYPE STANDARD TABLE OF bapi_characteristic_values ,
              lt_classallocations     TYPE STANDARD TABLE OF bapi_class_allocation ,
              lt_documentfiles        TYPE STANDARD TABLE OF bapi_doc_files2 ,
              ls_documentfiles        LIKE LINE OF lt_documentfiles ,
              lv_content type xstring ,
              size type i ,
              lt_binary              TYPE TABLE OF sdokcntbin ,
              ls_binary              LIKE LINE OF lt_binary ,
              lv_size                TYPE I  ,
              ls_doc_status          TYPE  CVAPI_DOC_STATUS ,
              ls_API_ctrl            TYPE  CVAPI_API_CONTROL ,
              l_MSG                  TYPE  MESSAGES ,
              lt_files type STANDARD TABLE OF CVAPI_DOC_FILE  ,
              lt_drao  TYPE STANDARD TABLE OF DRAO  ,
              ls_drao  LIKE LINE OF lt_drao ,
              lv_documenttype      TYPE  DRAW-DOKAR ,
              lv_documentnumber TYPE  DRAW-DOKNR ,
              lv_documentversion TYPE  DRAW-DOKVR ,
              lv_documentpart  TYPE  DRAW-DOKTL ,
              lv_text          TYPE string .
          FIELD-SYMBOLS <fs> TYPE ANY.
      DATA lo_el_context TYPE REF TO if_wd_context_element.
      DATA ls_context TYPE wd_this->element_context.
      DATA lv_filename LIKE ls_context-filename   .
    get element via lead selection
      lo_el_context = wd_context->get_element(  ).
    get single attribute
      lo_el_context->get_attribute(     EXPORTING       name =  `FILENAME`     IMPORTING       value = lv_filename ).
      lo_el_context->get_attribute(     EXPORTING       name =  `FILECONTENT`     IMPORTING       value = lv_content ).
    CONCATENATE lv_text 'by' sy-uname 'cretaed at ' sy-uzeit INTO lv_text .
      ls_documentdata-documenttype    = 'Z99'.
      ls_documentdata-documentversion = '00'.
      ls_documentdata-documentpart    = '000'.
      ls_documentdata-description     = 'Test Document Created in Web Dynpro ABAP '.
      ls_documentdata-STATUSEXTERN    = 'WR'.
      ls_documentdata-USERNAME        = 'I046361'.
      ls_documentdata-WSAPPLICATION1 = 'DOC'.
      ls_documentdata-DOCFILE1        = lv_filename.
      ls_documentdata-DATACARRIER1    = 'DEFAULT'.
      ls_documentfiles-DOCUMENTTYPE       = 'Z99'.
      ls_documentfiles-WSAPPLICATION      = 'DOC'.
      ls_documentfiles-DOCUMENTVERSION    = '00'.
      ls_documentfiles-DOCUMENTPART       = '000'.
      ls_documentfiles-DOCFILE            = lv_filename.
      ls_documentfiles-description        = 'Test Document Created in Web Dynpro ABAP  '.
      ls_documentfiles-CREATED_BY         = sy-uname.
      ls_documentfiles-CHECKEDIN          = 'X'.
      ls_documentfiles-DOCFILE            = lv_filename.
      APPEND ls_documentfiles  to lt_documentfiles .
        CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
        EXPORTING
            documentdata    = ls_documentdata
            pf_http_dest    = 'SAPHTTPA'
        IMPORTING
            DOCUMENTNUMBER  = lv_DOCUMENTNUMBER
            return          = gv_return
        TABLES
          documentfiles = lt_documentfiles.
    IF gv_return-type CA 'AE'.
      WRITE gv_return-message.
    ELSE.
       CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING     wait = 'X'.
       get message manager
       data lo_api_controller     type ref to if_wd_controller.
       data lo_message_manager    type ref to if_wd_message_manager.
       lo_api_controller ?= wd_This->Wd_Get_Api( ).
       CALL METHOD lo_api_controller->GET_MESSAGE_MANAGER
         RECEIVING
           MESSAGE_MANAGER = lo_message_manager
    CLEAR lv_text .
    CONCATENATE 'Dcoument ' lv_filename 'Successfully stored with Document No. ' lv_DOCUMENTNUMBER INTO lv_text .
       report message
       CALL METHOD lo_message_manager->REPORT_SUCCESS
         EXPORTING
           MESSAGE_TEXT             = lv_text
          PARAMS                   =
          MSG_USER_DATA            =
          IS_PERMANENT             = ABAP_FALSE
          SCOPE_PERMANENT_MSG      = CO_MSG_SCOPE_CONTROLLER
          VIEW                     =
          SHOW_AS_POPUP            =
          CONTROLLER_PERMANENT_MSG =
          MSG_INDEX                =
          CANCEL_NAVIGATION        =
    ENDIF .
    endmethod.

  • Error executing Webservice for Process Start via Web Dynpro

    Hi Community,
    I have a strange issue when executing a webservice that starts a process using web Dynpro. I have configured, the Service Group, the Communication profile.
    When I try to execute the Service via Web Dynpro, I get the following exception which is in my opinion fully missleading and does not make sense to me. As the Authentication Profile and the Communication profile allow the same Authentication Methods.
    com.sap.esi.esp.lib.mm.config.exceptions.TechnicalException: Failed to create Logical Port for Service Reference with id [YourID here].
    Reason for the failure is that no one of the following Authentication Methods [None], [SAP Logon Ticket], or [SAML Assertion] is allowed in the related Communication Profile.
    Such an Authentication Method is needed as the Authenticaton Profile is [businessOrTechnicalUser] and no User Account is assigned, so the Authenticaton Profile is considered to be noAuthentication or businessUser.
    Related Communication Profile is [SAP_DEFAULT_PROFILE 1] and it allows Authentication Method(s) [User Name/Password (Basic), X.509 Client Certificate, SAP Logon Ticket, SAML Assertion, X.509 Certificate Doc.Auth., User Name/Password Doc.Auth.]
    Thanks for your support.
    Best Regards Nicolas

    Hi Nicolas,
    make sure you have
    - assigned a communication profile (with no- or basic authentication) to the provided service
    - created a provider system with a similar profile
    - assigned the provider system to the (consumer) service group
    For a full guide on service configuration please check this article:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40dabb46-dd66-2b10-1a9a-81aa620098b3
    Best Regards,
    Christian

  • Are ZCI interactive forms available via Web Dynpro for ABAP?

    Note 955795 talks about ZCI forms available via Web Dynpro for Java. Is this kind of forms also available via Web Dynpro for ABAP?.
    Do ZCI interactive forms work via Web Dynpro for ABAP without the need of ACF?
    If available, which support package levels are required?
    Regards

    Hi Mahamed,
    I got your problem. You have not done anything wrong.
    It is WebAS version which is not supported for this functionality.
    But there is solution to this problem
    Please refer to the SAP Note number - 1055738.
    I think you will get the answer and the scenario described there will match your requirement.
    This is a know issues with WebDypro ABAP but this works fine for Java Web Dynpro.
    I have also tried for 2 months but finally came to know about it.
    Regards
    Satya

  • Need help on Printing Samrt Form via Web Dynpro

    Hi All !
    How can I print smartform that is displayed as PDF in web dynpro by clicking my custom button.
    I am unable to get solution please help me.
    Thanks & Regards!
    Krishna

    Hi Ragavendra !
    Thank you for telling but its not the solution for my problem .
    Actually I need a custom button "Print All' that prints all smart forms.
    Not individually by clicking print button.
    Thanks !

  • How to display an XML in Web Dynpro

    Hi,
    I am pretty new to Web Dynpro and have a specific requirement.
    I have a web dynpro page on which we display a table. One of the columns in the table is a XML message. Now on lead selection of each row I want to display the contents of the XML in an embedded control below the table. I have already implemented the functionality to download the XML message to file system but I want a capability to show the XML contents within my page in a formatted way.
    If I use a text view, the XML does not look very nice.
    I do not want to implement a new tree control based control now where I parse my xml file and then try to recursively generate a tree. This will take time for me as i am not very well versed with WD programming.
    Can anyone tell me if there exists any control in WD which can display the XML in formatted way?
    If you guys have used the new ABAP debugger and seen the XML viewer in it then you can get an idea of what I need. I am not sure about the control that the ABAP debugger uses. It will be good if someone can help me find something like that.
    After all WD is all about reusability.
    Regards,
    Vikas

    Hi Vikas,
       see this little example which creates a xml file to download and open in the browser. Put it in an action handler method.
    DATA lr_conv   TYPE REF TO cl_abap_conv_out_ce.
      DATA lv_data   TYPE        string.
      DATA lv_xfile  TYPE        xstring.
      lv_data = '<?xml version=1.0" encoding="utf-8"?> put your xml here'.
      cl_abap_conv_out_ce=>create( RECEIVING conv = lr_conv ).
      lr_conv->convert( EXPORTING data   = lv_data
            IMPORTING buffer = lv_xfile ).
      cl_wd_runtime_services=>attach_file_to_response(
                     EXPORTING
                         i_filename  = 'test.xml'
                         i_content   = lv_xfile
                         i_mime_type = 'application/xml' ).
    Hope this helps you. Revert if need some more help.
    Regards,
    Pavan.

  • EXCEL Web Query  - load into SAP via Web dynpro or standard ABAP

    Hi everybody
    I was wondering if you can run an EXCEL WEB Query from abap and then upload the data retrieved from the web into SAP using either a web dynpro application or standard SAP.
    For standard ABAP one could probably run the EXCEL web query by executing some code such as
    call method cl_gui_frontend_services=>execute
    exporting
    document = 'your excel web query file'.
    You could then save the data and using GUI_UPLOAD get it into sap.
    I'd really like to do it via a web dynpro application.
    Any ideas anyone.
    For guys who've never used EXCEL web queries --quite easy.
    Open EXCEL
    go to Import External Data
    Choose New web query
    Enter URL of where you want to retrieve your data from such as YAHOO finance etc.
    For example to get the components of the Dow Jones Composite Index (^DJA) use this url
    http://finance.yahoo.com/q/cp?s=%5EDJA
    click the yellow arrow on the table data you want to import. The arrow will turn Green and press IMPORT
    Then enter the cell number where you want to start importing data
    Hey presto you've got your data from the web.
    Cheers
    jimbo

    when you create a new webquery, in the properties, you can set when the page should refresh (data fetch to happen), you can set that to refresh at file open.
    then you can use either OLE or gui_upload to upload the excel to read the data.
    have couple of question:
    why do you want to choose excel webquery ?=> is it because the ability to get unstructured data from the web?
    what sort of data you are trying to read from the web?=> most of data centric sites (forex, stock quotes) will have either RSS feeds or some web APIs to get data which can be easily consumed by ABAP
    Regards
    Raja

  • Display HTML stream in Web Dynpro application

    Hello,
    Sorry, I am new to the Web Dynpro environment, so this might seem like a stupid question.
    How can I display streaming HTML content in a Web Dynpro application.  The IFrame element only seems to allow you to point to a URL.  In this case, I am receiving an HTML stream back from an R/3 system via a BAPI call.
    Thanks very much.

    Hi
    As per your question, I understand that HTML output is getting generated through a R3- Bapi call. Fine, create a model with the data binding to the context to some text view. Simply create view with the relevant UI element through which you want to exhibit the data and call the R3 call through your model. instead of a HTML output, you will get your data in the view.
    you may not get the exact format / style of the html output.
    Otherwise, directly HTML content cannot be shown in webdynpro. You need to have some UI control to take its content.
    Or else, you can go in for j2ee stack and end up with a java based appl, use a simple jsp and get the output!
    if you have any specific queries do let us know
    hope this helps you
    thanks

  • Problem in displaying GOS document in Web dynpro

    Hi,
    Requirement is to display attached documents of business objects (PR, PO) in Web Dynpro.
    I am able to do this successfully but there is an issue with Office 2007 documents. Office 2007 documents are getting corrupted.
    I am using following logic for reading the attached documents:
    1. Called cl_binary_relation=>read_links method to get the document list.
    2. Called SO_DOCUMENT_READ_API1 to get the content and details of documents.
    3. Called SCMS_BINARY_TO_XSTRING to convert document content to XString.
    4. Called SDOK_MIMETYPE_GET to get mime type for document so that I can bind it with FileDownload UI element.
    After doing the analysis, I found that SO_DOCUMENT_READ_API1 is not returning correct file content and extension type for Office 2007 documents. Instead of '.docx' it is returning '.doc' and also the document content is not proper as I check by hard coding the mine type for .docx.
    Please let me know, is there any other FM for reading document content or am I missing something?
    Regards,
    Vikram Rawal

    Hey Vikram Rawal,
    maybe you can help me i also want to display attached documents of bussiness objects (material). When i call cl_binary=>read_links the table where the results should be is empty.
    I hope you can help me.
    Regards
    Alexander Diring

  • Problem in displaying GOS documents in Web Dynpro

    Hi,
    Requirement is to display attached documents of business objects (PR, PO) in Web Dynpro.
    I am able to do this successfully but there is an issue with Office 2007 documents. Office 2007 documents are getting corrupted.
    I am using following logic for reading the attached documents:
    1. Called cl_binary_relation=>read_links method to get the document list.
    2. Called SO_DOCUMENT_READ_API1 to get the content and details of documents.
    3. Called SCMS_BINARY_TO_XSTRING to convert document content to XString.
    4. Called SDOK_MIMETYPE_GET to get mime type for document so that I can bind it with FileDownload UI element.
    After doing the analysis, I found that SO_DOCUMENT_READ_API1 is not returning correct file content and extension type for Office 2007 documents. Instead of '.docx' it is returning '.doc' and also the document content is not proper as I check by hard coding the mine type for .docx.
    Please let me know, is there any other FM for reading document content or am I missing something?
    Regards,
    Vikram Rawal

    Hi,
    I had the same problem...
    Maintain the office 2007 extension from maintenance view V_TOADD (SM30)
    for example
    xlsx application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
    docx application/vnd.openxmlformats-officedocument.wordprocessingml.document
    then associate these extensions to your archive object maintenance view TOAVE.
    Regards,
    Ivan

  • Display sapscript form in Web Dynpro Java

    Hi,
    Is it possible to print an existing sapscript form i.e. PO from ECC to my Web Dynpro application? I have successfully created a Web Dynpro Java application to create POs but now have a requirement to display or print the PO?
    Can someone provide me with a sample code? I'm hoping to be able to do this without using Adobe.
    Again, thanks for all your help.
    Best regards,
    Jaypee

    Hi mark,
    Without Adobe also u can display PO order.
    Below is the code to open a HTML window from WDJava, with data from WDJava...
    Inside DoInit()
    IWDAttributeInfo attr1 =
    wdContext.getNodeInfo().getAttribute("htmlfile");
    ISimpleTypeModifiable mtype1 = attr1.getModifiableSimpleType();
    IWDModifiableBinaryType btype1 = (IWDModifiableBinaryType) mtype1;
    btype.setFileName(attr.getName() + ".html");
    btype.setMimeType(WDWebResourceType.HTML);
    _contentType = mtype;
    Where htmlfile is a context attribute of type binary... and do a global declaration like this
    ISimpleTypeModifiable _contentType = null; (This declaration can be done at the end of your view's coding between Begin Others and End Others)
    Now,
    inside on action print
    public void onActionPrintData(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, java.lang.String videoName )
    //@@begin onActiondisplayVideo(ServerEvent)
    byte[] content = new byte4028;
    try {
    content = this.displayPrint().getBytes("UTF-8");
    wdContext.currentContextElement().setHtmlfile(content);
    wdContext.currentPrintElement().setAttrUrl(
    _contentType.format(content));
    //Where content is loaded with data from displayPrint() method, which is holding the HTML *page to be displayed to the user *
    IWDWindow win =
    wdThis
    .wdGetAPI()
    .getComponent()
    .getWindowManager()
    .createNonModalExternalWindow(WDWebResource
    .getWebResource(content, WDWebResourceType.HTML)
    .getURL(),"ShowVideo");
    win.setWindowSize(445,460);
    win.removeWindowFeature(WDWindowFeature.ADDRESS_BAR);
    win.removeWindowFeature(WDWindowFeature.TOOL_BAR);
    win.removeWindowFeature(WDWindowFeature.MENU_BAR);
    //win.open();
    win.show();
    // wdComponentAPI.getMessageManager().reportSuccess("444444444444");
    } catch (Exception e) {
    wdComponentAPI.getMessageManager().reportException ("Unable to open window"+e,false);
    //@@end
    Now finally, design your HTML Page inside the method displayPrint() like this
    public java.lang.String displayPrint( java.lang.String strVideoName )
    //@@begin displayPrint()
    String htmlcontent=null;
    htmlcontent="content what you want to show in print window";
    use script inside the html content to do a print... like window.print();
    return htmlcontent;
    //@@end
    Regards,
    Sunaina Reddy T

  • Excel Upload via Web dynpro ABAP

    Hi All,
    Could any one please explain how to upload MS Excel file in Web Dynpro ABAP?
    Regards,
    Surya

    Hi Surya,
    Ya Excel upload is not supported some times.
    You can save your excel sheet as "Tab Limited" file. Then you can easily upload the file contents to your WebDynpro.
    Thanks.

  • Displaying streamed images in Web Dynpro

    Hi All,
    I have following scenario to programme.
    - The DB have "images" stored as BLOB.
    - I need to read the images (stream) and make them visible in Web Dynpro UI.
    Problem is i only one way to providing images in Web Dynpro. The images are picked from url that points to Resource either at temporary location of permanent position Sap Images pool or contribution under mimes folder.
    I see temporary location as one option here but still not able to figure out where to store it !
    Can anybody help in this.
    Thanks and Regards,
    Ashwani Kr Sharma

    Hi ,
    Use
    WDWebResource.getPublicCachedWebResource(byte[] webResource,
                                                                  WDWebResourceType resourceType,
                                                                  WDScopeType scopeType,
                                                                  WDDeployableObjectPart deployableObjectpart,
                                                                  String key)
    Regards
    Bharathwaj

  • Displaying Employee Photo thru Web Service

    Hi,
    I am having a requirement of displaying the employee photo's thru weservice, in asp.net application.
    Is it  possible?
    If anybody knows..
    Guide me to close this issue...
    Thanks & Regards,
    Balajee Jeyaraj .

    Hi Pramod,
    Thanks for the reply, we stored all our employee photos on  ECC System Only...
    If i enter the Personal No: in PA30, i am able to see the EMployee Photos on the Header..
    But While accessing the COD Service from the Portal, asking ECC system credentials to display the photo.. If i am providing the Credenials Employee Photo is displaying .. other wise Blank Image Displaying...
    Siddarth suggested its due to SSO problem, if its sso issue, how come i login into portal without any errors currently we are using ABAP UME both Portal and ECC Login details r same...
    Please Suggest me how to fix the issue...
    Thanks in Advance
    Adapag

Maybe you are looking for

  • Error while Sales posting in ISR , Inbound WPUUMS

    Hi,   While posting the sales in ISR , through inbound IDOC im getting a error : Pipeline/consignment movement posted without value for a article. Although the Purchase info record is correctly maintained. Pls let me know what could be the possible r

  • How to get 9AMATNR characteristic in SandBox SCM version??

    Dear Expert, I want to upload data from file to SAP BW in SCM SandBox version and i want to use 9AMATNR characteristic  as product dimension. But i can not see this characteristic as in IDES version. please help me. thanks a lot

  • When i call another iphone it doesn't offer facetime

    How do i sent my iphone 4 that when i call an iphone 4 it ask me if i want to facetime with caller? I figured it would do it automaticlly when i enter them in my contacts using iphone. I am also using wifi at the time of calls.

  • Oracle 9.2.0.1 query bug?

    The following test case gives different results on Oracle 9.2.0.1 and 10g. 10g and 3 other competing database products give the answer as FILES_ID VIEW1_ID VIEW2_ID 1 1 1 while Oracle 9.2.0.1 yields FILES_ID VIEW1_ID VIEW2_ID 1 1 1 2 The test case is

  • Powerbook boot problem

    I was using my powerbook and it suddenly froze. So after no responses from the keyboard i switched it off by holding the power button. When i restarted, all i get is the flashing file icon (i know it cant find the mac HD) I tried to use disk utility