Skip to Content

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

Sending data to standard Hrxss_Cod_Save_Details ESS Function Module

Hi

I am struggling to send data to Hrxss_Cod_Save_Details RFC. It only saves the first record.

How can I save all the records?

My code :

	Hrxss_Wiw_Dtl elem = new Hrxss_Wiw_Dtl();

	for(int i=0;i<wdContext.nodeLocal_GetComm().size();i++){
	                if (wdContext.nodeLocal_GetComm().getElementAt(i).getAttributeAsText("Fieldname").matches("SYHR_A_P0105_AF_EMAIL")){
			out.reportSuccess("i:"+i);
			elem.setAttributeValue("Fieldname",wdContext.nodeLocal_GetComm().getElementAt(i).getAttributeValue("Fieldname"));
			elem.setAttributeValue("Flabel",wdContext.nodeLocal_GetComm().getElementAt(i).getAttributeValue("Flabel"));
			elem.setAttributeValue("Value_Length",wdContext.nodeLocal_GetComm().getElementAt(i).getAttributeValue("Value_Length"));
			elem.setAttributeValue("Desc_Index",wdContext.nodeLocal_GetComm().getElementAt(i).getAttributeValue("Desc_Index"));
			if(newValEmail.compareToIgnoreCase(oldValEmail) != 0){
				elem.setAttributeValue("Value",wdContext.nodeLocal_GetComm().getElementAt(i).getAttributeValue("Value"));
			}

		}
		if (wdContext.nodeLocal_GetComm().getElementAt(i).getAttributeAsText("Fieldname").matches("P0105_CELL")){
			out.reportSuccess("i:"+i);
			elem.setAttributeValue("Fieldname",wdContext.nodeLocal_GetComm().getElementAt(i).getAttributeValue("Fieldname"));
			elem.setAttributeValue("Flabel",wdContext.nodeLocal_GetComm().getElementAt(i).getAttributeValue("Flabel"));
			elem.setAttributeValue("Value_Length",wdContext.nodeLocal_GetComm().getElementAt(i).getAttributeValue("Value_Length"));
			elem.setAttributeValue("Desc_Index",wdContext.nodeLocal_GetComm().getElementAt(i).getAttributeValue("Desc_Index"));
			if(newValPbcell.compareToIgnoreCase(oldValPbcell) != 0){
				elem.setAttributeValue("Value",wdContext.nodeLocal_GetComm().getElementAt(i).getAttributeValue("Value"));
			}

		}

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