cancel
Showing results for 
Search instead for 
Did you mean: 

Binding table with internal table

Former Member
0 Kudos

Hi All,

Please excuse me if i sound ignorant. I have an internal table and i m binding it with table in my view. I m not getting any error here but still i m not able to view any data in view table. I have already initialized my internal table with some values which i want to display.

Regards

Amit

Accepted Solutions (1)

Accepted Solutions (1)

pranav_nagpal2
Contributor
0 Kudos

Hi Amit,

Please note that fields in your internal table must have same name as name of your context attribute in the context node which you have binded with the view table.

Check for this problem if you have done it correctly please provide more details of your code and bindings.

regards

Pranav

Former Member
0 Kudos

Thanks a lot pranav it is working fine now.

Answers (1)

Answers (1)

Former Member
0 Kudos

press ctrl+f7...u will get popup...

in that click radiobutton read context....

press f4 and give the table name...

system will generate code...

other then data declara delete every thing...

DATA LO_ND_MARA_TAB TYPE REF TO IF_WD_CONTEXT_NODE.

DATA LO_EL_MARA_TAB TYPE REF TO IF_WD_CONTEXT_ELEMENT.

DATA LS_MARA_TAB TYPE WD_THIS->ELEMENT_MARA_TAB.

DATA LV_MATNR LIKE LS_MARA_TAB-MATNR.

  • navigate from <CONTEXT> to <MARA_TAB> via lead selection

LO_ND_MARA_TAB = WD_CONTEXT->GET_CHILD_NODE( NAME = WD_THIS->WDCTX_MARA_TAB ).

LOEL_MARA_TAB->bind_table( imara )_

Former Member
0 Kudos

Hi Shan,

Yes i was doing the same thing but problem was with the names of fields of internal table.

thanks for your interest.

Regards

Amit