This represents a single BDC dynpro call
Usage example using XbpInterface:
import com.redwood.scheduler.api.connector.sap.rfc.scripting.RfcConnectionManager;
import com.redwood.scheduler.api.connector.sap.rfc.scripting.xbp.XbpInterface;
import com.redwood.scheduler.api.connector.sap.rfc.scripting.xbp.XbpWork;
import com.redwood.scheduler.api.connector.sap.rfc.scripting.BdcDynpro;
import com.redwood.scheduler.api.connector.sap.rfc.scripting.BdcReturn;
import com.redwood.scheduler.api.connector.sap.rfc.scripting.BdcDynproFactory;
import com.redwood.scheduler.api.model.SAPSystem;
{
SAPSystem sapSystem = jcsSession.getSAPSystemByName("NSP");
RfcConnectionManager rfcConnectionManager = new RfcConnectionManager(sapSystem);
rfcConnectionManager.callXBP(new XbpWork()
{
public void performWork(final XbpInterface xbp)
{
BdcDynpro[] bdcDynpro = new BdcDynpro[1];
bdcDynpro[0] = BdcDynproFactory.createBdcDynpro("SAPLSUU5", "0050");
bdcDynpro[0].addValue("BDC_OKCODE", "=SHOW");
bdcDynpro[0].addValue("USR-02-BNAME", "USER");
BdcReturn bdcReturn = xbp.callTransaction("SU01", bdcDynpro);
BdcMessage[] msgs = bdcReturn.getMessages();
for (BdcMessage msg : msgs)
{
jcsOut.println(msg.getMessageV1() + " " + msg.getMessageType() + " " + bdcReturn.getReturnCode());
}
}
});
}