Skip to Content
avatar image
Former Member

Failing to initialize an RFC in WDJ application

Dear All,

I have created an RFC enabled function module in $TMP.

I am trying to invoke this RFC passing a paramter value in my WDJ application.

The RFC is not even getting initialized and the entire thing ends with a null pointer exception.

Please help me out.

Regards,

Prosenjit.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Jul 07, 2009 at 10:13 AM

    Hi,

    If possible can you post the code here. There should be some issue in the code.

    Check you are passing all the mandatory parameters while executing RFC?

    Regards,

    Charan

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Prosenjit

      In the posted snipped the only place where NPE can occur is wdContext.nodeZcno_Rfc_Test_Input(). This might happen if your node Zcno_Rfc_Test_Input is located not in the root context node, but in some parent context node. If this is your case then ensure that the parent node has at least one element, before invoking wdContext.nodeZcno_Rfc_Test_Input().

      BR, Sergei

  • avatar image
    Former Member
    Jul 07, 2009 at 11:47 AM

    Hi,

    Option 1: Try to reimport the model and see if there is any information coming.

    Option 2: Create a bapi with TR and check.

    Best wishes

    Idhaya R

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 16, 2009 at 03:07 PM

    thanks

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 16, 2009 at 03:16 PM

    tahnks

    Add comment
    10|10000 characters needed characters exceeded