Skip to Content

WD Java , adaptive RFC beginnes question

hi folks,

i am new to WD Java and have a very simple question.

after getting data back from a RFC-Call to R/3 backend i call

wdContext.nodeOutput().invalidate();

to have my result in the context node, but i never see the result in my context node after this call.

the funny thing is i have the result in my internal tables but when i try to get the data with a call like:

if (wdContext.nodeEs_Visibility().currentEs_VisibilityElement().getHead_V() == "01")

- where my node in Output is ES_Visibility and the Element is Head_V -

i don't get a result?

whats my fault behind that?

best regards oliver

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Apr 12, 2010 at 07:38 AM

    hi

    check this link

    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0019b1a-775f-2910-beb8-d81f27d0d8d0?quicklink=index&overridelayout=true

    , you can find sample code for calling rfc and invalidations .

    and also check the size of the output node for the RFC it is 0 , then is some problem with your code .

    If possible porvide the code you have written for calling RFC .

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 12, 2010 at 06:59 AM

    Dear Oliver,

    After you make a request to the R/3 system, you need to invalidate the response node and not the output node.

    Pls chk.

    Regards,

    Pappala.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi,

      i'm not sure what you mean with response node, in my example

      ES_Visibility is part of the Ouptut_Node.

      my context of the rfc is like

      Context

      Output

      ES_Head

      ES_visibility

      etc.

      i tried to invalidate nodeEsVisiblity but the same effect?

      wdContext.nodeEs_Visibility().invalidate();