2009 Jun 30 8:52 AM
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.
2009 Jun 30 8:56 AM
Hi,
The class cl_bcs requires COMMIT WORK to be called explicitely in your program
Did you call the same?
Regards,
Ankur Parab
2009 Jun 30 9:07 AM
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.
2009 Jun 30 10:12 AM
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
2009 Jun 30 11:12 AM
Hi Rajvansh Ravi,
The system ver is 6.0 for our system.
So i dont know whether it will work.
Thanks for your offer.
2009 Jun 30 1:10 PM
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.
2009 Jun 30 9:19 AM
hi deniz,
does your email is sent to external email id or SAP id.
cheers
s.janagar
2009 Jun 30 9:41 AM
2009 Jun 30 9:47 AM
Hi Deniz,
Just check whether your email id is maintained in su01 transaction.
su01->addresstab->email.
if not maintain this and try.
2009 Jun 30 9:53 AM
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