01-05-2015 9:22 AM
Hi All,
I had meet the below requirement.
Whenever a user login to any client like 000, 001 an email will be trigger through the productive client like 220.
i.e
The mail triggering part will contains the sender, receiptant and the body.
The sender and the receiptant email are maintained in productive client say 220.
So, during login (a customer exit is called and the code can be written thee) a user say DDIC to client 000, an email wil be triggering which is maintained in client 220.
So how can we navigate from client 000 to client 220.
I had searched in SCN but couldnot get any good suggestion.
The mail building part is there is scn but not the navigation part.
Please suggest me the navigation.
Best Regards,
Munu
01-05-2015 9:59 AM
01-05-2015 10:02 AM
The term navigation is confusing. What exactly do you mean "navigate"?
Have you read the ABAP help on SELECT... CLIENT SPECIFIED?
What is meant by "The sender and the receiptant email are maintained in productive client say 220"? Is it in a table? Why not make the table client independent?
Really, this is all basic ABAP programming. Do you understand the SAP Client concept and how it works?
01-05-2015 11:30 AM
Hi Mattew,
The email id is maintained in table ADR6 through SU01 tcode which is client dependent and in productive system like 220.
So when an user login to client 000 the email wont be maintained there. So my requirement is to fetch fropm clinet 220.
Thank for you quick response.
Regards,
Munu
01-05-2015 11:46 AM
Then read the ABAP help on CLIENT SPECIFIED.
However, a better solution is to write an RFC enabled function module to handle the emailing, Create an RFC destination for client 220 of your production system. Call your function module from client 000 with this destination (and the other information you need), and your problem is solved.
01-06-2015 5:41 AM
Dear Matthew,
That a good solution. But we cant write code in the client 000.
As we wont have the access. Only we can do in the development system client 220.
So hope we cant able to do RFC. I heard about workflow events. Can we do by that way?
Regards,
Munu
01-06-2015 5:56 AM
Code is client independent, so it doesn't matter what client you're logged into. Now that is a very basic principle.