Skip to Content
0
Former Member
Aug 14, 2007 at 12:59 PM

GP CO input parameter problem from GP Runtime API

29 Views

Hello,

i have a problem when we are starting a GP process from webdynpro with GP Runtime API.

everything is ok, except the input parameter setting.

i was working based on that help:

Starting and Terminating Processes Using the GP API

http://help.sap.com/saphelp_nw70/helpdata/en/43/fcdf77fc6510b3e10000000a11466f/frameset.htm

"params = GPStructureFactory.getStructure(process.getInputParameters());

if (process.getTitle().equals("Time-Off Process")){

IGPStructure struc = params.addStructure("Time_off_data.1");

struc.setAttributeValue("AbsenceTypeText","Vacation");

struc.setAttributeValue("SimulationCode",0);

struc.setAttributeValue("CompletionCode",0);

struc.setAttributeValue("PaidFlag", true);

}"

i would like to set only one input attribute without any structure from GP Runtime API.

here is the definition:

IGPAttributeInfo inputCatNumb = input.addAttribute(

"I_CATALOGNUMBER_1st",

IGPAttributeInfo.BASE_STRING);

inputCatNumb.setMultiplicity(IGPAttributeInfo.MULITIPLICITY_1_1);

there is some might useful data:

(these come from the messagemanager)

inputParams.toString http://wwww.sap.com/nw/eup/gp" minoccurs="1" maxoccurs="1">

inputParams.getStructureInfo().toString http://wwww.sap.com/nw/eup/gp" minoccurs="1" maxoccurs="1">

inputParams.getStructureInfo().getTechName input

com.sap.caf.eu.gp.exception.api.GPInvocationException: Structure with name input and namespace http://wwww.sap.com/nw/eup/gp does not have substructure with name input and namespace null

i could make a structure of course instead of attribute, but any other idea, or rather a well known solution would be appreciated.

thanks a lot,

Laszlo