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

List box and Text field problem in Module Pool

Hi,

I have 2 filelds in one table like "code, text". I am creating one list box for "text" field. In that drop down list I have to show both code and text fields. But when I click on any record (on code or text) the text has to populate on the screen field text for that particular record. I tried with "VRM_SET_VALUES" and "F4IF_INT_TABLE_VALUE_REQUEST" but it's not coming fine. I am able to see only one field when I click on dropdown list but i want to display both fields in dropdown. And also is there any possibility of getting that record index where we are clicking on dropdown.

The second problem is I have to create one text field with the length of 255 characters. I am using Container for that but it's not showing on the screen. Can anyone send the model example of this.

Thanks in advance

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Aug 11, 2009 at 03:31 AM

    HI,

    Try using the List box with Index in the Screen Field Attributes.

    Try using the component Key of the Structure VRM_VALUES

    here you can pass 1, 2, 3 ... numbers or directly you can pass short text and corresponding Long text at the same time

    and you try using VRM_GET_VALUES to query what has been selected

    You can also read the Itab for the Value that is selecte from the List Box and can populate the text corresponding to it

    Hope this will serve your purpose.

    Regards

    Ramchander Rao.K

    Edited by: Ramchander Krishnamraju on Aug 11, 2009 5:41 AM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 11, 2009 at 04:36 AM

    hi,

    Initially you have to declare internal table of type vrm-values.

    Call the function module 'VRM_SET_VALUES'

    Here is sample code,which you can make use of it.

    Data:list type vrm_values,

    name type vrm_id,

    value like line of list.

    value-key = 'a'.

    value-text = 'abc'.

    append value to list.

    value-key = 'b'.

    value-text = 'cde'.

    append value to list.

    Here p_name is screen field.

    NAME = 'P_NAME'. * you have set the visible length for drop down box for displaying all values in it.

    call function 'VRM_SET_VALUES'

    exporting

    id = name

    values = list.

    I think this would help you.

    Regards,

    MMJr.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Marcin Pciak

      Stuff like this also comes as a result of folks not being selective about which questions to answer, so the OP notices that dumping any old problem in multiple threads and not following up on any of them works ... until they reach the 10 open question limit and follow-up with 10 "asdf" type posts.

      The best advise I am able to give is before posting, click once on the OP's profile and take a look at their recent posts and questions and the question : unresolved ratio, also compared to the total post number.

      >Name: baleeqahmed - View user's Business Card

      >Registered: Jun 29, 2009

      >Total Posts: 8

      >Total Questions: 4 (4 unresolved)

      >Forum Points: 0

      Sometimes I also take the time to a look at the previous threads to check the sort of quality they bring to the forum.

      =>

      Cheers and thread locked.

      Julius

      Edited by: Julius Bussche on Aug 11, 2009 9:32 AM

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.