Application Development and Automation 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: 
Read only

F110 - Problem in Generating new DME File Format

Former Member
0 Likes
539

Hi,

The client needs a comma delimited format of DME file with changes in the field sizes which Std.prog (RFFONZ_T) will not fulfill. For that I have copied the Std.Include RFFORIN1 (where the DME file generation is involved) and did the modifications as per the requirement. (Created own workareas and written code to have comma delimiters). And also they need a Line feed at the end of each record.

Evrything is fine. I could even display the line feed in the file using cl_abap_char_utilities=>newline in the code. I have a workarea where I have a long string (Concatenating all the data with comma's) along with CRLF as below:

DATA: BEGIN OF tran_data,

tran_data(100), "long string

crlf TYPE dtadnz1-crlf. "Line feed character

DATA: END OF tran_data.

The PROBLEM is:

If the tran_data is of only 60 characters I expect the CRLF to be placed immdly after 60 character and go to the next line. But it does'nt do??

I tried almost all the options which we can do with character formatting like CONCATENATE, CONDENSE WITH NO-GAPS etc..

Please do suggest me some other way of achieving this? I feel field symbols also does'nt help. Is there any way we can define the size of the character dynamically??

Please help me Iam struck and have to finish this VERY URGENTLY.

Thanks in Advance.

Smitha.

Hi,

The client needs a comma delimited format of DME file with changes in the field sizes which Std.prog (RFFONZ_T) will not fulfill. For that I have copied the Std.Include RFFORIN1 (where the DME file generation is involved) and did the modifications as per the requirement. (Created own workareas and written code to have comma delimiters). And also they need a Line feed at the end of each record.

Evrything is fine. I could even display the line feed in the file using cl_abap_char_utilities=>newline in the code. I have a workarea where I have a long string (Concatenating all the data with comma's) along with CRLF as below:

DATA: BEGIN OF tran_data,

tran_data(100), "long string

crlf TYPE dtadnz1-crlf. "Line feed character

DATA: END OF tran_data.

The PROBLEM is:

If the tran_data is of only 60 characters I expect the CRLF to be placed immdly after 60 character and go to the next line. But it does'nt do??

I tried almost all the options which we can do with character formatting like CONCATENATE, CONDENSE WITH NO-GAPS etc..

Please do suggest me some other way of achieving this? I feel field symbols also does'nt help. Is there any way we can define the size of the character dynamically??

Please help me Iam struck and have to finish this VERY URGENTLY.

Thanks in Advance.

Smitha.

1 REPLY 1
Read only

Former Member
0 Likes
401

Solved!