Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Using variables within structures

Former Member
0 Likes
690

Hi All,

I tried creating a variable and putting it under a structure. When I run the query I get an error stating "Cannot use variable <variableid> in structure elements". Any idea as to why this is happening? Can't I use variables within structures? Where is this limitation documented?

Appreciate your response...

Thanks

Sundar

4 REPLIES 4
Read only

Former Member
0 Likes
632

an idea to this is to give the name of the variable in 'COMPONENT" and find the suitable "Component Type" for that variable.

for e.g create a component like 'VAR!" and give the component type as "KUNNR" (kna1-kunnr).

in this case, var1 will take the TYPE "Char 10" of kunnr.

try and see

Read only

0 Likes
632

Hi Ajay,

Thanks for your response but I think I didnt put forth my requirement correctly. I was talking about creating a structure and a variable in BEx designer and creating BEx reports. I am not sure how I can implement your solution in a BW report.

Thanks

Sundar

Read only

0 Likes
632

well,

i used to create structure for BW only when i wanted to create extractor in FM.

which is later used to create Datasources.

so, can you tell me, how they structure should be.

Read only

0 Likes
632

Hi Ajay, I am not talking about the structure which you can create with RSO2 transaction for your datasource. I am talking about structures in BEx designer (BW305).

Thanks

Sundar