2008 Sep 30 7:47 PM
How can I declare data in sub routine exits i.e. in user exit? Can it be possible to declare the data in side the sub routine? And How can I set the parameters inside the user exits sub routine? If the declaration can't be done inside the subroutine then how can I pass the data or parameters ?
Thanks in Advance,
With Regards,
Abhijit Mandal
2008 Sep 30 8:00 PM
Hello,
So far I have read 2 questions on your post:
1) How can I declare data in sub routine exits.
You can do it as usual.
DATA: ONE TYPE <your type>
2) How can I set the parameters inside the user exits sub routine
Im afraid it is not possible, you have to use the ones provided by the user exit (Check the Function Module where the exit is being called from.
I hope this gave you a hint.
Bye
Gabriel P.-
2008 Sep 30 8:00 PM
Hello,
So far I have read 2 questions on your post:
1) How can I declare data in sub routine exits.
You can do it as usual.
DATA: ONE TYPE <your type>
2) How can I set the parameters inside the user exits sub routine
Im afraid it is not possible, you have to use the ones provided by the user exit (Check the Function Module where the exit is being called from.
I hope this gave you a hint.
Bye
Gabriel P.-
2008 Sep 30 8:18 PM
Hello Gabriel
Your second answer is not correct. It is possible to fetch data from the main program where the user-exit is called and even to manipulate its data.
For details please refer to [SAP User Exits and the People Who Love Them|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/208811b0-00b2-2910-c5ac-dd2c7c50c8e8]
However, while reading data from the main program is one thing you should really know what you are doing if you manipulate data in the main program from within the user-exit.
Regards
Uwe
2008 Sep 30 8:22 PM
Hello Uwe....
I was not aware of it....again there is nothing imposible for abap!!
Thanks for yor input!!
Bye
Gabriel P.,