cancel
Showing results for 
Search instead for 
Did you mean: 

BBP_OFFLINE_APP_BADI --> Method MAIL_CREATE (Attachment)

Former Member
0 Kudos

Hi,

I want to change the mail which is send through SC approval. No problem so far.

I want to attach a document to the mail.

Method MAIL_CREATE offers Table ET_ATTACHMENT

Could anyone plz guide me how to fill the supplied fields within this table?

...

ATTACH_SIZE

ATT_CONTENT_TEXT

ATT_CONTENT_HEX

...

Any example?

Thanks and regards

Andreas

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Can you please elaborate the problem..?

Where the method MAIL_CREATE exists...?

Please specifiy which attachment you want to attach into the mail.

Thanks & regards,

Ponnala.

Former Member
0 Kudos

Hi ,

I am using METHOD MAIL_CREATE within BADI definition BBP_OFFLINE_APP_BADI

.

Target:

Change standard approval mail which is created within standard sap report

/SAPSRM/OFFLINEAPPROVALSEND (I am using SRM 7.0)

I just want to attach a document to the e-mail and I am wondering, which data do I have to fill in within the following params

(ET_ATTACHMENT):

ATTACH_TYPE

ATTACH_SUBJECT

ATTACH_SIZE

ATTACH_LANGUAGE

ATT_CONTENT_TEXT

ATT_CONTENT_HEX

ATTACH_HEADER

For example:

I wanto to attach the standard mail text as a document to my e-mail.

TYPE --> no problem

Subjet --> no problem

Size ??

Language --> no problem

ATT_CONTENT_TEXT ??

ATT_CONTENT_HEX ??

ATTACH_HEADER ??

Any example?

Thanks and regards

Andreas

former_member183819
Active Contributor
0 Kudos

The RBBP_NOTIFICATION_OFFAPP program provides the customer with the option to determine e-mail text and layout. The BBBP_OFFLINE_APP_BADI BAdI and the MAIL_CREATE method are available for this purpose. If the customer creates the e-mail, a variable in the program is set to X to control the further process in the program. In this case, the program ran in such a way that the structure for e-mail-recipients was not filled with data (this is incorrect). Therefore, no e-mails were sent

Note 934749 - E-mail for offline approval using BADI - no recipient

Former Member
0 Kudos

Thanks, but my question is regarding table ET_ATTACHMENT

I can send e-mails with specific texts.

I am just searching for an example how to attach a file to approval e-mail, in other words:

How to declare the params within the table et_attachment

Example:

Text abc

Row1

Row2

Row3

I want to attach this "text" as a raw document to my approval e-mail.

Could anyone please provides me with the information I do have to fill in within the params for table et_attachment (type BBPT_ATTACHMENT_BCS) within method MAIL_CREATE?

Thanks and reagrds

Andreas

former_member186143
Active Contributor
0 Kudos

look in the method CREATE_ATTACHMENT_BCS

where the function BBP_OUTPUT_X_TABLESIZE_CHG is used.

in that loop normal sc attachments are converted to mail attachment format

kind regards

arthur

Former Member
0 Kudos

Hello Andreas

Could you please tell us as how u attached your document to the offline mail using the mail_create method in the BBP_OFFLINE_APP_BADI because we have the same requirement to attach the document for which the internal indicator is not set in the offline approval mail..

Your inputs will really help us

Thanks in advance,

Catherine