Text Area in Web Dynpro

Hello,
I would like to use a <b>text area</b> in Web Dynpro for Java. The content of this text area shall be transferred to the ERP backend system using an own RFC function module. In the backend the text information (text format & text line) shall be stored using the standard text function.
How can I get the text format (such as ‘* ‘for left justified or ‘C’ for center) and the text lines from the text area defined in the Web Dynpro application?
Does a text area function in Web Dynrpo exist to handle texts and formats?
Thanks for your hints in advance.
Regards,
Kurt.

Hi
You can use string operations to retrieve the lines entered in the TextArea.
e.g.you can retrieve the enter and return index by indexOf("\r\n",beginIndex) method of string.Which gives you the index of the new line character starting from beginIndex.Now you can get the substring between beginIndex and this index by above function(which is actual text in the line) and then you can set this line to the tline of your RFC.
You can loop this until the whole String assigned to the Text area is covered.
Regards,
Ajay

Similar Messages

  • Font size of text view in Web Dynpro ABAP

    Hi Experts,
    How to increase the font size of a text view in Web Dynpro layout. I have tried the 'Design' property of the text view and made it 'Group Title', But i want even bigger font size.
    Pls suggest.
    Thanks,

    >
    Naresh Kumar Malik wrote:
    > Hi
    >
    >
    >
    >
    > You can use <h1> HTML tag. Here
    > concatenate   '<h1>'  item_eform_reqno '</h1>' into head.
    >   wd_context->set_attribute( exporting name = 'EFORM_HEAD' value = head ).
    >
    >
    > Here attribute EFORM_HEAD is bounded to the text view element.
    >
    > Regards
    > Naresh
    This should NOT work!  The UI elements should safe encode all input values - thereby eliminating the value of any HTML tags. If you system isn't doing this already then it is a bug and if you rely on such a thing it will stop working at some point in the future.
    You are basically restricted to different values available via the design parameter.  The overall font sizes come from the underlying themes and the client applications (browser or NetWeaver Business Client) that host the Web Dynpro Application.  Therefore no direct specification of the font size is possible in order to stay within the controls of theme.  If you don't like any of the designs available, you might consider altering the Portal Theme you are using - but that is a rather drastic approach.

  • How to develop a rich text editor using Web-Dynpro?

    Hello Everyone,
    I am new hire,
    today I got a task from leader to develop a rich text editor using Web-Dynpro,
    Because I just finished the BC400 and NET310 training and lack of expericen in ABAP,
    Can anyone tell me the main idea to accomplish the task?
    Thank you very much.
    Best Regards,
    Derek

    Have you looked at the standard UI Element
    [FormattedTextEdit|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/44/2772f505605447e10000000a422035/frameset.htm] it's not perfect, but it does allow some simple formatting.
    Anything beyond this - you're going to need to use an Island.
    [Thomas Jung's Demo of using an Island to provide a rich text editor|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0c91fc0-932d-2c10-4ca7-f5774950c8e3]
    Cheers,
    Chris

  • How to add many lines in the Text View in Web Dynpro

    Hi friends,
    I have one Text Edit in Web Dynpro. I need to show the result of FM READ_TEXT in Text Edit View element, without lose the text format.
    Cardinality of my node is 0:n and attribute datatype is string_table. after assigning the values using bind_table method, I am getting only the first row of the read_text returns...
    By
    deva

    Hi Deva,
    Text View is not meant to be bound to string_table. Create a string instead and convert that string table into that string with
    <br>
    between each row of string table. TextView component will make <br> into new lines. Code will be similar to following.
    DATA: ROWS TYPE string_table,
          top type string,
          result type string.
          loop at rows into top.
            concatenate result top into result separated by '<br>'.
          endloop.
    Now bind this result string to the text view component. It ll work. Hope it will be helpful for you.
    Regards,
    Fareez

  • Print Preview for Text Area in Web UI

    Hi,
    The notes section has text area in WEB UI. After typing in the text with more than 10 lines, and directly going to browser's print preview is not showing all the text entered. Instead it shows only 5 lines of text. But my client's requirement is to see all the text and take print out. I tried chaning the CSS of THTMLB_STYLES ( thtmlb_stand.css) with the below statement, but it didnt work.
    <style>
       @media print {
          content {
             overflow: visible;
    </style>
    Please suggest a solution.
    Thanks
    Manassha

    Hi ,
    Can you please elaborate on this.
    I have tried doing what you said but didnt face any issue....
    Regards,
    Ravikanth

  • Adding Disclaimer text to standard web dynpro screens in ESS

    Hi,
    I need to add disclaimer text to the standard web dynpro screens of ESS. The disclaimer text is the same for all screens and there are around 20 different screens where I need to put the same disclaimer text on. Can anybody suggest me the best way to solve this problem.
    Thanks,
    Tom

    HI TOM
    u can specify this for each and every workset for ESS.
    u used the Additional Inforamation text under each workset.
    to change the text do the following
    In SAP R3 ecc system go to SPRO->IMG->cross application components->Homepage framework->Areas->define areas->double click on define areas->double click on area key
    (work set)
    under area description tab
    u can found following
    Area Description heading --->Additional Information
    Area Description (long text)--->
    u can change both text accoriding to ur requirement and specify <b>The disclaimer text</b> .
    this is done for all workset. one modificaton is finish.
    relese the created request.
    restart the j2ee server.
    regards,
    kaushal

  • Text editing in Web Dynpro for ABAP

    Hi
    I am interested in getting ideas on the best way to achieve the following functionality in Web Dynpro for ABAP:
    1) A text-editor where some basic formatting is possible (Italic, Bold, etc.) for the user to enter formatted text.
    2) Save this text in some format to the dictionary maintaining the text formatting.
    3) This saved text should appear on a PDF printview from the WebDynpro. Of course the formatting should appear on the screen as it was created with the text-editor.
    TIA
    Regards

    Hi,
    here's the linkt to the messages documentation: http://help.sap.com/saphelp_nw2004s/helpdata/en/d8/2a934259a5cb6ae10000000a155106/frameset.htm
    Regards, Heidi

  • Text maintenance in web dynpro

    Hello all,
    I have an issue in web dynpro but have no knowledge about it. I need to maintain some text in korean language which is wrongly being
    displayed in german in an appraisal document on the portal. I do not know how to go about this. I have been trying to find things in se80 but in vain.
    Please guide me through this.
    Thanks,
    Ritika Mathur

    This could be in many places. Check your backend field definitions in SE12 for your data element texts. There you can click on GOTO -> TRANSLATE and enter your text accordingly. Hope this helps.

  • Adding text field to Web Dynpro

    Hi Experts,
    I need to add new text field on Standard SAP Dynpro for standard field . In standard it has two value : "01" or "02". And I nedd to add near "Material" or "Service" depending on value of  standard field. I checked standard field in F4.
    It's info about field:
    General Information About the Application and Component
    Application: /SAPSRM/WDA_L_FPM_OIF
    Web Dynpro Component: /SAPSRM/WDC_DODC_SC_I_BD
    Window Information: IV_L_FPC_CA_DETAILS
    View Information: V_DODC_SC_I_BD
    Configuration ID: /SAPSRM/WDCC_FPM_DODC_SC_I_BD_PR
    Information on Field
    Field ID: ZZI_PRODUCT_TYPE_ATTR
    Type of UI Element: INPUT_FIELD
    UI Element Library: STANDARD
    But when I go to Component /SAPSRM/WDC_DODC_SC_I_BD I can't found this field. I think this field as dynamic field created.
    Also question: How I can call this field (for example in method modifyview) and add new field on the right side?
    Thanks in Advance.
    Evgeniy

    Hi Evgeny 
    I dint understand your question , I am able to see componet /SAPSRM/WDC_DODC_SC_I_BD and view V_DODC_SC_I_BD .
    you can create enhancement for this view and can add your field here.

  • How to include Text file in Web Dynpro structure

    Hi Guys,
    I know that you can add a "File" object against a Java project (right click on project: New -> File).
    Is this possible with WebDynpro?  In other words, can I add a Text file "object" against my DC?  I need such a File because I need to store text values in it that I read in my View Contoller.
    Any suggestions?
    Christiaan

    Hi
    Yes
    Select the Navigator view --select the dc --right click --new --other --general --- here u will get the option .
    Note : put your file only under src--make one folder say util and then put your file here.
    Best Regards
    Satish Kumar

  • Different languages are not available for Web Dynpro ABAP (WDA)

    Hi Experts,
    We are using Web Dynpro ABAP in 2 different languages (English/Spanish). Production environment only is available for English (WDA).
    How can I make Spanish language available for Web Dynpro ABAP??. Is there any configuration or installation which I am missing?? Development and QA are OK (English/Spanish)
    Thank you.
    Regards
    David Cortés.

    Hi Experts,
    Any help???
    Regards
    David Corté

  • How to -format text  in web dynpro?

    Hi all,
    I want to display text messages in web dynpro in different colors.
    and also to display some text in bold, some in italics etc
    How can i achieve that?
    Points assured for help?

    shobhendra,
    Direct support for rich-formatted text is not available in current release of WD Java (though it exists in NW04s WD ABAP).
    For workaround (HTML display) please refer my blog post:
    <a href="/people/valery.silaev/blog/2005/11/23/display-formatted-text-using-webdynpro-for-java">Display formatted text using WebDynpro for Java</a>
    Other post could be helpful as well if you experience problems with sizing IFrame used in solution above: <a href="/people/valery.silaev/blog/2006/07/14/escaping-the-procrustean-bed">Escaping the Procrustean bed</a>
    Valery Silaev
    SaM Solutions
    http://www.sam-solutions.net

  • Web Dynpro: Where put hibernate hibernate.cfg.xml?

    I have seen several people asking about the place to put the config file of Hibernate, but not any conclusive answer until now...
       I created a external library in WAS (I verified using Visual Admin that the lib was correctly deployed). In my Web Dynpro References -> Library Reference I add the library in the format Provider Name/Library Name: "sap.com/hiblibs"
    <b>  Where can I store the hibernate.cfg.xml?</b> I have tried put it in all web dynpro folders!
    Thanks,
    Ivan Garcia
    From Brazil
    <b>  This is my source code:</b> 
      Configuration cfg = new Configuration();
      cfg.configure("hibernate.conf.xml");
    <b>  The error:</b>
      org.hibernate.HibernateException: hibernate.conf.xml not found
        at org.hibernate.util.ConfigHelper.getResourceAsStream(ConfigHelper.java:147)
        at org.hibernate.cfg.Configuration.getConfigurationInputStream(Configuration.java:1402)
        at org.hibernate.cfg.Configuration.configure(Configuration.java:1424)
    I have read all  forum topics about this, including:
    Where to put config files in webdynpro ?
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/bf0d57db-0c01-0010-6fa3-83503981eed4
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2ae0614a-0601-0010-a491-a9a635f06613
    Problem in placing hibernate.cfg.xml
    /people/bala.krishnan2/blog/2006/09/25/bid-adieu-to-bots--using-captchas
    /people/valery.silaev/blog/2005/09/14/a-bit-of-impractical-scripting-for-web-dynpro
    How to add external jar in web dynpro without going for DC
    Web Dynpro References
    Using External Library in Web Dynpro - Error
    Deploy external jar to WAS 6.40

    Hi Ivan,
    you need to make sure you place the configuration file where the application server's class loader will find it. If you are running Web Dynpros (or any other web application), you may put it under WEB-INF/classes of your web module.
    You may have J2EE applications without any web components - for example if you intend to only provide business logic for web services or rich clients. In this case you may not have any web modules, but will probably have some kind of EJB jars or such. The Hibernate POJOs are a more natural part of such jars rather then WARs (web modules). In this case you can put them under the root of this JAR. The class loader of the SAP J2EE Engine will load any property file placed in the class path of the class loader - whether it's a flat text file or an xml file. WEB-INF/classes or WEB-INF/lib is always in the class path of the (application) class loader.
    There is one thing you have to be aware of though. I do not know which version of Hibernate you are working with, but if you look at the source code of hibernate (the binaries are in the hibernate.jar) you will see that, the method Configuration.configure() without any argument will try to load the hibernate.cfg.xml from the current path - which means, the hibernate.jar and the hibernate.cfg.xml will have to reside under the same folder. But you do not seem to do this, so it is OK. This applies to versions of the NetWeaver 6.40 or 6.40s. Most likely this also applies to the new JEE 5 preview version of the NetWeaver application server also available for download on SDN, since to my knowledge the class loadign concepts have not been changed. But I have not tested this yet.
    Beyond the How-To-Guide about running Hibernate on NetWeaver (or SAP J2EE Engine) 6.40 we have also provided a sample application and its source code as IDE projects. Take a look at them and you will find the hibernate.cfg.xml file in the deployable EAR.
    I hope this answers your question and my comment has been helpful to you.
    Cheers, Goran

  • How to change the web page title of a web dynpro app?

    Hello,
    I would like to change the HTML page title of a web dynpro application without renaming the application component itself - but how?
    Thanks for your comments!

    Hi M Walter,
    Assuming you are using Web Dynpro Java, you can change the title of the Web Page for Web Dynpro App by adding the title to the main window of your app.
    Go to Windows and open the properties. There will be a field called 'title'. Give the title you want, save, build, DC->Build and deploy.
    The title you gave to this Window will be displayed as the title of your Web page.
    Regards,
    Ajay

  • Troubles with Windows 7 Enterprise and Web Dynpro for ABAP

    Hello together,
    we've installed Windows 7 Enterprise and IE 8 and are using Web Dynpro for ABAP.
    Since this installation on one Client, it is not possible to use the WD application - the sites seems to be frozen!
    I know the fact, that SAP will support Windows 7 in March 2010 but it would be very helpfull if someone could give me a hint to solve this problem before.
    Thanks in advance,
    Andreas

    >
    Andreas Damberger wrote:
    > Hello together,
    >
    > we've installed Windows 7 Enterprise and IE 8 and are using Web Dynpro for ABAP.
    > Since this installation on one Client, it is not possible to use the WD application - the sites seems to be frozen!
    >
    > I know the fact, that SAP will support Windows 7 in March 2010 but it would be very helpfull if someone could give me a hint to solve this problem before.
    >
    > Thanks in advance,
    > Andreas
    Hi,
    Go to internet explorer -> tools -> internet options -> Advanced
    There locate the check box "Enable memory protection to help migrate online attacks" and uncheck it.
    Let me know if that works.
    Regards
    Prasenjit

Maybe you are looking for