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: 

status "No entry in queue yet" in SOST transaction

Former Member
0 Kudos

Hi all,

I'm tryng to send an e-mail from an abap report. The problem is that in the SOST transaction, the mail has the status "No entry in queue yet" (with a cross over grey circle). In the details, the "message type (E,I,W,...)" is X.

If I send the e-mail directly from the business workplace, the mail has the status "waiting" (with a yellow triangle). In the details, the "message type (E,I,W,...)" is X.

I've used the FM SO_OBJECT_SEND and also SO_NEW_DOCUMENT_ATT_SEND_API1 with the same result.

How can I create an e-mail from an abap report with the desired "waiting" status?

Thanx in advance.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi ignacio,

Welcome to SDN !

1. use

SUBMIT 'RSCONN01'

WITH MODE EQ 'INT'

AND RETURN.

after the FM for mail,

to send mail IMMEDIATELY !

regards,

amit m.

12 REPLIES 12

Former Member
0 Kudos

Hi ignacio,

Welcome to SDN !

1. use

SUBMIT 'RSCONN01'

WITH MODE EQ 'INT'

AND RETURN.

after the FM for mail,

to send mail IMMEDIATELY !

regards,

amit m.

0 Kudos

Thanks Amit, your answer works only for the items that are in the status "wating" (yellow triangle).

My problem is that I'm creating items with the status "Not entry in queue yet" and I cannot process them.

Thanks anyway, any other suggestion?

0 Kudos

Hi again,

1. It means that the FM

is not sending the mail, at all.

2. check the value of sy-subrc after the FM.

regards,

amit m.

0 Kudos

Hi,

Check these links for sample code.

http://www.geocities.com/mpioud/Z_EMAIL_ABAP_REPORT.html

http://www.thespot4sap.com/Articles/SAP_Mail_SO_Object_Send.asp

http://www.sapdevelopment.co.uk/reporting/email/attach_xls.htm

In the FM,make outbox = 'X' and check whether the mail you are trying to sent is in outbox after you sent?

0 Kudos

Hi Amit,

1. The FM sends the e-mail, I can see it in the SOST transaction.

2. the sy-subrc is 0.

If I resend the e-mail from SOST, it changes to status "waiting". But I want this status directly.

Thanx for your time.

0 Kudos

Hi again,

1. Just use this code :

SUBMIT 'RSCONN01'

WITH MODE EQ 'INT'

AND RETURN.

after the FM for mail,

to send mail IMMEDIATELY !

regards,

amit m.

0 Kudos

Hi Jayanthi,

The sample code of your third link solves my problem. I'm going to analize wich is the difference with the other samples.

Thanxs every body!!! you're great.

Former Member
0 Kudos

Dear Igancio,

It should work with FM SO_OBJECT_SEND.

Try this coding:

data:

wa_header type sood1,

wa_content type soli,

it_content like table of wa_content,

wa_reciever type soos1,

it_reciever like table of wa_reciever.

clear: wa_header.

refresh: it_content, it_reciever.

move:

sy-langu to wa_header-objla,

'NOTIFCATION' to wa_header-objnam,

'test' to wa_header-objdes.

move 'test' to wa_content.

append wa_content to it_content.

clear wa_reciever.

move:

'U' to wa_reciever-recesc,

sy-langu to wa_reciever-reclan,

'youremail@domain.com' to wa_reciever-recextnam,

'U' to wa_reciever-repesc,

'donotreply@domain.com' to wa_reciever-repextnam.

append wa_reciever to it_reciever.

call function 'SO_OBJECT_SEND'

exporting

object_hd_change = wa_header

object_type = 'RAW'

owner = sy-uname

sender = sy-uname

tables

objcont = it_content

receivers = it_reciever.

Hope this helps, kind regards, Kathrin!

0 Kudos

Thanx Kathrin, I'm sorry but I get the same effect with your code, it doesn't work on my system.

Thanx for your time.

Former Member
0 Kudos

Hi,

Go through the documentation provided for the FM SO_NEW_DOCUMENT_SEND_API1

Refer to the link

<a href="http://help.sap.com/saphelp_erp2005/helpdata/en/42/ea000fb4b31a71e10000000a422035/frameset.htm">http://help.sap.com/saphelp_erp2005/helpdata/en/42/ea000fb4b31a71e10000000a422035/frameset.htm</a>

OR

<a href="http://help.sap.com/saphelp_erp2005/helpdata/en/af/73563c1e734f0fe10000000a114084/frameset.htm">http://help.sap.com/saphelp_erp2005/helpdata/en/af/73563c1e734f0fe10000000a114084/frameset.htm</a>

hope it helps...

Lokesh

Former Member
0 Kudos

Hi,

Go to transaction SCOT.

check if any mail is in waiting (INT node)

and click "Start send process" (ctrl+f7).

select "INT".

This will send the mails.

Hope this helps.

Regards,

Shashank

0 Kudos

Hi,

My problem was:

in the FM SO_NEW_DOCUMENT_ATT_SEND_API1 I didn't mark the parameter commit_work = 'X'. Fool of me.

Again, thanx everybody