cancel
Showing results for 
Search instead for 
Did you mean: 

Missing Mandatory paramater when executing RFC model

Former Member
0 Kudos

Hi,

I encountered "Mandatory parameter INFTY_TAB of method ZHRXSS_PER_EDIT_P0105_MY missing" when executing the RFC model.

INFTY_TAB is a structure in the ZHRXSS_PER_EDIT_P0105_MY function module. This function module is used to modify the existing record, by passing some data into the INFY_TAB's paramaters and ZHRXSS_PER_EDIT_P0105_MY_INPUT. INFTY_TAB has a few parameters, such as begda, endda, usrid and many more.


                                Zhrxss_Per_Edit_P0105_My_Input input = new Zhrxss_Per_Edit_P0105_My_Input();
		wdContext.nodeZhrxss_Per_Edit_P0105_My_Input().bind(input);
		input.setIm_Pernr(wdContext.currentContextElement().getEmployeenumber());
		input.setIm_Subty(wdContext.currentSelectedInfoTypeElement().getSubty());
		input.setIm_Operation("MOD");
		input.setIm_Begda(java.sql.Date.valueOf("2007-11-14"));
		input.setIm_Endda(java.sql.Date.valueOf("9999-12-31"));
				
		P0105 tab = new P0105();
wdContext.nodeZhrxss_Per_Edit_P0105_My_Input().nodeEdit_Infty_Tab().bind(tab);		
		tab.setUsrid(wdContext.currentSelectedInfoTypeElement().getUsrid());
		tab.setBegda(wdContext.currentSelectedInfoTypeElement().getBegda());
		tab.setEndda(wdContext.currentSelectedInfoTypeElement().getEndda());
try{
			wdContext.currentZhrxss_Per_Edit_P0105_My_InputElement().modelObject().execute();
			wdContext.nodeOutput().invalidate();
		}catch(Exception ex){
			
		}

Appreciate if anyone can show me how to fix it?

Accepted Solutions (0)

Answers (1)

Answers (1)

sridhar_k2
Active Contributor
0 Kudos

Julius,

Before calling execute method, just set INFTY_TAB to your request node.

Let us assume your Model node is like this structure.

<b>Request_ZBAPI_SHIPMENT_DELIVERIES</b>

<b> Parameters

- iDELIVERY</b>

- var1

- var2

<b> - iRETRUN</b>

- var1

- var2

<b>Response</b>

- iDELIVERY

- var1

- var2

- iRETRUN

- var1

- var2

in my code

ZBAPI_SHIPMENT_DELIVERIES shipmentDelivers = wdContext.nodeRequest_ZBAPI_SHIPMENT_DELIVERIES()..nodeParameters().currentParametersElement().modelObject().getOriginalBean();

II_DELIVERYElement iDeliveryElement = wdContext.currentI_DELIVERYElement();

II_RETURNElement iReturnElement = wdContext.currentI_RETURNElement();

set all the parameters to - iDELIVERY and - iRETRUN, if it has any.

then Here you need to set the request object, like this.

<b> shipmentDelivers.setI_RETURN(zreturns);

shipmentDelivers.setI_DELIVERY(zbapi);</b>

//call execute method.

This is working for me.

Regards,

Sridhar