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: 

Issue with SWN_CREATE_SHORTCUT

Former Member
0 Kudos
718

Hi Experts,

I am using FM 'SWN_CREATE_SHORTCUT' to send mail to PO approver with attachment, when the PO approver clicks the attachment in his mail it should open the transaction 'ME29N'.

It is working fine...ME29N Default screen is getting opened .But the requirement is .ME29N should get opened with a specific PO number as parameter.

please help me out in solving the issue.

Thanks,

Bharani

6 REPLIES 6

Former Member
0 Kudos
229

Hi,

1/Create custom table ZXXX with field:

- user

-PO number

2/In your custom program save PO for User in table ZXXX

3/Create new transaction ZTXXX and program ZRXXXXX, in this program

select from table ZXX for login user current PO#

set parameter 'BES' field PO#

call transaction ME29N

4/ call function SWN_CREATE_SHORTCUT' with attch transaction ZTXXX

Bye Jan

0 Kudos
229

Hi jan,

Thanks for your early reply.

The solution you mentioned works fine for some scenario's and it does not work ,if we have the same user for set of PO's.

And also as of client policy i need to go with minimal use of Zobjects.

Request you to give me if any other solution on this.

Thanks in advance,

Bharani

0 Kudos
229

Hi,

if custom database is a problem you can use SAP table forTVARV if you use name = Z..... you will avoid conflict with SAP objects.

Bye Jan

0 Kudos
229

Hey N,

I think in this FM you have a input for PARAMETER - fill that - 'FieldName=Field value';'FieldName=Field value';

this way you can have transaction filled with your parameter.

Regards,

Salil

satyajit_mohapatra
Active Contributor
0 Kudos
229

There is no need of creating variants. Use I_PARAMETER of the FM to pass the values. Check this link for code......

http://wiki.sdn.sap.com/wiki/display/Snippets/CreatingaSAPshortcutforanytransactionandsendingitby+mail

Former Member
0 Kudos
229

Can you please tell how did you resolve this issue?

Regards

Ankur Gupta