on 11-07-2013 10:16 AM
Hi All,
Can anyone please guide me on how we can write / retrieve a comment using BADI? Appreciate your help as I am not really familiar to it.
Thank you.
Hi,
You can use this class cl_uj_gen_table-get_ddic_table_name to get the desired comments database table name and use select statement after that. When you are rewriting the record. if you are inserting the record as a new record then you need to generate recordid for that you can use this class to generate the recordid cl_uj_services=>generate_guid( IMPORTING e_uni_idc = Dataobject ). Otherwise simple modify statement will do.
Thanks,
Arun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Xin,
Take a look on class CL_UJC_CMTMANAGER, methods:
GET_CMT | Instance Method | Public | BPC: Get Comment Entries |
DEL_CMT | Instance Method | Public | BPC: Delete Comment Entries | |
UPDATE_CMT | Instance Method | Public | BPC: Update Comment Entries | |
ADD_CMT | Instance Method | Public | BPC: Add a Comment Entry |
You can use these methods through write back badi. Furthermore, using data manager package process.
Best Regards,
Lucas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello!
Comments are stored in a simple db tables which always follow the naming rules:
BPC creates tables/1CPMB/XXYYYCMT and /1CPMB/XXYYYCMTA to store comments in SAP.
In order to see the comments table, you need Appset prefix(XX) and Application prefix(YYY), which you can get from tables like UJA_APPSET_INFO and UJA_APPL. Or just do a search within SE11 using wildcard *CMT to find the comments tables and see what's in there.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
12 | |
3 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.