cancel
Showing results for 
Search instead for 
Did you mean: 

Adaptive RFC problem-unable to fetch data.

Former Member
0 Kudos

Dear experts,

I am porting a webdynpro application from a sandbox server to the develpment server.The application talks to six different functional modules via JCO connections.Out of the six , two of them are custom modules.The problem is that the application is not able to retrieve the details from one of the two custom modules.Rest all are working fine.I have created the same JCO destinations as the sandbox server.The two funtional modules are also copied from the sandbox R/3 to the development R/3.Also the webdynpro code is the same.

When i execute the faulty FM in the backend , its working fine .However the application is not able to retrieve the data from it.I tried isolating the FM and creating a test application based on the FM.There also its not giving any data.When i re-imported it to the test project it did give some delta warnings.I suspect something wrong with FM. But don't know what is wrong.

Any help will be appreciated.

Thanks,

Karambir Singh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Karambir,

Can you provide what error you are getting at the time of executing FM from Application, or you are simply not getting any data without any error?

when you re-imported it in test project what error it was giving to you?

Regards,

Bhavik

Answers (2)

Answers (2)

abhijeet_mukkawar
Active Contributor
0 Kudos

hi,

if JCOs are wotking fine then check these for faulty FM.

1) Through external debugging check out if proper values are being sent to backend or not(for external debugging goto transaction code se37, open your bapi->goto Utilities->Setting->Debugging->Here check if "Act" check box is activated or not), then put a break point in code and run application from WD.

2) If proper values are sent to backend then check in WD if output node is recieving values as output or not, using

wdContext.node<output node containing values>.size()

3) If proper values are coming in output node ie if it is showing size non zero for valid parameter in import then check if the node is properly bind to UI element .

If you are using table control then best way is use Apply template method in the context menu of RootUIElement of view.

4) or finaly check if any exception is thrown while executing model object.

if this doesnt solve your problem then please post the error or exception details if any.

hope it helps

regards

Former Member
0 Kudos

Thanks folks for your inputs. I used Abhijeet's suggestion and went to the debugger.There i found that the BAPI internally converts the input number to a different format.It works when you test it out from the backend.The same does not work when I call it from the webdynpro application.Perhaps it's not able to call the code to do the conversion to the right format.Probably i need to change the BAPI code to take the number as it is.

Thanks,

Karambir Singh

Former Member
0 Kudos

Hi,

Nice to hear that you resolved your problem.

Please mark your question as answered.

Regards,

Bhavik

Former Member
0 Kudos

Hi Karambir,

I am trying to setup environment where i will have NetWeaver Developer Studio 7.0 and

Web AS Java on my laptop, then i want to connect to Sandbox (r/3 system) via sld.

I am trying without success. My JCo destination test fails from WebDynpro Content Admin. I see the gateway entry when i run the JCo destination test from Visual Administrator.

Can you send me documentation that would explain what i should do establish JCo destination. I wan to setup this way as a way of local debugging during the development.

Thanks in advance.

Former Member
0 Kudos

Give me your e-mail ID.I'll send the docs.

Former Member
0 Kudos

mallinarc@gmail.com

Thank you.

Ramesh

former_member189631
Active Contributor
0 Kudos

Hi Karambir,

Please check the folowing Scenarios:

*Check your Binding and Mappin between Model and Custom contoller,

CustomContollers.

*Use seperate custom contoller for each FM Functionmodlues to avoid

complexity of the project.

  • It might be problem while executing the RFC so use Message Manager Code

to find error details incase of any exceptions

*Every function module has returncode, so Map and bind the return code also

because you can find the prolem if ur function module returns.

Regards,

Ramganesan K.

Caritor India Pvt. Ltd.