on 07-02-2007 11:06 AM
Hi,
I have two SAP standard BAPIs(GetList & GetDetail) in R/3. Since they are not in MI BAPI wrapper format, I have created two RFCs as per MI BAPI wrapper format, which calls the two standard BAPIs. I have created a SyncBO(S01), specified the RFC destination and mapped the two RFCs.Created the MCD and downloaded the XML file. Using this XML file I have created a MI Smart Sync project. I have uploaded the applcation onto the server & downloaded the aplication in to my MI client.
The application lists all the header values. The problem is with item values, ie, if a particular header record have three item records, its repeatedly showing the first item record three times.Not showing the second and third item records.
Do anyone have a solution for this.
Regards
Shemim
Hi Shemim,
That is the bug in generated project using netweaver developer studio.
In the generated code
you can see the Class TableContentProvider
Please refer these methods
public Vector getTableWithSyncBoInstanceHeader(
String syncBoName,
String syncKey)
{
.....
tableVector.addElement(lineVector);
}
public Vector getTableWithSyncBoInstanceItems(
String syncBoName,
String syncKey,
String itemName)
{
.....
retVector.addElement(itemVector);}
In the generated code , we can see one statement like i mentioned above.
Just replace these statements like this..
tableVector.addElement(lineVector); --- >
tableVector.addElement(lineVector.clone());
retVector.addElement(itemVector); --- >
retVector.addElement(itemVector.clone());
export the warfile again and test.
This should solve your problem
Thanks
Regards
Devendra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The only problem now I face is the item values are listing in reverese order.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lakshmi,
As suggested by Devendrakumar, I have replaced
tableVector.addElement(lineVector) of the method getTableWithSyncBoInstanceHeader
to
tableVector.addElement(lineVector.clone())
and
retVector.addElement(itemVector) of the method getTableWithSyncBoInstanceItems
to
retVector.addElement(itemVector.clone()). Now am able to see all the corresponding item records of a particular header record. But my problem is the item records are listing in reverse order only, ie, the first record is listing as last one,...... I think some sorting is taking place somewhere.
Any suggestions...
Regards
Shemim
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.