Skip to Content
-1

Screen Exit BADI for MIGO

I have a requirement in which i have to add a table control in my custom screen. In that there are three line items in a particular order no. when i click on line Item one and in that there are 2 quantity(MENGE) is there then in table control only two row should open and others remain grayed out.

req-1.jpg (128.6 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • May 25, 2017 at 03:01 PM

    To gray out lines of table control, if you have such a flow logic

    PROCESS BEFORE OUTPUT.
      LOOP AT ... WITH CONTROL ...
        MODULE tctrl_pbo.
      ENDLOOP.
    

    then define the module as follows (it will be executed for every line displayed on the screen):

    MODULE tctrl_pbo OUTPUT.
      IF the current line is to be grayed out.
        LOOP AT SCREEN.
          screen-input = '0'. " gray out
          MODIFY SCREEN.
        ENDLOOP.
    ENDIF.
    ENDMODULE.
    Add comment
    10|10000 characters needed characters exceeded