Skip to Content
avatar image
Former Member

Populating the Values into Dropdownindex using Web services

Hi Experts,

Iam New to the Web dynpro for java.i am doing one assignment. That assignment is like this

1. Create a form with 4 text boxes

Plant, material, UOM, altBOM

2. Using webservices

3. Populate plant textbox with list of plants as input help

4. Once a plant is selected the respective list of materials have to be populated as input help to materials text box

5. Once material is selected UOM and Altbom to be populated

i have created view and also web servies imported.

i am not able to do that populate plant textbox with list of plants as input help and

Once a plant is selected the respective list of materials have to be populated as input help to materials text box

and remain

please help me regarding this.

Thanks and Regards,

Neelima.

Edited by: Neelima Yadla on Nov 10, 2011 7:18 AM

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Nov 10, 2011 at 07:55 AM

    Hi Neelima,

    Instead of using input field(or textbox) for materials, UOM, altBOM, you can use dropdown by index. That will be easy to do compared to input help for input field.When user gives Plant and press enter key, the corresponding list of materials will be loaded in Materials dropdown. Simillarly when he selects the material, the correponding list of UOM will be populated.

    First create adaptive webservice model and use that particular model in your component.

    Create an action onEnter event of Plant input field and on its event handler, send the plant value to the model and fetch the corresponding list of materials. Make sure to bound the material dropdown by material of model. This will return the material.

    Simillarly create an action on onSelect event of dropdown of material and on its implementation , write logic to send the material value to the model and fetch the UOM values.

    Do this for altBOM also.

    Hope this will be helpful for you.

    Regards,

    Jithin

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Neelima,

      You will not be able to achieve this functionality using value / input help as per my knowledge.

      Instead you can have a button with the corresponding input filed (Plants,material & UOM), open a new popup view and dispaly the plants in a table.

      On action of the table(plants) trigger an event and try to catch the event in the parent window and load the corresponding matrials as well.

      or

      Create your own Value Help UI

      http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/401975e3-e2ee-2b10-e191-a8140aabe9d6

      Hope this gives you some idea.

      Regards,

      Saleem Mohammad.