I am working on creating a ffShema from the IDOC structure provided to me. Here in this case, When we receive the IDOC we are mapping it to the Canonical and then we are converting it to a flatfile after some transformations.
My questions are,
When you first map the IDOC to IDOC Doc type(which we will create from the dtd provided) and when mapping it to the canonical. There are only few fields which have the data. Is it mandatory to create a canonical with all fields…or is our choice. Just to mention only those fields which have data.?
I have given the IDOC structure which has Header, Detail, Trailer. In Header there are like 10 segments, Detail has some 10 segments(again they have sub segments) and trailer has 10 segments. But only few segments have the values. I know the flatfile fields and their lengths. And also Header,Detail,Trailer will be three record definitions on the same level? and the subfields will be field definitions? I am assuming that I need to create a ffschema where only the fields which have the values are mentioned.
I have found that ‘wm.b2b.edi:createIDOCtemplate’ can create a ffschema provided the IDOC name etc.? My Question is will this create for any kind of IDOC and also if it creates the ffschema. Can I change the schema so that I minimize the number of fields…so that I can map my canonical to the document type generated.?
Kindly assist. This is very important. Your suggestions and thoughts are well appreciated.
Thanks all and Thanks in advance.