on 07-02-2009 9:13 AM
Hi Experts,
i have a table populating data from RFC.i have a column with username and i am populating usernames in that column.
now the RFC had changed the code for username column.usernames are changed to alphabetical order in backend but from webdynpro username column not populating users in aplhabetical order.When i checked in RFC its showing data perfectly but through webdynpro its not working.
Strucuture not chnaged only code had changed.Could any one help me.
Regards,
Suree
Hi,
If I understand your query correctly, you are saying that the usernames from the backend are coming in sorting order where as in the front end(Webdynpro view) the results are not shown in sorting order. Am I correct in my understanding?
Are you directly binding the model node to the table? or are you copying the RFC data to some value node?
Regards,
Jaya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI VJR,
this is my code
wdContext.nodeResultTable().invalidate();
if(wdContext.nodePt_Details().size()>0)
{
for(int i =0;i<wdContext.nodePt_Details().size();i++)
{
IPt_DetailsElement details = wdContext.nodePt_Details().getPt_DetailsElementAt(i);
IResultTableElement result = wdContext.nodeResultTable().createResultTableElement();
result.setusertName(details.getName1());
}
}
Regards,
suresh
Hi,
where you are adding the IResultTableElement to nodeResultTable?
Try adding like this:
wdContext.nodeResultTable().invalidate();
if(wdContext.nodePt_Details().size()>0)
{
for(int i =0;i<wdContext.nodePt_Details().size();i++)
{
IPt_DetailsElement details = wdContext.nodePt_Details().getPt_DetailsElementAt(i);
IResultTableElement result = wdContext.nodeResultTable().createResultTableElement();
result.setusertName(details.getName1());
wdContext.nodeResultTable.addElement(i,result);// Add the element to value node like this.
}
}
Regards,
Jaya.
HI VJR,
i already added the result to the value node but its not working
wdContext.nodeResultTable().invalidate();
if(wdContext.nodePt_Details().size()>0)
{
for(int i =0;i<wdContext.nodePt_Details().size();i++)
{
IPt_DetailsElement details = wdContext.nodePt_Details().getPt_DetailsElementAt(i);
IResultTableElement result = wdContext.nodeResultTable().createResultTableElement();
result.setPatient(String.valueOf(Long.parseLong(details.getKunnr())));
result.setPatientID(details.getKunnr());
result.setPatientName(details.getName1());
wdContext.nodeResultTable().addElement(result);
}}
Regards
Suresh
Might be the "sorting" is done in the FM after sending values to Portal????... Please check the order of the ABAP lines of code. May be the "sort" code should be added after some "copy" code or something like that.
Also, in your view, add 1 more table UI (for testing) via "apply template" of this particular model node directly and see the order of the values.
Edited by: Kavitha on Jul 2, 2009 4:07 PM
Hi Suresh
Did you re-import the Model?
afterthat re-start the server.
Go to Portal http://<hostname>:<porttno>/iindex.html -->Webdynpro tools -->Webdynpro console -->Invalidation of ARFC Metadata cache.
Try to remove this cache.
Thanks
Tulasi Palnati
Edited by: Tulasi Palnati on Jul 2, 2009 2:04 PM
Hi Suresh,
This might happen:
In the SAP GUI (for particular client) may the result was sorted out based on the userid. (Just my guess).
Just check with the ABAP developer that, did they do any specific code to send the result in sorted order? If they didn't do and the result is coming automatically means, there was some personilization done in SAP GUI to show the result in sorted order of userid.
Regards,
Jaya.
If you are sure that only the code is changed, then model re-import and server restart are surely not required.
Are the number of outputs (users) displayed in R3 and WebDynpro same? Are the inputs that you are passing in SE37 exactly same as what you are passing from WebDynpro? (Number of digits if numeral, and case sensitiveness if alphabets). Please check them once.
Edited by: Kavitha on Jul 2, 2009 2:04 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Re-import the RFC model...and restart the server after the re-import.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.