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

Convert text item into Check box and assign values

Hi all

I am new in abap, I have created a program and define some screen elements from dictionary through screen painter, one of my item name is ZUT_APARTMENT-HAS_AC and its type is text and contain fixed values like a 1) A (means active) and 2) N (means not active). My question is that how can I convert this text item into Check box and when user apply check then it contain value "A" and when user uncheck it then it contain value "D".

Thanks

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 08, 2011 at 09:36 PM

    Hi

    The checkbox is just like a flag: it can return value X or blank only, so you can convert your field to a checkbox if it's based on dictionary field with fixed values.

    You need to design your checkbox using a flag defined in your program and then to set the values A or N in according to it:

    IF VAR_FLAG = 'X'.
      ZUT_APARTMENT-HAS_AC = 'A'.
    ELSE.
      ZUT_APARTMENT-HAS_AC = 'N'.
    ENDIF.

    Max

    Add a comment
    10|10000 characters needed characters exceeded

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.