{"id":13698814,"url":"https://github.com/hhelibeb/abap-fm-logger","last_synced_at":"2025-10-24T03:32:04.378Z","repository":{"id":56549079,"uuid":"285577375","full_name":"hhelibeb/abap-fm-logger","owner":"hhelibeb","description":"A logger for function module (RFC)","archived":false,"fork":false,"pushed_at":"2024-03-26T08:23:57.000Z","size":88,"stargazers_count":59,"open_issues_count":0,"forks_count":18,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-09-26T13:21:02.341Z","etag":null,"topics":["abap","logger","rfc"],"latest_commit_sha":null,"homepage":"","language":"ABAP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hhelibeb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-06T13:21:39.000Z","updated_at":"2024-09-25T08:48:22.000Z","dependencies_parsed_at":"2024-03-26T09:42:36.921Z","dependency_job_id":null,"html_url":"https://github.com/hhelibeb/abap-fm-logger","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hhelibeb%2Fabap-fm-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hhelibeb%2Fabap-fm-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hhelibeb%2Fabap-fm-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hhelibeb%2Fabap-fm-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hhelibeb","download_url":"https://codeload.github.com/hhelibeb/abap-fm-logger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219866820,"owners_count":16555824,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["abap","logger","rfc"],"created_at":"2024-08-02T19:00:53.365Z","updated_at":"2025-10-24T03:32:03.997Z","avatar_url":"https://github.com/hhelibeb.png","language":"ABAP","funding_links":[],"categories":["Categories"],"sub_categories":["📝 Logging"],"readme":"# abap-fm-logger\nA logger for function module (RFC)\n\nLet's work with function modules like IDoc.\n\nABAP Version: 740 or higher\n\n## Design Goals\n- Save FM logs in a single general table.\n- Store parameters in JSON format.\n- Enable reprocessing of records using log id, akin to WE19.\n- Search logs by FM \u0026 field value, akin to WE10.\n\n## Log Report\nThe report ```ZAFL_VIEWER``` empowers you to search logs and reprocess specific records.\n![log report](https://github.com/hhelibeb/helloworld/blob/master/log%20report.png)\n\n## How to Use\n\n1, Add the include file ```ZAFL_MACROS``` which contains core function of the logger.\n```abap\nFUNCTION-POOL zzxxxx.\nINCLUDE zafl_macros.\n```\n2, Call the macros on demand in the function.\n```abap\nFUNCTION z_fm.\n  \n**initialize logger. It should be always on the top of the FUNCTION.\n  /afl/log_init.\n\n**optional, you can specify at most 3 fields for search.\n  /afl/set_custom_fields '2020' '1001' '2000000001'. \n\n**optional, you can save a status code and message text for search.\n  /afl/set_status 'S' 'message'.\n\n**save logs. It should be always on the bottom of the FUNCTION.\n  /afl/save.\n\nENDFUNCTION.\n```\n## Configuration\nTable ```ZAFL_CONFIG```  allows for basic configuration.\n\n### Basic Settings\n- FNAME: Name of Function Module\n- ENABLED: If checked, log function will be enabled.\n- EXPORT: If checked, logs for export parameters will be enabled.\n- IMPORT: If checked, logs for import parameters will be enabled.\n- TABLE_IN: If checked, logs for tables parameters (at the start of the FM) will be enabled.\n- TABLE_OUT: If checked, logs for tables parameters (at the end of the FM) will be enabled.\n- CHANGE: If checked, logs for changing parameters (both in and out) will be enabled.\n\n### Additional Settings\n- NO_COMMIT: If checked, the COMMIT statement in ```/afl/save``` will be bypassed.\n- NO_AUTH_CHECK: If checked, the authority check statement in the reprocess method will be bypassed.\n\n## Log Cleaner\nSchedule the report ```ZAFL_HISTORY_CLEANER``` as a job to delete history log.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhhelibeb%2Fabap-fm-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhhelibeb%2Fabap-fm-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhhelibeb%2Fabap-fm-logger/lists"}