File to File with Validation For Empty Line

Hi Experts,
My Scenario:
FIle -> PI -> ABAP Proxy
For the File sender i am using File Content Conversion for .TXT. It is working fine but sometimes the user create the .TXT fiile with empty space/tab after the last record. The users wrongly press enter at the last record at the .TXT. Please look below:
1 test1 kl
2 test2 sg
3 test3 mk
|
Please look above the user wrongly press ENTER '|' and it created empty tab below the last record.
How can i validate the sender data if there is empty space and i should not transfer to receiver.
I am trying to use UDF but could anyone guide me?
Thank you
saravannan

Hello,
     In receiver determination you can write that if your all fields(mandetory) are not empty then  to for your perticular receiver and for If no receiver found option select end message without Error so if you some fields are coming blank or last line coming blank then it will not send message to your receiver and and without any error.
Monica

Similar Messages

  • Dynamic file name in receiver - empty line problem with content conversion

    Hi,
    I do a variable substitution from a filename node in my xml structure. Because I don't want to have the the filename in my flatfile i supress the output with the conversion parameters:
    filename.fixedLengthTooShortHandling = Cut
    filename.fieldFixedLengths = 0
    It's working but: the adapter is puting an empty line at the end of the file. If I even put the filename node at the top of the xml struture it generates the empty line at the top of the flatfile.
    Anyone has an idea? is there an other way to set the filename or how can I supress this empty line( I have to) ?
    Regrads
    J.

    Jorg,
    Actually speaking we cannot get rid of this with XI. You have to write a OS script to remove this.
    Else
    you add one more parameter as .endSeparator as backspace ie., 0x08. It will definitely remove the line but I think it is putting a square box at the end of previous line. Please check by giving this and let us know the updates.
    Regards,
    ---Satish

  • How can we load a flat file with very, very long lines into a table?

    Hello:
    We have to load a flat file with OWB. The problem is that each of the lines in the file might be up to 30.000 characters long (up to 1.000 units of information in each line, 30 characters long each)
    Of course, our mapping should insert these units of information as independent rows in a table (1.000 rows, in our example).
    We do not know how to go about it. We usually load flat files using table functions, but we am not sure that they will be able to cope with these huge lines. And how should we pivot those lines? Will the Pivot operator do the trick? Or maybe we should pivot those lines outside the database before loading them?
    We are a bit lost. Any suggestion would be appreciated.
    Regards
    Edited by: [email protected] on Oct 29, 2008 8:43 AM
    Edited by: [email protected] on Oct 29, 2008 8:44 AM

    Yes, well, we could define a 1.000 column external table, and then map those 1.000 columns to the Pivot operator… perhaps it would work. But we have been investigating a little bit, and we think that we have found a better solution: there is a unix utility called “fold”. This utility can split our 30.000 character lines in 1.000 lines, 30 characters long each: just what we needed. Then we can load the resulting file using an external table.
    We think this is a much better solution that handling 1.000 columns in the external table and in the Pivot operator.
    Thanks for your help.
    Regards
    Edited by: [email protected] on Oct 29, 2008 10:35 AM

  • SQL Loader - CSV Data file with carraige returns and line fields

    Hi,
    I have a CSV data file with occasional carraige returns and line feeds in between, which throws my SQL loader script off. Sql loader, takes the characters following the carraige return as a new record and gives me error. Is there a way I could handle carraige returns and linefeeds in SQL Loader.
    Please help. Thank you for your time.
    This is my Sql Loader script.
    load data
    infile 'D:\Documents and Settings\user1\My Documents\infile.csv' "str '\r\n'"
    append
    into table MYSCHEMA.TABLE1
    fields terminated by ','
    OPTIONALLY ENCLOSED BY '"'
    trailing nullcols
    ( NAME CHAR(4000),
    field2 FILLER,
    field3 FILLER,
    TEST DEPT CHAR(4000)
    )

    You can "regexp_replace" the columns for special characters

  • Checking .txt file with valid XML tags

    hey guys,
    I've a .txt file which conatins info with XML tags. I've to check whether the file contains valid tags or not!
    a tag should start with "<" and end with ">", there shouldn't be space between characters after "<" e.g.
    a tag should be like "<name>" or "</name>" not "< name>" or  "< /name>" nor "<name" or "</name"nor "name>" or  "/name>"Here is an example of a well formed XML document:
    <root>
    Some text <nextTag> more text  <secondTag> stuff </secondTag> </nextTag> more text again
    </root>Here is an example of XML .txt file:
    <students >
         <student>
              <name> John </name>
              <name> Doe </name>
              <address> 98 Pine St.</address>
         </stdnt>
    </students>I also have to make sure that no text appears before and after the root tag! Please help me, i'm trying to figure out but my alogrithm just doesn't work! Thanks in advance!!!

    What's the purpose of those requirements? If you
    wanted to check whether the file was well-formed XML
    then you would just need to run it through an XML
    parser. But some of the things you plan to reject are
    actually well-formed XML. I don't see the point of
    that.basically, it's my assignment. In the assignment our task is to check the .txt files to make sure that all XML tags are valid. The problems i mentioned in my first post, i've figured those out, eventually. There're few other things which i've to also make sure for example no text appearing before and after the root tag
    Can someone please tell me how i can check following cases:
    text<root> or </root> text  (both are invalid XML files)

  • File Reciver adapter - an empty line

    Hi all,
    I have a problem when creating a file with File adapter CC,
    every time i am getting an extra line in the end of the file,
    How I can prevent this?
    Thanks,
    Naama.

    Hi,
    Try with NameA.additionalLastFields = ignore
    Regards
    Seshagiri

  • Render control file not valid for" project.aep -- Please Help!

    I'm using AE CC
    I've read all the discussions I could find on this topic to fix this problem.
    All my computers are mapped correctly. The file that I'm sending at this point is very basic.  Once jpg sequence (as a test) name shadowMatte - no spaces, underscores, very basic.
    -The file is set for multimachine rendering in render queue
    -I collected files with 'Collect Source Files: None' , Enable  'Watch Folder' render' checked
    I'm not new to using multi machine rendering, this time around I just can't seem to get it to work...
    all render slaves at least 8 gigs of ram.
    Any help on this matter would be GREATly appreciated.
    - Max

    > "Hello - is there any one left at Adobe  to help with this?  "
    This is a user-to-user forum, where people help out in their free time. If you want a guaranteed response from Adobe personnel, contact Adobe Technical Support:
    http://www.adobe.com/support/contact

  • Need Sample JPG Files with Valid XMP data

    Greetings,
    I Have downloaded and built the XADumper and would like to "dump" on a JPG file with some VALID XMP data.
    However, I have no application to sutff the data and no sample file that I know has something readable.
    Does anyone have some they could post?
    Even better, anybody have something working to stuff some valid data that can be used to create files -- or better use as a further code example?
    Thanks Much,
    -forrest

    Hi Marc,
    the XMP states (obviously):
    dc:format = "image/jpeg"
    xap:CreatorTool = "Adobe Photoshop CS3 Windows!"
    According to the XMP it is a JPEG file. But your file is corrupted:
    Each JPEG file has to start with a "Start of Image" tag, which is 0xFF, 0xD8.
    Regards,
    Stefan Makswit

  • Use of "Archive Source Files with Errors" for BIC module error

    Hi All,
    I have Edi file to Idoc scenario , where i am using SEEBURGER BICXIADAPTER.MODULE.
    My question is if the input file caught in error with BIC Module e.g
    "MP: exception caught with cause Error in BICMODULE-module:Temporary error: BIC XI Adapter call failed. Reason: SegmentDescription: checkAndResetChildrenCounter() not enough repetitions of the segment UNH found: 0 instead of 1 offset :80 DESCRIPTION: SegmentDescription Warning: Not enough repetitions of the segment UNH ([not specified]/[not specified])."
    can we move these errornous files to another directory using Processing parameter  "Archive Source Files with Errors" available with Sender File Adapter?
    In File Adpater my Module tab looks like :
    1     localejbs/CallBicXIRaBean     Local Enterprise Bean     bic
    2     localejbs/CallSapAdapter     Local Enterprise Bean     0
    In my scenario  , its not working..  do we have any other option to achive this?

    Hi Jyoti,
    I had a raised a similar case with SAP and came to know that archiving only works if the error raised by the module is so called "Permanent". However, bic doesn't raise permanent error due to which archiving of error files won't be possible. Seeburger haven't came up with a solution yet.
    Regards,
    Prateek

  • How do I save excel file with password for read only access ?

    Hi
    I am trying to save an excel file with a password to make it read only when opened
    using OLE2 . I am having a problem with the parameter list. This is my code that does
    work.
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 'C:\Reports\Excel\File.xls');
    ole2.add_arg(args, 0);
    ole2.add_arg(args, 0);
    ole2.add_arg(args, 'TEST');
    ole2.add_arg(args, 0);
    ole2.add_arg(args, 0);
    ole2.add_arg(args, 1);
    I also have the following code at the beginning of the program to suppress dialogs.
         OLE2.SET_PROPERTY(application,'DisplayAlerts', 'FALSE');
         ole2.set_property(application,'Visible', 'false');

    Hope it help.
         -- Begin : Protect your worksheet
         args := OLE2.CREATE_ARGLIST;
         OLE2.ADD_ARG(args,yourpassword); -- choose your password
         OLE2.INVOKE(worksheet, 'Protect', args);
         OLE2.DESTROY_ARGLIST(args);
         -- End : Protect your worksheet
         -- Begin : Save and close worksheet
         OLE2.INVOKE(workbook, 'Save');
         OLE2.INVOKE(workbook, 'Close');
         -- END : Save and close worksheet

  • Parse xml file with validating againat dtd

    i have a xlm file looks like:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE map SYSTEM "map.dtd">
    <map width="20" height="15" goal="25" name="eXtreme Labyrinth of Dooom">
    <random-item type='lantern' amount='5' />
    <random-item type='health' amount='10' />
    <tile x="14" y="0" type="wall">
    <renderhint>wall:rock,cracked</renderhint>
    </tile>
    <tile x="15" y="0" type="wall" />
    <tile x="16" y="0" type="floor">
    <renderhint>floor:marble,cracked</renderhint>
    </tile>
    <tile x="17" y="0" type="floor">
    <renderhint>floor:stone,rubble</renderhint>
    </tile>
    <tile x="18" y="0" type="floor" />
    <tile x="0" y="1" type="floor" />
    <tile x="1" y="1" type="floor" startlocation="1" />
    <tile x="2" y="1" type="floor" />
    <tile x="3" y="1" type="floor">
    <item type="treasure">Bar of Silver</item>
    <renderhint>floor:stone,blood</renderhint>
    </tile>
    <tile x="4" y="1" type="wall" />
    <tile x="5" y="1" type="wall" />
    <tile x="6" y="1" type="wall">
    <renderhint>wall:bricks,cracked</renderhint>
    </tile>
    </map>and a dtd document like:
    <!ELEMENT map (random-item+, tile+)>
    <!ATTLIST map
    width CDATA #REQUIRED
    height CDATA #REQUIRED
    goal CDATA #REQUIRED
    name CDATA #REQUIRED
    <!ELEMENT random-item EMPTY>
    <!ATTLIST random-item
    type (armour|health|sword|treasure|lantern) #REQUIRED
    amount CDATA #REQUIRED
    <!ELEMENT tile (item|renderhint)*>
    <!ATTLIST tile
    x CDATA #REQUIRED
    y CDATA #REQUIRED
    type (exit|floor|wall) #REQUIRED
    startlocation CDATA #IMPLIED
    <!ELEMENT item (#PCDATA)>
    <!ATTLIST item
    type (armour|health|sword|treasure|lantern) #REQUIRED
    <!ELEMENT renderhint (#PCDATA)>i need to validate the xml file against the dtd document and parse it to java using DOM.
    Can anyone give ma any suggestions on how to do it?
    thank you

    i have started my coding like:
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.ParserConfigurationException;
    import org.w3c.dom.*;
    import org.xml.sax.SAXException;
    import java.io.*;
    class loadxml
        public static void main(String[] args)
         try {
              DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
              factory.setValidating(true);
              factory.setIgnoringElementContentWhitespace(true);
              DocumentBuilder parser = factory.newDocumentBuilder();
              Document doc = parser.parse(new File("hallways.xml"));
              loadxml load = new loadxml();
              load.parseNode(doc);
         } catch (ParserConfigurationException e) {
              e.printStackTrace();
         } catch (SAXException e) {
              e.printStackTrace();
         } catch (IOException e) {
              e.printStackTrace();
        public void parseNode (Node node) throws IOException
               // here is where i have problem with
    }since in my xml file, i have got ATTLIST, this ready confuses me when i try to coding it.
    Can anyone help me, please.
    Thank you.
    Edited by: mujingyue on Mar 12, 2008 3:10 PM

  • Out put file with three extra blank line

    Hi Expert
    i am snding some article data from sap to ftp location.from proxy class the internal table has all correct record .but in the out put file three blank line is coming with all the record at the end.
    i have the following cc parameter
    File.fieldNames Trans_type,Transfer_no,SrcSt_no,DestST_no,LPN_No,Transfer_date
    File.fieldFixedLengths 1,30,10,10,10,8
    then i added
    File.endSeparator '0'.
    but still 3 blank line is coming in the output file.
    please suggest somthing.

    Hi !
    Why are you using File.endSeparator '0'. ?
    Are you sure your input data doesn't have those 3 blank records in the end? Check the message payload in the sxmb_moni transaction.
    Regards,
    Matias.

  • Opening file with PE6 for Mac

    Probably a silly question: In Bridge, how do I change the "Open With" default setting from "Preview" to "Photoshop Elements 6"? I've checked in Preferences for both PE6 and Bridge, but there doesn't seem to be a way to change that. When I double-click on an image in Bridge, I'd rather have it open directly in PE.
    Thanks.

    You're almost there. The whole procedure is, in Finder, click once on the icon of an unopened file of the type you want to change, then press command + i to bring up the get info window. Select PSE in Open With, and then if you want to make all files of that type open in PSE, Change All.
    EDIT That's to open directly in PSE. For bridge you need to go to Bridge>preferences>File Type associations and choose where you want bridge to send that type of file.

  • Encoding audio files with QT for the internet

    Hi group,
    I would like to put my showreel up on the net in a QTime format BUT make it locked, or non-downloadable...
    Is this possible?, it seems with QTpro you can download anything!
    thanks
    JM

    You could use a "streaming server" and free Apple software that would play your file using RTSP instead of HTTP. These files are not cached (saved) on the viewing machine.
    If someone wants to keep your file they'll find a way to save it. Let them download but keep them from editing your file. As easy as drag and drop using AppleScript.
    Look at this discussions page for answers and links:
    http://discussions.apple.com/thread.jspa?messageID=1053405&#1053405

  • AUR pastebin gives files with DOS end of line

    It is advised to use a pastebin to post PKGBUILD in the comment of the AUR. But if we do this the file will always have DOS (CR-LF) end of line when downloaded. This may work but can be a problem. Any solution for this? Would be nice to be able to attach a binary file to a comment, also.
    Last edited by olive (2011-02-07 22:40:05)

    Well, based on what you said...the file was being created NOT on a unix box but on a windows box. So, the methods to write the lines would be putting a windows CR/LF and NOT a UNIX CR only...so yes, you could create the file in Windows and you would have to strip off the LF in each line. Naturally, if you created the file under UNIX, this would not be necessary.
    There are, in fact, utilities that convert dos files to unix files...you pipe them thru and they make this modification for you.

Maybe you are looking for

  • Monitor on top?

    A friend of mine with limited desk space just bought a mini. We are wondering if it's okay to put the monitor (22" LCD) on top of the computer. The aluminum frame certainly seems strong enough and the DSL modem is close by (I've heard of some concern

  • Delete Approved Leave Request

    Hi all, My understanding is the program RPTARQPOST posts the leave request documents to IT2001. I am trying to find out what happens to a leave request that is approved and posted to infotype 2001 and then later gets cancelled/rejected/deleted.  Does

  • Financial website doesn't recognize my computer and asks security questions each time I log in

    When I sign into a financial website it doesn't remember my mac and requires me to answer security questions each time.  I called the website and they said the problem is with my mac's settings.  Anyone else have this problem?

  • Ultrabook Envy 6 1112TX unable to install sata disk with HDD mounting part 686594-001

    Hi, I bought my Envy 6 1112TX,  it only has a small 128 msata SSD disk.   So I decided to install a new SSD to increase the storage. After checking the user guide,  I purchased the disk mounting part  686594-001,  then I found that the cable is no wh

  • Probleme de réinitialisation de mon ipod (question)

    bonjour, jai reinitialiser mon ipod (Données et reglage) et le loge d'intérêt pomme apparut Avec Une Ligne de chargement en Dessous Qui a mis 1min un soi remplire. Maintenant la roulette Qui tourne Quand On ferme le ipod tourne DEPUIS ainsi de 1h15 Q