**
DATA:
lt_text TYPE soli_tab,
lp_subject TYPE so_obj_des,
lp_line TYPE soli,
lp_oid TYPE os_guid,
ls_object TYPE borident,
lp_mess(80) TYPE c,
lp_errmess TYPE string.
TRY.
* Set object info for link
ls_object-objtype = gs_lporb-typeid.
ls_object-objkey = gs_lporb-instid.
* Set mail subject
lp_subject = TEXT-101 && gp_def_attrib.
* Add confidential Clause
DO 6 TIMES.
APPEND INITIAL LINE TO lt_text.
ENDDO.
APPEND 'CONFIDENTIAL CLAUSE' TO lt_text.
DATA(lv_cc) = cl_wd_utilities=>get_otr_text_by_alias(
zif_vim_email_service~gc_confidential_clause ).
lt_text = CORRESPONDING #( BASE ( lt_text ) cl_bcs_convert=>string_to_soli( lv_cc ) ).
* Customer enhancement for VIM
lp_oid = me->send_obj(
EXPORTING
is_object = ls_object
ip_subject = lp_subject
it_note = lt_text
ip_link = 'X'
).
lp_errmess = lp_mess.
MESSAGE lp_errmess TYPE 'S'.
IF lp_oid IS INITIAL.
RAISE execution_failed.
ELSE.
MESSAGE s051(sgos_msg).
RAISE EVENT service_succeeded
EXPORTING eo_service = me.
ENDIF.
CATCH cx_bcs.
RAISE execution_failed.
ENDTRY.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |