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

access Variables of attributes TAB in WDComponent

$
0
0

Hi All,

 

Can anyone explain how to access Variables of attributes TAB of component controller and view .

1)I have declared variable

g_werks1 in component controller attributes tab 

g_werks2 in view  attributes tab .

 

 

can I use g_werks1 and g_werks2 any where in my compoent.

 

2)can we change the content of the g_werks1 and g_werks2 ?.

 

Please provide me some example how use them.

 

I gave a try as below

in component controller methods

g_werks1 = '123'.

 

in view methods

 

WD_COMP_CONTROLLER->g_werks1 = '123'.

g_werks2 = '123' w.r.t View

 

its throwing error “Field "G_WERKS" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement."

 

Thanks

Gopal


Viewing all articles
Browse latest Browse all 3667

Latest Images

Trending Articles



Latest Images

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