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

Similar Messages

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

  • SUBMIT(to SAP) Button in Adobe Interactive Forms (Web Dynpro Java)

    Hi ,
    I m using Adobe Interactive Forms with Web Dynpro Java
    But submit to SAP button is not working
    i m using NWDS 7.2 with adobe lifecycledesigner 6.0
    with adobe reader 9.0
    when i click submit to SAP button in interactive form nothing happens and
    data is not transfered into web dynpro Context
    Can anybody help me out................

    Hi Adi,
    The evniorment and versions you posted seems to be quite scattered, make sure all are of compatible and to the lates.
    Anyways this was not the reason for your problem.
    Can you tace if the button click event is triggered ....?
    1) when the PDF is published can you see any of the fields editable...? reason behind is generally when you create a form in ADLC it comes up in static PDF format if its so you need to make it dynamic.
    I dont know if adding the webdynpro script to your form might fix.
    Regards,
    Sai

  • Date Column not getting sorted in a table in web Dynpro Java

    Hi All,
    I am facing an issue while sorting the date column in a table in my web dynpro java application.
    When the date is displayed in the sql format in tha table, I am able to sort the date column successfully but when we convert the date field from sql format to util format in our table and then sort it does not work.
    Kindly let us know the steps to be followed in this case to sort the date column of a table in Simple Date format as we do not want date in the sql format to be displayed.
    Thanks & Regards,
    Anurag

    Hi,
    You might want to check whether both your browser's language settings are identical. The browser language could also determine the date format.
    As a workaround, you could add an extra attribute to your context, and set the calculated property to 'true'.
    In your table, add a new column and bind to this new attribute, and hide your original date column
    If you sort using the date column that's hidden now, you could use the calculated field to fixed-format your date the way you prefer (by using the SimpleDateFormatter class for instance)
    Cheers,
    Robin

  • Synchronization in Web Dynpro JAVA

    Hi All,
    I have a Web Dynpro JAVA application, for which an iView has been created and is assigned to a role. Now I have the below requirement,
    If two users tries to access this application at the same time then the second user has to get a message stating that "A user is already accessing this application please try later". Basically the thread concept. Is it possible to achieve this in Web Dynpro JAVA. If yes please provide me some pointers on how to achieve this.
    Thanks & Regards,
    Vishweshwara

    Hi Vishweshwara,
    Create the Custum table with UserID fields.
    Create the RFC with UserID fields as input parameters and result  field as export parameter.
    Write the logic in RFC if Custum table contains any value in UserID Field then return error message like " This application is already using by  <UserID>"
    else
    stor the values UserID and LoginStatus(which you are sending from Webdynpr java app) in custom table and  return success message.
    Create webdynpro java component and create two iview called main and info view
    import the RFC in webdynpro java app and do the binding from model to component controller and component controller to view controller of main.
    Write the following code in wdDoInit() method of main view to get the login userid and sending that to RFC.
    String userID = null;
    IWDClientUser clientUser = WDClientUser.getCurrentUser();
    IUser User = clientUser.getSAPUser();
    if (User != null)
    try
    IUserAccount[] acct = User.getUserAccounts();
    if(acct[0] != null)
    userID = acct[0].getLogonUid();
    wdContext.current<RFCNodeName>Element().setUserID(userID);
    catch(UMException e)
    //Raise some error msg according to your scenario.
    //code for calling the RFC
    wdThis.wdGet<ComponentControllerName>().execute();
    String msg = wdContext.current<OutputNodeName>Element().getResult();
    if(msg != null && msg.lenght() !=0)
        if(msg.equalsIgnoreCase("This application is already using by  <UserID>")
              wdThis.wdFirPlug<PlugName>();// code for naivigate from main view to info view
    the navigation between main view to info view needs to defined in navigation moduler area.
    if you foolow the above specified way u can achive your requerment.
    Revert back if you any quaries.
    Thanks & Regards,
    bhargava.

  • Enhancements / Modifications in Web Dynpro Java

    Hi, all!
    I' ve a more general question: Are there any enhancement concepts for Web Dynpro Java available or at least planned that would give developers the same comfort and possibilities ABAP programmers have?
    I mean, will there ever be an Enhancement Framework like in ABAP - modification free enhancements via BADIs or customer exits?
    Think of one of SAPs WDJ flagship - the ESS/MSS. If you want to change anything within, you have no other possibility but to modify the sources. Considering this - together with the weak possibilities of backend access via JCo - I give the WDJ not a chance to stand the challenge of WD4A.
    Regards,
    Thomas

    Hi!
    I' m just going through the hep-pages, but what I can definitly say by now is that there' s no enhancement-concept in sight. This matter is getting kind of really embarrassing and leaves the question open: What the heck should an SAP customer persuade to focus on Java Development? No enhancements, no direct data access, no easy debugging possibilities like in ABAP.
    I' ve started with WDJ, but digging deeper into WD4A I' m getting more and more convinced that the whole Java thing was just something like a playground field for the development of the programming model and is now getting more and more obsolete with the rising of WD4A.
    Correct me, if I' m wrong, and forgive me, if I' m flaming, but when I started with Java development in SAP enviroment I was quite enthusiastic and didn' t understand resentiments of the ABAP developers against our programming language, but now I' m more and more joining their opinion.
    Regards,
    Thomas
    PS: I' ve - by the way - done the SAP Java Certification and am already regretting it.

  • InteractiveForm UI Element in Web Dynpro Java - Image not displayed on form

    Hello Experts,
    Using: NetWeaver Developer Studio 7.0.1_06; Adobe Livecycle Designer 8.1.
    I have an image "image.png" in my src/mimes/components/com.mm.InteractiveFormComp folder within my web dynpro java project.
    I load the image into my context in wdDoInit method in the comp controller:
    wdContext.currentContextElement().setImage("image.png");
    In the interactiveform I have an ImageField on the form and have set its properties as follows:
    Field - URL = http:[host]:[port]/webdynpro/dispatcher/InteractiveFormComp/src/mimes/components/com.mm.InteractiveFormComp/image.png
    Field - Embed Image Data = "checked"
    Binding - Default Binding = Image
    However, no image ever shows up on the form. I have also been through many threads in the forums but havent found a solution. Can anyone please assist me?
    Regards,
    MM.

    Hello,
    I tried using jpg and bmp. Didn't work.
    Any other suggestions?
    Regards,
    MM
    Solved it!
    Edited by: Marshall Mathers on Mar 9, 2011 9:53 PM

  • Problems with Adobe PDF forms in Web Dynpro Java

    As of now , I have two major issues in developing Adobe PDF forms in Web Dynpro Java .
    1.Text getting wrapped and repeated from the first line :
    Any text field that flows to the next page gets wrapped at the end of the page and is again printed on the next page beginning from the first line .
    For eg:
    If I have 4 lines in a text field that is at the end of the page
    1111111111111111111111
    2222222222222222222222
    3333333333333333333333
    4444444444444444444444
    and the page holds space for only two lines it prints the lines
    1111111111111111111111
    2222222222222222222222
    in the first page and then proceeds to the next page and prints
    1111111111111111111111
    2222222222222222222222
    rather than printing
    3333333333333333333333
    4444444444444444444444
    2.No way to hide a page at runtime:
    It is not possible to hide a page in a PDF form at runtime . If scripting is used , the page turns into a blank page but not hidden .
    Any pointers on this????????
    Helpful answers will be suitably rewarded with points!!!!

    Yes,I am using the versions that you mentioned.
    I have a node called <b>MasterData</b> which is the root node for my PDF Form.I have a node called <b>GenData</b> inside this node whose <b>ctx_Appraisal_Type_Num</b> attribute is bound to a hidden TextField in my form.In the <b>docReady</b> event of this TextField, I am writing the following FormCalc script to hide my SubForm whose Id is <b>MngrCmptnc</b>
    if(MasterData.GenData.ctx_Appraisal_Type_Num == "2")
    then
    MasterData.MngrCmptnc.presence = "visible"
    MasterData.MngrCmptnc.MngrCmptnc.presence = "visible"
    MasterData.StrImp.presence = "visible"
    else
    MasterData.MngrCmptnc.presence = "hidden"
    MasterData.MngrCmptnc.MngrCmptnc.presence = "hidden"
    MasterData.StrImp.presence = "hidden"
    endif

  • Web Dynpro Java UI Customization from Portal Using CTRL+Right Click in Prev

    Hi Team,
    I am able to hide some Web Dynpro UI elements from Portal Content Administration >> Web Dynpro iView >> Preview and by Pressing CTRL+RIGHT CLICK.
    Here I need to understand the concept like how things work in this case. If we hide some UI in Web Dynpro Java iView customization will there not be any RFC/BAPI calls associated with that particular UI
    For Example: Web Dynpro iView is made up of CompA and CompB and I am going to hide the UI associated with CompA. When I invoke the application will there not be any activity like invoking CompA calling associated RFC/BAPI etc related to CompA
    Please help me in understand the concepts and performance implications on this.
    Regards
    Sudhir

    Hi Sudhir
    You are quite right to raise this concern
    If you start hiding elements you may find a change to functionality
    For example - in ESS - if you hide a field that is set to mandatory in the back-end ECC when the user
    goes to edit the screen they will not see the field and not maintain the field but they will get an error
    "fill in all required fields" - which will completely confuse them as they will have filled in all displayed fields
    Also if you hide one field in ESS that is required to populate another field this too many causes inconsistencies or errors
    Ideal UI elements to hide are those that have been set to unsued (in the case of ESS in the back-end) and have no dependancies to other fields - however there is no complete list - you must test each scenario to your satisfaction
    Best wishes
    Stuart

  • Web Dynpro Java timesheet to Web Dynpro ABAP timesheet  what changes needs to be done from EP side

    Hi All,
    We are moving Web Dynpro Java timesheet to Web Dynpro ABAP timesheet.
    what changes needs to be done from EP side?
    I have made Web Dynpro ABAP iView calling Web Dynpro ABAP timesheet and linked it with page.
    But It is showing an error 'Web Dynpro Application CATDATARECORD does not exist'.
    Please suggest what other changes needs to be done.

    Hi Anurag,
    I have added new Web Dynpro ABAP iView to the same page in which Web Dynpro JAVA iview was added and made ABAP iview visible.
    And this page is already assigned to role.
    How should I link this ABAP iview so that it get replace by the Web Dynpro JAVA iview.
    And the  application name (CATDATARECORD) is correct and Web Dynpro JAVA is using the same application.
    But now we want new time timesheet for that what changes needs to be done?
    Please suggest.

  • How to use Web Dynpro Java isChanged and isChangedByClient

    Hello,
    I have read thorugh a lot of documentation, threads, ... --> but the picture is not geting clearer fro me.
    We have Web Dynpro Java Application (on Netweaver 7.0 SP12) running in Enterprise Portal. We need to tell the portal work protect mode, that we have unsaved changes (how to do this is clear).
    I am struggling with figuring out, that my Web Dynpro Context has unsaved changes. I found the two change-indicators isChanged() and isChangedByClient(), which already confuses me a little bit.
    Anyway, this is what I have figured out so far:
    I am calling wdContext.currentContextElement().isChangedByClient() to figure out changes and when a Save operation has been completed sucessfully, I call wdContext.currentContextElement().node().getContext().resetChangedByClient(). This works for some of the changes made by the user.
    I then tried calling wdContext.nodeABC().getElementAt(i).isChanged() for all nodes of my Web Dynpro Context, but this results in detecting changes before the user ha done any interaction.
    Implementing an own change tracking (i.e. by adding a changed-Attribute to each context node) does not seem a viable option for me.
    So these are my questions:
    - Does anyone now a working pattern relying on those chnage indicators ?
    - Does anyone now how to reset the isChanged indicator (or when it is resetted by the framework) ?
    Any help appreciated.
    Thank you,
    Stefan

    Hi
    Check this link
    Re: How to keep isChangedbyClient flag set between roundtrips?
    http://help.sap.com/javadocs/NW04/current/wd/com/sap/tc/webdynpro/progmodel/api/IWDNodeElement.html
    Thanks

  • Standard F4 (search help) in the web dynpro JAVA

    Hi,
             I have a small doubt in web dynpro Java. Basically I am an ABAP developer. We created some custom Remote function modules (RFM). Now are able to call RFM through web dynpro JAVA in the portal. We are able to run the RFMs in the portal.
             But we have problem with search help. How can I built the search help for the input fields in the portal using web Dynpro  Java.
             Can we bring standard search help (which is exist in R/3) in the portal?

    Hi,
    I think there is no standered functionality available in WDJava to achieve this functionality like ABAP or WDAbap. but, you can still achieve this using OVS option. to do this also, first you should have an interface which can talk to the R3 system and search the dB as per the query parameters i.e, an RFC which can the desired form of input and give you the desired output.
    for more info on OVS, please look into this below links.
    OVS:
    Web Dynpro Java Tutorials and Samples NW 2004 [original link is broken]#51 [original link is broken]
    WDJ tutorials:
    Web Dynpro Java Tutorials and Samples NW 2004 [original link is broken]

  • About Adobe Form and Web dynpro Java development

    Hello experts,
    We had  a requirement to display different Adboe Forms dynmaticlly in Web dynpro Java application.
    There is only one Web dynpro Java application, but 10 Adobe Forms . If user "a" access the application ,display form 1 ; if user "b" access the application , display form 2 ;  if user "c" access the application , display form 3.... just like this.
    There are about 30 fields in BAPI which Web dynpro Java application called . Form 1 mapping to field 1 to field 3, Form 2 mapping to field 4 to field 6, Form 3 mapping to field 7 to field 9 ....
    Is it possible ? If it is possible , could you please give me a solution ?
    Thank you in advance !
    Best Regards,
    Louis

    Siva,
    I referred to the website, but still having issues with generating tables in Adobe Form. I can get all the table rows in the adove form, but the pdf doee not add new pages to display all the table rows. It just createa one page with the table inside it, display few of the rows and truncates rest of the table data.
    Here is the heirarchy of the page with the properties set
    Master Pages ---
            ||--> Page 1
                     ||--> content area
                     ||--> subfrom (properties:: Content - Flowed / Flow direction - top to bottom...pagination tab is greayed out completly)
                                ||--> Table
                                          ||--> HeaderRows (Object: Row - Type: Header Row)
                                          ||--> Row1 (Object Tab/Binding: Repeat Row for each data item - checked)
    Can't make it wor, not sure what's wrong here
    I am using NDS 7.0 SP18 and Adobe LiveCycle 8.0. Does that could be a problem.
    Appreciate your help
    John

  • 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

  • Controlling visibility of Web Dynpro Java iView in portal WDJ page

    I should be able to use the WDPortalUtils interface in my Web Dynpro Java DC application to get the name of the iView in my Portal WDJ page using IWDPageService method getVisibleIViews(). My intent is to add another iView to this page and programmatically control the visibility of each iView from my WDJ application.
    -> Instructions I have found through my online research indicate I should not have to specify a sharing reference because I am using the WDJ framework, but I tried it anyway. It didn't work.
    -> I have added DC epbc.prtapi._api public part to my used DC's, and specified dependency at both Build time and Run time.
    -> My portal page template is of type Web Dynpro Proxy Page.
    -> My iView template is of type Web Dynpro Proxy iView.
    -> The Page Content view of my page shows the 'visible' checkbox set for my iView.
    The following statements in the wdDoInit() method of my DC's view controller should return the portal name of my iView:
    IWDPageService pageService = (IWDPageService) WDPortalUtils.getService(WDPortalServiceType.PAGE_SERVICE);
    String[] iViews = pageService.getVisibleIViews();
    I get no compile time errors or runtime errors when I execute these statements.
    BUT...
    Instead of a String array, I get back a memory space pointer.
    Example: [Ljava.lang.String;@664e664e
    What am I missing?

    Hi Jennifer,
    That's what this forum is all about; finding solutions to hard-to-solve issues, which might also help someone who may face the same issue in the future. So I hope my input is valuable
    The last thing I can think of is the method is been called before the portal page has been rendered completely, which may lead to the faulty results.
    Is it possible to move the getVisibleIviews() to a method which is called later in the phase (for instance, at the bottom of wdDoModify or wdDoPostProcessing) or, even better, in an onAction event handler when a button is clicked?
    If this doesn't work I'm afraid I'm running out of options and i would file an OSS message with SAP
    Hope this helps!
    Robin

Maybe you are looking for

  • Selection problem in JTable

    Hello everyone, I've a JTable,which I'm rendering using my own renderer.When the background of any cell within the table is rendered,that particular row does not get highlighted on mouseclick.However,when only the foreground is set (without setting t

  • New installed printer not listed in drop down list of Reader 11

    Hi, I have recently changed my printer, first uninstalling the old one, restarting the laptop and installing the new one.  On trying to print an email PDF attachment, Reader 11 starts up but my new printer is not listed.  The old one still is, even t

  • Yoga 2 Pro Cracked Screen and more....

    I ordered a Yoga 2 Pro direct from LENOVO very late December - delivered around January 1st. I didn't have the time to unpack and examine for about a week. I unpacked and first turn on the computer around January 7...and over the next few days spent

  • Index not being used in access path

    Hi, I have been trying to rewrite a query which currently is taking almost 1min and 25 secs to execute. The database version is 11.1.0.7. The query is - SELECT COUNT(1) FROM TAB1 p WHERE p.ACODE = 24377 AND NOT EXISTS (SELECT 1 FROM TAB2 ph where ph.

  • XI Mapping of list field

    Hi there, i have to make a change in a PI Mapping... Until now the mapping was looking that: SOURCE: <ITEM>       <KSCHL>100</KSCHL>       <VKORG>1000</VKORG>       <CNO>123456</CNO>       <DISCPRODHIER>12345</DISCPRODHIER>       <DISCAMOUNT_T>15</DI