Skip to Content

how to clean Rfc Input table.

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 ?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    author's profile photo
    Former Member
    Posted on Aug 20, 2007 at 07:06 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Aug 20, 2007 at 06:54 AM

    Hi Morchi,

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

    regards

    Chaitanya.A

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 20, 2007 at 08:31 AM

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

    Hadar

    Add comment
    10|10000 characters needed characters exceeded