cancel
Showing results for 
Search instead for 
Did you mean: 

create table into interactive form

Former Member
0 Kudos

Hi experts,

I created interactive forms that bring personal details (id number, name,address etc).

The interface type is: xml schema-based interface

and the xml schema source : file.

I need to fill a table - i saw an examples in the internet the problem is that all the examles was with

interface type diferent -

how can i fill a table with my interface?

thanks in advanced(hope i was clear)

Michal.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

anyone???pls help me.

thanks.

Michal.

Former Member
0 Kudos

If it is used with Web Dynpro ABAP then u must have created a node which provides data to ITF and used to get back data from ITF. Here under your main node you create another node with cardinality 0..N and fill it up and then display it in ITF.

Let me know if you have doubts.

Thanks,

Abhishek

Former Member
0 Kudos

thank you very much for reply.

I did created in the web dynpro a table and filled it.

i dont know how can i show it in the form - i drill and down and change the pallete->object to flowed

and i see nothing there.

1. do i need to do loop in the method when i set the attribute?

2. what do i need to do in the form?

3. in the interface it not let me to change it.

i really apreciate your help.

Michal.

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

You should have a data view in your form that represents the context from WD that you bound to the form. You can just drag and drop the 1:n or 0:n context node onto your form designer and it will create a table in the form. For questions about creating the form itself, consider the Interactive Form forum instead of the WDA Forum.

Former Member
0 Kudos

What should i write in the method?

how do i send the data of the table to the form?

i tried to write:

1) lo_el_ls0021->set_attribute(

exporting

va;ue = it_0021

name = 'IT_0021').

and i got dump.

2) lo_el_ls0021->set_attribute(

exporting:

value = it_002-yy_id

name = 'YY_ID')

and i got dump too.

i dont know how to send the table's data in the method to the form.

i really apreciate your help.

Michal.

Former Member
0 Kudos

pls pls pls help me.

Former Member
0 Kudos

You need to use the bind_table method.

Something like this:

Say, I have declared my context node which is to be passed to ITF like this:

Header (1..1)

- f1

- f2

Item (0..n)

- f3

- f4

  • fill the structure (ls_header) for header i.e fill the values for f1,f2

  • fill the table (lt_items) for items f3, f4

*get the reference to the header node and pass the structure ls_header

lo_nd_header = wd_context->get_child_node( wd_this->wdctx_material ).

lo_nd_header->bind_structure( new_item = ls_header ).

*get the reference to the item node and pass the table lt_items

lo_nd_item = lo_nd_material->get_child_node( 'ITEM' ).

lo_nd_item->bind_table( new_items = lt_items ).

Thanks,

Abhishek

Former Member
0 Kudos

thank you all very much for reply.

my problem was solved.

i had to bind the table also in transaction SFP to the data in WD.