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

Mail as CC issue using FM SO_NEW_DOCUMENT_ATT_SEND_API1

naresh_bammidi
Contributor
0 Likes
1,036

Hello All,

I am facing an issue when i send mail through the FM SO_NEW_DOCUMENT_ATT_SEND_API1.

As per my requirement i need to send email as CC.To do that i have written below code to pass the values to FM.


* To
ls_receivers-receiver = '[email protected]'.
ls_receivers-rec_type = 'U'.

append ls_receivers to lt_receivers.
clear ls_receivers.

* CC
ls_receivers-receiver = '[email protected]'.
ls_receivers-rec_type = 'U'.
ls_receivers-copy     = 'X'.

append ls_receivers to lt_receivers.
clear ls_receivers.

But what ever id i mentioned in the CC ,going ass BCC( Blind copy).Below is the SOST screen shot

When i execute the FM SO_NEW_DOCUMENT_ATT_SEND_API1 alone in se37 it is working fine.

But it showing strange behaviour inside the program.

Please let me know if some one came across the same issue before.

Thanks

Naresh Bammidi

1 ACCEPTED SOLUTION
Read only

Clemenss
Active Contributor
0 Likes
811

Hi,

sorry my support for

SO_NEW_DOCUMENT_ATT_SEND_API1

has ended after CL_BCS was introduced.

Regards,

Clemens

Hello All,

I am facing an issue when i send mail through the FM SO_NEW_DOCUMENT_ATT_SEND_API1.

As per my requirement i need to send email as CC.To do that i have written below code to pass the values to FM.


* To
ls_receivers-receiver = '[email protected]'.
ls_receivers-rec_type = 'U'.

append ls_receivers to lt_receivers.
clear ls_receivers.

* CC
ls_receivers-receiver = '[email protected]'.
ls_receivers-rec_type = 'U'.
ls_receivers-copy     = 'X'.

append ls_receivers to lt_receivers.
clear ls_receivers.

But what ever id i mentioned in the CC ,going ass BCC( Blind copy).Below is the SOST screen shot

When i execute the FM SO_NEW_DOCUMENT_ATT_SEND_API1 alone in se37 it is working fine.

But it showing strange behaviour inside the program.

Please let me know if some one came across the same issue before.

Thanks

Naresh Bammidi

3 REPLIES 3
Read only

Clemenss
Active Contributor
0 Likes
812

Hi,

sorry my support for

SO_NEW_DOCUMENT_ATT_SEND_API1

has ended after CL_BCS was introduced.

Regards,

Clemens

Read only

0 Likes
811

Yes Clemens,

I tried one test case using classes.CC is going as copy.But why with FM it is not working?

Thanks

Naresh Bammidi

Read only

Clemenss
Active Contributor
0 Likes
811

Just get rid of the FM once and get happy many.

Regards

Clemens

P.S.: Never heard of FM is needed.