Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Get vendor object from RFX response

Hello All

I am trying to get the vendor reference from RFX responses.

relevant code

propsColln = doc.getProposals();

iterProps=propsColln.iterator();
		while(iterProps.hasNext()){
			prop=iterProps.next();
			propSupplier=prop.getFieldMetadata("VENDOR").get(prop);
			logMsg.setLogMessage("*****MP ***"+propSupplier);
                                            }

This prints

*****MP ***1283457025:902:Test Supplier 1

How can I get vendor reference from this class?

Although 902 is the class id for RfxVendorIBeanIfc, I am unable to call methods like getDocumentId(), error is

No args method getDocumentId() not found in class'com.sap.odp.common.db.ObjectReference'

How can I get the vendor object reference from the RFX response?

Thanks,

MP

Former Member
Former Member replied

Hi

IapiDbHandleIfc can be used to extract information from database. For e.g. lets say you want to extract document description from database for MA with display name as "ABC" you can use the below mentioned script:

import com.frictionless.api.common.platform.IapiDbHandleIfc;

logMsg = Logger.createLogMessage(session);

dbHandle = session.getDbHandle();

dbHandle.beginTransaction();

Description = dbHandle.executeIsolatedQuery("SELECT DOCUMENT_DESCRIPTION FROM FCI_CONTRACT WHERE DISPLAY_NAME= 'ABC' ");

dbHandle.endTransaction();

logMsg.setLogMessage("*****Desctiption="+Description );

Logger.info(logMsg);

However my suggestion would be to use this API to execute simple SQL queries. In case you want to implement a complex SQL logic you can always write Jobs directly on database.

Regards

Mudit Saini

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question