2014 Feb 06 11:05 AM
Hi All,
I am creating a DMF file in F110 through custom program.
File is creating correctly but format is not correct.
First line and second line is coming in same line with one extra character # in between these two lines.
Please suggest how can I separate this line in two different lines.
I need to remove # from file and data after # should come in 2nd line.
Wrong format :
HABC99957001x1030020 MT1030000967325 2014/02/0512:10:40 P #:20:00290000975
Correct format:
HABC99957001x1030020 MT1030000967325 2014/02/0512:10:40 P
90000975
Thanks and Regards:
Anugrah
2014 Feb 06 1:07 PM
Hi Anugrah,
Are you looking for MT013 file format if yes in sap we have standard which is fit to as per bank.
recently i have done this developement without changing standard program.
Regards,
Raman
2014 Feb 06 11:12 AM
Hi All,
Correction :
Second line should be :20:00290000975
Thanks:
Anugrah
2014 Feb 06 12:13 PM
Anurag,
You need to pass the delimiter in your DMEE structure so that it recognises end of the line.
Try with cl_abap_char_utilities=>NEWLINE or CR_LF
K.Kiran.
2014 Feb 06 12:30 PM
Hi K.Kiran,
Where do I need to use cl_abap_char_utilities=>NEWLINE ?
Please suggest.
Thanks and Regards:
Anugrah
2014 Feb 06 12:15 PM
I am creating a DMF file in F110 through custom program.
What do you mean by this? Are you using the payment medium workbench to create the DME file?
2014 Feb 06 12:21 PM
Hi Suhas,
I copied the standard program RFFOM100 and created a custom program ZRFDA_RFFOM100 and added header and footer.
Now header and first line is coming in single line.
Thanks and Regards:
Anugrah
2014 Feb 06 1:02 PM
Hello,
Which SAP Release are you working on? I think DME Engine & Payment Medium Workbench are available from ECC 5.0 & you can create your own DME tree to suit the payment file format.
Payment Medium Workbench (SAP Library - Documentation)
I never like the idea of copying the standard program to fix your payment files. I did it (a lot) prior to ECC 5.0
BR,
Suhas
2014 Feb 06 1:07 PM
Hi Anugrah,
Are you looking for MT013 file format if yes in sap we have standard which is fit to as per bank.
recently i have done this developement without changing standard program.
Regards,
Raman
2014 Feb 06 2:01 PM
Hi All,
Issue is resolved.
I changed the code as below.
* l_crlf type x value '0D0A'.
l_crlf type char2 value CL_ABAP_CHAR_UTILITIES=>CR_LF.
Thanks all of you,
Regards:
Anugrah