Skip to Content
author's profile photo Former Member
Former Member

How to process .DAT files

Hi Experts,

I am working on XML to Proxy scenario, but the bank in sending xml file in .dat extension. So how can I process it in sap pi. Is it possible to process using file adapter.

Getting the file name as below.

File_170820161248263038.dat.GLN37424D11471427323021976S

Regards,

Mohammad

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Aug 18, 2016 at 07:24 AM

    Hi Mohammad,

    As long as content of the file is xml , file extension does not matter.

    You can use sender file adapter to read the file.

    You can use source filename as *.dat.* in sender file adapter.

    Regards

    Anupam

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 18, 2016 at 07:26 AM

    Usually the .dat file content will be fixed-length content so :

    • In case if it is fixedlength then apply FCC in you sender file adapter to convert it to xml.
    • If the content is already an xml then no need of FCC.

    Dont go by file extension , first check the content and then proceed.

    br,

    Manoj

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 18, 2016 at 07:29 AM

    Hello Mohammad,

    Normal file channel will do as you already have XML in place.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.