on 07-28-2008 7:55 AM
Hi..
Is Possible to Use PERFORM Statement in ABAP Webdynpro..
i.e. My Requirement is to use sub-routine in the ABAP Webdnypro.
Is so, can you give me an Example.
Regards,
Surjith
Edited by: surjith kumar on Jul 28, 2008 12:39 PM
Hi,
Webdynpro is fully based on ABAP OO concept.
If u want to perform same funtionality in many places of your webdynpro component, create a public method in Component controller and all that method in view.
Regards,
Karthick S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
found by self
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Although technically possible (as the solutions have been given) it is highly advisable NOT to do this! Not only is WDA OO based, it is also MVC based. There should be a clear separation of the layers of your logic. So from that simple matter only, you shoudl call a perform from WDA. You should only call methods of a model class. I suppose if you absolutely must reuse existing code, you might a perform state from inside your model class, but even that should be avoided if possible.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Surjith,
Yes, you can very well use PERFORM statement in any Class method or WDA method. You need to just create a executable program (eg testprogram) and include those subroutines in that program. Now in your WDA method, write the following line:
PERFORM subroutine_name IN PROGRAM testprogram USING ... CHANGING .....
Hope it helps. Reward point if useful.
Thanks,
Amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.