on 01-29-2008 6:59 PM
Hello
I have implemented the deltion of attachment using following code. the commands went sucessfull but it is not deleting attachment(which is linked to activity/interaction record)
lr_entity_col = lv_bo->get_related_entities( iv_relation_name = cl_crm_cm_genil_comp=>gc_rel_bo_document_ref ).
lv_bo = lr_entity_col->get_first( ).
lv_bo->delete( ).
lv_core->modify( ).
lv_transaction = lv_core->get_transaction( ).
lv_transaction->save( ).
lv_transaction->commit( ).
Does anybody implemented similar logic?
Regards,
Laxman
Where are the attachments stored?
Raja T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have added custom tab to store attach the files to Interaction recrod i.e business activity.
I m using following way to add attachment
create document child
lv_core = cl_crm_bol_core=>get_instance( ).
lv_transaction = lv_core->begin_transaction( ).
IF lv_bo->lock( ) = if_genil_boolean=>true.
if lv_bo->is_changeable( ) = abap_true.
TRY.
lv_doc = lv_bo->create_related_entity(
cl_crm_cm_genil_comp=>gc_rel_bo_document_ref ).
CATCH cx_crm_genil_model_error.
CATCH cx_crm_genil_duplicate_rel.
ENDTRY.
endif.
regards,
Laxman
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.