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.

Similar Messages

  • Adding a field in Web dynpro java in Travel Request application

    Hi All,
    How to add a field in Web dynpro java in Travel Request application or can we copy the Web dynpro java application to Web dynpro ABAP and add a field. Experts, Can you please suggest me step by step in resolving the problem.
    Thanks & Regards,
    Kumar

    Hi Kumar,
    First, in order to customise the ESS webdynpro Java iViews you need to be aware that, you are about to change the SAP standard iviews. In order to avoid this you can make a copy of the SAP standard one's and then try to customise the copied one's.
    Now, you should have NetWeaver Development Infrastructure(NWDI) installed. Once it is installed you should also install the Netweaver Developer Studio (NWDS) on your computer.
    Once you have these two installed, you should deploy the ESS Business Package onto the NWDI by creating tracks. There is a cookbook available on SAP Service Marketplace for configuring NWDI for ESS.
    Once you have all the above mentioned tools, have a look at the following blog which clearly explains about the procedure of customising ESS iviews.
    /people/vinoth.murugaiyan/blog/2007/08/24/essmss-customization-150-make-it-simple
    Also check the following Wiki, this might be useful!
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/erphcm/employee%252bself%252bservice
    I hope this helps. Let me know if you have any issues.
    Dont forgett to contribute points if this is useful! All the Best.
    Regards,
    PG

  • Adding text field to SC item Dynpro

    Hi Experts,
    I need to add new text field on SC Dynpro for standard field "product type". In standard it has two value : "01" or "02". And I nedd to add near "Material" or "Service". 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.

  • Clear/refresh(F5) fields in web dynpro application view

    How to clear or refresh(F5) fields in web dynpro application abap while redirecting to another view? I have tried using "context_node->invalidate()" but it's not working for all the fields, some are getting initialised and some not. Is there any other method to refresh all the fields in the view all at once. Please guide.

    Hi,
    For the Context node( to which the drop down is bound) create a supply function as shown below:
    Now populate the drop down in supply function method instead of WDDOINIT method.
    Go to methods tab and write the below code in supply function method:
    DATA lo_nd_drop TYPE REF TO if_wd_context_node.
        DATA lt_drop TYPE wd_this->elements_drop.
        DATA ls_drop TYPE wd_this->element_drop.
    *Fill Drop down
        ls_drop-val = 'ABC'.
        APPEND ls_drop to lt_drop.
        ls_drop-val = 'DEF'.
        APPEND ls_drop to lt_drop.
    * bind all the elements
       node->bind_table(
         new_items            =  lt_drop
         set_initial_elements = abap_true ).
    Now once you call invalidate( ) the drop down will automatically be initialized( since the supply function will be called again) And you don't have to write the code again to populate the drop down.
    hope it's clear now.
    Regards,
    Kiran

  • 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.

  • Input field in Web Dynpro ALV does not have correct focus

    Hello Friends,
    Our client's SAP system is recently upgraded with ECC 6.0 SP 18.
    After that the focus in the editable field of Web Dynpro ALV does not working properly by down arrow navigation.
    The common scenario:
    The ALV has more than one rows and one column is editable...
    when user is selecting field of first row and making some entries...
    after that pressing down arrow it is going to next row and coloring the field like focusing...
    but the 'cursor' is not blinking so user can not make entry without clicking by mouse...
    this was working Ok before upgrade...
    Could you please anyone have a look and propose a suitable solution?
    Thanks
    Krish

    Hello,
    The problem was with Javascript....which play an important role in layout of web dynpro ALV...
    which resides in MIME repository -> SAP ->PUBLIC - >BC ->NW5 ->JS ->SAPURI_Ie6....
    We wrote to SAP for giving us the fix...
    after we got a new file from SAP the problem is solved...
    also we have to clear server cache through SMICM and client cache...
    Thanks.
    K.

  • 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

  • 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 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.

  • Custom seach help for standard field in Web dynpro application

    Hi All,
    I have a requirement in SRM portal where in I have a to add a custom search help to the 'WBS_ELEMENT' field in the the 'ACCOUNT ASSIGNMENT' tab of the Shopping cart creation screen with some input parameters on the search help.
    As the SRM Shopping cartcreation screen is a standard web dynpro application.
    Can anyone help me in this regard for addition of search help for a field with some custom fields in the Search help screen.
    Any inputs will be very helpful.
    Thanks in advance.
    Regards,
    Ahmed.

    Hi Ahmed,
    If it is an standard application then you will have to do ENHANCEMENT in the component. And for using customised value help you will have to declare attribute in CONTEXT and dynamically change the binding of the Value property of UI element inside post-method of WDDOMODIFY. You can create your own customised value help for newly added attribute.
    Thanks,
    Vishesh

  • Validating Input field in Web Dynpro

    Hi All,
    Could you please tell me how do I use set_attribute and get_attribute methods to get the user input from the dynpro screen?
    The user enters some data in the input field. I need to get this data and validate it.
    Please tell me how to get the user input.
    Thanks & Regards,
    Srilakshmi B

    hi,
    you can go through it,might be your problem solve.
    Example for Using Messages
    The following example shows how you can use messages created in the Message Editor. In the example, both messages with static text and messages that are dependent on user inputs – that is, messages with dynamic text – are defined.
    Description of Example
    Users can create a domain in this sample application. They can then enter a number in the next input field and press Click here to validate. If the specified number lies in the previously specified range, the user is informed of this fact in a standard message. If the number does not lie within this domain, the user sees a warning message.
    Prerequisites
    You have created a Web Dynpro application and defined view “MainView” within a Web Dynpro component.
    Procedure
    Creating the View
    Define the view as illustrated below:
    Context Creation:
    The context that provides the data is created as follows:
           1.      Create a context node, UIElem
           2.      Set the propertycardinality to 1..1 for the context node.
           3.      Create the context attributes a, b, and TypeField.
           4.      Set the Type of the context attributes to Integer.
    Data Binding
    To make the messages dynamic with regard to specification of the domain, the user inputs have to be saved. To do this, the input fields have to be bound to the context.
    sss
    Object
    Object ID
    Data Binding to Attribute
    Path Within the Context Structure
    a
    Input Field
    A
      MainView.UIElem.a
    b
    Input Field
    B
      MainView.UIElem.b
    Children_2
    Input Field
    TypeField
      MainView.UIElem.TypField
    In addition, bind the Children_3 pushbutton to action ValidateAction, which you also have to create.
    Creating Messages in the Message Pool
    The Web Dynpro tools provide a special message editor for defining messages of different types. 
    A message is defined by a specified key, message type, and message text. The message types  error,  warning, and  standard are predefined.
    Create the following messages:
    Messages Defined in the Message Editor
    Message Key
    Message Type
    Message text
    key1
    warning
    Please enter a number between the range of and !
      and are placeholders for the user input (the domain), which changes dynamically.
    key2
    standard
    The value entered is within the valid range.
    Implementation
    Because the messages are only displayed when the user Chooses Click here to validate, the messages must be implemented in the method onActionValidateAction:
    Implementierung der Methode onActionValidateAction()
    //@@begin imports
    import com.sap.tc.webdynpro.progmodel.controller.MessageManager;
    import com.sap.test.errorhandlingtest1.wdp.IMessageErrorhandlingTest1;
    import com.sap.test.errorhandlingtest1.wdp.IPrivateMainView;
    //@@end
    public void onActionValidateAction(
                           com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent)
        //@@begin
       int i = wdContext.currentUIElemElement().getTypField();
       int a = wdContext.currentUIElemElement().getA();
       int b = wdContext.currentUIElemElement().getB();
       MessageManager msgMgr =
             (MessageManager)wdThis.wdGetAPI().getComponent().getMessageManager();
       if (a < i && i < b)
             msgMgr.reportMessage(IMessageErrorhandlingTest1.KEY2, null, true);
       else
             Object[] arg ={new Integer(a), new Integer(b)};
             msgMgr.reportMessage(IMessageErrorhandlingTest1.KEY1, arg, true);
        //@@end
    The following tasks have been implemented in this method:
           1.      Read user inputs:
    int I = wdContext.currentUIElemElement().getTypField();
    int a = wdContext.currentUIElemElement().getA();
    int b = wdContext.currentUIElemElement().getB();
    1.       Read messages from the Message Manager:
    MessageManager msgMgr =
                 (MessageManager) wdThis.wdGetAPI().getComponent().getMessageManager();
    2.       Does the input lie within the defined domain?
    if (a < i && I < b)
    3.       Call the  standard message when the input lies within the domain:
    MsgMgr.reportMessage(IMessageErrorhandlingTest1.KEY2, null);
    Method reportMessage can be used to read the messages from the Message Manager. In this way you define the key and the objects that you want to change dynamically in the messages. Because no dynamic text was defined in your standard messages, you define null as a parameter.
    4.       Call the  warning messages when the input does not lie within the domain:
    Object[] arg ={new Integer(a), new Integer(b)};
    MsgMgr.reportMessage(IMessageErrorhandlingTest1.KEY1, arg);
    Because the warning messages ( Please enter a number between the range of  and !) contain text that depends on the user input, you also have to define the parameters for the domain in an object array. In the messages, the first object is then called from the array with (and the second with , and so on).
    Result
    After you have built and deployed your application, you can call it by choosing Run.
    If the user enters a number that lies within the defined domain, a standard message is displayed:
    If the user enters a number that does not lie within the defined domain, a warning message is displayed:

  • Srm 7.0 - Hide field in web dynpro using configurations

    Hello to all,
    I'm trying to hide some fields on PO web dynpro. In this example on web dynpro /SAPSRM/WDC_DODC_PO_I_BD I start the component configuration /SAPSRM/WDCC_DODC_PO_I_BD, I search for the fields I want to hide and put the visibility attribute to Invisible and I mark final check box.
    The fields don't dessapear from the web dynpro. Am I missing something?
    Best regards,
    Nacho

    Thanks for your reply.
    I have here two situations:
    SPRO. If I add the field on Configure Field Control at Header Level/Item Level it disapears but not all fields appear on this transaction. For example, I can't do that to tolerance group (TOL_GP)
    Webdynpro. Using Component Configuration of the dynpro. I guess that it is in two actions:
       - Change the value of visibility to Invisible on Web dynpro Built-In
       - Add field to context. I put for this example:
             Attributes of the Element usagesDefinition (ITEM_TOL.TOL_GP)
                     usageName ITEM_TOL.TOL_GP
                     componentName ITEM_TOL.TOL_GP
                     ConfigurationName /SAPSRM/WDCC_DODC_PO_I_BD
    The webdynpro way doesn't work, Am I missing something?
    Best regards,
    Nacho

  • Adding text field to e-mail subject

    Hi all,
    I've got a button on my form that should submit the form in pdf format, to a fixed mail address with a fixed subject message, that has variable content dragged from a text field, i.e "Subject; New e-DCR <TextField12.rawValue>"
    Firstly, I got everytihng working with an automatic Submit by E-mail button, but couldn't solve the subject line text issue.  Next, I added a normal button, with a Regular controil type, & tried the following script (from another forum post) under the Click event in script editor - now, the button won't even fire....
    var Mailto = "[email protected]";
    var Subject = "New e-DCR" + TextField12.rawValue;
    var Mail = "mailto:" + Mailto + "?Subject=" + Subject;
    event.click.submitForm({
    cURL: Mail,
    bEmpty: true,
    cSubmitAs: "PDF"
    I'm a complete n00b at scripting, so any advice & help would be very much appreciated.  Thanks!

    Hi Ian,
    This can be done by using a dummy submit button.  Try the following.
    Drag a button into the form. Lets name it as DummySubmitButton. Then in the control Type select Submit. In the Presence dropdown select Invisible.Then select Submit tab next to Field tab.Then in the SubmitURl mention the url you want to send. Like this - mailto:[email protected] Select Submit As XML/ PDF as you want. This button will not be visible in the form.
    Now drag another button. Lets name as SubmitButton. This will be visible in the form. It will be or regular control type. In the click event of this SubmitButton write the following code
    DummySubmitButton.event__click.submit.target = "mailto:[email protected]" + "?subject=" + "New e-DCR " + TextField12.rawValue ;
    DummySubmitButton..execEvent("click");
    What this script will do is it will use set the submit functionality like mailto, Subject before submitting. After setting these parameters finally the click event of the dummy button would be called and it will submit the form.
    Hope this helps.
    Thanks,
    Bibhu.

  • 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

Maybe you are looking for