$(function () { pageContext.i18n.modTalk = 'moderation talk'; pageContext.i18n.replyToComment = 'Reply'; pageContext.i18n.modTalkEmpty = 'moderation talk is empty'; pageContext.url.getModTalk = "/comments/%25ID%25/listModTalk.json"; pageContext.url.possibleCommentRecipients = "/comments/%ID%/possibleRecipients.json"; pageContext.url.commentEdit = '/comments/%25ID%25/edit.html'; pageContext.url.commentView = '/comments/%ID%/view.html'; pageContext.i18n.commentVisibility = { 'full': 'Viewable by all users', 'op': 'Viewable by the original poster', 'mod': 'Viewable by moderators', 'opAndMod': 'Viewable by moderators and the original poster', 'other': 'Advanced visibility', 'dialogTitle': 'Comment visibility', 'selectGroups': 'Visible to groups', 'selectOther': 'Other recipients', 'selectOriginalPoster': 'Original poster', 'selectModerators': 'Moderators', 'selectAssignees': 'Asked to answer users' }; pageContext.i18n.commentMenuLabels = { 'comment-edit': 'comments.menu.edit', 'comment-delete': 'comments.menu.delete', 'comment-convert': 'comments.menu.convert' };pageContext.i18n.answer= { bestAnswer: 'Best Answer', controlBar : { accept: 'Accept', unaccept: 'Unaccept', acceptCommand: 'Accept this answer as correct', cancelAcceptedCommand: 'Remove this answers accepted status' } }; window.croles = { u: false, op: false, m: false, og: false, as: false, ag: false, dc: false, doc: false, eo: false, ea: false }; tools.init({ q: { e: false, ew: false, eo: false, r: false, ro: false, d: false, dow: false, fv: false, c: false, co: false, p: false, tm: false , ms: false, mos: false }, n: { f: false, vf: false, vfo: false, vr: false, vro: false, c: false, co: false, vu: false, vd: false, w: false, wo: false, l: false }, c: { e: false, eo: false, d: false, dow: false, ta: false, tao: false, l: false }, a: { e: false, ew: false, eo: false, d: false, dow: false, a: false, aoq: false, ao: false, tc: false, tco: false, p: false, tm: false }, pc: croles }, { tc: true, nsc: true }); commandUtils.initializeLabels(); }); Skip to Content
-1

How to remove CR/LF from Data Medium file

Jun 11, 2017 at 05:48 PM

110

avatar image

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

10 |10000 characters needed characters left characters exceeded

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.

0

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

1

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

1

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.

0

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

0
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Vishal Patel Jun 12, 2017 at 09:12 AM
0

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-usa/

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.

Show 5 Share
10 |10000 characters needed characters left characters exceeded

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

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-usa/

0

Vishal,

You are using DMEE.

K.Kiran.

0

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

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.

node-info.jpg (35.5 kB)
0