Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zenrosadira/abap-comment-system
Attach a commenting system to any SAP application/object/transaction
https://github.com/zenrosadira/abap-comment-system
Last synced: 3 months ago
JSON representation
Attach a commenting system to any SAP application/object/transaction
- Host: GitHub
- URL: https://github.com/zenrosadira/abap-comment-system
- Owner: zenrosadira
- License: mit
- Created: 2024-03-09T15:41:11.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-03-14T19:48:28.000Z (11 months ago)
- Last Synced: 2024-03-14T20:55:33.839Z (11 months ago)
- Language: ABAP
- Size: 141 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ABAP Comment System
Attach a commenting system to any SAP application/object/transaction.
Let the users chat about documents, take note, reply and like comments as in a blog post comments feed.## Requirements
v7.40 SP08## Usage
Create a comment system object anywhere, using an `object_id` identifying the context to which the comments will be attached: it can be the transaction/application name, a key for a SAP document or a custom object,
it can a be a string but also a structure or a more complex object. Keep in mind: only one corresponding comment system will be loaded for each object id.```abap
DATA(comment_system) = zcl_cmt_system=>create_comment_system( object_id ).
```Trigger the comment system by calling `display` method
```abap
comment_system->display( ).
```Comments will pop-up in a dedicated window. Using the optional `settings` parameter you can control pop-up coordinates and title.
If you use the SAP GUI, in order to properly display the css style, I suggest you to set "Edge" as HTML control for GUI, instead of "Internet Explorer".
## Features
1. Any user can like any comment
2. Each user can delete their own comment
3. Comment author name is the user full name (if empty, the user id will be used)
4. The avatar contains user name initials with a random background
5. Main comments can have replies, and replies can be exploded or collapsed
6. Get the number of unread comments by calling `comment_system->notify_to_read( )`, so you can e.g. trigger the comment by means of a button with dynamic text "Comment (3 to read)" or something like this
7. Don't you like pop-ups? Create a custom container for comment section and a custom container for textarea, then display comments by calling
```abap
comment_system->display_in_container(
section_container = `C_SECTION`
textarea_contaienr = `C_TEXTAREA` ).
```
## Installation
Install this project using [abapGit](https://abapgit.org/) ![abapGit](https://docs.abapgit.org/img/favicon.png)