Skip to Content

RFC call not return values

Hi All, I have simple program Application in javawebdynpro. which calls RFC passing value one value get an other other value.Which is not getting back. example. if I pass 'X' i want get back 'Y'. Excuted RFC and it didn't return value. I testing RFC it is working good. Please advice i missed binding for return attribute to display. Please see an attached file. Code: Below in Component controller- public void wdDoInit() { //@@begin wdDoInit() Ztest_Ssn_Mask_Input input = new Ztest_Ssn_Mask_Input(); wdContext.nodeZtest_Ssn_Mask_Input().bind(input); input.setI_Bname("123456"); } 2. Method. public void executeModeltest( ) { try { wdContext.currentZtest_Ssn_Mask_InputElement().modelObject().execute(); wdComponentAPI.getMessageManager().reportSuccess("Test messgae"); - This message is getting String test1 = wdContext.currentZtest_Ssn_Mask_OutputElement().getZ_Ssn(); wdComponentAPI.getMessageManager().reportSuccess("Test messgae"+ test1); - Thi smessage is not getting wdContext.nodeOutput().invalidate(); } catch (Exception ex) { // If an exception is thrown, then the stack trace will be printed ex.printStackTrace(); } ------- In View public void onActiontest(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent ) { //@@begin onActiontest(ServerEvent) wdContext.currentContextElement().setSsn(wdContext.currentContextElement().getSsn()); //WdContext.currentContextElement().setSsn(wdContext.currentContextElement().getSsn()); //@@end }

test.txt.zip (702 B)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jun 28, 2016 at 04:00 PM

    Is the response empty direct after execution? I see that you invalidate the output node which will pretty much kill all of your results. Have you tryed debuggin in ABAP if the call reaches the back end?

    Regards,

    Tobias

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.