2010 Oct 27 11:13 AM
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
2010 Oct 28 7:00 AM
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
2010 Oct 28 9:41 AM
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
2010 Nov 05 7:51 AM
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
2010 Nov 29 10:46 AM
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
2010 Nov 30 1:01 PM
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
2011 Feb 07 11:12 AM
Can you please tell how did you resolve this issue?
Regards
Ankur Gupta