12-12-2007 3:49 PM
Does anyone have some suggestions on how to capture a trace showing, for example, what specific Business Partner a user was displaying within the t-code BP?
For instance, but not limited to, creating a custom Audit Class for SM19?
I have looked at Security Audit Log, where I realize we can't capture a trace in that detail. I have also looked at tables CDHDR and CDPOS, which capture change documents (not display only requests).
Your suggestions are greatly appreciated. Points will be awarded.
Regards,
Jason
12-12-2007 3:59 PM
hi Jason,
look for suitable user exits in the programs behind, where you can capture if the master data was displayed and you can save it to a Z... table
ec
12-12-2007 3:59 PM
hi Jason,
look for suitable user exits in the programs behind, where you can capture if the master data was displayed and you can save it to a Z... table
ec
12-12-2007 4:51 PM
Okay, good suggestion. Do you have any insight into how I would locate the code that is running behind the Audit Class during the trace (so I can debug/look for exits)? I am exploring the code behind SM19, but I doubt this is what is being executed while the actual trace is running.
Thanks for your input.
Regards,
Jason
12-12-2007 5:05 PM
okay, I checked, but there is no exit in transaction BP, however there are four BADIs:
BUPR_FILTER_RELSHP_2
BUPA_INITIAL_SCREEN
BUPR_ENQUEUE_TEST
BUPR_RELSHP_OVR_EXT
please check if you can use any of them (to capture username and BP number during display).
Other option would be to copy the program behind transaction BP and modify it slighty, so it would also save the required data to Z... table.
ec
12-12-2007 5:11 PM
Okay, I got you. I didn't realize that you meant to go straight for transaction BP. I instead thought you meant to look for exits in the trace code (which is executed from SM20).
All right, your suggestion could be a good option. Let me see if anyone can help solve this problem at a global level (from a trace standpoint), then I will reward points accordingly. Thanks.
Regards,
Jason
12-12-2007 5:32 PM
Hi Jason,
For BP, you should use business data toolset - BDT to do any enhancement. Try searching the form with 'BDT'.
Start exploring form BUPT areamenu to enhance further, see BUS7 and events XCHNG etc... or refer to the link below.
http://help.sap.com/saphelp_erp2004/helpdata/en/f5/8f543af77b4429e10000000a11402f/frameset.htm
thanks
Manohar
12-12-2007 5:59 PM
Thanks, Manohar. I actually already have some enhancements made with BDT, but the code is executed only when the user clicks on the new tab (or if I put a new field on an existing screen).
Are you saying that I should create a new BDT View (assigning a new PAI function to it), then attach that View to the main BP screen?
Regards,
Jason
12-12-2007 9:17 PM
Disregard the last comment, as I realized that I just needed to add my function to the event.
I used a combination of your suggestions, BDT with Z table as a log. Thanks for your help.