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

Maintenance View Events Problem

Former Member
0 Likes
886

Hi everybody,

I have a problem with an event in a maintenance viewo of my ztable, is a runtime error:

Runtime Error PERFORM_NOT_FOUND

Except. CX_SY_DYN_CALL_ILLEGAL_FORM

And what I did is to add date and user in the last two fields of my table so every time a user makes modification to this table this two fields has to be updated with the user and actual date so I went to events of maintenance view and I added event 01 Before saving data in database and my subroutine is:

form before_saving.

loop at total.

*Verify if row has been changed

if <action> = AENDERN.

wa_ztable = <vim_extract_struc>.

wa_ztable-muser = sy-uname.

wa_ztable-mdate = sy-datum.

<vim_extract_struc> = wa_ztable.

modify total.

endif.

endloop.

endform.

This part of code runs very good but after this it goes dump.

Thank you for your help.

2 REPLIES 2
Read only

vinod_vemuru2
Active Contributor
0 Likes
598

Hi Grappin,

After creating the event did u activated the main program of the table maintenance generator. If not then activate all the objects of the table like table, Table maintenance generator and main program. Probabily this might be the point of problem.

Thanks,

Vinod.

Read only

0 Likes
598

Hi Vinod,

Thank you very much for helping me, The problem was that I haven´t declared other subroutines, the program was looking for other FORM declaration and there was no other FORM declared in program.

Thank you Very much!!

Moises G.