on 12-01-2007 6:09 PM
Hi,
Urgent required. I have the following structure as below. There is a headerData, itemData and textData. The data that wll come into headerData could be more than one, and the same applies to the itemData and textData. The File adapter is not able to pick this file structure. It is a fixed length file at the receiver end. Could any one tell me how to do the File Content Conversion (FCC) for the structure without using the FCC module. Points to be awarded to best answer. Thaanks in advance.
The structure :
<headerData>
aaaaa
bbbb
cccc
</headerData>
<headerData>
aaaaa
bbbb
cccc
</headerData>
<headerData>
aaaaa
bbbb
cccc
</headerData>
<itemData>
fff
ggg
hhh
</itemData>
<itemData>
fff
ggg
hhh
</itemData>
<itemData>
fff
ggg
hhh
</itemData>
<textData>
fff
ggg
hhh
</textData>
<textData>
fff
ggg
hhh
</textData>
<textData>
fff
ggg
hhh
</textData>
HI,
Use the following content conversion:
I assume the data coming in the file is of below format:
Here the key field name is K for 01,02 and 03
01,aa,bb,cc
01,aa,bb,cc
02,ff,gg,hh
02,ff,gg,hh
03,hh,ff,hh
03,hh,ff,hh
If you data in the file is coming in the above way then your FCC will be
Recordse strucutre: headerData,,temData,,textData,*
Keyfield Name: K
headerData.fieldNames: a,b,c
headerData.fieldSeparator: ,
headerData.endSeparator: 'nl'
headerData.keyFieldValue: 01
Similarly for itemData and text Data
Refer the below weblog for the same:
/people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
Thnx
Chirag Gohil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Someone had already helped you with the source FCC parameters.
So your source & the target structure are the same. Do you think everyone out here would be able to assume that from your first message?
Believe me it is not hard for you to figure out the FCC parameters on your own.
Go to help.sap.com and search for File adapter. Next see the help for document conversions in receiver fiel adapter.
Give it a shot yourself after 2-3 times you would be able to figure out youself.
Regards,
Sumit
Hi,
I have tried n number of times but unable to get the data into my structure. That was the reason why I wanted help from the forum. Please do help. The source structure is different from what you are currently looking at. The structure I have given above is that of the receiver end. And I want the receiver end FCC. So please if anybody is there to help, please do and not say to try and look in help.sap.com, where as I know where all to search and get the data.
It is because I am unable to get the transformation done, I am putting in the forum to get some help. So please do help an this is urgent. Sorry if I have hurt anyone in this regard.
User | Count |
---|---|
77 | |
9 | |
8 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.