2007 Oct 05 5:23 AM
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.
2007 Oct 23 3:14 AM