on 07-27-2011 6:29 PM
Hi,
I have set up config to email invoices and it works fine. Now I have a requirement to add text in the email body.
I tried adding title and text in NACE --> V3 --> Condition type --> Mail title and texts for EN language.
The title which I put is populated in email subject line correctly but the text is not flowing to the email body.
Whats the purpose of this mail text that is maintained in this setting and how can I have text flow to email along with subject.
Suggestions appreciated !
Thanks !
EMAIL, Invoice output, email text.
Hi Ron! I was tring hard with my ABAP consultant in order to the the body text works but we cant ! The only way we find to include text in the body of the mail was including that functionality in the message program making an Z printing program as a copy of the standard one.
Good luck!
Marina.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
We have similar requirement in our project to add body to the mail for Sales Order and we are able to do that by doing modifications to our custom program.
The following chnage has been done at the program "z*Lett_top".
DATA : gt_return TYPE ssfcrescl.
DATA: gt_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,
gt_tline2 TYPE TABLE OF tline WITH HEADER LINE,
gt_record LIKE solisti1 OCCURS 0 WITH HEADER LINE,
gt_reclist LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
gt_objpack LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
gt_objtxt LIKE solisti1 OCCURS 0 WITH HEADER LINE,
gt_objbin LIKE solisti1 OCCURS 0 WITH HEADER LINE,
gt_body TYPE TABLE OF solisti1,
lt_docs TYPE STANDARD TABLE OF docs,
gt_kna1 TYPE STANDARD TABLE OF kna1,
gt_adr6 TYPE STANDARD TABLE OF adr6,
gt_knvk TYPE STANDARD TABLE OF knvk.
DATA : lv_len_in LIKE sood-objlen,
lv_buffer TYPE string,
lv_lines TYPE i,
ls_objhead TYPE soli_tab,
gs_body TYPE solisti1,
gs_kna1 TYPE kna1,
gs_adr6 TYPE adr6,
lv_devtype TYPE rspoptype.
The following chnages have been done at the program "Z*Lett*FRM01"
ELSEIF nast-nacha = '5'.
CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
EXPORTING
i_language = 'E'
i_application = 'SAPDEFAULT'
IMPORTING
e_devtype = lv_devtype
EXCEPTIONS
no_language = 1
language_not_installed = 2
no_devtype_found = 3
system_error = 4
OTHERS = 5.
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.
IF gv_screen NE space.
ls_control_param-device = 'PRINTER'.
CALL FUNCTION gv_fm_name
EXPORTING
archive_index = toa_dara
archive_parameters = arc_params
control_parameters = ls_control_param
output_options = ls_composer_param
user_settings = ''
is_nast = nast
is_vbdka = vbdka
is_addres = ls_addr_key
v_vbeln = gv_vbeln
v_bukrs = gv_bukrs
v_text1 = gv_text1
v_stceg = gv_stceg
v_knumv = gv_knumv
v_remark = gv_remark
v_saletxt = gv_saletxt
v_qnotes = gv_qnotes
v_bzirk = gv_bzirk
v_bstkd = gv_bstkd
v_kdkg4 = gv_kdkg4
v_ernam = gv_ernam
v_waerk = gv_waerk
v_kunnr = gv_kunnr
v_mwsk1 = gv_mwsk1
v_kposn = gv_kposn
v_title = gv_title
v_name1 = gv_name1
v_name2 = gv_name2
v_bztxt = gv_bztxt
v_ctext = gv_ctext
v_eqnum = gv_eqnum
v_extwg = gv_extwg
v_kdkg1 = gv_kdkg1
v_kdkg3 = gv_kdkg3
v_pltyp = gv_pltyp
v_aload = gv_aload
v_mlocat = gv_mlocat
v_kwmeng = gv_kwmeng
v_kwmeng1 = gv_kwmeng1
v_zznewmb = gv_zznewmb
v_date = gv_date
gs_adrc1 = gs_adrc1
gv_char = gv_char
gv_char_extwg = gv_char_extwg
ip_v_tcin1 = gv_tcin1
ip_v_tcin2 = gv_tcin2
ip_v_pfin = gv_pfin
ip_v_pfdc = gv_pfdc
ip_v_dcref = gv_dcref
ip_v_stqc = gv_stqc
ip_v_tmac = gv_tmac
ip_v_easc = gv_easc
TABLES
gt_vbap = gt_vbap
gt_adrc = gt_adrc
gt_adrc1 = gt_adrc1
gt_t007s = gt_t007s
gt_konv = gt_konv
gt_c_adrc = gt_c_adrc
gt_tline = gt_tdlin
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
IF sy-subrc <> 0.
gv_retcode = sy-subrc.
ENDIF.
** get SmartForm protocoll and store it in the NAST protocoll
* PERFORM add_smfrm_prot.
ELSE.
ls_composer_param-tdprinter = lv_devtype.
ls_control_param-device = ''.
ls_control_param-getotf = 'X'.
* ELSE.
* ls_control_param-no_dialog = ''.
CALL FUNCTION gv_fm_name
EXPORTING
archive_index = toa_dara
archive_parameters = arc_params
control_parameters = ls_control_param
* mail_recipient = ls_recipient
* mail_sender = ls_sender
output_options = ls_composer_param
user_settings = ''
is_nast = nast
is_vbdka = vbdka
is_addres = ls_addr_key
v_vbeln = gv_vbeln
v_bukrs = gv_bukrs
v_text1 = gv_text1
v_stceg = gv_stceg
v_knumv = gv_knumv
v_remark = gv_remark
v_saletxt = gv_saletxt
v_qnotes = gv_qnotes
v_bzirk = gv_bzirk
v_bstkd = gv_bstkd
v_kdkg4 = gv_kdkg4
v_ernam = gv_ernam
v_waerk = gv_waerk
v_kunnr = gv_kunnr
v_mwsk1 = gv_mwsk1
v_kposn = gv_kposn
v_title = gv_title
v_name1 = gv_name1
v_name2 = gv_name2
v_bztxt = gv_bztxt
v_ctext = gv_ctext
v_eqnum = gv_eqnum
v_extwg = gv_extwg
v_kdkg1 = gv_kdkg1
v_kdkg3 = gv_kdkg3
v_pltyp = gv_pltyp
v_aload = gv_aload
v_mlocat = gv_mlocat
v_kwmeng = gv_kwmeng
v_kwmeng1 = gv_kwmeng1
v_zznewmb = gv_zznewmb
v_date = gv_date
gs_adrc1 = gs_adrc1
gv_char = gv_char
gv_char_extwg = gv_char_extwg
ip_v_tcin1 = gv_tcin1
ip_v_tcin2 = gv_tcin2
ip_v_pfin = gv_pfin
ip_v_pfdc = gv_pfdc
ip_v_dcref = gv_dcref
ip_v_stqc = gv_stqc
ip_v_tmac = gv_tmac
ip_v_easc = gv_easc
IMPORTING
job_output_info = gt_return
TABLES
gt_vbap = gt_vbap
gt_adrc = gt_adrc
gt_adrc1 = gt_adrc1
gt_t007s = gt_t007s
gt_konv = gt_konv
gt_c_adrc = gt_c_adrc
gt_tline = gt_tdlin
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
IF sy-subrc <> 0.
gv_retcode = sy-subrc.
ENDIF.
ENDIF.
-----------------------------------------------------------------------------------------------------------------
Please check your technical team to get this done.
Regards,
Krishna.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are right. Had to modify program.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I have the same problem, I want to include a text in the body of the mail while sending a delivery note via email. Please can you give me input how to do this?
I have already a z-printing program but what is the next step? Can you please inform me how you have modified the program?
Thank you so much for your answer!!!
Anja
User | Count |
---|---|
99 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.