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

Logging Interface

Former Member
0 Likes
493

Hi all,

we like to develop a RFC Functionmoduls (more than 10 )as Interface for a non SAP System. We like to log all the data which where going through the interface. We know the normal protocolling from functiongroup SBAL - but we like to store the transfered data too. We can create a table, where we store the data, but I don't like it, because we have to change the table, if we have some interface changes - is there any possiblility to store it and later report and analyze it in a SAP statndard way?

Thanks in advance

Stefan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
416

Hello Stefan,

you can have a look at include FBGENMAC. This include provides a macro, that can be used in your rfc's (you can also have a look at BAPI_PO_CREATE - this SAP standard BAPI uses the macro). When the log is activated for the RFC and the user, the system generates a test data record (can be found in SE37). I've checked it once for our RFC, but the problem (for us) is, that you only get the data, transfered to SAP, i.e. only the import data.

We've created an own longtext object for the logging. With a longtext we have no problems regarding new fields (e.g. we don't have to enhance a table). We have created an own table, where you can activate / deactivate the log for the combination user/rfc. The log is written in the beginning of the rfc (to log the import data) and at the end of the rfc (to log the output data).

Best regards

Stephan

1 REPLY 1
Read only

Former Member
0 Likes
417

Hello Stefan,

you can have a look at include FBGENMAC. This include provides a macro, that can be used in your rfc's (you can also have a look at BAPI_PO_CREATE - this SAP standard BAPI uses the macro). When the log is activated for the RFC and the user, the system generates a test data record (can be found in SE37). I've checked it once for our RFC, but the problem (for us) is, that you only get the data, transfered to SAP, i.e. only the import data.

We've created an own longtext object for the logging. With a longtext we have no problems regarding new fields (e.g. we don't have to enhance a table). We have created an own table, where you can activate / deactivate the log for the combination user/rfc. The log is written in the beginning of the rfc (to log the import data) and at the end of the rfc (to log the output data).

Best regards

Stephan