Skip to Content
avatar image
Former Member

RFC lookup problem

Hi Expert,

I am trying to do RFC lookup and i am getting the following Exception .

Exception caught !!! Attempt to use a node in another document without importing it first : org.w3c.dom.DOMException: Attempt to use a node in another document without importing it first

The response structure mentioned in the RFC is E_Plant_Value, but while parsing it show the response tag as Plant_Value.

Regards,

srinivas

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Sep 16, 2009 at 04:38 PM

    Hi Experts!!

    My RFC structure is like

     
    
    Z_RFC_LOOKUP
       E_SALES_ORG
               ITEM
                           VKORG
                            WTERG
      I_MATNR
               ITEM
                            MATNR
    

    I am sending MATNR as import parameter to UDF which does the RFC Lookup , the request xml is in correct strucutre ,but the response is not comming properly... it gives the above mentioned error. I checked the RFC in SE37 and also tested it with the MATNR values , the tables is maintained properly and it returns the VKORG ann WTERG values in SAP, but in XI the lookup fails ...

    any pointers ???...

    Srinivas

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Srinivas,

      First map the whole response to the field. Remove all the necessary lines in the udf for getting any specific value. First get the whole response from RFC itself and see whether you are having any values for any of the fields. If you dont get then try to send the matnr input to the rfc with leading zeros. If you dont send leading zeros for the matnr the response will be null. So try to add leading zeros. Use formatnum after matrnr with 16 zeros in it and see.

      Regards,

      ---Satish

  • avatar image
    Former Member
    Jan 02, 2010 at 02:12 PM

    A Restart of the RFC communication channel and recreation of import and export parameters from SAP side solved this error after some trial and errors.

    Thanks,

    Srinvas

    Add comment
    10|10000 characters needed characters exceeded