Skip to Content

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

Guided Procedures: Second step is not receiving parameter-values

Hi, well i am stuck.

I have two COs as WebDynpro Java. These two have the same parameters, input and output.

My process inherits two blocks with one action in each and one CO.

process

block1

action1

co1

block2

action2

co2

Now i have the problem that even though i did a consolidation on the paramters in process overview the parameters are not shown in second WebDynpro.

I tried to change process for taking an predefined Display view and here the parameters are shown!

So what is going wrong here. My code in InterfaceController of the second WebDynpro is as follows.

Can someone help why the parameters won't be shown in second WebDynpro?!

br

public com.sap.caf.eu.gp.co.api.IGPTechnicalDescription getDescription( java.util.Locale locale )
  {
    //@@begin getDescription()
    
	IWDTextAccessor textAccessor = wdComponentAPI.getTextAccessor();
		GPWebDynproResourceAccessor resourceAccessor = new GPWebDynproResourceAccessor(textAccessor);
		IGPTechnicalDescription technicalDescription = GPCallableObjectFactory.createTechnicalDescription("CO_NAME","CO_DESCRIPTION",resourceAccessor,locale);
	
    
//		Pre-existing structure for input / output parameters
		IGPStructureInfo input = technicalDescription.getInputStructureInfo();
		IGPStructureInfo output = technicalDescription.getOutputStructureInfo();
    
		try {

		IGPAttributeInfo idistrChan = input.addAttribute("distr_chan", IGPAttributeInfo.BASE_STRING);
		idistrChan.setMultiplicity(IGPAttributeInfo.MULITIPLICITY_0_1);

		IGPAttributeInfo idivision = input.addAttribute("division", IGPAttributeInfo.BASE_STRING);
		idivision.setMultiplicity(IGPAttributeInfo.MULITIPLICITY_0_1);


//		   Create the attributes in the output structure
		IGPAttributeInfo distrChan = output.addAttribute("distr_chan", IGPAttributeInfo.BASE_STRING);
		distrChan.setMultiplicity(IGPAttributeInfo.MULITIPLICITY_0_1);
	
		IGPAttributeInfo division = output.addAttribute("division", IGPAttributeInfo.BASE_STRING);
		division.setMultiplicity(IGPAttributeInfo.MULITIPLICITY_0_1);
	

//		   add result state
		IGPCOResultStateInfo success = technicalDescription.addResultState("Success");
		success.setDescriptionKey("Success_desc");
		return technicalDescription;
		} catch (GPInvocationException e) {
		return null;
		}
    
    //@@end
  }

Former Member
Not what you were looking for? View more on this topic or Ask a question