Quantcast
Viewing all articles
Browse latest Browse all 948

Use DB table logs for the function parameter

When we implement the SAP ERP project, we often develop the RFC function to provide data services for the non-sap system. This program design to provide log function in the RFC Function Module.


Source code url: GitHub - gaovv2000/ABAP-log4function: logs for the function parameter and result


 

  1. Create the DB table of logs header,the name is “ZTBCLOGS_RLGK”, and activate it.Image may be NSFW.
    Clik here to view.
    1.jpg
  2. Create the DB table of logs contant, the name is “ZTBCLOGS_RLGD”, and activate it.Image may be NSFW.
    Clik here to view.
    2.jpg
  3. Create the DB table to set enable the log function, and activate it.Image may be NSFW.
    Clik here to view.
    3.jpg
  4. Create the DB structure for report show data, Name is “ZSFUNCPARAS”, and activate it.Image may be NSFW.
    Clik here to view.
    4.jpg
  5. Use transaction code SE38 to create the include program, the name is ‘ZBCLOGSINC’.
  6. Use transaction code SE38 to create the executable program, the name is ‘ZBCLOGSREP’.
  7. Copy the code into the corresponding program, And then activate them.
  8. When you want to record the data for function parameter, Just goto function group “TOP include” program to  insert a row statements and in function module call a macro. Goto “Top Include” program Insert “include” statement.Image may be NSFW.
    Clik here to view.
    8.jpg
    Image may be NSFW.
    Clik here to view.
    8-2.jpg
  9. Call the marco at the Function Module first row.                                                                                          Image may be NSFW.
    Clik here to view.
    8-3.jpg
  10. Set DB table “ZTBCLOGS_ACT” to enable log function.Image may be NSFW.
    Clik here to view.
    9.jpg
  11. Excute the Function Module to test the function.Image may be NSFW.
    Clik here to view.
    10.jpg
  12. Use the transaction code  SE11 to view the data .Image may be NSFW.
    Clik here to view.
    11.jpg
  13. We have a reporting program “ZBCLOGSREP”,  more easily view the logging contents.So let’s goto the transaction code SE38 to try it .Image may be NSFW.
    Clik here to view.
    12-1.jpg
    Image may be NSFW.
    Clik here to view.
    12-2.jpg
    Image may be NSFW.
    Clik here to view.
    12-3.jpg
    Image may be NSFW.
    Clik here to view.
    12-4.jpg
    Image may be NSFW.
    Clik here to view.
    12-5.jpg
    Image may be NSFW.
    Clik here to view.
    12-6.jpg

Viewing all articles
Browse latest Browse all 948

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>