Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

CL_BCS method equivalent for FM SO_OLD_DOCUMENT_SEND_API1 ( forwarding email )

krishna_maram
Participant
0 Likes
1,157

Hi,

We have a requirement to forward certain incoming emails ( SOIN ) to external email addresses. Read about using BCS interface compared to the API1 interface (https://wiki.scn.sap.com/wiki/display/ABAP/Sending+Mails+-+Home+Page?original_fqdn=wiki.sdn.sap.com & see note 190669 for sending lists via SAP connect using the BCS interface) and sample programs are provided by SAP primarily around sending new emails but haven't seen any program or thread that talks about forwarding the emails using CL_BCS class.

I see a "FORWARD" method that may be relevant (Creates Forwarding Send Request for Current Send Request) but it is not straight forward to use and like I said no sample code.

The OSS note and blog doesn't specifically talk about the FM SO_OLD_DOCUMENT_SEND_API1 so the questions are:

1) The recommendation to use BCS interface vs API1 interface is it applicable for above FM as well?
2) If applicable how to achieve the forward function using BCS interface?

Hi,

We have a requirement to forward certain incoming emails ( SOIN ) to external email addresses. Read about using BCS interface compared to the API1 interface (https://wiki.scn.sap.com/wiki/display/ABAP/Sending+Mails+-+Home+Page?original_fqdn=wiki.sdn.sap.com & see note 190669 for sending lists via SAP connect using the BCS interface) and sample programs are provided by SAP primarily around sending new emails but haven't seen any program or thread that talks about forwarding the emails using CL_BCS class.

I see a "FORWARD" method that may be relevant (Creates Forwarding Send Request for Current Send Request) but it is not straight forward to use and like I said no sample code.

The OSS note and blog doesn't specifically talk about the FM SO_OLD_DOCUMENT_SEND_API1 so the questions are:

1) The recommendation to use BCS interface vs API1 interface is it applicable for above FM as well?
2) If applicable how to achieve the forward function using BCS interface?

2 REPLIES 2
Read only

Jelena_Perfiljeva
Active Contributor
0 Likes
864

I haven't had such need personally but this Help article suggests that CL_BCS method FORWARD is to forward an existing "send request". I'm guessing this is not your case as you have no send request. Despite the name, it doesn't look like this method offers the same functionality as "forward" feature in the typical email client software.

Not sure if custom ABAP even should be involved in this forwarding business. I'd first search for other ways to handle this, without involving any ABAP (e.g. forward directly on mail server, use SBWP and such).

But other than that in this case I suppose forwarding would simply mean reading the incoming email and then creating a send request for it.

Edit: either way, none of the old FMs should be used anymore. Even the ones that have "new" in the name are actually old.

Read only

jozsef_hegyi
Product and Topic Expert
Product and Topic Expert
0 Likes
864

Hi

this is not supported in sap, sap cannot act as a mailserver. You can implement your own class and put it into inbound processing.

(so50)

Best regards

JozsefH