I've seen lots of threads regarding this, but none of them address a request I've had about using this.
Is there a way, using this FM, to be able to create a report of what was done? I have a program that calls this FM and allows them to do all maintenance functions: insert, delete, change and my users asked me if there was anyway I could create a report each time they ran it to show what they did. Below is the code, which isn't much.
NO STANDARD PAGE HEADING.
TABLES, ITABS AND STRUCTURES
*Call function module using ZHCM_MERIT_ELIG which is a *maintenance view for ZHCM_MERIT_ELIG. All updating is *performed by the function module and the maintenance dialog.
CALL FUNCTION 'VIEW_MAINTENANCE_CALL'
ACTION = 'U' "S = display
VIEW_NAME = 'ZVHCM_MERIT_ELIG'
NO_WARNING_FOR_CLIENTINDEP = 'X'
GENERATE_MAINT_TOOL_IF_MISSING = 'X'.
Naimesh Patel replied
If you use the event 01 (Before saving the data in the database) than it would work.
If you look closely in my previous post, I had noted that I used the event 01. Because 02 was not working as what we expected.
I am getting the ACTION as
D - Delete
U - Update
N - New Entry