<?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: dynamic function module call in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-call/m-p/8102686#M1616568</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;i am expecting something like 'WRITE TO' statement which actually populates my  static internal table from dynamic table data (static internal table  is defined with maximum number of components all of CHAR type (say comp1,comp2,comp3,................. )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any inputs   please..............&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Aug 2011 11:28:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-08-17T11:28:33Z</dc:date>
    <item>
      <title>dynamic function module call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-call/m-p/8102660#M1616542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;can anybody suggest me how to handle import, export and tables parameters in a dynamic function module call if they are associated with TABLE types.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 06:12:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-call/m-p/8102660#M1616542</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-11T06:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic function module call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-call/m-p/8102661#M1616543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you mean by 'handle'? If you have a dynamic FM call, you have to specify all the parameters accordingly in the call, no matter what type the have.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 07:26:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-call/m-p/8102661#M1616543</guid>
      <dc:creator>former_member209703</dc:creator>
      <dc:date>2011-08-11T07:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic function module call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-call/m-p/8102662#M1616544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might be interested in reading this [http://help.sap.com/abapdocu_702/en/abapcall_function_dynamic.htm].&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 07:36:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-call/m-p/8102662#M1616544</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2011-08-11T07:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic function module call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-call/m-p/8102663#M1616545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;Let me be clear enough about my question.I am developing a RFC Wrapper which can take inputs as Function module name and its parameters. &lt;/P&gt;&lt;P&gt;As of now its working fine if the input FM is not associated with Table Types.&lt;/P&gt;&lt;P&gt;What could be the reason?&lt;/P&gt;&lt;P&gt;can you please give the outline&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 09:19:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-call/m-p/8102663#M1616545</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-11T09:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic function module call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-call/m-p/8102664#M1616546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;As of now its working fine if the input FM is not associated with Table Types.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you elaborate what error you're getting if you use Table Types?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 09:29:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-call/m-p/8102664#M1616546</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2011-08-11T09:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic function module call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-call/m-p/8102665#M1616547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my input FM name is SWNC_GET_workload_snapshot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR MESSAGE. &lt;/P&gt;&lt;P&gt;Short text:&lt;/P&gt;&lt;P&gt;Type conflict when calling a function module.&lt;/P&gt;&lt;P&gt;Error analysis&lt;/P&gt;&lt;P&gt;The function module interface allows you to specify only fields of a particular type under "READ_TRANSIDS".&lt;/P&gt;&lt;P&gt;The field " " specified here is a different field type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;   CALL FUNCTION name&lt;/P&gt;&lt;P&gt;  607&lt;/P&gt;&lt;P&gt;  608     PARAMETER-TABLE&lt;/P&gt;&lt;P&gt;  609       ptab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 09:45:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-call/m-p/8102665#M1616547</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-11T09:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic function module call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-call/m-p/8102666#M1616548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And what type are you using instead of the correct one for that field SWNC_T_TRANSIDS ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 10:03:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-call/m-p/8102666#M1616548</guid>
      <dc:creator>former_member209703</dc:creator>
      <dc:date>2011-08-11T10:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic function module call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-call/m-p/8102667#M1616549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok..for this FM (SWNC_GET_WORKLOAD_SNAPSHOT)  we know that the parameter READ_TRANSIDS is associated with a table type , But if i pass another FM to the same Wrapper, how do i know the associated type and processing it accordingly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;may be i am wrong , as of now i am using all character type in my import parameters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 10:14:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-call/m-p/8102667#M1616549</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-11T10:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic function module call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-call/m-p/8102668#M1616550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe I am not getting your point, but if you are trying to call a FM that already exists, all the parameter types you use, must match the ones defined in the FM interface, meaning you can not use generic types.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 10:21:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-call/m-p/8102668#M1616550</guid>
      <dc:creator>former_member209703</dc:creator>
      <dc:date>2011-08-11T10:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic function module call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-call/m-p/8102669#M1616551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's right. we are on the same page.you got it what i am trying to say.&lt;/P&gt;&lt;P&gt;I think i am almost there. &lt;/P&gt;&lt;P&gt;Initially my Wrapper was working for the FM's in which associated type is referred to a table field  (example: RFC_READ_TABLE) . But i made the corrections in my code to get the TYPE dynamically from the structure(for FM's which are not referring to a database field).similarly how do i know whether it is associated with table type and what all the steps i have to take to populate my PTAB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 10:32:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-call/m-p/8102669#M1616551</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-11T10:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic function module call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-call/m-p/8102670#M1616552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you can use this FM, FUNCTION_IMPORT_INTERFACE&lt;/P&gt;&lt;P&gt;Given an existing FM it gives you detailed information about all the interface parameters its got.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 10:35:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-call/m-p/8102670#M1616552</guid>
      <dc:creator>former_member209703</dc:creator>
      <dc:date>2011-08-11T10:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic function module call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-call/m-p/8102671#M1616553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ya by using that FM i did up to now.&lt;/P&gt;&lt;P&gt;but the issue is , can we actually input the table type data at run-time if yes, how is it possible&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My intention of calling a dynamic FM, which actually have to run as normal or standard FM but the output should be in CHAR data type &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code snippet for your understanding..&lt;/P&gt;&lt;P&gt;IMPORT PARAMETERS&lt;/P&gt;&lt;P&gt;NAME	TYPE	TFDIR-FUNCNAME&lt;/P&gt;&lt;P&gt;PARAM1	TYPE	CHAR30&lt;/P&gt;&lt;P&gt;PARAM2	TYPE	CHAR30&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT PARAMS&lt;/P&gt;&lt;P&gt;IT_EXPO1	TYPE	THENV&lt;/P&gt;&lt;P&gt;IT_EXPO2	TYPE	THENV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES PARAMS&lt;/P&gt;&lt;P&gt;IT_DATA1	LIKE	ZSCHAR4500&lt;/P&gt;&lt;P&gt;IT_DATA2	LIKE	ZSCHAR4500&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;FUNCTION_NOT_FOUND	FUNCTION MODULE NOT FOUND&lt;/P&gt;&lt;P&gt;FUNCTION_MODULE_FOUND	FUNCTION MODULE FOUND&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*CODE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT it_import1 INTO wa_import.                        &lt;/P&gt;&lt;P&gt;          ptab_line-name = wa_import-parameter.&lt;/P&gt;&lt;P&gt;          ptab_line-kind = abap_func_exporting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          if wa_import-dbfield is not initial.&lt;/P&gt;&lt;P&gt;                  CREATE DATA dyn_ref TYPE (wa_import-dbfield).&lt;/P&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;P&gt;          if wa_import-dbfield is initial.&lt;/P&gt;&lt;P&gt;                  data w_type1 type c length 30.&lt;/P&gt;&lt;P&gt;                  w_type1 = wa_import-typ.&lt;/P&gt;&lt;P&gt; CREATE DATA dyn_ref TYPE (w_type1).&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: sam_samuel on Aug 11, 2011 4:24 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: sam_samuel on Aug 11, 2011 4:30 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 14:23:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-call/m-p/8102671#M1616553</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-11T14:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic function module call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-call/m-p/8102672#M1616554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is that when you use CREATE DATA dyn_ref TYPE (wa_import-dbfield) when it's about a TABLES parameter which refers to a structure, you only create a structured data object, not a table type. So, you should use CREATE DATA dyn_ref TYPE &lt;STRONG&gt;TABLE OF&lt;/STRONG&gt; (wa_import-dbfield)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Be careful, a TABLES parameter may also refer to a table type, then you shouldn't create a "table type of table type", but continue using CREATE DATA dyn_ref TYPE (wa_import-dbfield)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, it seems you have 2 other questions??&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- can we actually input the table type data at run-time if yes, how is it possible&lt;/P&gt;&lt;P&gt;- the output should be in CHAR data type &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;What do you mean? (do you want something like the SE37 test framework? But what exactly?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Sandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 20:18:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-call/m-p/8102672#M1616554</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2011-08-11T20:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic function module call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-call/m-p/8102673#M1616555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rossi,&lt;/P&gt;&lt;P&gt;output should be in CHAR format means &lt;/P&gt;&lt;P&gt;-This wrapper RFC is triggered by third party system, which understands only char type data i.e the output tables associated type must be a char type (the abap defined packed, raw data types are not understandable)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- My wrapper should work as any standard FM but the only difference is, The output Export parameters,Tables parameters should be in char type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table type means&lt;/P&gt;&lt;P&gt;- can we give the table values as input(in table format0 for a FM,if Yes can you suggest me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: sam_samuel on Aug 12, 2011 7:57 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2011 05:56:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-call/m-p/8102673#M1616555</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-12T05:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic function module call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-call/m-p/8102674#M1616556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the issue is , can we actually input the table type data at run-time if yes, how is it possible&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually we can. So given this, I stil don't know what you are missing in your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: l_funcname TYPE c LENGTH  30,
      l_data TYPE swncdatum,
      l_time TYPE swncuzeit.

DATA: data TYPE REF TO data,
      l_type TYPE c LENGTH 30.
FIELD-SYMBOLS &amp;lt;fs&amp;gt; TYPE table.


l_data = '20110101'.
l_time = '121212'.

l_funcname = 'SWNC_GET_WORKLOAD_SNAPSHOT'.
l_type = 'SWNCGL_T_AGGTASKTYPE'.

CREATE DATA data TYPE (l_type).
ASSIGN data-&amp;gt;* TO &amp;lt;fs&amp;gt;.


CALL FUNCTION l_funcname
  EXPORTING
    read_start_date = l_data
    read_start_time = l_time
    read_end_date   = l_data
    read_end_time   = l_time
  IMPORTING
    tasktype        = &amp;lt;fs&amp;gt;.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2011 08:11:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-call/m-p/8102674#M1616556</guid>
      <dc:creator>former_member209703</dc:creator>
      <dc:date>2011-08-12T08:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic function module call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-call/m-p/8102675#M1616557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This wrapper RFC is triggered by third party system, which understands only char type data i.e the output tables associated type must be a char type (the abap defined packed, raw data types are not understandable)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I guess you're looking for a dynamic way to access components. Well, this has been answered a ton of times in the forum. Here is the principle, and if you need more information, refer to the corresponding ABAP documentation. By the way, I assume/hope that your internal tables do not contain nested structures, internal tables... (it would be a little bit more complex to handle, for example using recursive processing)&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FIELD-SYMBOLS &amp;lt;itab&amp;gt; TYPE STANDARD TABLE.
"&amp;lt;=== Here assign &amp;lt;itab&amp;gt;
FIELD-SYMBOLS &amp;lt;wa&amp;gt; TYPE ANY.
FIELD-SYMBOLS &amp;lt;field&amp;gt; TYPE ANY.
DATA type TYPE c LENGTH 1.
DATA char TYPE c LENGTH 100.
DATA string TYPE string.
LOOP AT &amp;lt;itab&amp;gt; ASSIGNING &amp;lt;wa&amp;gt;.
  DO.
    ASSIGN COMPONENT sy-index OF &amp;lt;wa&amp;gt; TO &amp;lt;field&amp;gt;.
    IF sy-subrc NE 0. EXIT. ENDIF.
    DESCRIBE FIELD &amp;lt;field&amp;gt; TYPE type.
    CASE type.
      WHEN 'P'.
        WRITE &amp;lt;field&amp;gt; TO char. "&amp;lt;=== Here, add the formatting options you want
      WHEN 'C' OR 'g'.
        char = &amp;lt;field&amp;gt;.
      WHEN OTHERS.
"&amp;lt;=== handle cases for all elementary data types
    ENDCASE.
  CONCATENATE string ';' char INTO string.
  ENDDO.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2011 09:31:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-call/m-p/8102675#M1616557</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2011-08-12T09:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic function module call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-call/m-p/8102676#M1616558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for the dynamic function call, you can create whatever data type you need: Define a varfiable, i.e. lr_any type ref to data and a field-symbol type any table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, according to FM interface description, you can&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CREATE DATA lr_any TYPE TABLE OF (&amp;lt;structure type&amp;gt;) or
CREATE DATA lr_any TYPE  (&amp;lt;table type&amp;gt;) .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;assign lr_any-&amp;gt;* to &amp;lt;field-symbol&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and pass it to function module parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the pure-character data exchange with external system you may dynamically assign the components to field-symbol, put content into string and concatenate all the strings by tabulator, i.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FIELD-SYMBOLS:
  &amp;lt;record&amp;gt; TYPE ANY,
  &amp;lt;field&amp;gt;    TYPE any.
DATA:
  lv_field  TYPE string
  lv_record TYPE string,
  lt_output TYPE TABLE of STRING.

LOOP AT &amp;lt;any&amp;gt; ASSIGNING &amp;lt;record&amp;gt;.
  DO.
    ASSIGN COMPONENT sy-index OF STRUCTURE &amp;lt;record&amp;gt; TO &amp;lt;field&amp;gt;.
    IF sy-subrc = 0.
      lv_field = &amp;lt;field&amp;gt;.
      IF lv_record IS INITIAL.
        lv_record = lv_field.
      ELSE. 
      CONCATENATE lv_record lv_field INTO lv_record
        SEPARATED BY cl_abap_char_utilities=&amp;gt;hoizontal_tab.
      ENDIF
    ELSE.  
      EXIT." DO
    ENDIF.
  ENDDO.
  APPEND lv_record TO lt_output.
  CLEAR lv_record.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the way to return data to external call. If you want to receive data from external system, it would be the other way round.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2011 14:37:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-call/m-p/8102676#M1616558</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2011-08-12T14:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic function module call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-call/m-p/8102677#M1616559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;let me say that, i am declaring as table types for all the input parameters(say 10 parameters).At run time i got to know that i have five char type inputs and other five  as table types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i achieve this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Aug 2011 07:19:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-call/m-p/8102677#M1616559</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-13T07:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic function module call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-call/m-p/8102678#M1616560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after you got the info from FM FUNCTION_IMPORT_INTERFACE, you can &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CREATE DATA lr_any TYPE (&amp;lt;type&amp;gt;).
ASSIGN lr_any to &amp;lt;any&amp;gt;. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use describe (or any CL_ABAP_TYPE&lt;/P&gt;&lt;P&gt;_DESCR method) to find out if it is a table, structure, field or what ever.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Aug 2011 12:44:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-call/m-p/8102678#M1616560</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2011-08-13T12:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic function module call</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-call/m-p/8102679#M1616561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;thanks for your reply,i got what you are trying to say.&lt;/P&gt;&lt;P&gt;but i have a question. &lt;/P&gt;&lt;P&gt;How about my Local inteface of my FM. any way it is not accepting generic types, in the import parameters.&lt;/P&gt;&lt;P&gt;what would you suggest in this regard......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and let me know how to dump the internal data which is present in the field-symbol to my custom internal table(which is associated with CHAR type)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Aug 2011 17:59:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-function-module-call/m-p/8102679#M1616561</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-14T17:59:05Z</dc:date>
    </item>
  </channel>
</rss>

