cancel
Showing results for 
Search instead for 
Did you mean: 

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

0 Kudos
1,576

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

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Kudos

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

0 Kudos

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

jethanipankaj
Participant
0 Kudos

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.

jethanipankaj
Participant
0 Kudos

Hi Mitwa,

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

Regards,
Pankaj

0 Kudos

Yes passing EV_DATA_CHANGED = ABAP_TRUE.

Still Data is not getting displayed. everything is blank even after ct_data is filled.

Can you please help on that.

jethanipankaj
Participant
0 Kudos

Hi Mitwa,

Try using Parent class specific to data model. For e.g. for BP data model Parent class is CL_BS_BP_GUIBB_LIST.


Regards,
Pankaj