<?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>Question Re: check for source file in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/check-for-source-file/qaa-p/7157293#M2582686</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@ Babu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The query is like...&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;If the file does not exist, then a file should be created at target side with only header and detail record with no line item records.&lt;/P&gt;&lt;P&gt;In any case, a file should be created at target side.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;so i answered as,&lt;/P&gt;&lt;P&gt;Now when the file is not present, u will get only the empty tags..(message type name in XML Payload)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you read the question carefully, it is not being asked "how to handle empty files". It is about "what to do if there are no files in the source directory", which implies that if there are no files present, then create one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u said as,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This option won't "create" an empty file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correct me if i am wrong, &lt;STRONG&gt;DID I SAY IT WILL CREATE an EMPTY FILE IN SOURCE FOLDER???&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, you don't need to say that .. it was evident from your answer. In this forum post, nothing is being asked regarding empty files, so please don't provide such answers which has nothing to do in this situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- Abhi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Aug 2010 21:40:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-12T21:40:40Z</dc:date>
    <item>
      <title>check for source file</title>
      <link>https://community.sap.com/t5/technology-q-a/check-for-source-file/qaq-p/7157287</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;My requirement is as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In source FTP directory, I have to check if source file exists or not. If exists, that file shuld be picked up and created at target side with header, line items and detail record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the file does not exist, then a file should be created at target side with only header and detail record with no line item records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In any case, a file should be created at target side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest if Dynamic configuration is the better option for this or any other way gives better results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Anil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Aug 2010 17:45:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/check-for-source-file/qaq-p/7157287</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-04T17:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: check for source file</title>
      <link>https://community.sap.com/t5/technology-q-a/check-for-source-file/qaa-p/7157288#M2582681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Satish (or Anil ?),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use script for this. You can't handle this situation by dynamic config.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Neetesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Aug 2010 21:00:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/check-for-source-file/qaa-p/7157288#M2582681</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-10T21:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: check for source file</title>
      <link>https://community.sap.com/t5/technology-q-a/check-for-source-file/qaa-p/7157289#M2582682</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;&lt;/P&gt;&lt;P&gt;Please select process empty files in source CC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when the file is not present, u will get only the empty tags..(message type name in XML Payload)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the condition in the mapping if only the message type name is coming.. if so create only the header and detail record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else u can map to all hearer, detail, line items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know still if u face any prblm....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Babu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2010 04:14:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/check-for-source-file/qaa-p/7157289#M2582682</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-11T04:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: check for source file</title>
      <link>https://community.sap.com/t5/technology-q-a/check-for-source-file/qaa-p/7157290#M2582683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@ Babu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please select process empty files in source CC.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Now when the file is not present, u will get only the empty tags..(message type name in XML Payload)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This option will process "empty files" which are already created in the source directory and they are empty. This option won't "create" an empty file. Please check the SAP Help for further details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- Abhi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2010 04:45:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/check-for-source-file/qaa-p/7157290#M2582683</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-11T04:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: check for source file</title>
      <link>https://community.sap.com/t5/technology-q-a/check-for-source-file/qaa-p/7157291#M2582684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Abhi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please read these carefully...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The query is like...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If the file does not exist, then a file should be created at target side with only header and detail record with no line item records.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In any case, a file should be created at target side.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i answered as,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when the file is not present, u will get only the empty tags..(message type name in XML Payload)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u said as,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This option won't "create" an empty file.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correct me if i am wrong, &lt;STRONG&gt;DID I SAY IT WILL CREATE an EMPTY FILE IN SOURCE FOLDER???&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Babu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: hlbabu123 on Aug 11, 2010 11:24 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2010 05:53:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/check-for-source-file/qaa-p/7157291#M2582684</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-11T05:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: check for source file</title>
      <link>https://community.sap.com/t5/technology-q-a/check-for-source-file/qaa-p/7157292#M2582685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do u want to create target file with header n detail records or only u wanted to create empty tag if file does not exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If ur file doesnot exist then process itself will not start by XI?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chirag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2010 06:07:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/check-for-source-file/qaa-p/7157292#M2582685</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-11T06:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: check for source file</title>
      <link>https://community.sap.com/t5/technology-q-a/check-for-source-file/qaa-p/7157293#M2582686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@ Babu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The query is like...&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;If the file does not exist, then a file should be created at target side with only header and detail record with no line item records.&lt;/P&gt;&lt;P&gt;In any case, a file should be created at target side.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;so i answered as,&lt;/P&gt;&lt;P&gt;Now when the file is not present, u will get only the empty tags..(message type name in XML Payload)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you read the question carefully, it is not being asked "how to handle empty files". It is about "what to do if there are no files in the source directory", which implies that if there are no files present, then create one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u said as,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This option won't "create" an empty file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correct me if i am wrong, &lt;STRONG&gt;DID I SAY IT WILL CREATE an EMPTY FILE IN SOURCE FOLDER???&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, you don't need to say that .. it was evident from your answer. In this forum post, nothing is being asked regarding empty files, so please don't provide such answers which has nothing to do in this situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- Abhi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Aug 2010 21:40:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/check-for-source-file/qaa-p/7157293#M2582686</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-12T21:40:40Z</dc:date>
    </item>
  </channel>
</rss>

