on 07-21-2006 3:41 PM
Web dynpro Gurus
I have a function module in my CRM system which opens a word document by taking the CRM order number as input. The FM is working correctly in backend.
I have called this FM on LinktoAction field in my web dynpro . The RFC runs but i get an error "Access not possible using NULL object reference., error key: RFC_ERROR_SYSTEM_FAILURE".
The expectation is that the FM will run and open the word document in MS word as it does in the backend.
Please let me know where I am going wrong. Pasting the method from which I have called the RFC.
Zcrm_Open_Last_Account_Review_Input getdoc = null;
try
{
getdoc = new Zcrm_Open_Last_Account_Review_Input();
wdContext.nodeZcrm_Open_Last_Account_Review_Input().bind(getdoc);
wdContext.currentZcrm_Open_Last_Account_Review_InputElement().setObject_Id(wdContext.currentContextElement().getObjectid());
wdContext.currentZcrm_Open_Last_Account_Review_InputElement().modelObject().execute();
}
catch(Exception e)
{
IWDMessageManager msgMrg = wdThis.wdGetAPI().getComponent().getMessageManager();
String msg = e.getLocalizedMessage();
if ((msg==null) || (msg.length()==0))
{
msg = e.getMessage();
}
msgMrg.reportException(msg,true);
}
Hi Sanjay:
I do have a sim'lr rqmt. I've no problem in CRM backend side(it opens the word doc properly), but when i'm trying to open from webdynpro(java) end it is not opening properly. It shows some error pop in word saying not the correct format to open with.
Can u send me the code written in web-dynpro to open the ms-word doc, if you've solved with you problem. Waiting for you reply.
Thanks in advance,
Munna SAP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please explain in detail what you want me to check.
I did find that I have to go into debugging mode to change some variables once/twice for the document I am trying to open. After that it works fine in the backend without debugger help.
Maybe I should check whether there is no problem opening the document from WD in QA/Prod, assuming some development settings might be wrong on R/3 side
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sanjay,
If this works at R/3 side but fails on Java side, then check RFM default parameters. Neither JCo (hence) nor Adaptive RFC supplies default parameter values. You have to do this explicitly and manually.
VS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
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.