on 02-26-2014 9:43 PM
Hello
I have created a WDA, wherein I created a assistance class.
In my MAIN view, I have a my_action_method, here am pulling the data from database, hence I wrote a FETCH_ORDERS method in the assistance class and I am calling this method from my_action_method, I specified assistance class's FETCH_ORDERS as INSTANCE method, pls. let me know is it OK of INSTANCE method or I should go with STATIC method in assistance class?
Thank you
Hi, what the visibility of the assistance class methods you created. For E.g : - Instance method with visibility as public, wd_assit->FETCH_ORDERS to get orders in your method. Thanks, Chaitanya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Its fine to call an instance method of your assistance class from your action method and no need of static methods as you have wd_assist object created by the WDA framework.
You can access all methods ( instance public methods ) of your assistance class like
WD_ASSIST->FETCH_ORDERS( ).
In your case, the static method call is not required.
To understand more about static methods & instance methods, please refer the below link
ABAP Static vs Instance method - Which to use when? - ABAP Help Blog
Hope this helps you.
Regards,
Rama
Hello Rama,
When you get a chance pl. look into my below thread bcz its stopping our users, its about how & where SAP is populating a attribute? I'm not sure whether your system has this WD component or not to have a better look? Thank you
Hi Ramakrishna,
When you get a chance pl. help us, pl. check below question,
http://scn.sap.com/thread/3769244
Thank you
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.