cancel
Showing results for 
Search instead for 
Did you mean: 

EVS (Displaying Bapi)

Former Member
0 Kudos

Hi

I have gone through the following link

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/tu... on enabling value help - 8.htm

if i want to display company ID and Comapany name from Bapi how will i do that.

Regards,

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Murali

In the init() Method execute the Bapi. Populate the ValueSet with Bapi Values

Ex.

for (int i=0;i<wdContext.nodeBapi<xxx>.size;i++)

{

valueSet.put(wdContext.nodeBapi<xxx>.getBapi<xxx>Elementat(i).getCompanycode(),wdContext.nodeBapi<xxx>.getBapi<xxx>Elementat(i).getCompanyvalue())

}

Kishore

Former Member
0 Kudos

Hi, i know this post is very old but i have a problem doing something like this....

Im filling an EVS from a Bapi, and the problem is that when i fill de valueSet it shows me the company codes in the key column (that is ok) but whatever i put as the second parameter of the .put() method, it shows me the companycode too!

for (int i=0;i<wdContext.nodeBapi<xxx>.size;i++)

{

valueSet.put(wdContext.nodeBapi<xxx>.getBapi<xxx>Elementat(i).getCompanycode(),wdContext.nodeBapi<xxx>.getBapi<xxx>Elementat(i).getCompanyvalue())

}

if i have something like that code, it fills my evs both with what getCompanyvalue() returns :S.

any ideas?

thanks in advance.