on 11-11-2008 11:58 AM
Hi there
I have a interesting question, I need to add a new line in the middle of a flat file. I read an idoc and using content conversion I convert it to a flat file. Is there any way I can divide the idoc into 2 parts separated by a new line?
Thanx,
Jan
> I have a interesting question, I need to add a new line in the middle of a flat file. I read an idoc and using content conversion I convert it to a flat file. Is there any way I can divide the idoc into 2 parts separated by a new line?
Hi,
In my opinion using the regular FCC method I guess it will be not possible to create a new line in the middle of flat file. You can take the help of java mapping as described in bleow mentioned blogs to convert it into flat file. I am not sure but you can try with these options...
Regards,
Sarvesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Of course it is possible you just have to be a little creative in your approach.
So to achieve a new line in the middle of your output file you simply need to ensure that your structure (target) has a dummy structure so to say where you want the blank line to come.... you can simply have a dummy structure with one field and thenm on that field you can map a consatnt value to it (blank).
Then in your content conversion on your target file adapter simply do all of the configuration as you would any other including the "dummy" structure and you will have a new line where you want it...
let me know if you need me to elaborate...
Wel, om not 100% with you on that one. I have an idoc and target structure.. Where I do my message mapping I can ad an extra "dummy field" to my target structure and have a blank constant there. So I'll Have:
Field1 --- "Value1"
Field2 --- "Value2"
DummyField --- ""
Field3 --- "Value3"
The dummy field value, if I leave it blank its a initial value with 0 spaces?
Oh, I forgot to mention. I have to create a flat file without any delimeters which means I have to specify the field lengths and names. E.x
.FieldLenghts = 5,3,1,4
.FieldNames = F1,F2,F3,F4
So.. When it comes to the blank field, I have to specify the length which makes things quite dufficult. I guess I could do JAVA mapping but it would be much easier with the content conversion.
Hi
set in FCC
RecordsetStructureName.endSeprator='0x0D''0x0A'
here RecordsetStuctureName would be the after which you want new line
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.