Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8623

Re: Not Able to Create Model

$
0
0

hi,

 

the error is pretty clear - you are trying to import a function module that contains "/" in it's name and this is not a valid character.

 

while the issue is clear, there might be two possibilities I could see to help you solve your issue:

 

1. you need a substitute variable for " / " and it looks like NWDS expects " % ";

-- I understand your function module lies in a private namespace, but NWDS is complaining about it; - looking at the implementation code, using a % could do the trick.

 

2. use *MED_PS_MEWRFCREF* as Search parameter and manually select the entry.

 

 

reading the source code of com.sap.dictionary.services_2.0.0.140708094527.jar, the method in question looks like:

 

    private static String internalGetABAPNameFromBackendName(String name)    {        int nameLength = name.length();        int readIndex;        for(readIndex = 0; readIndex < nameLength && isDefaultChar(name.charAt(readIndex)); readIndex++);        if(readIndex >= nameLength)            return name;        SAPStringBuffer newValue = new SAPStringBuffer(nameLength);        if(readIndex > 0)            newValue.append(name, 0, readIndex);        while(readIndex < nameLength)         {            char theChar = name.charAt(readIndex++);            if(isDefaultChar(theChar))                newValue.append(theChar);            else            if(theChar == '%')            {                String theSubStr = name.substring(readIndex, name.indexOf('%', readIndex));                readIndex += theSubStr.length() + 1;                newValue.append((char)Integer.parseInt(theSubStr, 10));            } else            {                throw new IllegalArgumentException((new StringBuilder()).append("Invalid char ").append(theChar).append(" found in ").append(name).toString());            }        }        return newValue.toString();    }

it seems you might be ending in line 24 of the above code; while I'm not positive your jar is exactly the same as the one I posted, it's worth a try.

 

 

 

Hope it helps,

D.


Viewing all articles
Browse latest Browse all 8623

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>