Application Development 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: 

Tracing Master Data Display?

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

JozsefSzikszai
Active Contributor
0 Kudos

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

7 REPLIES 7

JozsefSzikszai
Active Contributor
0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

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.