Quantcast
Channel: SCN : All Content - Web Dynpro ABAP
Viewing all articles
Browse latest Browse all 3667

how to write Routines in a Method

$
0
0

Hi all,

 

As of my knowledge, subroutines(Form xxx --- Endform) is not allowed in methods OOPS ABAP.  I would like to know how modularization techniques can be used in a method in Web Dynpro ABAP.

 

In detail I would explain as, In my web dynpro component, I have a view and methods. In one of my methods I was writing code and the code became too large. Now while reviewing the code, it is confusing. So i would like to write the code in small modules, as we write in standard ABAP Report programs using Subroutines with Perform.  Ex. Perform Datafetch, Perform logic, Perform alvDisplay.

 

In a similar way is there any way that I can modularize my code in my Method. One option I have is write the part of code in another Method and call that Method. But this, separates the method away from my current method. I don't want to do that.

 

I would like to write my code in Single Method, and how to apply modularization here.

 

Any Help Please..


Viewing all articles
Browse latest Browse all 3667

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>