on 10-15-2013 1:58 PM
Hi ,
I need to generate a txt file from receiver file channel using FCC.
file format is quite tricky. please let me know if it is possible with FCC or not?
File format is given below: values inside ** are hard coded(constant) and "value"s are coming from data type fields.
*Start of report*
*XXXXX File status report sent to xxxx*
*Date:* value
*Company code:* value
*Time send:* value
*Summary:*
*Total number of xxxx:* value
*Number accepted:* value
*Number rejected:* value
*Accepted Details:*
*Date Nbr XXXXXXXX XXXXXXXX*
value value value value
*Rejected Details:*
value
*end of report*
you can do it with FCC, its not problem at all, but a far as i can see you will need to handle a xml with deeply nested xml structure because you will convert also the values: *Start of report* and *XXXXX File status report sent to xxxx*, "end of report", etc.
BTW is not clear for me ¿the example provided above is the expected? if YES could you provide an example if the input file to be converted?
Regards
Message was edited by: Rodrigo Alejandro Pertierra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This issue is resolved.
I have done graphical mapping to generate all the "value"s fields and then written a java mapping program to build the txt files in the desired format.
This will be easy to understand and good for future enhancements.
With FCC it would have been very complex..
Thanks everyone for help.
Navneet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Create your message type as below.
Create a field for each line in the file and do the required mapping for each field in the MM.
In FCC, use new line as field separator.
Regards,
Veerendra.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can but it is very complicated. First you must have structure with all data and constants and then handle nested structure. Adding rows with constant will be problem.
If you have proxy to file scenario, you can use simple
<items>
<row> *Start of report*</row>
<row> *Date:* value</row>
<row> *Summary:* </row>
<row> *Date Nbr XXXXXXXX XXXXXXXX*</row>
<row> value value value value</row>
</items>
structure and ask your ABAP team to prepare data. In ABAP is not problem to do this. On the end you can handle this easly
---
Other way is make new structure with one new element for each row with only constants (Eq. for *Start of report*, ...) . Then make mapping and concatenate constants to values. Now you will have all data and go to FCC
Regards
Vedran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.