cancel
Showing results for 
Search instead for 
Did you mean: 

Text format E-Mail to Vendor (PO) using BADI BBP_OUTPUT_CHANGE_SF

Former Member
0 Kudos

Hi all,

I am using BAdI BBP_OUTPUT_CHANGE_SF to use an own SMARTFORM for the e-mailText when a PO is sent to Vendor.

I just want to change the e-mail Text.

I set Parameter CV_SMARTFORM_MAIL

Everythign fine so far.

My problem:

How can I define own text formats within the body?

Every style or text format within my SMARTFORM is not used when EMAIL is sent to vendor.

Format seems to be RAW, even if I change the e-mail FORMAT within BAdI (using cs_parameters-mail_format) my e-mail does not accept any styles or Text formats.

Any ideas?

Thanks and regards

Andreas

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

There are two ways to use the z-smartform.

1. Manually enter the z-smartform name in customizing.

2. Or the second option is, you have to implement the badi

BBP_OUTPUT_CHANGE_SF and pass your z-smartform to via this badi. In

this case, you have to use the standard smartform 'BBP_PO' in

customizing. Check if you are passing the correct smartform name via debug.

3. Go to Transaction SPPFCADM.

Under 'PPF: Applications in Customizing',

select the entry 'BBP_PD'. Check all the options in the 'Clean Up

Inconsistencies' box and confirm by choosing,

'Clean Up Inconsistencies' pushbutton.

Regards

Lauren

Former Member
0 Kudos

Hi Lauren,

thanks. Yes, my SMARTFORM is called, I receive the text I declared within my Z Smartform.

Problem:

Any text format used within the Z Smartform is not transferred into my E-mail body.

For example:

I declared my text within Z Smartform as ARIAL 12px.

E Mail which I receive seems to be standard RAW Format --> text is shown as Courier.

Any idea how to influence the mail body (formats)?

Regards

Andreas

Note: We are using SRM 7.0 SP5

Notes 1439058 and 1445130 seem to describe the problem but do not fit to system environment.

oliver_wurm
Active Participant
0 Kudos

Hi Andreas,

the format of the Mail Body is hardcoded set to RAW and so the Output of the Mail Body Smatrform is converted to plain text (displayed in Courier by the mail program you use for reading).

This happens in Method PROCESS_BBP_PO_MAI of class CL_PD_PO_PROCESSING_BBP which is per default customized as the processing class for PO output via email.

We haven't changed the Format of the mail Body but to do that you will have to copy that class into customer namespace, change the config with transaction BBP_PO_ACTION_DEF and change the Mail_format parameter in structure LS_PARAMETER to bbpex_conttype_html.

Hope that helps!

Cheers

Oliver

Former Member
0 Kudos

Hi Oliver,

thanks, that`s the answer I was looking for..

Regards

Andreas

Answers (0)