cancel
Showing results for 
Search instead for 
Did you mean: 

how to clean Rfc Input table.

hadar_morchi
Participant
0 Kudos

Hi all,

I have a web Dynpro application linked to RFC.

in the controller I have the .Bind command and more.

in the view I want to send the RFC some value parameter and one table parameter.

so I :

declare a variable in the type of my input node :

something like :


Zcrmf_Back_Ofice_Rep_Prep_Tran_Input tansIn = wdContext.currentZcrmf_Back_Ofice_Rep_Prep_Tran_InputElement().modelObject();

Then I set all of my parameters value

and add the parameters Table. to the node.

Everything works fine. except from the parameters table.

I can see the table is not cleaned [it always keep growing ... if I delete row from the table , it will be send again to the BAPI !!! ]

when I was trying to delete the object in the table I got null error ...

any ideas ?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

try{

Zcrmf_Back_Ofice_Rep_Prep_Tran_Input tansIn = wdContext.currentZcrmf_Back_Ofice_Rep_Prep_Tran_InputElement().modelObject();

tranLn.execute();

...........

........

tranIn.modelInstance().disconnectIfAlive();

}

try this Morchi

hadar_morchi
Participant
0 Kudos

Hi Chaitanya A.

still didn't work.

however , got it fix with a little trick.

after execute i just removed all element from this specific node.

My appreciations anyway ,

Hadar

Answers (2)

Answers (2)

hadar_morchi
Participant
0 Kudos

After execute i just removed all element from this specific node.

Hadar

Former Member
0 Kudos

Hi Morchi,

have you disconnected the model instance after using.if not just check once..

regards

Chaitanya.A

hadar_morchi
Participant
0 Kudos

Hi Chaitanya.A ,

Thanks for your Reply.

What do mean by "disconnected the model instance " ?

How can i do that ?

Do you mean "invalidate" ? if so then yes i did.

Hadar