2005 Jun 05 5:23 AM
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.
2005 Jun 05 6:13 AM
check out the function modules in function group
<b>SBDP</b>
Regards
Raja
2005 Jun 05 2:33 PM
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
2005 Jun 06 9:04 AM
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.
2005 Jun 05 10:08 PM