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: 

data transfer

Former Member
0 Kudos

Hi,

I am transfering data from non sap to sap. in this case the failed transmission should generate an email and log the error. email should sent to the distribution list and error should b logged. how do i do this. thanks

3 REPLIES 3

Former Member
0 Kudos

what data are you transferring ?

use a flag or some other varaible to store whether that record is successfully processed or not.

gather all the failure records & you can send it thru MAIL using the below code.

about LOG : what type of log you want to create ??

here is the program to send mail to external mail ids.

Message was edited by: Srikanth Kidambi

Former Member
0 Kudos

Prakash can you please be more specific about your interface process as well as what do you mean by failed transmission. Because there can be many via's to interface the files to SAP, we do it here via XI, some by PC upload etc. Secondly when we say failed transmission it can be at record level or file level. If it is record level you can sure collect the error records in an internal table and use FM SO_NEW_DOCUMENT_SEND_API1 to send the data.

Regards

Anurag

0 Kudos

hi prakash..

u have to first make a log file..add messages to log nad then save log into database...

then u can whatever u want with this log file...

'BAL_LOG_CREATE'

'BAL_LOG_MSG_ADD'

'BAL_DB_SAVE'

check these function modules.