on 01-02-2015 8:30 AM
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
Venkata,
Have you debugged the calls on the SAP side to confirm they are being executed when an Agentry client transmits and return the correct data?
I would start there and once I see the wrappers and BAPI classes called returning the correct data then move to debugging the Java / POJO in Agentry.
--Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Bill,
Thanks for the reply and apologies for the delay response.
I had try you suggestions. All the data is executing well in back end.
I had upgrade my SMP to SP04 from SP03 and executed the same code with out any changes in java layer/SAP layer and it goes well. I'm able to see the data for my complex table. I don't say this is a solution. I just posted here how i overcome that issue but unhappy that i couldn't found the reason my issue.
Regards
Pavan.Venkatt
I'm glad it is working now for you.
Please mark this Discussion with a Correct Answer and Helpful Answer where appropriate. See http://scn.sap.com/community/support/blog/2013/04/03/how-to-close-a-discussion-and-why Even if you discovered the solution without any outside contributions, it helps others to understand what the solution turned out to be.
--Bill
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.