<?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 problems with RFC in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-rfc/m-p/942130#M63386</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 have created a RFC wherein i submit my report program thru "SUBMIT" command. Pls refer the below code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ITHEADER LIKE TABLE OF abaplist WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;submit zrpt_mm_045  EXPORTING LIST TO MEMORY&lt;/P&gt;&lt;P&gt;                   with s_werks-low = s_werks&lt;/P&gt;&lt;P&gt;                   with s_mtart-low = s_mtart_low&lt;/P&gt;&lt;P&gt;                   with s_mtart-high = s_mtart_high&lt;/P&gt;&lt;P&gt;                   with s_matnr-low = s_matnr_low&lt;/P&gt;&lt;P&gt;                   with s_matnr-high = s_matnr_high&lt;/P&gt;&lt;P&gt;                   with s_budat-low = s_budat_low&lt;/P&gt;&lt;P&gt;                   with s_budat-high = s_budat_high&lt;/P&gt;&lt;P&gt;                   with s_lgort-low = s_lgort&lt;/P&gt;&lt;P&gt;                   with rb1 = rb1&lt;/P&gt;&lt;P&gt;                   with rb2 = rb2&lt;/P&gt;&lt;P&gt;                   with rb3 = rb3&lt;/P&gt;&lt;P&gt;                   AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     CALL FUNCTION 'LIST_FROM_MEMORY'&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;         listobject       = ITHEADER&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       NOT_FOUND        = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       OTHERS           = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;               .&lt;/P&gt;&lt;P&gt;     IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'LIST_TO_ASCI'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LIST_INDEX               = -1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WITH_LINE_BREAK          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    listasci                 = ITHEADER&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LISTOBJECT               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  EMPTY_LIST               = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LIST_INDEX_INVALID       = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                   = 3&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In TABLES option of the FM i have declare a table&lt;/P&gt;&lt;P&gt;ITHEADER1 like a structure of some abap dictionary table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to retrieve the desired output into the internal table ITHEADER1 so that i can use that table for EP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you pls tell me how to get the data in readable format, bcos when i run the above code it it giving me run-time errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jul 2005 04:46:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-07-20T04:46:52Z</dc:date>
    <item>
      <title>problems with RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-rfc/m-p/942130#M63386</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 have created a RFC wherein i submit my report program thru "SUBMIT" command. Pls refer the below code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ITHEADER LIKE TABLE OF abaplist WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;submit zrpt_mm_045  EXPORTING LIST TO MEMORY&lt;/P&gt;&lt;P&gt;                   with s_werks-low = s_werks&lt;/P&gt;&lt;P&gt;                   with s_mtart-low = s_mtart_low&lt;/P&gt;&lt;P&gt;                   with s_mtart-high = s_mtart_high&lt;/P&gt;&lt;P&gt;                   with s_matnr-low = s_matnr_low&lt;/P&gt;&lt;P&gt;                   with s_matnr-high = s_matnr_high&lt;/P&gt;&lt;P&gt;                   with s_budat-low = s_budat_low&lt;/P&gt;&lt;P&gt;                   with s_budat-high = s_budat_high&lt;/P&gt;&lt;P&gt;                   with s_lgort-low = s_lgort&lt;/P&gt;&lt;P&gt;                   with rb1 = rb1&lt;/P&gt;&lt;P&gt;                   with rb2 = rb2&lt;/P&gt;&lt;P&gt;                   with rb3 = rb3&lt;/P&gt;&lt;P&gt;                   AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     CALL FUNCTION 'LIST_FROM_MEMORY'&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;         listobject       = ITHEADER&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       NOT_FOUND        = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       OTHERS           = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;               .&lt;/P&gt;&lt;P&gt;     IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'LIST_TO_ASCI'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LIST_INDEX               = -1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WITH_LINE_BREAK          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    listasci                 = ITHEADER&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LISTOBJECT               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  EMPTY_LIST               = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LIST_INDEX_INVALID       = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                   = 3&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In TABLES option of the FM i have declare a table&lt;/P&gt;&lt;P&gt;ITHEADER1 like a structure of some abap dictionary table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to retrieve the desired output into the internal table ITHEADER1 so that i can use that table for EP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you pls tell me how to get the data in readable format, bcos when i run the above code it it giving me run-time errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2005 04:46:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-rfc/m-p/942130#M63386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-20T04:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: problems with RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-rfc/m-p/942131#M63387</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;When calling 'LIST_TO_ASCI' you should also provide an ITAB for getting the output (input to this FM is LISTOBJECT, and output should be an ITAB for LISTASCI). You are instead providing listobject to listasci field which I think is incorrect.&lt;/P&gt;&lt;P&gt;(You will also need to pass LISTINDEX = -1 which is commented currently). For more, please see the documentation of this FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2005 04:58:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-rfc/m-p/942131#M63387</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-20T04:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: problems with RFC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-rfc/m-p/942132#M63388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try it this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF I_LISTKEY OCCURS 0,&lt;/P&gt;&lt;P&gt;ZEILE(256) TYPE C.&lt;/P&gt;&lt;P&gt;DATA: END OF I_LISTKEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : i_DUMMY_OUTPUT1 type standard table of DUMMY_OUTPUT1,&lt;/P&gt;&lt;P&gt;w_DUMMY_OUTPUT1 LIKE LINE OF I_DUMMY_OUTPUT1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where:&lt;/P&gt;&lt;P&gt;TYPES : BEGIN OF DUMMY_OUTPUT1,&lt;/P&gt;&lt;P&gt;ur internal table fields.&lt;/P&gt;&lt;P&gt;END OF DUMMY_OUTPUT1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now:&lt;/P&gt;&lt;P&gt;*To Convert the list into an internal table&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'LIST_TO_ASCI'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;LISTASCI = I_LISTKEY&lt;/P&gt;&lt;P&gt;LISTOBJECT = i_LISTOBJECT&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;EMPTY_LIST = 1&lt;/P&gt;&lt;P&gt;LIST_INDEX_INVALID = 2&lt;/P&gt;&lt;P&gt;OTHERS = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR I_DUMMY_OUTPUT1. REFRESH I_DUMMY_OUTPUT1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete i_listkey from 1 to 3.&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE I_LISTKEY LINES LV_LIN.&lt;/P&gt;&lt;P&gt;delete i_listkey index lv_lin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT I_LISTKEY.&lt;/P&gt;&lt;P&gt;SPLIT I_LISTKEY-ZEILE AT '|'&lt;/P&gt;&lt;P&gt;INTO W_DUMMY_OUTPUT1-field1&lt;/P&gt;&lt;P&gt;W_DUMMY_OUTPUT1-field2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONDENSE W_DUMMY_OUTPUT1-field1 NO-GAPS.&lt;/P&gt;&lt;P&gt;CONDENSE W_DUMMY_OUTPUT1-field2 NO-GAPS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;append w_dummy_output to i_dummy_output.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;MOVE w_dummy_output_field1 TO &lt;/P&gt;&lt;P&gt;w_ur_warea_of_table -field1.&lt;/P&gt;&lt;P&gt;MOVE w_dummy_foutput_field2 TO&lt;/P&gt;&lt;P&gt;w_ur_warea_of_table-field2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND lw_ur_warea_of_table TO li_ur_itab_of_table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'LIST_FREE_MEMORY'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;LISTOBJECT = i_LISTOBJECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR I_DUMMY_OUTPUT1. &lt;/P&gt;&lt;P&gt;REFRESH I_DUMMY_OUTPUT1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once u go into debugg mode u wil understand why we are using the split and condense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is how u want it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anjali.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2005 05:46:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-with-rfc/m-p/942132#M63388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-20T05:46:45Z</dc:date>
    </item>
  </channel>
</rss>

