cancel
Showing results for 
Search instead for 
Did you mean: 

Issues with an invalid character

Former Member
0 Kudos

Hi community,

I'm having some issues calling a RFC function module that I've developed myself.

This function module returns a table with a single column. The FM has already been used in other applications and it works fine...

I'm getting the following error when using the "Test Data Service" in VC:

Portal request failed.
A name was started with an invalid character, line 1.

The value of the first line starts with a " / ", could it be the source of the error? If yes, how can I retrieve these value from SAP without having this problem?

Hope I've been clear enough.

Thanks for your help.

Regards,

C.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Cristina,

From my own experience I had problem with '<>' character in the same way. Might not be your problem but I am reporting this.

In one of my applications a client was typing '<text>' and the FM was presenting a problem. I instructed not tu use these characters.

Regards,

Former Member
0 Kudos

Hi!!

Well, I'm not having trouble with the " character. What I meant in my previous post was that I thought I might have been having troubles with the / character in my return tables =P (but I've been testing that and that's not the issue...)

I've been testing my FM to see where it gets stucked.

These are the two selects I'm using in my FM:

SELECT DISTINCT lobjtype
      FROM swotlv
      INTO TABLE tobj
      WHERE isapi = 'X'
        AND modelonly LIKE 'R'.

    SELECT * INTO TABLE tresult
      FROM tojtt
      WHERE language = sy-langu.

When testing the 2 selects separetedly, I'm having the same error when using the first select.

Could it be the characters ' in my conditions?

I have really no clue.

Any help please?

Regards,

C.

Former Member
0 Kudos

Hi!!

I've been trying a lot of stuffs and I found a solution to my problem...

Let's say that my initial FM is called FM1, and the FM that's working is called FM2.

The only difference between FM1 and FM2 is the declaration of the table TOBJ.

Here are the headers of each FM:

FM1
Local Interface:
  IMPORTING
     VALUE(IM_DESC) TYPE  CHAR_35
  TABLES
      TRESULT STRUCTURE  TOJTT
  CHANGING
     VALUE(TOBJ) TYPE  SWO_TOBJTYP
FM2
Local Interface:
  IMPORTING
     VALUE(IM_DESC) TYPE  CHAR_35
  TABLES
      TRESULT STRUCTURE  TOJTT
  CHANGING
     VALUE(TOBJ) TYPE  ZTTY_LOBJTYPE

SWO_TOBJTYP is an existing table type in SAP, based on the data element SWO_OBJTYP.

I've created myself ZTTY_LOBJTYP.

ZTTY_LOBJTYP is a table type based on my structure ZST_LOBJTYP.

ZST_LOBJTYP contains an unique data element of type SWO_OBJTYP.

So, that's the change I made in my FM to make it work. But I don't understand why it's is working... I don't see the difference between FM1 and FM2...

Thanks for any explanation you could give.

Regards,

C.