Hello All,
I'm trying to retrieve the values of a complex table in agentry UI from SAP. Mentioning all the steps what we have created for this.
# Object type & BAPI is defined for that CT Table.
# MDO Configuration, BAPI Wrapper Configuration has been is done in agentry syclo config panel.
# All the parameters have been configured in mobile application configuration
# Created a CT table in agentry UI with given fields names.
# Created a custom java project and wrote a POJO class.
# Exported custom java project to a jar file and referring it in the classpath of the mobile application created in SAP management cockpit.
But, In agentry UI (ATE) I'm not getting any records in the CT table from the SAP. The data is available in the backend.
Below is my POJO code and I'm working on SMP 3.0 SP03, agentry production environment.
--------------------------------------------------------------------------------------
public class ctplant_level1_2 extends ComplexTableObject
{
public String TECHNICIANS = "";
public String ZLEVEL = "";
public String PLANT = "";
public String STORAGE = "";
public String getTECHNICIANS()
{
return TECHNICIANS;
}
public void setTECHNICIANS(String tECHNICIANS)
{
TECHNICIANS = tECHNICIANS;
}
public String getZLEVEL()
{
return ZLEVEL;
}
public void setZLEVEL(String zLEVEL)
{
ZLEVEL = zLEVEL;
}
public String getPLANT()
{
return PLANT;
}
public void setPLANT(String pLANT)
{
PLANT = pLANT;
}
public String getSTORAGE()
{
return STORAGE;
}
public void setSTORAGE(String sTORAGE)
{
STORAGE = sTORAGE;
}
@Override
public void setNotes(Table arg0) throws Exception
{
}
@Override
public void setProperties(Table tbl) throws Exception
{
setTECHNICIANS(tbl.getString("TECHNICIANS")); // TECHNICIANS field name in backend table
setZLEVEL(tbl.getString("ZLEVEL")); // ZLEVEL field name in backend table
setPLANT(tbl.getString("PLANT")); // PLANT field name in backend table
setSTORAGE(tbl.getString("STORAGE")); // STORAGE field name in backend table
}
@Override
public void setPropertiesForDeletedRecord(Table arg0) throws Exception
{
}
public ctplant_level1_2()
{
super();
}
public ctplant_level1_2(String aTECHNICIANS, String aZLEVEL, String aPLANT, String aSTORAGE)
{
setTECHNICIANS(aTECHNICIANS);
setZLEVEL(aZLEVEL);
setPLANT(aPLANT);
setSTORAGE(aSTORAGE);
}
@Override
public String getID()
{
return getTECHNICIANS();
}
}
--------------------------------------------------------------------------------------
Thanks
Venkata Pavan