Skip to Content

Unable to Convert I/O Field into checkbox in Module Pool Programming

Hi Colleages,

I have created a view using Table Maintenance Generator. In the Table, one field has Char(10) data type. So, The corresponding element on the screen is appearing as I/O field. But I want to convert it to Checkbox. Is there any way that I can achieve this?


Thank You

Seshu

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • Best Answer
    Posted on Jul 15, 2016 at 02:22 PM

    But still - are Simone and I the only ones who clearly see this whole thing makes no sense?

    If you have any other data in this field (and it can happen because the field type is not CHAR1) then how would it work when on screen you change the field to checkbox? And if there is no data then what exactly is preventing you from changing the field type?

    It takes only a minute to create a new data element and you can copy existing ones, just change the domain. It certainly takes more time to fiddle with the maintenance screen and, most importantly, all that could be lost when it's regenerated.

    I would not allow such things in our system (it seems we do much better job with the table design to begin with) and it concerns me why it seems acceptable to someone with the SAP logo...

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 15, 2016 at 06:49 AM

    I do not see the point in the request (not your, the one you received): we have different data elements to serve different scopes.

    If a field is char10, it's because we want to use at least once all the 10 chars.

    I suggest you to clearify this point, because even if it's technically possible (go in SE51 as @Kishore Bvs as suggested or SE80 with the function group) and the result will be filling the 1st char of your field, it makes no sense!

    And as professionals we have the right and the duty to point our feet and say "what are you asking!?

    additional note:

    remember that when you modify the generated dynpros for table maintanance, your changes will be lost if anyone will regenerate it (add/remove/change a field.

    Message was edited by: Simone Milesi

    Add a comment
    10|10000 characters needed characters exceeded

    • You can either use data element XFELD or create separate datalelements using XFELD domain, and use them in your table.

      When you use XFELD domain through a custom dataelement or XFELD dataelement directly, table maintenance generator, automatically creates the column as a checkbox, no screen modification is required in these cases.

      Thanks,

      Juwin

  • author's profile photo Former Member
    Former Member
    Posted on Jul 15, 2016 at 07:05 AM

    Dear Seshu,

    Please look at the below Screen :

    1. Change Def Length = 1

    2. Right Click in Column then Convert -> Checkbox -> Left Button.

    Regards,

    Yance


    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 15, 2016 at 05:42 AM

    Change data type to flag.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 15, 2016 at 06:47 AM

    Hi,

    Only CHAR1 fields can be converted as check-box

    Regards,

    PrAvIn.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 15, 2016 at 07:02 AM

    Hi,

    There is no point in keeping field of 10 chars wherein you will be using only one character for checkbox.

    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.