Skip to Content
avatar image
Former Member

I want to use the table as an input parameter.

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Jul 30, 2008 at 08:12 AM

    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.

    rfc-function-passing-a-table-as-input

    Regards,

    Mithu

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 30, 2008 at 08:13 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 30, 2008 at 09:16 AM

    Thank you for everybody.

    It tries immediately

    Add comment
    10|10000 characters needed characters exceeded