2015 Jul 19 10:06 PM
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
2015 Jul 20 2:37 AM
2015 Jul 20 7:29 AM
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
2015 Jul 20 7:54 AM
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
2015 Jul 20 7:55 AM
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.
2015 Jul 20 8:10 AM
Hi Hock Lin Wong,
my problem is, this is an enhancement (not from me), and I don't get it as parameter ...
KR Peter
2015 Jul 20 8:13 AM
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
2015 Jul 20 8:17 AM
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
2015 Jul 20 8:18 AM
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.
2015 Jul 20 1:12 PM
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
2015 Jul 20 1:26 PM
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.
2015 Jul 20 2:15 PM
Hi Praveer,
I think, I used these 2 methods already, but I must check it again ...
KR Peter
2015 Jul 20 7:33 AM
2015 Jul 20 2:50 PM
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