Application Development and Automation 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: 
Read only

Still no entry in queue - sost

Former Member
0 Likes
2,996

Hi,

I am using the cl_bcs class to add attachment and send mail.

When i have sent mail, i see in sost trans that no entry in queue.

What could be the reason for that?

I want the email to be in queue, that is, its status colour should be red or yellow.

I tried to use submit rsconn1 program but it just sends the emails waiting in queue however my problem is that sent emails are available in sost but not in queue.

What can i do?

Thanks.

Hi,

I am using the cl_bcs class to add attachment and send mail.

When i have sent mail, i see in sost trans that no entry in queue.

What could be the reason for that?

I want the email to be in queue, that is, its status colour should be red or yellow.

I tried to use submit rsconn1 program but it just sends the emails waiting in queue however my problem is that sent emails are available in sost but not in queue.

What can i do?

Thanks.

9 REPLIES 9
Read only

Former Member
0 Likes
2,015

Hi,

The class cl_bcs requires COMMIT WORK to be called explicitely in your program

Did you call the same?

Regards,

Ankur Parab

Read only

0 Likes
2,015

Hi,

Thanks.

I am using this class in printing delivery, after print is got, an email is sent also.

For this purpose i tried to use this.

However,

i can not use commit work in print driver program because i get dump if i do.

Here is the dump error message:

The call of a COMMIT WORK in a FORM, that will not be executed until

the commit or rollback point of the caller using the variant

PERFORM ... ON COMMIT or PERFORM ... ON ROLLBACK is not permitted.

Any other way to trigger this email sent succesfully?

Thanks.

Read only

0 Likes
2,015

Hi Deniz Toprak ,

I don't have a print program to try this out, so not sure if this works

Note 717265 - Sending in PERFORM-ON-COMMIT as of Release 6.10

According to this, you put the send functionality in a RFC function module and put the commit work in the function module and call the module with destination NONE

Try this and let us know if it works.

Regards

Read only

0 Likes
2,015

Hi Rajvansh Ravi,

The system ver is 6.0 for our system.

So i dont know whether it will work.

Thanks for your offer.

Read only

0 Likes
2,015

Do you check the return subrc value after you run the method ? If yes and it is zero. In SOST, in Send Status tab click further button and choose still not entered and send date not reached. If the mails are in the SOST now it means you didn't commit correctly you should use commit work and wait.

Read only

Former Member
0 Likes
2,015

hi deniz,

does your email is sent to external email id or SAP id.

cheers

s.janagar

Read only

0 Likes
2,015

Hi,

External email, like mmm (at)yaho com etc.

Thanks.

Read only

Former Member
0 Likes
2,015

Hi Deniz,

Just check whether your email id is maintained in su01 transaction.

su01->addresstab->email.

if not maintain this and try.

Read only

venkat_o
Active Contributor
0 Likes
2,015

Hi Deniz, Check these demo programs to know how CL_BCS has been used. <li>BCS_EXAMPLE_1 - BCS Use, Example 1 <li>BCS_EXAMPLE_2 - BCS Use, Example 2 <li>BCS_EXAMPLE_3 - BCS Use, Example 3 <li>BCS_EXAMPLE_4 - BCS Use, Example 4 <li>BCS_EXAMPLE_5 - BCS Use, Example 5 (Winword Attachment) <li>BCS_EXAMPLE_6 - Send PDF Form by E-Mail <li>BCS_EXAMPLE_7 - BCS: Send E-Mail with Self-Created Excel Attachment (Example) Thanks Venkat.O