cancel
Showing results for 
Search instead for 
Did you mean: 

working with Tables

Former Member
0 Kudos

Hi SDN,

Can some one tell me how to work with tables in onlineinteractive form? I'm doing following scenario.

I want a table with 5 rows in the form and in my BAPI I already have table defined which is under changing node after I used service call for my BAPI in the Webdynpro.

my context is as following:

Main Node (under root node)

---Changing(Subnode) 1 to1

-


T_lfbk(subnode of chaning) 0 to n (this is the table defined in BAPI)

--- all attributes of T_lfbk node.

I tried creating a table but Im not able to pass the values from Table to Context.

Really appreciate if some one can help me out.

Regards,

Ravi.D

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Please check wether the BAPI requires any neccessary input tobe given inorder to get the values.

I think your BAPI isnot fectching any values for your inputs.

Regards,

Lekha.

former_member188831
Contributor
0 Kudos

Hi Ravi,

Initially i also faced the same issue.

the problem when we take a table on webdynpro by default it will not come into edit/input mode. It will be in display mode only so that when you have online interactive form, the table is in edit mode since it is designed in formdesigner usign sfp.

if you want enter the 5 rows on table you have to open that many rows in input mode for that you have to use bind_table(itab) in wddoinit.

this itab you may have a field called slno or itemno then take a do loop and pass the counter for 5 times then use bin_table.

i did like this it is working for me.

do 5 times.

n = n + 1.

ls_rit3nrpt-SRL_NO = n.

append ls_rit3nrpt to lt_rit3nrpt.

clear ls_rit3nrpt.

ENDDO.

CALL METHOD LO_ND_ZMRA_TY_RIT3NRPT->BIND_TABLE

EXPORTING

NEW_ITEMS = lt_rit3nrpt

Thanks,

mahesh.gattu

Former Member
0 Kudos

Hi,

Have you checked wether your BAPI requires any input neccessary to be passed to get the output.

Use BIND_TABLE for the context you are doing.

Please check the entries for the table

you want to bind inthe debugging.

In the EXECUTE_<<methodname>>,

use the BIND_TABLE statement to bind the table to context.

for ex:

lr_changing_node is the changing node reference, for this

lr_changing_node->bind_table( <<tablename>>).

This would work for you now.

Regards,

Lekha

Former Member
0 Kudos

Hi Lekha,

I have already binded the table but no use.

IF lt_c_t_lfbk[] NE lt_c_t_lfbk_cp[].

lo_t_lfbk->bind_table( lt_c_t_lfbk[] ).

ENDIF.

and Im debugging Im not getting any values:

LOOP AT lt_elements[] INTO lo_element.

lo_element->get_static_attributes( IMPORTING static_attributes = ls_c_t_lfbk ).

INSERT ls_c_t_lfbk INTO TABLE lt_c_t_lfbk[].

ENDLOOP.

Regards,

Ravi

pranav_nagpal2
Contributor
0 Kudos

Hi Ravi,

lo_t_lfbk->bind_table( lt_c_t_lfbk[] ).

No need to put [] while binding...

regards

Pranav

Former Member
0 Kudos

Hi,

Please check wether the BAPI requires any neccessary input tobe given inorder to get the values.

I think your BAPI isnot fectching any values for your inputs.

Regards,

Lekha.

Former Member
0 Kudos

Hi,

Please check wether the BAPI requires any neccessary input tobe given inorder to get the values.

I think your BAPI isnot fectching any values for your inputs.

Regards,

Lekha.

Former Member
0 Kudos

Hi,

Please check wether the BAPI requires any neccessary input tobe given inorder to get the values.

I think your BAPI isnot fectching any values for your inputs.

Regards,

Lekha.