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

OO ALV - add before command

Former Member
0 Likes
445

Hi All,

I want to give a popop before stadard user command like 'Insert row' 'Append row' 'Delete Row' as that happens for 'Find', 'Sort' in program BCALV_TEST_GRID_EVENTS.

If you feel that we can not modify standard functions, give me a possibility if I can perfrom standard function in any way after my custom code.

Helpful answers are surely rewarded.

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
0 Likes
385

Hello Priyanka

We have event BEFORE_USER_COMMAND available yet it appears that the USER_COMMAND events are NOT triggered by standard toolbar functions.

Therefore my suggestion is to replace to standard function code values with custom values (e.g. APPEND_ROW, INSERT_ROW) and use the approach described in thread

Regards

Uwe

2 REPLIES 2
Read only

uwe_schieferstein
Active Contributor
0 Likes
386

Hello Priyanka

We have event BEFORE_USER_COMMAND available yet it appears that the USER_COMMAND events are NOT triggered by standard toolbar functions.

Therefore my suggestion is to replace to standard function code values with custom values (e.g. APPEND_ROW, INSERT_ROW) and use the approach described in thread

Regards

Uwe

Read only

Former Member
0 Likes
385

Hi,

you can use 'C14A_POPUP_SAVE_WITH_CANCEL' Fm

CALL FUNCTION 'C14A_POPUP_SAVE_WITH_CANCEL'

IMPORTING

e_answer = answer1.

If the user presses Yes then Answer1 will have 'J' in it and if the user presses then Answer1 will have 'N' in it.

So based on the value of Answer1 you can code accordingly to delete the row from alv

Regards,

Syed