Another image question - using Regular ABAP not web dynpro

Following Otto's awesome instructions:
1) create image field in your form (not only image!! it must be the image field)
2) load your picture in the backend
3) convert the image into XSTRING
4) create the XSTRING variable in the interface/ context, fill it with the picture data
5) bind the image field to this variable
6) enjoy
Regards, Otto
We can easily get an image to appear on a form produced from Web Dynpro ABAP using an XML interface.
However, we are having an issue doing the same using a regular ABAP report and Data Dictionary interface.
We added a new field to our DDIC structure called signature TYPE RAWSTRING (we can't define a new domain with type X since SAP doesn't allow that, but they are both Variable Length Byte Strings).
We use the exact same code to upload the same image from UNIX, we see the byte string in our variable, but no image appears on our form (using the ImageField object).
We then created a Global variable with type Xstring in our interface. We pass our binary image to the function module. Through debugging, I see that an error occurs because the gloabl variable states it's max characters is only 255.
any ideas?

Otto,
thanks for the replies.
I did make sure to embed the image. We tried both jpg and bmp, but neither worked.
for testing, I hardcoded this in the WD and it worked. I copied it over to our ABAP method
  DATA: lv_ds TYPE string VALUE '/sapmnt/DEV/interface/renewables/pbch-1/archive/352.bmp',
             lv_xstring TYPE xstring.
  OPEN DATASET lv_ds FOR INPUT IN BINARY MODE .
  CHECK sy-subrc = 0.
  DO 1 times.
    READ DATASET lv_ds INTO lv_xstring.
    IF sy-subrc <> 0.
      EXIT.
    ENDIF.
  ENDDO.
This gets me an Xstring field that's 1272 long.
I pass the lv_xstring field directly to the FM IMAGE field, which is defined as an Xstring in the PDF Interface
  CALL FUNCTION ls_function
    EXPORTING
      /1bcdwb/docparams  = fp_docparams
      is_scale_stng      = ls_scale_stng
      it_scale_tkti      = it_scale_tkti
      it_scale_seal      = it_scale_seal
      is_scale_tkt       = ls_scale_tkt_print
      image              = lv_xstring          " <---- pass the xstring image
    IMPORTING
      /1bcdwb/formoutput = ls_form_output
    EXCEPTIONS
      usage_error        = 1
      system_error       = 2
      internal_error     = 3
      OTHERS             = 4.
Stepping into the FM, I see that IMAGE now has the same size of 1272
In my PDF Form layout, I dragged/dropped the ImageField object on my form.
I found the IMAGE field in my Data View tab and dragged/dropped that onto the ImageField to Bind it.
I checked 'embed image data'.
I checked the form properties and the layout was set to 'Standard'. I changed it to ZCI, as well.
I know the data is coming across because I can drag/drop the image field from the Data View directly on the form as a Text Field and see the hex data come through.

Similar Messages

  • How to configure SSO for web dynpro ABAP (not web dynpro Java)

    Hi Experts,
        I am testing SSO in IDES for web dynpro ABAP (Not for web dynpro Java / not for portal). When I am entering url of web dynpro application in web browser like internet explorer, then it should ask for user id and password first time, after login whenever user would access that url, it must not ask for user ID and password (url would be access web browser in mobile). For this I select to configure single sign-on for web dynpro ABAP. I have done below works:
    1). I have created a web dynpro application having url: http://susws076.sap.swk:<port>/sap/bc/webdynpro/sap/zadb_hello_world2
    2). I run TCode SICF and access service node to "Zadb_hello_world2". Double click on it, hit change. pressed "logon data" tab, select "Alternative logon
         procedure"
       Then deleted all logon procedure other than "SSO Authentication" and saved.
    3). Go to "STRUST" and create certificate, choosed "Environment==> Logon Ticket" fill the required parameters and execute. It is OK (no red traffic
         signal).
    4). Execute TCode "RZ10" to change profile parameter, insert new parameter (indicated by red arrow)
    After all this settings I opened a browser enter above URL and hit enter but there is an error
    There is no login page. It directly showed this error page. No cookies is saving.
    Can anyone tell me what all the settings/configuration other than this I have to do. And is there any wrong setting done by me?
    How to set the for single sign-on?
    Thanks in Advance
    Regards
    Piyush

    Hi Piyush,
    Pls refer below links,
    Single Sign On with ABAP WebDynpro
    http://help.sap.com/saphelp_nw70ehp2/helpdata/en/5e/6c85c3edf942f39349a1e337434d29/content.htm
    Regards
    K.N

  • How stop PS6 from removing the DPI value from an image when using "save for the web"?

    How stop PS6 from removing the DPI-value from an image when using "save for the web"?
    Example:
    - Open a tif image, that contains a dpi value (resolution).
    - Use the splice tool in PS6.
    - Export the slices with "Save for web", as gif-files.
    Then the dpi value is removed, the gif files has no dpi value (it's empty).
    How can we stop PS6 from removing the dpi value when using "save for web"?
    OR:
    When using the slice tool, how can we save the sliced pieces without PS removing the dpi value?

    you can make your art go a little bit over the bounds. or you can make sure your artboart and art edges align to pixels

  • Step by step Installation ON ABAP,XI,Web dynpro ABAP and JAVA On my PC??

    Hello Friends,
      I would like to Install SAP-ABAP ,XI ,Web dynpro ABAP and Web dynpro   JAVA    on my PC.
      Please Let me know What configuration is required for all the above.
      Please Give me the Step by step procedure for all the above.....??
      I want to Instal all the above and Give me suggestion on that???
      Can I use Vista for Sap Installation????
    It would be great If you send the step by step procedure to my personal ID
    [email protected]
    Thanks in Advance
    Preethi D

    Hi,
    Step step description here is not possible.
    It always advisable to go to service.sap.com/instguides.
    slow and steady wins the race.
    good luck.
    It's advisable to have quad processor with atleast 8GB ram.
    If it's a nw04s then at a shot you can select AS ABAP. JAVA, EP, PI(XI) and proceed.
    hope this helps you.
    reward suitable points.

  • Using macromedia flex in web dynpro

    how can i use flash object in web dynpro for displaying charts instead of using the webdynpro default charts .
    i want to use from NWSD not through the portal ..

    Hi Valery,
    I didn't say that it is the only solution. But this could be one of the solutions. Now, it depends on the requirement whether need to use it or not.
    Hi Yashpal,
    No need to use WDURLGenerator service. You can directly give flash object name which you have imported in mimes->components-><package>.
    Regards,
    Bhavik

  • Using External java within web dynpro DC

    Hi
    I'm new in web dynpro and I'm facing a problem.
    I'm doing a web dynpro DC application and I want to use some external java classes I have created into my DC. But I don't really know how to do it, I tried EJB but I don't exactly how it works.
    by the way, I was using a stand along web dynpro before and this worked fine, I just needed to create a package within my web dynpro project with all my class architecture to have them directly. but now with the DC stuff, it's not the same at all. so please help
    thanks

    Hi
    Better you create a Java Development component and add all your java classes to that DC and build it.
    Create a webdynpro DC to develop front end and add the java DC in used DC's of your Webdynpro DC.
    This is the way you can use the java classes effectively with out redundancy.
    If you create a package inside a normal webdynpro project, then you can not reuse them later in other webdynpro proj
    Go with SAP component model by creating 2 development components one for java and other for webdynpro and define the reusability (Used DC's) in DC Metadata.
    Regards
    Kalyan

  • How to use a CAS in web dynpro with NWDS 7.0

    Hi, all.
            I implemented a cas project (some entity services and application services). Now I want to use it in a web dynpro project.
    I know how to do that with NWDS 7.1, but it seems  something differernt with NWDS 7.0.
    Can  anyone give me a hand?  Thanks.

    hi
    CAF Core project comes with a sub-project WebDynpro.
    You can implement business logic using CAF Core Service ,integrate it in WebDynpro UI.
    1)Select your CAF project root , right click on it and select u201CCreate Web Dynpro Modelu201D from the context menu.
    2) Switch to the Web Dynpro Perspective
    3)You can find  the CAF Core services have been generated and are available to the WebDynpro component.
        you can find caf services under modelclasses of webdypro project .
    4)Then you proceed with creating component etc..
    Regards
    sowmya.

  • Using .properties file in web dynpro

    Hi,
    I am having a requirement. I have to create a .properties file and I have to use it in my web dynpro application. How can I do that? Any help...
    Thanks & Regards,
    Raj

    Hi,
    Go to the navigator view...select src\Components\<ComponentName> and create create a .properties file.
    You can read the  configuration file in your webdynpro app as follows
    IWDConfiguration configuration =
          WDConfiguration.getConfigurationByName(
            wdComponentAPI.getDeployableObjectPart(),
            "<<>>");
    http://help.sap.com/saphelp_nw04/helpdata/en/b8/aa343e32ff1033e10000000a114084/frameset.htm
    Regards, Anilkumar
    Message was edited by:
            Anilkumar Vippagunta

  • Using FREE-SELECTIONS_DIALOG in Web Dynpro

    Hi Experts,
    I want to transfer a report whicht uses the FREE_SELECTION_DIALOG Function into Web Dynpro.
    Is it possible to use this function with Web Dynpro?
    The aim is to generate a list on the left side of the screen with different attributes from a dictionary table.
    By clicking on an attribute it should open the select-options for this field. The inputs should be saved.
    In the End I want to select data from a list that fit to all of the inputs.
    Thanks for any ideas!
    Martin

    any help..

  • Difference between Web Dynpro Abap and Web Dynpro Java

    Hi,
    What is the difference between Web Dynpro Abap and Web Dynpro Java.
    Thanks,
    Suresh

    hi suresh......
          from the end point of view, the customer wont know whether the application is done by java or abap. only the programming language differs and nothing much more.
    ---regards,
       alex b justin

  • Using Native SQL in Web Dynpro for ABAP

    Hi folks,
    I am trying to access an oracle database in web dynpro for ABAP via Native SQL.
    I am able to read row by row from the database into a work area, but I am unable to read the whole table from the database into an internal table.
    Please advise as to how I can do this, and thanks for reading.
    PS: Thomas, I wasn't off-topic on the previous thread; I forgot to mention that I was trying to do this under Web Dynpro for ABAP.

    Hello,
    it doesn't matter if you try this with Web Dynpro ABAP, BSP or any other framework, this is a general ABAP question and not related to this forum.
    Regards,
    Rainer

  • Set Security Question & Answer using UME API in Web dynpro Java

    Hi Experts,
    I;ve developed a Web Dynpro java application to create a user in UME.
    I am able to set all the user account related attributes but I am not able to set the security question and answer as I do not see any attribute for the same.
    Can anyone please suggest how to set the Security question and answer in UME?
    This is required so that if the user wishes to reset his password / forgets password, we can ask him the security question which he selected at the time of registration.
    Please let me know if it can be achieved at the code level and whether UME API supports security question and answer or any such attribute.
    Also, if no such attribute is present by default in UME at the moment; can we create/configure some custom attributes in UME and store the security question and answer into those attributes. This would serve our purpose.
    Kindly assist.
    Regards,
    Anurag

    Hi,
    Thanks a lot for the reply!!!
    I have one doubt here:
    You've mentioned the below code to fetch the security questions in your reply:
    IUser user = WDClientUser.getCurrentUser().getSAPUser();
    String CUSTOMER_NAMESPACE = "com.sap.security.core.usermanagement";
    String attmotname [] = user.getAttribute(CUSTOMER_NAMESPACE,"MotherName");
    String attlucknum [] = user.getAttribute(CUSTOMER_NAMESPACE,"LuckyNumber");
    String attmobnum [] = user.getAttribute(CUSTOMER_NAMESPACE,"MobileNumber");.
    But this would be only applicable when the user has already logged on to the portal as it uses "WDClientUser.getCurrentUser().getSAPUser();" code.
    On the contrary, I want the security questions and answer to be accessed even when the user is not logged on to Portal so that based on the question & answer, the user can reset his password.
    Please suggest, how can we achieve this and where and how to set the custom attributes for the same?
    Do we have to set the Publicly Viewable Custom Attributes present at location you mentioned in your reply?
    Also, if yes; please let me know how to set the custom attributes?
    Thanks & Regards,
    Anurag

  • Why not "Web Dynpro *with* ABAP"?

    As a newbie I found "Web Dynpro for ABAP" to be confusing.  Any ideas why its worded that way?  Just curious.

    Hi,
    because it's a programming <u>model</u> created <u>for</u> abap programming.
    If you look at the true content of webdynpro you come out at:
    declarative programming of all the navigation, ui, datadisplay and gathering, without
    writing the code, but letting the code to be generated.
    so it's a concept build for abap,
    not with abap (although the classes and interfaces are)
    grtz,
    Koen

  • Question about meta-data of Web Dynpro ABAP / Web Dynpro Java

    Hello together,
    everywhere I can read, that Web Dynpro meta-data is platform independent.
    I´ve read into a book, that the meta-data of Web Dynpro Java is saved as XML and
    that Web-Dynpro Java Runtime generates runnable classes and sourcecode out of this...
    - What about Web-Dynpro ABAP? Is Meta-code in ABAP is saved in XML too?
    - just for theory: is ist possible to take the meta-data of a Web-Dynpro ABAP component and
      generate a Web-Dynpro Java Component out of this?
    I tried to find it out but i failed... In table WDR_RR_LOAD (is this the right one?) I found only the
    field data. But this is a RAWSTRING and I don´t know how to make I "readable".
    I must know this for my thesis for my studies, not for work.
    Thank you very much !!!!
    Greetings,
    Oliver

    Me again,
    I am not sure if I understood it right...
    The meta-data which describes the visual part of a view is saved as XML and
    would be rendered i.e. in the webbrowser... Right?
    What about the meta-data of the Web Dynpro application?
    Is this meta-code into an other structure or XML too?
    Thank you very much.
    Many Greetings,
    Oliver

  • How to use HR Macros in Web Dynpro ABAP

    Hai All,
         Am new to Web dynpro Abap working in HR req.
           Can u pls help me how to import HR Macros in webdy ABAP.
            It will be very much helpful to me. Pls provide any link or doc if available.
    Thanks in Advance,
    Nalla.B

    Hi Nalla,
    if you can't find any Function Modules or BAPIs as Kris suggested, you would basically do this (conceptionally):
    1. What is your business logic supposed to do (output)  and what information does it need (input) for processing.
    2. Build a class in se24 and implement static public methods with the business logic you defined in (1.).
    3. Call the static methods in your WD4A-Framework.
    If you are unfamiliar with the class builder, make a local class first in se80, in a test program or alike.
    Does this help you a bit?
    regards, Lukas

Maybe you are looking for

  • Song downloaded on iPhone won't play on MacBook on same account...

    I downloaded two songs on my iPhone 4S today, when I opened up my MacBook Pro both songs had been automatically downloaded onto the computer. I played the first one no problem. The second song asked for me to authorize it to play on this computer, I

  • In Web Gallery, Flash Template how can you remove the "sequence"?

    Also, how can one use a flash gallery for more than 500 images?

  • Scroll bar and alternate row color in Trinidad table

    I am using Jdeveloper 11g I have two question on tinidad table see below sample code *1)How to set scroll bar on table* *2)how to set different colors for alternate rows* <tr:form> <tr:panelGroupLayout> <tr:panelFormLayout inlineStyle="width:965px; h

  • Jerky Video Exported with Premiere

    I'm having some trouble with Premiere Pro CS5, in which the  files it creates come out jerky / choppy. The problem isn't the source, as the  last time I encoded the same video it came out fine, and the problem  isn't the encode settings, because they

  • Application control engine is up to 16G?

    I'm jeon. I have a question regarding ace performance I know that the ace use the Tengigabitethernet in internal bus but How can the ACE do up to 16G? If the ace use the TE, the maximum performance is 10G? , on my opinion. Could you explain me about