Skip to Content
author's profile photo Former Member
Former Member

DropDown Values based on InputField

Hi all,

i have an inputfiled and a dropdown box.Based on the value i entered in the inputfiled the data regarding to that input filed should be retrived from R3.

where to call the method that execute the function module to retrive dropdown values..

According to Webdynpro framwwork for Inputfield only OnEnter event is given..but it is OnChange event i thinkk

Can anyone plz help me out in this.....

Regards

Padma N

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2008 at 08:28 AM

    Hi,

    Since your req. is "Based on the value i entered in the inputfiled the data regarding to that input filed should be retrived from R3",

    I think it is better to proivde button next to Input field whcih triggers BAPI execution.

    We can't force user to press "enter" key.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2008 at 09:16 AM

    Hi Padma,

    Do like this.

    1.Create a method "execRFC" in Component Controller.

    2.Create an action 'Change'. Call the 'execRFC' method in this action

    like wdThis.wdGet<C>Controller().execRFC();

    3.Bind this 'Change' action to onEnter event of the input field.

    4.Create a button and bind 'Change' action to onAction event.

    Like this you can enable the user either to press 'Enter' key or click on the button.

    Regarding your doubt about 'onChange', in Web Dynpro all events are server-events only. So once you press the 'Enter' key only then it triggers the event but it can not recognize automatically once you change the input in InputField.

    regards,

    Siva

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2008 at 09:37 AM

    Hi Padma,

    If you are changing the input value in your input field by the search-help.

    - You can write the logic to call RFC and fill the drop-down box in the method "wdDoModifyView".

    if you are going to key-in the values in that input field

    - You have to write the logic eaither in onEnter action or have to provide some button to press by the user.

    You can follow the methods provided above.

    I hope this is some useful information for you.

    Thanks & Regards,

    Kiran Chennapai

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hey you directly create a action for the event 'OnEnter'(properties of the input field) and bind this to the action just created.Open the implementation.Get the value entered in the input field and set to the Import parameter of the BAPI which is going to get the values from the backend to the dropdown and execute the method available in the component controller which will execute the model object.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.