How to upload company logo in webdynpro application

Hi,
      I  need to upload the company logo in the View of a Webdynpro application.
Can someone give me the steps for the same to be done?
Thanks,
Kundan

Hi kundan,
Store the images in the MIME Directory.
-> Declare a simple type data type in the Java Dictionary.
->Give values and description in the enumeration type.
-> Declare a value attribute of Simple type in View Controller.
-> Add a image UI Element and bind it with two attributes(Ctx1 and Ctx2).
Use the code below to get the name of image and further set it :
String vehicleType = wdThis.wdGetContext().currentContextElement().getCtx1();
wdThis.wdGetContext().currentContextElement().setCtx2(vehicleType+ ".jpg");
Go through the [link|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d0e599cc-2862-2b10-54a9-dcf1376b52d7]
Regards,
srikanth

Similar Messages

  • How to upload excel file in Webdynpro application using ABAP

    Hi Experts,
    Am developing a webdynpro application in which it will take an excel file as input and display the contents in the form of a table in output. I am able to upload tab delimited text file and populate the table using the below code but not able to do the same with .xls file. Pls let me know if I need to use a different function module for upload excel file.
    get single attribute
      wd_context->get_attribute(
        EXPORTING
          name =  `DATASOURCE`
        IMPORTING
          value = l_xstring ).
      CALL FUNCTION 'HR_KR_XSTRING_TO_STRING'
        EXPORTING
          in_xstring = l_xstring
        IMPORTING
          out_string = l_string.
      SPLIT l_string  AT cl_abap_char_utilities=>newline INTO TABLE i_data.
    Bind With table Element.
      LOOP AT i_data INTO l_string.
        SPLIT l_string AT cl_abap_char_utilities=>horizontal_tab INTO TABLE fields.
        READ TABLE fields INTO lv_field INDEX 1.
        fs_table-name = lv_field.
        READ TABLE fields INTO lv_field INDEX 2.
        fs_table-age = lv_field.
        APPEND fs_table TO t_table1.
      ENDLOOP.
    lo_nd_data = wd_context->get_child_node( 'DATA_TAB' ).
    lo_nd_data->bind_table( T_TABLE1 ).
    Thanks,
    Subathra

    Dear Exports
    Can anyone guide me how to uplode the .xlsx or ..xls formatted excel file using abap webdynpro without converting it to .txt file. Because my client requirement is only to upload the excel file. because to convert the .xlsx flie to .txt file it will be time taking and cost expanssive. Another requirement is suppose today i have create a application for uploading a file which has 8 columns and 10 rows. suppose tomorrow the client will make some changes in that flat file means the client will add 2 extra columns and 10 more columns in that fil. and will upload that file. Then the new file will be display on the browser or old file. but my requirement is to display the new file in browser.
    Can anyone kindly help to solve my problem. I am completely fresher in this field and I need to do it as soon as possible. Please help to solve the problem. 
    Regards
    Rashmita

  • How to add company logo in z report

    Hi !
    i want to know how to add company logo into custom report ...
    generally we used below mentioned code for sap logo
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    IT_LIST_COMMENTARY       = IT_LIST[]
       I_LOGO                   = 'ENJOYSAP_LOGO'.
    ENDFORM.            "top_of_page"
    what changes we need to do to add company logo into custom report
    Please guide
    Regards
    Sheetal

    First upload  ur  required logo in  SAp  by  t-code  SE78.
    Use teh  above mentioned  ALV code  for the same.
    Try  to  search  on SDN for  the  u can find the  full  ALV code for the same.
    ..lakhan

  • In reports how to upload a logo?

    Hi
    In reports how to upload a logo?
    Thanks

    check program
    RSDEMO_CUSTOM_CONTROL.
    Its how to call LOGO not Upload.
    Regards
    Prabhu

  • How to upload company code data related to Company Code BP01?

    How to upload company code data related to Company Code BP01 FOR CIN?

    Hi,
    First check whether all the pre-requisites are completed.
    I'm assuming you have installed the Best Practices Baseline package (for country IN). If you have succeeded in actvating the buildig blocks (as per your scope) using Solution Builder, you would have populated all the company code data related to Co. code BP01. Looks like some steps are missing.
    Please refer to the OSS note 1408706 in this regard. From there, you also can refer to the "Quick Guide to Implementing the SAP Best Practices Baseline Package V1.604 (DE), which is self-explanatory. 
    Let me know if this helps.

  • How to upload muliple files in webdynpro abap?

    dear team
    any one could you tell me how to upload multiple files in webdynpro  abap with detailed steps?
    and where & what code i have to write?
    kindly give me the solution for this problem
    regards
    sathya

    Please use the forum search!
    Thomas has made an excellent guide about exactly what you require:
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/109b9b52-bc00-2c10-8786-e4c5e96d7e04
    Cheers, Lukas

  • How to upload an attachment from webdynpro java application.

    Hi,
    Please assist me to create a View in WEBDYNPRO JAVA, which speaks about how to upload an attachment and save it in SAP
    Regards,
    Suri

    Well , first of all, I think you should search the SDN with keyword such as "upload files ".
    Here is the link of an article about upload and download files in WD.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/9076a593-2b08-2d10-2890-9a7078246ec4
    Hope that can help you.
    Regards
    Carfield

  • How to upload a  logo in smartforms

    can anybody tell me how to upload logo in Smartorms

    Hi,
    Inserting Logo in SmartForm
    Follow the given steps in order to add a logo,
    1) In Smart Forms Editor, In left pane, right Click any Page (say Page1) and select Create -> Window, Give it a name and Description (Say Window1)
    2) Right Click on Window (Window 1) and select Create -> Graphics, Give it a name and description
    3) In general Attributes, Select Name, get search help (F4) , you will find a list of pictures
    4) Select any picture and set its Resolution in DPI
    5) Press F9 to open Smart Forms Builder, Select window (Window1) and In Output options window set, size and position of the Logo
    6) Set any other parameters if required, save and activate.
    7) If there is only 1 Window in the forms, set it as Main Window in general attributes.
    8) User TCode SE78 to upload new pictures and logos.
    or----
    u can
    Try executing program RSTXLDMC program. There also you can upload a graphic.
    Run RSTXLDMC
    Enter file name C:\MAIL\COMPLOGO.TIF
    Resolution for Tiff file
    Absolute X-position
    Absolute Y-position
    Absolute positioning
    Reserved height
    Shift to right
    UOM = CM
    Text title
    Line width for text = 132
    Text name ZHEX-MACRO-COMPLOGO
    Text ID ST
    Text language = E
    Postscript scaling
    Width & Height according to PS scaling
    Number of Tiff gray levels (2,4,9) 2
    Then Create a new window 'COMP' with attributes;
    Window COMP description Company Logo
    Window type CONST
    Left margin 7.00 CH window width 10.00 CH
    Upper margin LN window height 8.00 LN
    Finally u can make use of the text name and text id to print the logo.
    Please note that if object name is not indicated as 'ZHEX...', the logo may not be printed !
    Go thru this,
    http://www.zebra.com/id/zebra/na/en/documentlibrary/misc/sap_smartforms_technical.File.tmp/SAPSmartFormsVersion3.pdf
    Refer these threads,
    How to upload logo in Smartforms.
    logo insertion in smartform..
    Regards,
    Padmam.

  • How to change company logo dynamically using login information of the user in flex4 CSS styl method?

    hi all,
    I am doing mxml flex4 web application. i am using a login in my application. this login for multi user  purpose.
    My need is when a user login using his username and password his company logo should show the top of my application and his copyright details show the bottom of my application
    if another user login means his company logo and copywrights should show in my application.
    This logo and copyrights details should change dynamically based on the login information.
    I want to create this using CSS file (skins and sparks)
    How to do this,i am struck in this place,
    Looking for useful and helpful suggession or snippet code,
    Thanks in advance,
    Cheers,
    B.Venkatesan.

    If the user is logging in, presumably you are having the user hit a back end web-server and database and using something like Blaze to connect? Right?
    I personally would not do this with CSS. I would map the company icons to the users in the DB, retrieve the proper company icon and then pass it down (or embed it in the app) when the user logs in. Then, I would just set the source of the icon to be what I passed down:
    Add your image where you want it to go:
    <s:Image id="emptyImage" x="locationx" y="locationy".../>
    Then in your ActionScript, when the user logs in and you know what company the user belongs you could do this:
    private function loginUserBlazeResponse(resultEvent:ResultEvent):void {
    var bytes:ByteArray = ByteArray(resultEvent.target);
    emptyImage.source = bytes;
    addElement(img);
    img.visible = false;
    img.addEventListener(FlexEvent.UPDATE_COMPLETE, imageLoaded);

  • Want to upload company logo into ICON table

    hi
    i want to upload my company logo into ICON table
    how i can upload it .
    thanks in advanced.

    Hi,
    refer
    Create and Add Icons to table ICON?
    Or
    Logo Upload: Problem with the Format
    Hope this solves your purpose.
    Award points if it helps.
    -Gaurang

  • How to print company logo in Excel/ PDF after Enhancement Pack 1?

    Hi all,
    I realise this topic has come up time and time again but apparently this functionality has changed after Enhancement Pack 1 for BW....?
    My problem is simple.  I have a series of reports on our portal, formatted using the WAD, and there is a company logo on the reports.  When exporting to PDF or excel, the logo disappears.
    The SAP documentation states that the addition of the logo when exporting was not available previously, but it was planned, and seemed to imply that this would be possible in EHP1.
    We have just applied EHP1 to our test system however I cannot find how to switch on this functionality or how to get the logo onto the exported reports.  I can't find any documentation on how to do this.
    Is anyone else using this after applying EHP1?  Is anyone from SAP reading who can tell me where this functionality is??
    Thanks!
    Mischa

    Thanks but this doesn't work.  It works exactly as it did before the Enhancement Pack and doesn't automatically display the image.
    So I guess I am missing something - my image is a bmp. file, will this work or should I save it as something else?
    Are there any settings in the WAD (either in the Web Template itself or on the button to export) which I need to change to be able to display this logo?
    Or are there any settings I need to make in the backend of BW after the application of the Enhancement Pack?
    Any more ideas please?
    Thanks
    Mischa

  • How to add company logo to 11i EBS

    How to add my company logo to 11i EBS
    Thanks in advance

    First upload  ur  required logo in  SAp  by  t-code  SE78.
    Use teh  above mentioned  ALV code  for the same.
    Try  to  search  on SDN for  the  u can find the  full  ALV code for the same.
    ..lakhan

  • Problems while uploading company logo into sap script

    Hi Experts,
      When i am inserting company logo into sap scripts, i successfully uploaded, but the problem is i am getting black and white image instead of color,but in RSTXLDMC i am giving parameter as BCOL only, could anybody help to get my problem resolved. it is very urgent. The logo which i am inserting is colored.
    bye
    M.Rajendra Singh

    HI
    GOOD
    How to Upload graphics (IMAGE) to your Sapscript?
    Command in your Sapscript
    /: INCLUDE Z_YOUR_LOGO OBJECT TEXT ID ST LANGUAGE E
    These are the steps to be followed for uploading graphics in R/3 system 
    1.   First save the file as BMP 
    2.   Open the BMP file in IMaging (Goto -> Programs -> Accessories -> Imaging) and 
          make it Zoom as 100% and save as *.TIFF 
    3.   Open SE38 and execute program RSTXLDMC
    4.   Give your TIFF file path name 
    5.   Select Bcol (for Color) 
    6.   TEXT ID will be ZHEX-MACRO-*. 
    7.   Inplace of * write your own logo name (ZCOMPANYLOGO) 
    8.   Execute the program 
    9.   Now Goto SE71 create your ZFORM 
    10. Create logo window 
    11. Goto text element of logo window 
    or
    In 4.6x :-
    1.  Goto SE71 Change the mode to GRAPHICAL 
    2.  Choose the Graph Tabstrips
    3.  Now type in some name for the LOGO WINDOW 
    4.  Press the IMPORT BUTTON and then IMPORT the BMP file from your DESKTOP 
    5.  The code will be written automatically. You just need to drag and drop wherever you want
         the graphics to be. 
    Please note that in 4.6c onwards, you can also used Windows Bitmap file ( .BMP).
    THANKS
    MRUTYUN

  • How to put Company Logo in a SAP R/3 Login Screen

    Hi,
    1)How can we put our own text in the login screen?
    2) how do we put the company logo in the post login R/3 screen?
    Regards,
    Shobhit

    Hi,
    U can insert logo in both the cases.
    Check this
    http://www.sap-img.com/abap/alv-logo.htm
    * Build report title
      PERFORM build_report_title USING gd_report_title gd_logo.
      DATA:  gd_logo             TYPE sdydo_value,
    *&      Form  BUILD_REPORT_TITLE
    *       Build table for ALVtree header
    *  <->  p1        Header details
    *  <->  p2        Logo value
    FORM build_report_title CHANGING
          pt_report_title  TYPE slis_t_listheader
          pa_logo             TYPE sdydo_value.
      DATA: ls_line TYPE slis_listheader,
            ld_date(10) TYPE c.
    * List Heading Line(TYPE H)
      CLEAR ls_line.
      ls_line-typ  = 'H'.
    * ls_line-key     "Not Used For This Type(H)
      ls_line-info = 'User Message Service'.
      APPEND ls_line TO pt_report_title.
    * Users name (Status Line- TYPE S)
      ls_line-typ  = 'S'.
      ls_line-key  = 'Name '.
      ls_line-info = gd_myname.
      APPEND ls_line TO pt_report_title.
    * Status Line(TYPE S)
      ld_date(2) = sy-datum+6(2).
      ld_date+2(1) = '/'.
      ld_date+3(2) = sy-datum+4(2).
      ld_date+5(1) = '/'.
      ld_date+6(4) = sy-datum(4).
      ls_line-typ  = 'S'.
      ls_line-key  = 'Date'.
      ls_line-info = ld_date.
      APPEND ls_line TO pt_report_title.
    ** Action Line(TYPE A)
    *  CLEAR ls_line.
    *  ls_line-typ  = 'A'.
    *  CONCATENATE 'Report: ' sy-repid INTO ls_line-info  SEPARATED BY space
    *  APPEND ls_line TO pt_report_title.
    ENDFORM.                    "build_report_title
      CALL METHOD gd_userlist->set_table_for_first_display
         EXPORTING
                   is_hierarchy_header  = gd_hierarchy_header
                   it_list_commentary   = gd_report_title
    <b>              i_logo               = gd_logo</b>
    *               i_background_id      = 'ALV_BACKGROUND'
                   i_save               = 'A'
                   is_variant            = gd_variant
         CHANGING
                   it_outtab            =  it_emptytab      "Must be empty
                   it_fieldcatalog      =  gd_fieldcat.

  • How to put Company logo in the report?

    Hi,
    How am i going to include the company logo or a image file into my report?
    What is the best tools?
    I have try to use the "Link File" tool and it required me to specify the "Source Filename". So if I put the file path and filename in the "Source Filename", it's hardcoded...
    How to specify the "Source Filename" at run time or any otherway so that it won't hardcoded?
    Regards,
    Cheong

    Note that you can also use the read from file functionality.
    If you have a character based column, then any layout field based on this column will have the Read From File property. If this is set to Yes, then reports will attempt to use the value of the column to read a file from the file system. You can also specify the type of the file (image, text, or even an image URL to read an image from over the web).
    For example, if you have a column in the data model that returns a value ("c:\temp\mypicture.bmp"), and you set the Read From File property to Yes, and the File Format to be Image then at runtime, reports would look for c:\temp\myimage.bmp and return the value. And of course, since you can create a formula column in the data model then you can control the returned value as much as you like.
    Hope this helps,
    Danny

Maybe you are looking for

  • Thin White Lines above Buttons

    On my published page, there are thin white lines at the tops of some of my hyperlink buttons & not others. iWeb doesn't show these lines, they appear to be added during publication. Come see: http://web.mac.com/tarpitboss They appear to be used as ph

  • How can i know my logic pro 9 is for 3 install's?

    how can i know my logic pro 9 is for 3 install's?

  • BW Portal Queries

    Good day, We are busy implementing BW queries for the SAP portal, we are trying to implement are the cockpit, 0COCKPIT_0_1, which consists of the following queries; Headcount, Headcount FTE, Entries, and Leavings. When executing the queries in the po

  • XL Reporter hangs during activation

    Hope somebody could provide solution to our problem.  First of all we are running SB1 2005 version, we performed backup monthly or yearly and version of XL Report  PL 25. We encounter this problem (XL Reporter hang) recently when we restore a previou

  • Connect to networked OFFICE Jet Pro 7680 device in windows 7 64 bit system.

    The system Can't find the OFFICE Jet Pro 7680 device in windows 7 64 bit system.  I am unable to use my scanner.  I tried to add the device from the devices and printers screen.  The device is wired to a port on the router, but the system can not fin