Application Development 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: 

Inbound email in to sap

Former Member
0 Kudos

Hi gurus,

Has anyone directed inbound email to a public folder or know how that can be achieved?

Any ideas or help is appreciated.

Thanks in advance

kumar

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hello,

to answer my own questions:

Question 1: Yes it is possible. Take the document Id and insert a dataset into the table SOFM with the id of the public folder.

Question 2:


DATA:  lcl_doc         type ref to cl_document_bcs,
           ls_object_id   type soodk.

        lcl_doc ?= document.

        ls_object_id-objtp = lcl_doc->get_doctp( ).
        ls_object_id-objyr = lcl_doc->get_docyr( ).
        ls_object_id-objno = lcl_doc->get_docno( ).
        concatenate ls_object_id-objtp ls_object_id-objyr ls_object_id-objno into lv_docid.

Regards

Friederike Braun

2 REPLIES 2

Former Member
0 Kudos

Hello SDN-readers,

I too have the same question. I thought of using the inbound email processing described in

[Receiving E-Mail and processing it with ABAP - Version 610 and Higher|/people/thomas.jung3/blog/2004/09/09/receiving-e-mail-and-processing-it-with-abap--version-610-and-higher] and wanted to directly move the email in the method IF_INBOUND_EXIT_BCS~PROCESS_INBOUND.

Question 1: Is this possible?

Question 2: How do I get the document id of the incoming email?

Regards

Friederike Braun

Former Member
0 Kudos

Hello,

to answer my own questions:

Question 1: Yes it is possible. Take the document Id and insert a dataset into the table SOFM with the id of the public folder.

Question 2:


DATA:  lcl_doc         type ref to cl_document_bcs,
           ls_object_id   type soodk.

        lcl_doc ?= document.

        ls_object_id-objtp = lcl_doc->get_doctp( ).
        ls_object_id-objyr = lcl_doc->get_docyr( ).
        ls_object_id-objno = lcl_doc->get_docno( ).
        concatenate ls_object_id-objtp ls_object_id-objyr ls_object_id-objno into lv_docid.

Regards

Friederike Braun