Skip to Content
0
Former Member
Oct 27, 2015 at 08:55 PM

how to load supplier from agreement on Forms

20 Views

Hi Experts,

We are creating a Form and selecting a Master Agreement from the Header tab. When the MA is created, we want to automatically populate the Supplier from the MA into the Suppliers tab.

We tried the following code but could not get the Supplier loaded.

vendExtId = IBeanHomeLocator.lookup(session,doc.getVendorRef()).find(doc.getVendorRef()).getExternalId();

vendorBean= (VendorIBeanIfc) IBeanHomeLocator.lookup(session, com.sap.odp.api.doccommon.masterdata.VendorIBeanHomeIfc.sHOME_NAME).findByExternalId(vendExtId);

if (hasValue(vendorBean)){

rColCol=doc.getCollnVendors();

ven = rColCol.create();

ven.setDisplayName(vendorBean.getDisplayName());

rColCol.add(ven);

Please see attached screen print for what we are tryign to see.

Thank you!

Phil

Attachments

screen print.gif (33.2 kB)