on 08-05-2009 3:58 PM
Hi Experts,
I'm looking for an pleace in the WEB dynpro, where I can pleace all constants definition used leater in the methods. It would be good if it could be shared between more WD's.
Just something like a TOP-Include.
Greetings
Wojtek
Create a single Assistance class, source it from the WD components that you want and declare the attributes there.
Regards,
Gaurav.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hope this might be helpful.
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/43/1f6442a3d9e72ce10000000a1550b0/frameset.htm
Regards,
Gaurav.
The INCLUDE concept is not applicable inside Web Dynpro. What you can do is to use an interface for defining constants. Just create it in SE24 and then use it at will from any WD component or even any normal ABAP object (report, function module, etc).
From SE24, create an interface ZIF_EX_CONST.
Under "Attributes", create an attribute such as VALUE1 using Constant in the "Level" column. Asign the value under the "Initial Value" column as well.
Afterwards you can use this constant with: zif_ex_const=>value1.
Of course, you can also use the Assistant class for this as it was pointed out, but if it's just general constants you want to share, maybe you want to separate the coding from the constants.
Regards
Edited by: Alejandro Bindi on Aug 5, 2009 12:55 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.