<?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 sending flat file using custom idoc in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-flat-file-using-custom-idoc/m-p/7219362#M1523641</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;While sending flat file using custom idoc both outbound side and inbound side working properly but last record showing in table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example 3 records in file but displaying 3rd record in table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u solve  this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swapna&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: swapna2020 on Aug 31, 2010 3:18 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Aug 2010 07:58:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-31T07:58:58Z</dc:date>
    <item>
      <title>sending flat file using custom idoc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-flat-file-using-custom-idoc/m-p/7219362#M1523641</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;While sending flat file using custom idoc both outbound side and inbound side working properly but last record showing in table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example 3 records in file but displaying 3rd record in table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u solve  this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swapna&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: swapna2020 on Aug 31, 2010 3:18 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Aug 2010 07:58:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-flat-file-using-custom-idoc/m-p/7219362#M1523641</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-31T07:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: sending flat file using custom idoc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-flat-file-using-custom-idoc/m-p/7219363#M1523642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Let us know how you are populating data? I believe there can be a problem while populating your IDOC segment.&lt;/P&gt;&lt;P&gt;If you have solved, please close this Thread and let community know what was the reason? might be helpful for others.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Mayank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Sep 2010 14:25:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-flat-file-using-custom-idoc/m-p/7219363#M1523642</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-02T14:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: sending flat file using custom idoc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-flat-file-using-custom-idoc/m-p/7219364#M1523643</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; I didnt get solution for my question.If i check in table inbound side its showing only last record.In this example 2nd record.&lt;/P&gt;&lt;P&gt;For example this  my flat file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;100	IN	SWAPNA	BANGALORE	REG	BANGALORE&lt;/P&gt;&lt;P&gt;200	IN	SEEMA	HYD	REG	HYD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am populating using upload function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'F4_FILENAME'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;FILE_NAME           = p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move p_file to v_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    FILENAME                      = v_file&lt;/P&gt;&lt;P&gt;    FILETYPE                      = 'ASC'&lt;/P&gt;&lt;P&gt;    HAS_FIELD_SEPARATOR           = 'X'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    DATA_TAB                      = T_ZZVENDOR.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE E398(00) WITH 'No Customers Found'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inbound side function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   INCLUDE MBDCONWF.&lt;/P&gt;&lt;P&gt;  TABLES : ZZVENDOR. "Cutomer Header&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***Data&lt;/P&gt;&lt;P&gt;  DATA : W_ZVENDOR_SEG1 LIKE ZVENDOR_SEG1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA : T_ZZVENDOR LIKE ZZVENDOR OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WORKFLOW_RESULT = C_WF_RESULT_OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT IDOC_CONTRL.&lt;/P&gt;&lt;P&gt;    IF IDOC_CONTRL-MESTYP NE 'ZVENDOR_MSG'.&lt;/P&gt;&lt;P&gt;      RAISE WRONG_FUNCTION_CALLED.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Before reading a new entry, clear application buffer&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    LOOP AT IDOC_DATA WHERE DOCNUM EQ IDOC_CONTRL-DOCNUM.&lt;/P&gt;&lt;P&gt;          W_ZVENDOR_SEG1 = IDOC_DATA-SDATA.&lt;/P&gt;&lt;P&gt;          MOVE-CORRESPONDING W_ZVENDOR_SEG1 TO T_ZZVENDOR.&lt;/P&gt;&lt;P&gt;          INSERT INTO ZZVENDOR VALUES W_ZVENDOR_SEG1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       UPDATE ZZVENDOR FROM T_ZZVENDOR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt;      IDOC_STATUS-DOCNUM = IDOC_CONTRL-DOCNUM.&lt;/P&gt;&lt;P&gt;      IDOC_STATUS-STATUS = '53'.&lt;/P&gt;&lt;P&gt;      IDOC_STATUS-MSGTY = 'I'.&lt;/P&gt;&lt;P&gt;      IDOC_STATUS-MSGID = 'YM'.&lt;/P&gt;&lt;P&gt;      IDOC_STATUS-MSGNO = '004'.&lt;/P&gt;&lt;P&gt;      IDOC_STATUS-MSGV1 = T_ZZVENDOR-LIFNR.&lt;/P&gt;&lt;P&gt;      APPEND IDOC_STATUS.&lt;/P&gt;&lt;P&gt;      CLEAR IDOC_STATUS.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      IDOC_STATUS-DOCNUM = IDOC_CONTRL-DOCNUM.&lt;/P&gt;&lt;P&gt;      IDOC_STATUS-STATUS = '51'.&lt;/P&gt;&lt;P&gt;      IDOC_STATUS-MSGTY = 'E'.&lt;/P&gt;&lt;P&gt;      IDOC_STATUS-MSGID = 'YM'.&lt;/P&gt;&lt;P&gt;      IDOC_STATUS-MSGNO = '005'.&lt;/P&gt;&lt;P&gt;      IDOC_STATUS-MSGV1 = T_ZZVENDOR-LIFNR.&lt;/P&gt;&lt;P&gt;      APPEND IDOC_STATUS.&lt;/P&gt;&lt;P&gt;      CLEAR IDOC_STATUS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      WORKFLOW_RESULT = C_WF_RESULT_ERROR.&lt;/P&gt;&lt;P&gt;      RETURN_VARIABLES-WF_PARAM = 'Error_Idocs'.&lt;/P&gt;&lt;P&gt;      RETURN_VARIABLES-DOC_NUMBER = IDOC_CONTRL-DOCNUM.&lt;/P&gt;&lt;P&gt;      APPEND RETURN_VARIABLES.&lt;/P&gt;&lt;P&gt;      CLEAR RETURN_VARIABLES.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; endfunction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;experts help me out this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swapna&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: swapna2020 on Sep 3, 2010 10:28 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Sep 2010 04:57:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-flat-file-using-custom-idoc/m-p/7219364#M1523643</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-03T04:57:35Z</dc:date>
    </item>
  </channel>
</rss>

