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

How to remove CR/LF from Data Medium file


To meet the banks NACHA flat file requirements we have created a new Payment medium format which is a copy of ACH payment medium format provided by SAP.

We are not using the "Mapping using DME engine". The flat file generated comes with the CR/LF for every line. The bank is not able to process the file with CR/LF.

Please let me know how to remove CR/LF.



Add comment
10|10000 characters needed characters exceeded

  • As Sandra says - if you don't tell us how you are generating it we can only guess at an answer.

  • Sandra/Richard,

    As he is not using DMEE and still talking about Payment Files and File Format,then most probably OP might be using a Custom program which runs after Payment Run or a Custom logic (in standard prog-ENH) to create a Payment File while doing the Payment Run.


  • So, assuming that he is using cl_gui_FrontEnd_Services for the download, the Gui_Download has a parameter 'WRITE_LF' which is an optional parameter defaulting to Abap_True. This should be provided in the method call with a value of 'Abap_False'. (Or am I wrong to assume this ???)


1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jun 12, 2017 at 09:12 AM

    Hi Guys,

    Firstly thank you all for looking into this issue.

    I followed the steps listed in the link below to generate a NACHA flat file.

    Since the file generated, was meeting all NACHA spec, I didn't see any reason why I should use "Mapping using DME engine". According to the steps above, I made a copy of standard "ACH" Payment medium format and linked it to the payment method. The file looked good when opening up in Note pad. But it started showing CR/LF when I display it in the payment medium section of the payment program.

    Add comment
    10|10000 characters needed characters exceeded

    • Vishal,

      Even I am new to DMEE but did a bit of analysis and sharing the info so that you can get some lead.

      Go to DMEE

      Choose the Tree Type as PAYM

      Choose the Format Tree and click on DISPLAY to view the ACTIVE VERSION

      Check the settings of each of the NODES

      Along with that you can also check the Function modules in "Event Modules for Payment Medium Formats" using OBPM1.

      I strongly recommend you get in touch with any person within your team who is much familiar with Configuring DMEE rather than going by trial and error method.


      node-info.jpg (35.5 kB)