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

ALV USER_COMMAND help needed

sanjay_deshpande4
Participant
0 Likes
1,060

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

7 REPLIES 7
Read only

Former Member
0 Likes
1,010

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

Read only

0 Likes
1,010


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.

Read only

0 Likes
1,010

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.




Read only

0 Likes
1,010

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?

Read only

0 Likes
1,010

Just copying LOPTLF01 will not work. You have do all the steps that I already mentioned.  Take help from any ABAPer if needed.

Read only

0 Likes
1,010

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.


Read only

0 Likes
1,010

Did you include LOPTLTOP in your Z Function group? Also while activating the Function group activate all the objects together.

R