‎2015 Nov 18 11:25 AM
Hi All,
I am supposed to copy standard report OAFIND_2.This report calls Reuse_alv_grid function module.The grid is displaying additional Delete button.When I tried to find whether form user_command is handled outside of Reuse_alv_grid function module for Delete functionality, its not found anywhere.
I am supposed to display an error message on clicking delete.Can anybody guide me how this can be achieved?
Thanks,
SD
‎2015 Nov 18 11:42 AM
Please check include LOPTLF01 Line number 65 for delete functionality. You can put a breakpoint there and you should understand in the debug mode
Please note the report does not have ALV output. It calls another program(OAFIND) which in turn calls FM ARCHIV_DISPLAY_LIST_2 which shows the ALV output.
R
‎2015 Nov 18 11:48 AM
Hi Rudra,
Thanks for reply.
I already have reached to points above mentioned.
However,this doesnt lead to solution as delete functionality is called inside Reuse_ALV_grid... function module.
This can mean we have to copy standard Reuse_ALV_grid... function module and write logic in it.
DO you support this?
Kindly let me know.
‎2015 Nov 18 11:53 AM
I cannot agree that any code inside REUSE FM is responsible for DELETE from a button. You don't have to copy REUSE_ALV. You have to copy all the three Objects that I have mentioned and then change accordingly.
ARCHIV_DISPLAY_LIST_2 to ZARCHIV_DISPLAY_LIST_2.
OAFIND to ZOAFIND and change the call of ARCHIV_DISPLAY_LIST_2 to ZARCHIV_DISPLAY_LIST_2
OAFIND_2 to ZOAFIND_2 change the submit statement to call ZOAFIND
Obviously the include LOPTLF01 should be copied to ZLOPTLF01.
‎2015 Nov 18 12:40 PM
As suggested, i copied LOPTLF01 and applied break point in under 'DELE'.However control didnt stopped on break-point on clicking delete button.
Include LOPTLF01 is getting called from function pool SAPLOPTL.
Can you kindly guide further?
How to copy function pool?
‎2015 Nov 18 1:39 PM
Just copying LOPTLF01 will not work. You have do all the steps that I already mentioned. Take help from any ABAPer if needed.
‎2015 Nov 18 2:14 PM
Tried copying ARCHIV_DISPLAY_LIST_2.
Used Z function group.Got following error: 'Field "INT_CONN" is unknown. It is neither in one of the specified tables nor declared as DATA'.When i double click on INT_CONN am navigated to no where.
How ever when cliked on INT_CONN, control navigated to LOPTLTOP include(Part of function pool SAPLOPTL).
I will be thankful for kindly guiding further.
‎2015 Nov 18 2:24 PM
Did you include LOPTLTOP in your Z Function group? Also while activating the Function group activate all the objects together.
R