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: 

Interface

Former Member
0 Kudos

Hi All,

I am working on few interfaces where we have the following requirement:

I need to upload the data using a BDC (Session Method)

and after proceesing the session i have to send the log of session to the legacy owners to conform the status of the upload.

The issues here are:-

1. How to collect the log of the session method?

2. How to change the log into an understandable form(Text Format) so that the user can trace the error records easily and resend it?

3. Can the log of SM35 transaction be send to the user using an FTP?

Hoping for a postive response from every one.

Thanks in advance.

Regards

Satish.

4 REPLIES 4

athavanraja
Active Contributor
0 Kudos

check out the function modules in function group

<b>SBDP</b>

Regards

Raja

Former Member
0 Kudos

Hi Satish,

Once you have extracted the BDC session logs, why don't you <b>email</b> them to the users rather than using FTP.

Check out the two blogs from Thomas:

Sending E-Mail from ABAP - Version 610 and Higher - BCS Interface:

/people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface

Sending E-Mail from ABAP - Version 46D and Lower - API Interface

/people/thomas.jung3/blog/2004/09/07/sending-e-mail-from-abap--version-46d-and-lower--api-interface

Cheers,

Brad

0 Kudos

Hi Brad ,

I have tried sending a mail after creating the function module and than calling it in my program.

I done all the settinga and it is working fine when i am sending a test mail as mentioned.

But the problem here is that when i am sending it through my mail i am getting an error:

<Internal error: SO_OBJECT_MIME_GET Exception: 2>.

The code that i have written is :

data : i_doc type ZTCS_EMAIL_docs_tab,

i_recp type ZTCS_EMAIL_RECIPIENTS_tab.

field-symbols: <wa_doc> like line of i_doc.

append initial line to i_doc assigning <wa_doc>.

<wa_doc>-type = 'INT'.

<wa_doc>-subject = 'TEST MAIL FROM SATISH THROUGH SAP'.

field-symbols: <wa_recp> like line of i_recp.

append initial line to i_recp assigning <wa_recp>.

<wa_recp>-C_ADDRESS = 'AJAY.KOLLI@YAHOO.COM'.

Field-symbols <wa_line> type SOLI.

append initial line to <wa_doc>-CONTENT_TEXT assigning <wa_line>.

<wa_line>-line = 'TEST LINE 1'.

call function 'ZSEND_EMAIL'

exporting

REQUESTED_STATUS = 'E'

documents = i_doc

recipients = i_recp.

if sy-subrc = 0.

write: 'SUCESSFUL MAIL'.

endif.

Please tell me what was the problem and how to rectify it.

Thanks a bunch.

Regards

Satish.

krzysztof_konitz4
Contributor
0 Kudos

Hi,

Try FM: RSTS_OPEN_RLC, RSTS_READ, RSTS_CLOSE.

Krzys