on 12-10-2008 6:27 AM
Hi all,
I am facing a differnent problem with model classes in my webdynpro application.
I have a componenet where in i am using standard BAPIs.The problem here is i am getting the latest data from the bapi only when the application is loded first.
If i add a new record and want to know the size of output node it is not giving the latest one.It is showing the size it has when the application is loded,But in the backend it is getting updated everytime.
What might me the problem for this??Is it that the model proxy classes that are loded when the application is loded is not getting refreshed??
Edited by: chandrashekar chandrashekar on Dec 10, 2008 7:30 AM
Hi,
As per my understanding,Here your executing the model for loading the data and after that your updating the record in backend.
After that your not executing the model .Lets try placing the same execute code in doModifyView() methid of view
Regards,
Goriga
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Execute Your Function Module Again.
Regards
Raghu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If that is not same then it should not give me the correct output at any point of time.It is showing me the correct size of the output node when i am restarting the application.
IF i am in the application menas after 1 or 2 transactions it is not giving me the correct size of the output node
Hi,
This is the code i am using...
My problem in brief is if i try to add a record it is getting updated in SAP but if i try to display the output node it is giving the size it has when the application is loded.
If i restart the application it is giving the updated sise of the output node
Bapi_Class_Getdetail_Input inputGetDetail = null;
inputGetDetail = new Bapi_Class_Getdetail_Input();
wdContext.nodeBapi_Class_Getdetail_Input().bind(inputGetDetail);
inputGetDetail.setClassnum(className);
inputGetDetail.setClasstype("300");
try
{
executeBapi_Class_GetDetail();
}
catch(WDDynamicRFCExecuteException ex)
{
return false;
}
executeBapi_Class_GetDetail()
{
try
{
wdContext.currentBapi_Class_Getdetail_InputElement().modelObject().execute();
wdContext.nodeOutput().invalidate();
}
catch(WDDynamicRFCExecuteException ex)
{
ex.printStackTrace();
}
}
User | Count |
---|---|
96 | |
11 | |
11 | |
10 | |
9 | |
7 | |
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.