Skip to Content
avatar image
Former Member

Screen Painter - Display with no active entries

Hi Gurus

I am teaching myself some ABAP Screen design and am working through an exercise.

I have one issue with the display which is that it displays with active records already like below

I want it to display like this, so that the user is forced to use the Insert button

I'm not sure if there is a configuration setting in the Layout for this or if it is something I need to code in the PBO.

Many Thanks in advance for your assistance

Regards

Panduranga

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Feb 01, 2017 at 06:59 AM

    In the PBO, LOOP AT TABLE CONTROL, deactivate fields (LOOP AT/MODIFY SCREEN) as long user didn't press insert (e.g. empty internal table, SCREEN-ACTIVE = '0' if no record)

    Regards,
    Raymond

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks Raymond

      Code Sample for solution was:

      if g_data_copied <> 'X'. " If not the first display of the screen
      loop at screen.
      if screen-name+0(8) <> 'POSITION'. "This Ensures Action Buttons are still active (Insert / Delete, etc)
      screen-input = '0'.
      modify screen.
      endif.
      endloop.
      endif.

      Regards

      Panduranga

  • Feb 01, 2017 at 02:48 AM
    -1

    hi Panduranga,

    you duble click the the product id -> attribute tab-> output only(check box)

    in top proprieties have dropdwon box make as empty.

    Thanks

    Umayaraj.

    Add comment
    10|10000 characters needed characters exceeded