cancel
Showing results for 
Search instead for 
Did you mean: 

I want to use the table as an input parameter.

Former Member
0 Kudos

Hi all.

I try to make the function to register details of the accounting slip.

Then, to the problem be not to be able to execute it by passing the table that inputs the details part to the RFC module well.

Please teach the method in which someone is good.

My best regards.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Eiichi,

Take a loop. Inside loop create model instance and set the model attribute value. Add the element to the node. Outside loop bind node element and execute the model.

Check this thread.

Regards,

Mithu

Answers (2)

Answers (2)

Former Member
0 Kudos

Thank you for everybody.

It tries immediately

PradeepBondla
Active Contributor
0 Kudos

check this too

https://www.sdn.sap.com/irj/sdn/thread?threadID=145768

This thread will be useful to you..... check the code inthis thread https://www.sdn.sap.com/irj/sdn/thread?threadID=741170

try {   		
  	for( int i = 0; i < wdThis.wdGetContext().nodeInput().size(); i++  ) {
	ObjIDList = new Swhactor();
	IPublicVcMainCEPData.IInputElement tn = wdThis.wdGetContext().nodeInput().getInputElementAt(i);	
	ObjIDList.setObjid(tn.getObID());
	ObjIDList.setOtype(tn.getObType());							
	wdContext.nodeZ1Hr_Disp_Cep_Datatab_Input().currentZ1Hr_Disp_Cep_Datatab_InputElement().modelObject().addT_Input(ObjIDList);
	}
//	execution of Bapi
	wdThis.wdGetContext().currentZ1Hr_Disp_Cep_Datatab_InputElement().modelObject().execute(		  
 } catch (Exception ex) { 
        msgMgr = wdThis.wdGetAPI().getComponent().getMessageManager();
	msgMgr.reportException("Error from bapi: " + ex.toString(), true);
        ex.printStackTrace();
        }
	wdContext.nodeOutput().invalidate();
	wdContext.nodeT_Input().invalidate();
	
    //@@end
  }

PradeeP