cancel
Showing results for 
Search instead for 
Did you mean: 

multiple inserts in a table

Former Member
0 Kudos

Hi

In the table after trying to enter value in 3 row,the table becomes of 2 rows only.

i have not written any code in WDDoModify method

thanks

prajakta

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Is your table binded to a model node or a simple node.

Also, send any operation that you are performing on your table.

Regards,

Murtuza

Former Member
0 Kudos

Hi

i have binded it to the model node only

and i have just writen the code in init method of table search view

Bapi_Flight_Getlist_Input input = new Bapi_Flight_Getlist_Input();

IPrivateFView.IBapi_Flight_Getlist_InputElement ele = null;

for(int i = 0;i<5;i++)

{

ele = wdContext.createBapi_Flight_Getlist_InputElement(input);

wdContext.nodeBapi_Flight_Getlist_Input().addElement(ele);

}

and i have one search button over there

cardinality i have set to 1:n

selection car 1:n

thanks

prajakta

Former Member
0 Kudos

Bapi_Flight_Getlist_Input input = null;

for(int i = 0;i<5;i++)

{

input = new Bapi_Flight_Getlist_Input();

wdContext.nodeBapi_Flight_Getlist_Input().bind(ele);

}

Try using this.

Regards,

Murtuza

Former Member
0 Kudos

Hi

but here wat value does ele has,bcoz if i am writing like,

IPrivateFView.IBapi_Flight_Getlist_InputElement ele = null;

it is asking like you cannot bind empty ele.

Former Member
0 Kudos

sorry that should be input... forgot to change there....

Regards,

Murtuza

Former Member
0 Kudos

Hi

again it is enabling for 1 value only

thanks

prajakta

Former Member
0 Kudos

Hi Prajakta,

Then you can bind a newly created value node to the table and instantiate its object on the click of the button and then on submit, you can read the complete node and set the corresponding values to the model node as input parameters and execute the BAPI.

Regards,

Murtuza