Skip to Content

MDG : List UIBB - need to add rows in method get_data in feeder class with ct_data

My requirement is to display number of rows of data in List display via clicking on button.

when creating custom event in get_definition and passing that event to button not able to display record in that

I am not able to add rows in CT_DATA table of method GET_DATA, feeder class is custom. Parent class is CL_MDG_BS_GUIBB_LIST.

What needs to be done for that? every time event refreshes and ct_data is blank, even if gets added the row goes greyed out and nothing is in display.

Need to add in flush method? what could be possible solution?

Thanks in Advance

Add comment
10|10000 characters needed characters exceeded

3 Answers

  • Posted on Jul 28 at 12:42 PM

    Hi Mitwa,

    After changing data(CT_DATA) are you setting parameter EV_DATA_CHANGED = ABAP_TRUE ?

    Regards,
    Pankaj

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 01 at 09:53 AM

    Hi Pankaj,

    Yes parent class is already assigned as CL_BS_BP_GUIBB_LIST. Is there any way to set data in display?

    On standard new event(new) it is holding data to UI. Could you please help on the same. If you can drop your email id i can share details. Need help urgently.

    Thank You

    Mitwa

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Mitwa,

      You can create class attribute and fill that attribute in process_event method where you can also for your custom event.

      METHOD process_event.
      IF io_event->mv_event_id EQ 'CUSTOM_EVENT'.
      "Fill atttribute data.
      Endif.

      you can set data in method get_data.

      METHOD get_data.
      IF attribute is not initial.
      CT_DATA = attribute.
      Endif.

  • Posted on Aug 01 at 04:21 PM

    Hi Pankaj,

    LIST UIBB ATS generates reference key, i need to add data in CT_DATA and display in UI.

    How to generate key? and how to set data in display?

    Thank you

    Mitwa

    Add comment
    10|10000 characters needed characters exceeded