<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Transfering dynamic data structures via RFC in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfering-dynamic-data-structures-via-rfc/m-p/5532637#M1263937</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oliver,&lt;/P&gt;&lt;P&gt;  What you can do is to have a table with a field of say 100 characters.&lt;/P&gt;&lt;P&gt;Since this is a table, you can add more lines when the length increases .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YOu can make use of Function module RKD_WORD_WRAP to convert a big string into a table of shorter strings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample usage of this FM:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'RKD_WORD_WRAP'
     EXPORTING
          TEXTLINE            = L_TEXT
          OUTPUTLEN           = 100

*    IMPORTING
*         OUT_LINE1           =
*         OUT_LINE2           =
*         OUT_LINE3           =
    TABLES
         OUT_LINES           = OUT_LINES
    EXCEPTIONS
         OUTPUTLEN_TOO_LARGE = 1
         OTHERS              = 2
          .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then pass this OUTLINES to the RFC tables parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi Kanth Talagana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Apr 2009 09:16:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-24T09:16:21Z</dc:date>
    <item>
      <title>Transfering dynamic data structures via RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfering-dynamic-data-structures-via-rfc/m-p/5532636#M1263936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got a quite basic question. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to transfer a text String with differing length to a external tool. Since I don't know how long the String will be, I had to set the number of characters to 30.000. Is there a way to transfer dynamic structures? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously the character typ "String" is not allowed for RFC....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oliver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2009 09:06:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfering-dynamic-data-structures-via-rfc/m-p/5532636#M1263936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-24T09:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: Transfering dynamic data structures via RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfering-dynamic-data-structures-via-rfc/m-p/5532637#M1263937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oliver,&lt;/P&gt;&lt;P&gt;  What you can do is to have a table with a field of say 100 characters.&lt;/P&gt;&lt;P&gt;Since this is a table, you can add more lines when the length increases .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YOu can make use of Function module RKD_WORD_WRAP to convert a big string into a table of shorter strings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample usage of this FM:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'RKD_WORD_WRAP'
     EXPORTING
          TEXTLINE            = L_TEXT
          OUTPUTLEN           = 100

*    IMPORTING
*         OUT_LINE1           =
*         OUT_LINE2           =
*         OUT_LINE3           =
    TABLES
         OUT_LINES           = OUT_LINES
    EXCEPTIONS
         OUTPUTLEN_TOO_LARGE = 1
         OTHERS              = 2
          .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then pass this OUTLINES to the RFC tables parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi Kanth Talagana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2009 09:16:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfering-dynamic-data-structures-via-rfc/m-p/5532637#M1263937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-24T09:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Transfering dynamic data structures via RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfering-dynamic-data-structures-via-rfc/m-p/5532638#M1263938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunatellty the structure I have to transfer is a table :(.. so I have different rows containing strings...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2009 09:30:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfering-dynamic-data-structures-via-rfc/m-p/5532638#M1263938</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-24T09:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: Transfering dynamic data structures via RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfering-dynamic-data-structures-via-rfc/m-p/5532639#M1263939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  How about delimiting the set of lines belonging to one string from another set using a string of &lt;/P&gt;&lt;P&gt;'----&lt;/P&gt;&lt;HR originaltext="----------------------------------------" /&gt;&lt;P&gt;' (100 hyphens)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assume that you have a table of strings say it_strings&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at it_strings.
CALL FUNCTION 'RKD_WORD_WRAP'
     EXPORTING
          TEXTLINE            = IT_STRINGS-STRING
          OUTPUTLEN           = 100

*    IMPORTING
*         OUT_LINE1           =
*         OUT_LINE2           =
*         OUT_LINE3           =
    TABLES
         OUT_LINES           = OUT_LINES
    EXCEPTIONS
         OUTPUTLEN_TOO_LARGE = 1
         OTHERS              = 2
          .
IF SY-SUBRC &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
append lines of out_lines to it_final.
it_final-data = '---------------------------------------'.
append it_final.
clear it_final.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi Kanth Talagana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2009 09:58:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfering-dynamic-data-structures-via-rfc/m-p/5532639#M1263939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-24T09:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Transfering dynamic data structures via RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transfering-dynamic-data-structures-via-rfc/m-p/5532640#M1263940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will do it that whay.. thx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2009 12:13:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transfering-dynamic-data-structures-via-rfc/m-p/5532640#M1263940</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-24T12:13:06Z</dc:date>
    </item>
  </channel>
</rss>

