How to create a long text in webdynpro for abap?

Hi Experts,
                  I am new to Web Dynpro for ABAP, I have a requirement for Grievance workflow. For this we have developed a Webdynpro application which appears in portal. Here my issue is user wants to enter a long text on the screen and I have to save this text as standard text. Is it possible to create a text box which we can insert number of lines?
If so can anybody please suggest me how to resolve this issue.
Thank You.
Ranganadh.

hi ,
u can use the TEXT EDIT UI element , procced like this :
1 Right click on Root Element UI container , insert elemnt TEXT EDIT
2 create a context attribute of type string or string_table
3 bind value property of ur UI to this attribute
4 u can get the values entered in the text UI by user , by get_attribute method
press CNTRL + F7  , select the radio button read context node/attribute , select the corresponding attribute
The attribute to be bound can be of type STRING or STRING_TABLE. With STRING_TABLE rows from TextEdit are stored as table rows. A line break is always stored as a line feed in a STRING (CL_ABAP_CHAR_UTILITIES=>NEWLINE, ASCII decimal 10). The Web Dynpro framework carries out the conversion for the client platform.
Note that a string to be displayed in TextEdit, must only use a line feed as a line break.
refer this online help :
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/06/45ee412e5e6324e10000000a1550b0/content.htm
regards,
amit

Similar Messages

  • How to create an editable table in webdynpro for ABAP? Help!

    Hi Experts,
            I have a requirement where I have to create a webdynpro for ABAP table for new row/rows entry, delete row/rows and update row/rows data. This is something like table control in normal ABAP.
    how can I achieve this? Is there any such feature in ALV component?
    Any code sample will be really helpfull.
    Please help!
    Thanks
    Gopal

    Hi,
    yes, the ALV is integrated into WDA, have a look at this: http://help.sap.com/saphelp_nw2004s/helpdata/en/74/fd4142646ab46be10000000a155106/frameset.htm
    Regards, Heidi
    PS: look at the WDA Knowledge Center under https://www.sdn.sap.com/irj/sdn/developerareas/abap?rid=/library/uuid/02e1fa45-0801-0010-10a0-f1cf47e8c943, there you can find several ALV tutorials
    Message was edited by: Heidi von Geisau

  • How to create a LONG TEXT object in BAPI_ALM_NOTIF_CREATE

    Dear experts,
    Would you please give me a hand how to create a LONG TEXT object when creating a new Notification using BAPI_ALM_NOTIF_CREATE.
    The snapit of my code is below. The Notification is created but without a long text.
    THANK YOU!!
    Data:
        lv_it_longText type STANDARD TABLE OF BAPI2080_NOTFULLTXTI,
          lv_st_longText like LINE OF  lv_it_longText,
      lv_st_longText-OBJTYPE = 'QME'.
      lv_st_longText-TEXT_LINE = DESCRIPTIONLONG.
    CALL FUNCTION 'BAPI_ALM_NOTIF_CREATE'
      EXPORTING
      EXTERNAL_NUMBER          =
       notif_type               = 'M1'
        notifheader              = lv_header
      TASK_DETERMINATION       = ' '
      SENDER                   =
      ORDERID                  =
    IMPORTING
       NOTIFHEADER_EXPORT       = lv_header_import
    TABLES
    *NOTITEM                  =   lv_it_item
      NOTIFCAUS                =
      NOTIFACTV                =
      NOTIFTASK                =
      NOTIFPARTNR              =
       LONGTEXTS                = lv_it_longText
      KEY_RELATIONSHIPS        =
       RETURN                   = lv_it_return.

    Hi
    Make sure you have filled OBKEY.
    OBJKEY must have the corresponding sort field for the values named below :-
    1. QMEL - Notification header
    2. QMFE - Notification item
    3. QMUR - Notification cause
    4. QMSM - Notification task
    5. QMMA - Notification action
    The combination of sort field of item/cause, item/task and item/action must be unique within a notification. If you leave the sort field empty and the OBJTYP = QME, then a long text is created for the notification header.
    Regards
    Abhii

  • How to make cell editable alv in WebDynpro for ABAP?

    I make Column editable ALV.(See under source code)
    But I can't make Cell editable ALV.
    How to make Cell editable ALV in WebDynpro for ABAP?
    and..how to get changed data?
    DATA: l_value TYPE REF TO cl_salv_wd_config_table.
      l_value = l_ref_interfacecontroller->get_model( ).
    * { EDITABLE
      DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings,
            lr_input_field     TYPE REF TO cl_salv_wd_uie_input_field,
            lr_column          TYPE REF TO cl_salv_wd_column.
      lr_column_settings ?= l_value.
      lr_column = lr_column_settings->get_column( 'TOTAL_COUNT' ).
      CREATE OBJECT lr_input_field
        EXPORTING
          value_fieldname = 'TOTAL_COUNT'.
      lr_column->set_cell_editor( lr_input_field ).
      DATA: lr_table_settings TYPE REF TO if_salv_wd_table_settings.
      lr_table_settings ?= l_value.
      lr_table_settings->set_read_only( abap_false ).

    the code seems to be correct....but where are you writing it?
    put the code in the wddoinit method and it should work.
    have a look at this article..
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3133474a-0801-0010-d692-81827814a5a1

  • How to create a long text

    Want to create a long text field in Module pool table.
    How to create object, Object id? As text description for the Object id is to be copied into report.
    Ex. Form Header text is maintained in sales documents.This text is copied when description for object idis copied into report, if selected.

    Hi ABHISHEK,
    long texts can be created using FM SAVE_TEXT. Because text handling goes through special text memory, you need additional COMMIT_TEXT to store it on database.
    Object an ID are created in customizing.
    SAVE_TEXT will take ID, OBJECT, NAME, LANGUAGE and the textlines for import.
    Regards,
    Clemens

  • How to create customized long text in IDOC status record in WE02?

    Hi,
    In WE02 you can see the status of the idoc. If you double click on the short text that is coming in the status, you can see the long text. How do i customized my long text to that screen?

    To create a message long text in SE91:
        1. Place the cursor on the corresponding message.
        2. Click the Long text pushbutton.
        3. Enter the long text.
        4. Save the data.
    Edited by: YTL on Jun 27, 2011 5:51 PM

  • How to create a long text in VF01 before saving the document

    Hi,
      Im tring to create a perfama invoice with the help of delivery number and document type (F8) , by pressing the enter key im going to the second screen, once i get into the second screen im suppose to get the Header text and Item text, i.e long text for both header and item..
    Can u please help me to solve this issue.
    Thanks,
    Reni

    Hi
    Generally in the Sales Flow all the Header and Item texts from sales order are copied into Delivery when it is created and when you create a Invoice using that delivery all those texts are copied into the invoice. check with functioanl consultant once and see.
    We can also create/upload  the texts explicitely using the fun modules
    CREATE_TEXT and SAVE_TEXT .
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • How to create a long text in phrase

    The text in phrase allows only certain limit. How can we enable to have long text and how to open it and put long description .
    Regards,
    M D

    Dear M D
    this is a very basic  question in use of EHS. PLease check: SAP EHS Management for Beginners
    You will find may be some help
    C.B.

  • How to create an xml structure in webdynpro for java using NWDS?

    Hi Experts,
    I need to call an webservice by passing an xml structure to the webservice.I have the input values loaded on the context,which are basically tied to an Form UI element.Is there anyway in webdynpro to build an xml structure. ,
    or do i need to use any open source like JAAS or DOM parser in the webdynpro project.?
    Thanks
    Aravind

    hi,
    I was working on exporting table data from wd to Excel sheet. There, i had to create an XML representaion of the context.
    Please refer to link, and go through page, 10 and 11 and see id you find anything useful.
    [https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/webdynpro/wd%20java/wdjava%20archive/exporting%20context%20data%20into%20excel%20using%20the%20web%20dynpro%20binary%20cache.pdf]

  • Error creating dynamic context node in Webdynpro for ABAP. Plesae help!

    Hi
       I am getting the following error while creating a dynamic context node with 2 attributes. Please help me resolve this problem.
    Note
    The following error text was processed in the system PET : Line types of an internal table and a work area not compatible.
    The error occurred on the application server FMSAP995_PET_02 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: IF_WD_CONTEXT_NODE~GET_STATIC_ATTRIBUTES_TABLE of program CL_WDR_CONTEXT_NODE_VAL=======CP
    Method: GET_REF_TO_TABLE of program CL_SALV_WD_DATA_TABLE=========CP
    Method: EXECUTE of program CL_SALV_WD_SERVICE_MANAGER====CP
    Method: APPLY_SERVICES of program CL_SALV_BS_RESULT_DATA_TABLE==CP
    Method: REFRESH of program CL_SALV_BS_RESULT_DATA_TABLE==CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~MAP_FROM_SOURCE_DATA of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~MAP_FROM_SOURCE of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~UPDATE of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_VIEW~MODIFY of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMPONENT~VIEW_MODIFY of program CL_SALV_WD_A_COMPONENT========CP
    My code is like the following:
    TYPES: BEGIN OF t_type,
                CARRID TYPE sflight-carrid,
                CONNID TYPE sflight-connid,
             END OF t_type.
      Data:  i_struc type table of t_type,
      dyn_node   type ref to if_wd_context_node,
      rootnode_info   type ref to if_wd_context_node_info,
      i_node_att type wdr_context_attr_info_map,
      wa_node_att type line of wdr_context_attr_info_map.
          wa_node_att-name = 'CARRID'.
          wa_node_att-TYPE_NAME = 'SFLIGHT-CARRID'.
          insert wa_node_att into table i_node_att.
          wa_node_att-name = 'CONNID'.
          wa_node_att-TYPE_NAME = 'SFLIGHT-CONNID'.
          insert wa_node_att into table i_node_att.
    clear i_struc. refresh i_struc.
      select carrid connid into corresponding fields of table i_struc from sflight where carrid = 'AA'.
    rootnode_info = wd_context->get_node_info( ).
    rootnode_info->add_new_child_node( name = 'DYNFLIGHT'
                                       attributes = i_node_att
                                       is_multiple = abap_true ).
    dyn_node = wd_context->get_child_node( 'DYNFLIGHT' ).
    dyn_node->bind_table( i_struc ).
    l_ref_interfacecontroller->set_data( dyn_node ).
    I am trying to create a new node. That is
    CONTEXT
    - DYNFLIGHT
    CARRID
    CONNID
    As you see above I am trying to create 'DYNFLIGHT' along with the 2 attributes which are inside this node. The structure of the node that is, no.of attributes may vary based on some condition. Thats why I am trying to create a node dynamically.
    Also I cannot define the structure in the ABAP dictionary because it changes based on condition

    Ok, I think I found a bug... It seems for adobe forms in WD4A, the root context node must be 1-1 and you must nest the 1-n node within that... Not sure why, but it worked. So in my case my context would look like this:
    FOO_NODE (1-1)
         Widget (1-N)
              -Widget_info (1-1)
                   *Name
                   *Sku
                   *Description
              -Widget_plant (1-M)
                   *Plant_Code
                   *Plant_State
                   *Plant_City
              -Widget_pic (1-1)
                   *Picture

  • How to call a BSP Application inside Webdynpro for  ABAP

    Is there any way to call a BSP application inside the webdynpro ABAP application..
    The Input screen will be the BSP page and when the user click the action it have to trigger some data in BSP and in turn it have to collaborate the manipulated data in webdynpro and shows the output in webdynpro or in BSP..

    pls refer to http://help.sap.com/saphelp_nw70/helpdata/EN/30/1b62799d786445a72ad85acb4fd55b/content.htm
    and check if it helps u

  • How To convert XSTRING To LRAW in Webdynpro For ABAP

    Hi,
         In my application , I want to convert XSTRING TO LRAW.
    Please Suggest me how to achieve this.
    Thanks,
       Pratibha

    What do you mean convert?  XSTRING and LRAW are the same thing - an unlimited byte sequence.  LRAW is generally used to describe an XSTRING based database column.  You can insert XSTRING directly into a LRAW column using SQL.  No conversion or special processing is necessary.
    Also I don't see how this question is related to Web Dynpro ABAP.  This seems like a general ABAP language question.

  • How to create interactive forms using Webdynpro for ABAP

    Hi All,
             I have worked on Webdynpro for ABAP, and now I want to start creating adobe interactive forms using Webdynpro for ABAP. Please provide me with basic examples to start.
    Also Please provide me introduction as how interactive forms are related to ISR senarios.
    Thanks in Advance.
    Phani

    Hi Varun!,
    Can you please send me also the above said step by step tutorial on [email protected]
    and can you please also guide me any configurations to be done on Sneak Preview SP12 before developing the interactive forms.
    Thank you in advance.
    regards
    Ravi

  • How can we Access RFC of R/3 in WEBDYNPRO FOR ABAP?

    Hi all,
    i wnat to access a Function Module(RFC) which has created in R/3 in WEBDYNPRO FOR ABAP.Can i access it through SERVICE CALL.or if any other process there.?And how can i map their context & how can i execute?
    Edited by: ravi k on Mar 27, 2008 1:07 PM

    Hi,
    you can find a [pdf document|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9cb5d345-0801-0010-6a8e-fc57c23fd600] here.
    grtz,
    Koen

  • Interactive Forms by WebDynpro for ABAP

    Hello,
    I'd like to create Adobe Interactive Forms by "WebDynpro for ABAP".
    Our business requirements are
    - to download offline PDF forms.
    - to upload PDF forms and display Forms online.
    Please let me know how to do this and the document or blogs.
    Best regards,
    Koji

    Hi,
    Downloading a form is as simple as when u enduser opens a form online, he just saves a copy of it, fills it up and uploading is just the next step.
    If u want to upload an offline PDF form:
    Here's the link that'll give a fair idea about this:
    /people/shruti.rathour/blog/2008/02/07/uploading-sap-interactive-form-on-the-abap-webdynpro-view
    If still not clear ask me..
    It's just that u've created a view in webdynpro ABAP and uploading an offline form from that.
    regards
    Amita

Maybe you are looking for

  • Modbus can't share variables: error -1967353901

    Hi guys, I'm using for my first time the dsc module, and specially the modbus communication part. I've tried on winXP (installed on VMware) the given exemples: Modbus Fundamentals.vi and ModbusSimulator.vi work, but when i want to build mine, it's go

  • Best approach to reduce size of 400GB PO (yikes!)

    Hi fellow Groupwise gurus, Am taking a position with a new company that has just informed me they have a 400GB PO message store. I informed them that, uh yea, this is a bit of a problem. So, I am starting to consider best way(s) to deal with this. Th

  • Why does my trackpad always show 100% in system preferences?

    I read where someone is having the exact problem but with the keyboard instead. A widget was suggested as a work around but is it a problem with Lion or is there something else I could do to fix it. Thanks

  • Lightroom 4 crashes on import

    Windows 7, Home Edition, version 6.1 service pack 1 Intel 7, with more than 400gb memory available I've now spent more than 32 hours trying to solve this problem, including two phone calls and three chat sessions with Adobe Help Desk.  The Help desk

  • Import wizard does not import the tables

    Data Modeler Version 3.1.4.710 I want to create ERD from tables in fusion schema Opened Data modeler Selected file -> import -> Data Dictionary selected the fusion schema -> Next found no tables listed !!!