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

how to read drop down values in OOABAP-ALV

Dear Experts, Can anyone guide me with the issue which i'm facing in my current development. The issue is ' I've a drop-down field in my screen.I'm unable to read the drop-down value(Ex:REQUIRED, NOT-REQUIRED) which the user had selected from the drop-down list.' Can anyone help me out on how to read drop-down value which the user had selected. Awaiting for responses. Karthik

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Nov 30, 2012 at 09:16 PM

    The value of that field is changed in the internal table which you've passed to the ALV. For example is internal table I_PROPERTY has a field IS_REQUIRED that you've made a dropdown in your ALV for that internal table, than each row of I_PROPERTY will have the value in column IS_REQUIRED that the user has selected in the ALV for that row.

    See example programs BCALV_EDIT_06 and BCALV_EDIT_07 for a good implementation of ALV dropdowns.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Alex Campbell

      Hi Karthik,

      Most importantly the filed's domain have check box called Lower case. It must be checked.

      If the user input dropdown field passes it in upper letter to variable use case statement in program itself before insert in table.

      For example, You have two value Required, Not-Required. You get the value as REQUIRED, NON-REQUIRED. Use case statement here.

      CASE <Variable name>.

      WHEN 'REQUIRED'

      <workarea filed name> = 'Required'.

      WHEN 'NON-REQUIRED'.

      <workarea field name> = 'Non-Required'.

      ENDCASE.

      INSERT <database table name> FROM <workarea>.

      Hope it helps.

      Thanks,

      Suresh

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.