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

Send Tcode as a Link in mail

Former Member
0 Likes
4,000

Hi,

My requirement is to send a Transaction code as a link in an e-mail to SAP Inbox.

We don't want to send it as a Work item. But send as an e-mail using FM ' SO_NEW_DOCUMENT_ATT_SEND_API1'

I have tried to Create a shortcut and send the shortcut as an attachment , but that is not the expectation .

Please advice.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,685

Hi Aravind

SAP Workflow Items are the standard way to deliver the functionality you require.

What do you want to reinvent the wheel with this approach?

Regards

Arden

Hi,

My requirement is to send a Transaction code as a link in an e-mail to SAP Inbox.

We don't want to send it as a Work item. But send as an e-mail using FM ' SO_NEW_DOCUMENT_ATT_SEND_API1'

I have tried to Create a shortcut and send the shortcut as an attachment , but that is not the expectation .

Please advice.

7 REPLIES 7
Read only

Former Member
0 Likes
2,686

Hi Aravind

SAP Workflow Items are the standard way to deliver the functionality you require.

What do you want to reinvent the wheel with this approach?

Regards

Arden

Read only

0 Likes
2,685

Hi Arden,

Work items were not a feasible solution for this requirement.

However, have been able to achieve the same using the below format as the message.

'<A HREF="sap-object://CUST_TRAN ZTCODE"> Free Text </A>'.

Read only

0 Likes
2,685

Well Done

Read only

Former Member
0 Likes
2,685

hi,

please explain how you have achieved it proper way!!

or

can you upload the code.??

thank you.

Read only

0 Likes
2,685

Hi Aditya,

While sending the message using FM 'SO_NEW_DOCUMENT_ATT_SEND_API1' ,

in the  contents_txt ( Tables) pass the string

'<A HREF="sap-object://CUST_TRAN ZTCODE"> Free Text </A>'


where 'ZTCODE' is the desired Tcode to be called.


'Free Text' is the Text for the Link.



Read only

matt
Active Contributor
0 Likes
2,685

SO_NEW_DOCUMENT_ATT_SEND_API1 is obsolete. Use the CL_BCS classes instead.

Read only

0 Likes
2,685

Hi Expert,

How to send the parameter(s) along with the tcode in below expression.

'<A HREF="sap-object://CUST_TRAN ZTCODE"> Free Text </A>'

Thanks,

Nitin