Converting between types in Web Dynpro

Is it possible to convert between data types in web dynpro?  I am trying to covert a string to another data type (int, BigDecimal, etc.)?  I have found no documentation on how to do this?
Any help will be greatly appreciated.  Thanks

Hi Eric,
If You use Web dynpro for Java, It's same as datatype conversion in java.
For ex: if you want to convert from double value to float pls follow like this.
float floatvar;
double doublevar;
floatvar= (float)doublevar;
For more Information on data type conversion pls refer this URL
http://www.unf.edu/~rzucker/cop3540dir/jdtconvt.html
Hope this help. pls award points if you satisfied
Thanks
Praveen

Similar Messages

  • What kind of data types in Web Dynpro can be bound to Interactive Form?

    Hello
    Apparently it is not possible to bind a Web Dynpro Context variable of type boolean to a checkbox in an interactive form. We get the PDF Document Render Exception until the data type is changed to string, then the generation seems to work. Does anyone know what data types in Web Dynpro other than String can be bound to an Interactive Form Document? Is there any information about this in help.sap.com/adobeforums.com/elsewhere? I have researched a bit, but couldn't get a general statement on this topic.
    Thank you for your help!
    Kind regards
    Bettina Hepp

    Hi,
    You can Bind the Boolean type of webdynpro to the CheckBox in Adobe Interactive Form.
    Just define the value Attribute in the Context of type Boolean and bind the Checkbox in Aif with this attribute.
    Sample Code:
    if (wdContext.currentContextelement.reason == true)
    ur validations.....
    Regards
    Mustafa

  • Error while switching between DC, DTR & web dynpro perspectives

    Hi,
    I am facing the following error while switching between DC, DTR & web dynpro perspectives.
    A SWT error has occured.
    It is recommended to exit the workbench.
    Subsequent errors may happen and may terminate the workbench without warning.
    See error log for more details.
    Exit workspace?
    When I click on 'Ok' and check out the log file....
    !SESSION Nov 08, 2006 19:02:46.730 -
    java.version=1.4.2_12
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments: -os win32 -ws win32 -arch x86 -feature com.sap.java.ide C:\j2sdk\bin\javaw.exe
    -Xmx512m
    -Xms128m
    -XX:PermSize=32m
    -XX:MaxPermSize=128m
    -DallUserDir='C:\Documents and Settings\All Users\Application Data'
    -cp C:\Program Files\SAP\IDE\IDE70\eclipse\SapStartup.jar com.sap.ide.eclipse.startup.Main
    -os win32
    -ws win32
    -arch x86
    -feature com.sap.java.ide
    -showsplash C:\Program Files\SAP\IDE\IDE70\eclipse\SapIde.exe -showsplash 600 -data C:\Documents and Settings\rajabhog\Documents\SAP\workspace -install file:C:/Program Files/SAP/IDE/IDE70/eclipse/
    !ENTRY Startup 1 0 Nov 08, 2006 19:02:46.730
    !MESSAGE Sap NetWeaver Developer Studio - Unknown Sap Internal Installation
    !SESSION -
    !ENTRY org.eclipse.core.launcher 4 0 Nov 08, 2006 19:03:03.734
    !MESSAGE Exception launching the Eclipse Platform:
    !STACK
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.sap.ide.eclipse.startup.Main.basicRun(Main.java:291)
    at com.sap.ide.eclipse.startup.Main.run(Main.java:789)
    at com.sap.ide.eclipse.startup.Main.main(Main.java:607)
    Caused by: java.lang.reflect.InvocationTargetException
    at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:861)
    at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
    ... 7 more
    Caused by: org.eclipse.swt.SWTError: Item not added
    at org.eclipse.swt.SWT.error(SWT.java:2356)
    at org.eclipse.swt.SWT.error(SWT.java:2260)
    at org.eclipse.swt.widgets.Widget.error(Widget.java:385)
    at org.eclipse.swt.widgets.Menu.createItem(Menu.java:464)
    at org.eclipse.swt.widgets.MenuItem.<init>(MenuItem.java:118)
    at org.eclipse.jface.action.Separator.fill(Separator.java:48)
    at org.eclipse.jface.action.MenuManager.update(MenuManager.java:555)
    at org.eclipse.jface.action.MenuManager.update(MenuManager.java:456)
    at org.eclipse.jface.action.MenuManager.fill(MenuManager.java:209)
    at org.eclipse.jface.action.MenuManager.update(MenuManager.java:555)
    at org.eclipse.jface.action.MenuManager.update(MenuManager.java:456)
    at org.eclipse.jface.action.MenuManager.createMenuBar(MenuManager.java:146)
    at org.eclipse.jface.window.ApplicationWindow.configureShell(ApplicationWindow.java:244)
    at org.eclipse.ui.internal.WorkbenchWindow.configureShell(WorkbenchWindow.java:578)
    at org.eclipse.jface.window.Window.createShell(Window.java:350)
    at org.eclipse.jface.window.Window.create(Window.java:301)
    at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:1258)
    at org.eclipse.ui.internal.Workbench.access$10(Workbench.java:1223)
    at org.eclipse.ui.internal.Workbench$12.run(Workbench.java:1141)
    at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1006)
    at org.eclipse.core.runtime.Platform.run(Platform.java:413)
    at org.eclipse.ui.internal.Workbench.openPreviousWorkbenchState(Workbench.java:1093)
    at org.eclipse.ui.internal.Workbench.init(Workbench.java:870)
    at org.eclipse.ui.internal.Workbench.run(Workbench.java:1373)
    at com.tssap.util.startup.WBLauncher.run(WBLauncher.java:79)
    at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
    ... 8 more
    Please help me out...
    As I have to fix this issue as early as possible.
    Thanks & Regards,
    Raj

    Post your question in the SAP NetWeaver Technology Platform. It don't think it's JDI related...

  • URGENT: Illegal Argument Exception for  RAW data type in Web Dynpro

    I am getting this error in the following scenario.
    I want to save the text fields from an interactive form to SAP through RFC enabled function module. The type in the model and controller is byte[]. I have converted the string attribute from view to save to the model. But the model dictionary in Web Dynpro project (model) has this type as Binary (meta data model through EFC). The type in SAP is RAW. I am going nuts since a week to solve this.
    IS this a bug? I am using NW04s - SP12. and NWDS 7.0.9
    Exception Details:
    The initial exception that caused the request to fail, was:
    java.lang.IllegalArgumentException
    at com.sap.dictionary.runtime.DdTypeBinary.format(DdTypeBinary.java:60)
    at com.sap.dictionary.runtime.DdTypeBinary.toString(DdTypeBinary.java:64)
    at com.sap.tc.webdynpro.clientserver.data.DataContainer.doFormat(DataContainer.java:1405)
    at com.sap.tc.webdynpro.clientserver.data.DataContainer.getAndFormat(DataContainer.java:1098)
    at com.sap.tc.webdynpro.clientimpl.xdp.renderer.data.XfdRenderer.renderAttributes(XfdRenderer.java:370)
    ... 41 more

    Issue with the RAW data types is resolved now. I have changed the data type of the field into String in the dictionary (web dynpro).. I have changed the corresponding getters and setter functions from byte[] to string. And everything working fine now. I got the Illegal Argument exception initially because I was trying to display the binary data type fields on the adobe form or view which I am not supposed to do.
    Also it is better to create separate view attributes in the context to get the values rather than mapping the model attributes directly in the form or view.
    Thank you one and all.
    Regards
    Vasu

  • Communication between BSP and Web Dynpro JAVA

    Hello All!
    I'm wondering whether the communication between a web dynpro application and a BSP application is possible.
    To ellaborate more, we have developped a web dynpro application acting as sender and we would like to develop a bsp application that displays a smart forms and which needs to listen to the web dynpro. We don't know exactly how to do that.
    Your help is really appreciated!
    Yours,
    Hajar

    HI
    GOOD
    I NEVER FACED SUCH ISSUES, HEREWITH I AM GIVING SOME LINKS, I HOPE THESE WILL HELP YOU TO SOLVE YOUR PROBLEM.
    http://sapfans.com/forums/viewtopic.php?t=168023&sid=1ed91bc0423642f19dc32b70ef3d37e3
    http://www.sap-press.com/downloads/sap_press_catalog_2006_summer.pdf
    http://help.sap.com/saphelp_nw04s/helpdata/en/a6/10b98ae47ef14799a918db66ee9477/content.htm
    THANKS
    MRUTYUN

  • Communication between BSP and Web Dynpro

    Hello All!
    I'm wondering whether the communication between a web dynpro application and a BSP application is possible.
    To ellaborate more, we have developped a web dynpro application acting as sender and we would like to develop a bsp application that displays a smart forms and which needs to listen to the web dynpro. We don't know exactly how to do that.
    Your help is really appreciated!
    Yours,
    Hajar

    i guess it should be possible. (is it ABAP webdynpro or java webdynpro?)
    post it in WEBDYNPRO forum for quicker resposne.
    Web Dynpro Java
    Regards
    Raja

  • Difference between ITS and web dynpro abap

    Hi Experts.
    Can any explain me what is the main difference between  EWT/ ITS and web dynpro abap. Basically i am going to developed some existing EWT in webdynpro ABAP , so i want to know what are the advantage of WD ABAP over ITS .
    Thanks in Advance.
    Satya

    Closing thread, thanks for your help.
    Thanks,
    Satya

  • Comparing two GUID of ABAP raw data type in Web Dynpro

    Hello,
    I am working with a CRM application. I want to fill a table with each column from different tables.
    For that I am trying to compare the GUID of each table. But I am not successful as the GUID is of RAW data type. How can I compare them in Web Dynpro Java?.
    Thanks,
    Sunita.

    Hi,
    I have been able to get rid of the problem posed in my earlier mail about assigning values from a field symbol to an internal table. Now its back to the same old problem.
    As mentioned earlier I have a view1 in which I am populating a range (select option), which I want to display on the next view, view2.
    On view1, on click of the button, I have populated internal table I_RANGE2.
    DATA: IT_RANGE2 TYPE TABLE OF ZTTRANGE.
    ZTTRANGE is a table type in SE11 with linetype as ZRANGE (structure in SE11).
    I want to pass I_RANGE2 to the method in the component controller:
    WD_COMP_CONTROLLER->HOLD_DATA( CHANGING IT_RANGE = IT_RANGE2 ).
    In the component controller the parameter IT_RANGE has been declared as
    PARAMETER             TYPE                REFTo             Associated Type
    IT_RANGE                 Changing              u221A (Tick)                ZTTRANGE
    But I am getting an error:
    IT_RANGE2 is not type-compatible with formal parameter IT_RANGE.
    Please help resolve this error.
    Mick

  • Converting Web Dynpro project into a Web Dynpro DC

    Hi
    I have a Web Dynpro project created.
    Now I want to convert it into a Web Dynpro DC (Development Component).
    Could anyone tell me if there is a standard procedure to do this?
    Right now, I am following the below procedure:
    Copy all the folders under root folder->src-> packages of Web Dynpro project into root folder->src-> packages of Web Dynpro DC.
    Rebuild the DC.
    But in this procedure I am getting errors (in view code) as the required interfaces (example, IPrivate<<component-name>>.java) are not getting generated when I re-build the DC.
    Could anyone help me with this issue?

    Hi Aditya,
    I have used two way for this and both worked fine for me.
    1. While creating DC project at the end there eill be a check box, which when you tick will show your local dynpro project and you can then import that.
    2. Create DC project after that copy the component of your local dynpro project and paste it on the option where you can create the component of DC project.
    After pasting click next - next so that everything remain in sync.
    After that check if you have any compilation error, check them if they are because of some jar files.. you have to add the library files by using the option -> DC Metadata ->DC Definition ->Used DC.
    If you got no compliation error, then just rename the component ( again click next) and then deploy.
    otherwise you may get deployment error.
    Hope this helps,
    Thanks,
    Namrta

  • Differences between compiling a VC model with Flash or Web Dynpro

    Hello forum,
    Is there anyone capable of telling me what are the main differences between compiling a Visual Composer model with Flash compiler or Web Dynpro compiler.
    I've noticed that some important features aren't available when I use the WD compiler, such as creating a popup directly from the output of a table and I can't install a scroll bar to navigate through the table records (it only allows me to place some navigation buttons in the bottom of the table, and this is not a very user-friendly solution).
    If you were me, would you choose the Flash compiler?
    By the way, do you know a way to increase the performance of a report created with VC? When I execute the iView on the Netweaver Portal, I see that a iview compiled with Webdynpro consumes less 15MB of memory when running the report than a similar iview compiled with Flash.
    Thank you.
    Regards,
    Ricardo Inácio

    I found this old post while searching for something else. The main difference between Flash and Web Dynpro modes is that Flash works and Web Dynpro most emphatically does not. Some of the (many) disadvantages of Web Dynpro mode.
    1. It will not let you design your own screens. The designer will let you resize and position your fields thus giving you the illusion of being in control, but at runtime it will resize your fields and position them where it thinks fit.  This greatly increases development time since you can never be sure what any changes you make to your screen will look like until you run it.  
    2. You cannot include horizontally and vertically aligned fields in the same form; depending on the option you choose it will align them all vertically or horizontally.  Which means that if you do need eg a horizonal row of pushbuttons at the top of your screen followed by a set of vertical fields, you have to use a separate form for each. 
    3. You cannot use the Editing mode = Read-only mode to make all the input fields in a form non-entereable.  You can select it in the designer,but at runtime it doesn't take a blind bit of notice.  The only way to make a field non-enterable is to check the Disabled box which turns it a very pale and almost invisible grey which looks awful.
    4. You can't change the font or colour of texts.
    5. Lots of the controls are not available eg the clock.
    6. You cannot create toolbars on forms, or rather you can but at runtime it just ignores them. 
    7. Adding a hyperlink to a pushbutton does not do anything (this is my latest discovery).
    All of the above work in Flash mode.  We have to use Web Dynpro because we need the screens to work with screen readers for visually impaired viewers, but anyone who does not have this constraint should avoid using it like the plague.

  • Time estimation for Web Dynpro development

    Hello all,
    i would like to know if someone could tell me how much time do we have to estimate when using web dynpros to recreate R/3 transactions (with the convert tool) ?
    In fact we must make an offer for a customer and would like to use Web Dynpros (since this customer wants that all developments are J2EE based and not related to R/3).
    Since we don't yet have any experience with this, it's not easy to make an estimation of the effort that it would take.
    So if you know what is the average time to make an R/3 transaction Web Dynpro enabled, please let me know.
    Thank you in advance,
    Xavier

    Hi Xavier,
    what i know so far about the convert tool is, that it allows to convert classic ABAP dynpros to Web Dynpro, but not between the ABAP Web Dynpro runtime and the Java Web Dynpro runtime.
    Among other things, the PAI and PBO modules of the classic dynpro are reused including possible input validations which may directly access some tables of the ABAP dictionary.
    Since all these things are not at all directly accessible by Web Dynpro for Java and the J2EE engine in general, the only thing, that might be transferrable IMHO is the layout information (buttons, inputfields...).
    Regards
    Stefan

  • Web dynpro developement works with SAPGUI?

    Hi,
    I am a developer working most of my time in 4.6C. Recently i started to upgrade myself. I have studied about web dynpro and came to know that All of business suite developement is done in Web dynpro, be it java or abap.
    My question here is once a web dynpro is developed independent of whether it is developed in ABAP or JAVA, will work in all defferent forms of ui : sapgui, webgui, etc?
    Put in other words, does business suite developed in web dynpro be accessable via a normal SAPgui?
    Regards,
    harikrishna.
    Edited by: harikrishna indugu on Feb 24, 2009 4:04 PM
    Edited by: harikrishna indugu on Feb 24, 2009 4:04 PM

    >
    harikrishna indugu wrote:
    > Hi,
    >
    > This leads me to a fundamental question:
    >
    > For a client running ERP 6.0 for his application, a business user should have both sapgui ( For ECC applications like PP/MM/SD ) and portal/business client for SCM/CRM/SRM/HCM etc? Isn't it ridiculous business user need to know how to use both???
    >
    > Thanks,
    > Harikrishna Indugu.
    This is where the NetWeaver Business Client has its best use case - when combining legacy SAPGUI transactions with newer Web Dynrpo ones.  Like the portal, the two types of transactions are ran within the same navigation frame.  However because the NWBC is a desktop application, the technical integration of the SAPGUI is much more efficient.  You get easy navigation between SAPGUI and Web Dynpro screens.

  • JSPDynpage  Vs Web Dynpro Java

    Hi Experts,
    1)I want to know the differences between JSPDynpage and Web Dynpro Java.
    2)Why JSPDynpage has become obsolete and Web Dynpro has taken over.
    3) Is there anything that we can do in  JSPDynpage and cant do in Web Dynpro  ?
    Comments are really appreciated.
    Thanks,
    Kumar.

    Hi again.  That's hard to say, because it really depends.  We know that SAP will be pushing Web Dynpro, all new development will be done with Web Dynpro,  most business packages that were developed in JSPDynPage have been rewritten using Web Dynpro.  So, in SAP's eye, web dynpro may have "replaced" JSPDynPage.  JSPDynPage is still widely used because companies may not want to spend the time to re-write in WebDYnpro.  At my company,  I've written 6-8 JSPDYnPage applications for our Portal, I have since re-written only 2 in WebDynpro, but the others can rewritten easily, but I haven't had the time.   My goal is to get rid of JSPDynPage completely from our portal applications and go with Web Dynpro.
    I think it would be very good for a beginner to learn JSPDynPage first.  This will give him a chance to know a little about what is going on underneath.  Since you have to code every part of the application, you learn things that you wouldn't using a tool like WebDynpro.  After getting the hang of JSPDynPAge, then learn WebDynpro,  you will quickly appreciated the value of Web Dynpro after doing JSPDynPAge.
    Visual Composer is designed for the "Business Analyst" type developer, this is why there is no code writing with VC.  It does allow for rapid development of "Simple" applications, but if there are some complex things in your application, VC will not cut it, Web Dynpro would be the next choice.  So no,  VC will not replace WD.
    Regards,
    Rich Heilman

  • Problem show web dynpro in EP, with iViews

    Hi all,
    I'm working with Sap Netweaver Developer Studio Version: 2.0.4 and with Web AS j2ee 6.30.
    I have make an Email web service in Web dynpro with Netweaver Developer Studio and the deploy is good. I can show in the navigator of internet in:
    "http://sap470:50100/webdynpro/dispatcher/local/WebDynpro_EmailWS/EmailWSApp"
    I have make the application in the host "sap470" but my EP 60 SR1 i have in another machine(Netweaver).
    In the portal i have created a system for Web Dynpro, but i don't know sure if i have put the WAS where the application web dynpro run or where run the portal.
    I have put the WAS of application web dynpro where it run, but i am not sure that put in the path, i have put /webdynpro/dispatcher. I have created the iView in the EP, a page and rool, and i have assiciated the web dynpro to this iView.
    In the propieties of iView, i have put:
    Name of application: Name of the application web dynpro.
    System: System that i have create before.
    Name of Area: This option i'm not sure that put. Any idea?
    Type of Web dynpro: Java
    When i go to presentation get a error.
    Any idea?
    Thanks in advance

    Did you take a look at this?
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/how to create web dynpro based iview.pdf
    based on your url, you need
    App Name : EmailWSApp
    Namespace : local/WebDynpro_EmailWS
    System: sap470

  • Using an other web dynpro application into an actual application

    Hello,
    I have a web dynpro application into a developer component previously developed. I want to import it an another web dynpro application.
    The goal is to click a button, display the window of the other application and then once it is finished, go back to the first application (with some context parameters)
    Is it possible ?
    Thanks
    Quentin

    Hi,
    Solved same issue in this thread Re: Data transfer between two different Web Dynpro components
    PradeeP

Maybe you are looking for

  • Web Service Proxy and SSL

    Hi everyone, I am quite new to Web services and Jdeveloper in particular, but here is what Im trying to accomplish. I have created a Web Service Proxy using Jdeveloper 11g. I am trying to consume an external Service that is using SSL. I can see the W

  • Selection field for vendor categorisation

    Hi, I have request to find a proper field for letter code and description in vendor master for vendor categorisation. (Like for example Order currency field in Vendor Master) The field must be minimum three caracter long. Further this vendor categori

  • Inbound EDI error notification - processing Work Items

    I am testing the inbound error notification. How do you change an IDoc from work item. The work item only allows you to display the IDoc, not change it. Which trans to change IDOC for reprocessing?

  • Poor resolution after importing to iMovie 10

    I've just upgraded to iMovie 10 and Mavericks from 9 and my old clips are now displaying with what appears to be a poor resolution. When I watch them in 9 they look much richer.....thoughts?

  • Wall Mount for a 23" (Clear enclosure) Apple LCD Monitor

    I've been scouring the net, looking for wall/desk mounting options (like an articulated arm, or even a bracket just to mount it to the wall) for my 23" Apple cinema - NOT THE NEW METAL ONE - the older, clear plastic enclosure type... The only thing I