cancel
Showing results for 
Search instead for 
Did you mean: 

Read data from a dynamic Context

Former Member
0 Kudos

Hallo to everybody,

I have create a dynamic context. I write data into a alv which is linked to this context. Now I will get this data.

In static context I use the method get all declared attributes for read all data from the context.

how i can implement in dynamic context?

Can anybody helps me?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Matthias,

Welcome to the Web Dynpro for ABAP Forum.

You can read the dynamic context node values.But not using the 'code wizard' in application tool bar.

Since you create dynamic context it is not available physically.So instead of reading the context node using code wizard write manually the same code.You will get the values into the internal table.Very recently I also did the same requirement its working fine for me.

Former Member
0 Kudos

Hi,

thanks for your fast answer.

I think your right but i don't know how i gets this data in a internal table.

Former Member
0 Kudos

Hi,

Ok I understood your doubt.Since you are creating dynamic context so that structure is not available in where you want to get the values am i right? .

Then how you are assigning values to ALV.that means you are creating structure and assigning values to field symbol table am i right?.So declare that structure in 'Attributes' of view insted of declaring local to that method.So that structure is visible globally.Now assign that structure to the field symbol table.

First you start the coding.If any issues come let me know.

Former Member
0 Kudos

Yes that is the problem,

my abap skill is ver bad, can you give me an sample code for this.

I don't know how i can create a internal table regarding to a field symbol.

DATA itab type standard table of <internal_table>

or

DATA itab type standard table of (internal_table)

don't runs.

And how i can create a structure to a context which can change it.

Edited by: Matthias Schmidt on Dec 22, 2008 2:15 PM

pranav_nagpal2
Contributor
0 Kudos

Hi Matthias,

i think to learn more about field symbols abap general will be best forum......

but look in this link for basic help

link: http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3860358411d1829f0000e829fbfe/content.htm

regards

Pranav

Former Member
0 Kudos

Big Thanks,

I have solved the problem.