Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove CR/LF from Data Medium file

Former Member
0 Kudos

Hi,

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.

Thanks,

Vishal

11 REPLIES 11

kiran_k8
Active Contributor
0 Kudos

Vishal,

You need to find out where in the code is CR/LF getting added at the end of every line.Debugging or code walk through will help you get that.

Caution: If the same program is being used for other banks and other Payment Methods with different file formats where CR/LF is required then you need to be cautious before doing any changes.

K.Kiran.

Sandra_Rossi
Active Contributor

You say "You are not using the ...", then the main question is what are you using?

former_member182550
Active Contributor

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

kiran_k8
Active Contributor
0 Kudos

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.

K.Kiran.

former_member182550
Active Contributor
0 Kudos

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 ???)

Rich

Former Member
0 Kudos

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.

https://blogs.sap.com/2015/03/06/nacha-file-creation-using-payment-medium-workbench-for-ach-payments...

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.

0 Kudos

Vishal,

You are saying you are not using DMEE then what are these " events " ?

Kindly share what these events are and where you are linking FM,EVENTS to the Payment Run.

K.Kiran.

0 Kudos

I am extremely sorry I shared the wrong link. This is the link that I followed to configure.

https://blogs.sap.com/2015/03/06/nacha-file-creation-using-payment-medium-workbench-for-ach-payments...

0 Kudos

Vishal,

You are using DMEE.

K.Kiran.

0 Kudos

I haven't configured anything via transaction code DMEE. I have followed the steps mentioned in the link and made a copy of ACH format.

0 Kudos

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.

K.Kiran.