cancel
Showing results for 
Search instead for 
Did you mean: 

Cleaning Table after esecuting a BAPI

Former Member
0 Kudos

Hi,

I'm writing a web dynpro that calls the BAPI_SALESORDER_GETLIST and displays it in another view i need to know if there's a way to clean the context when i return to the main view.

Another thing that i need to know is how to clean the input field of the first view.

Thanks, Manuel

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

i stands for sun.security.krb5.internal.i?

why does it cannot be resolved? thanks Manuel

Former Member
0 Kudos

Manuel,

you have to import the right library. Properties -> Java build path -> library -> Add external JARs

But U need to know where to find the library.

Vito

Former Member
0 Kudos

what libray i need?

Former Member
0 Kudos

Manuel,

in main view doInit method use this (get the current element and remove it):

int n = wdContext.nodeTabellaPosizioni().size();

for (i=1;i<n;i++)

{

wdContext.nodeTabellaPosizioni().removeElement(wdContext.nodeTabellaPosizioni().getCurrentElement());

}

Note that in the above example nodeTabellaPosizioni is a table in the context.

To clean an input field in the current context use this (NameField is a field in the current context in my examples):

wdContext.currentContextElement().getNameField("");

Hope this help you.

Vito Palasciano