Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SET_TABLE_FOR_FIRST_DISPLAY

Former Member
0 Likes
2,836

Hi Gurus,

do I have access after calling the method SET_TABLE_FOR_FIRST_DISPLAY to the table in it ? I'd like to modify it before refreshing (I don't know the name of the table). I'd like to delete some rows in it ...

Thanks a lot for helping  !

Kind regards   Peter

13 REPLIES 13
Read only

0 Likes
2,797

Dear Peter,

       You may try to trigger event.

Thanks

Wong

Read only

0 Likes
2,797

Hi All,

I need it for a method enhancement.

From "GRID->SET_TABLE_FOR_FIRST_DISPLAY" I have only "GRID" as parameter, I don't have the table. Is it possible at all to get this ?

KR  Peter

Read only

0 Likes
2,797

Hi Peter,

       As far as I know, the parameter Output Table is not an optional field. May i know which class are you refer to?

Thanks

Wong

Read only

0 Likes
2,797

Hi Peter,

in SET_TABLE_FOR_FIRST_DISPLAY method, you have to pass table, because it's not a optional parameters.


You have to pass table, then you can try to update or delete table information before refreshing.


Regards,

Praveer.

Read only

0 Likes
2,797

Hi Hock Lin Wong,

my problem is, this is an enhancement (not from me), and I don't get it as parameter ...

KR  Peter

Read only

0 Likes
2,797

Hi Praveer,

my problem is, this is an enhancement of a method (not from me), and I don't get it as parameter  (I don't know the name ...)

KR  Peter

Read only

0 Likes
2,797

Hi Peter,

      Can you set a break-point and see the GRID refer to which class? From there, we can drill down what we can propose to you.

Thanks

Wong

Read only

0 Likes
2,797

Hi peter,

Can you elaborate your requirement bit more specific? what kind of enhancement?

Are you trying to change standard code or something like that?

Regards,

Praveer.

Read only

0 Likes
2,797

Hi Praveer,

I created a user badi to WORKORDER_INFOSYSTEM, method AT_OUTPUT_SCREEN_LAY (it will be processed at user function 'Print' , I need here some modifications). This method has only the parameter  IO_ALV_GRID  (standing for 'GRID'), but I need the table too. All other functions I can develop .

KR   Peter

Read only

0 Likes
2,797

Hi Peter,

The same BADI contains some more methods.

TABLES_MODIFY_LAY & DETAIL_LIST_LAY.

Both contains some table information and all are set to CHANGING type.

Have you check these all table? does any table belong to your requirement?

Regards,

Praveer.

Read only

0 Likes
2,797

Hi Praveer,

I think, I used these 2 methods already, but I must check it again ...

KR   Peter

Read only

Former Member
0 Likes
2,797

Hi Rajkumar,

please see my previous reply !

Thanks a lot

Peter

Read only

Frank711
Explorer
0 Likes
2,797

Hi Peter,

if you only have the instance GRID, I think there is no possibility to get the data table. The attribute for the data table is defined as protected in class CL_GUI_ALV_GRID and it exists no methode to get or set these data. The only way I know to change list data, is to change the internal table and refresh ALV with grid->refresh_table_display.

To get the name of the internal table, set a breakpoint at the end of method set_table_for_first_display in class CL_GUI_ALV_GRID. Then start the program for the ALV list. When you leave the method in debug mode, you are in the PBO module where the method is called with the program variables.

Regards

Frank