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: 

Address not found message while trying to send a email..

Former Member
0 Kudos

hello,

I have configured everything in SCOT... In order to test the config, i am trying to send a short message to external address using menu path System-> Short message.. But i am getting the message address does not exist... Please help me to correct this..

Thanx in advance

Regards,

Maya.

3 REPLIES 3

Former Member
0 Kudos

hai,

IF SY-SUBRC = 0.

perform mail.

endif.

FORM mail .

perform bdc_dynpro using 'SAPMSSY0' '0120'.

perform bdc_field using 'BDC_OKCODE'

'=PDIA'.

perform bdc_dynpro using 'SAPLSX10' '0120'.

perform bdc_field using 'BDC_CURSOR'

'SXJOBDATA-ADDR_TYPE'.

perform bdc_field using 'BDC_OKCODE'

'=ADRTP'.

perform bdc_field using 'SXJOBDATA-ADDR_TYPE'

'INT'.

perform bdc_field using 'SXJOBDATA-MAXJOBS'

'1'.

perform bdc_dynpro using 'SAPLSX10' '0120'.

perform bdc_field using 'BDC_CURSOR'

'SXJOBDATA-ADDR_TYPE'.

perform bdc_field using 'BDC_OKCODE'

'=OK12'.

perform bdc_field using 'SXJOBDATA-ADDR_TYPE'

'INT'.

perform bdc_field using 'SXJOBDATA-MAXJOBS'

'1'.

perform bdc_dynpro using 'SAPMSSY0' '0120'.

perform bdc_field using 'BDC_CURSOR'

'02/03'.

perform bdc_field using 'BDC_OKCODE'

'=BACK'.

CALL TRANSACTION 'SCOT' USING bdcdata

MODE 'N'

UPDATE 'S'.

ENDFORM. " mail

shan.

0 Kudos

Shan,

Thank u for ur response.

After running the report RSSODIAD i am able to send the short message... But i could not send the mail from abap program using FM 'SO_NEW_DOCUMENT_ATT_SEND_API1' ... No error messages but no messages sent... Please help me to correct this..

Regards,

Maya

0 Kudos

Its working now...Just used the commit work flag of FM...