‎2009 Apr 29 9:27 AM
Dear experts,
I trying to pass XML-Strings to a SAP System using RFC-Components.
I found in a SAP-Press-Book that it´s not possible to use the ABAP data type "String" as import and export parameter since the length has to be determined when programming the FM.
On the other hand I saw RFC-FM with String als parameter.
Is this a version issue? Anyone some information on this topic.
Thanx
Oliver
‎2009 Apr 29 9:41 AM
As far as i know strings are not allowed in RFC FM because its a deep structure. Never saw this running in any versio, but of course i didnt tried that everywhere.
A table of char1024 might be useful for this, splitting the string into 1024 byte portions.
‎2009 Apr 29 9:41 AM
As far as i know strings are not allowed in RFC FM because its a deep structure. Never saw this running in any versio, but of course i didnt tried that everywhere.
A table of char1024 might be useful for this, splitting the string into 1024 byte portions.
‎2009 Apr 29 9:51 AM
Hi Rainer,
thx for your response.
The idea that Strings are not allowed as parameters was my idea aswell. But SAP uses it in FM "RSR_NET_INTERFACE" (i.e.)...
So there must be a way...
Thx
‎2009 Apr 29 9:53 AM
‎2009 Apr 29 11:22 AM
‎2009 Apr 29 11:42 AM
Hello Oliver
I am not sure where the problems lies but I can create and call the following RFC-fm (rfcdest = 'NONE') without any problems (on our 4.6c):
FUNCTION z_us_rfc_with_string.
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*" IMPORTING
*" VALUE(ID_INPUT) TYPE STRING
*" EXPORTING
*" VALUE(ED_OUTPUT) TYPE STRING
*"----------------------------------------------------------------------
ed_output = id_input.
ENDFUNCTION.
Regards
Uwe
‎2009 Apr 29 12:01 PM
Hi Uwe,
thx for your input.
I believe the problem lies in the RFC SDK used - doing the RFC-Call.
I found that in the current version NW RFC SDK Strings are allowed as data type...diffrent to the "classic" one...
Thanx to every body for your help!
Regards Oliver