on 08-27-2009 10:38 PM
Hi Guys,
I am working on IDOC to file scenario in which I want to know which type of DT should I go for?
DT_Type
....Row
......Filed1
......Filed2
......Field3
...Row
DT_Type
Or
DT_Type
..Details
....Row
......Filed1
......Filed2
......Field3
...Row
..Details
DT_Type
I am going for Receiver Content conversion as I need to produce Flat like, I have about 30 filed names and I am wondering is it possible not ot mention field names in Content conversion?
What is the parameter to place to get a new line after each record? I am using row.endSeparator as 'nl' I am getting some special character instead of starting a new record in next line.
Thanks
Rajeev
Hi Rajeev,
Please go with datatype 1 and instead of 'nl' try to put '0x0D''0x0A' and see. Sometimes the special character is with your editor. Try to open the same file in other editor like textpad, wordpad, notepad etc.
FieldNames is important so please give them.
Regards,
---Satish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>
> Hi Guys,
>
> I am working on IDOC to file scenario in which I want to know which type of DT should I go for?
>
> DT_Type
> ....Row
> ......Filed1
> ......Filed2
> ......Field3
> ...Row
> DT_Type
>
>
> Or
>
> DT_Type
> ..Details
> ....Row
> ......Filed1
> ......Filed2
> ......Field3
> ...Row
> ..Details
> DT_Type
>
> I am going for Receiver Content conversion as I need to produce Flat like, I have about 30 filed names and I am wondering is it possible not ot mention field names in Content conversion?
>
> What is the parameter to place to get a new line after each record? I am using row.endSeparator as 'nl' I am getting some special character instead of starting a new record in next line.
>
>
> Thanks
> Rajeev
do ref: /people/shabarish.vijayakumar/blog/2007/08/03/file-adapter-receiver--are-we-really-sure-about-the-concepts to have a better understanding.
in your case DT 1 should be better.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rajeev,
In the mapping you map the source side idoc node (where your multiple idocs comes under one node that node) to target side Row field (at the time of data type creation you should create this as 0..Unbound). then howmany idocs come then that many number of rows created in the target file.
Regards
Ramesh.
Hi,
How should I map if the IDOC fields are 2-3 levels down the node to the FLAT File DT:
IDOC
...Seg1
......Field1
......Field2
.........Node1 -
0..UNBOUND
............N1
............N2
..............Node2 -
0..UNBOUND
.................N3
DT strcuture is with 0..Unbound
DT_Message
..Row
....Field1
....Field2
....N1
....N2
....N3
Thanks
Rajeev
HI,
The SOURCE IDOC strcuture is:
IDOCNAME----
1..1
>IDOC--
1..1
>BEGIN--
required
>EDI_DC40--
1..1 (it has sub nodes but not required)
>E1KNAM1--
1..1
-
>SEGMENT----
Required
-
>Werks----
0..1
-
>Z1KNU2----
0..1 (SUB SEGMENT OF E1KNAM1)
-
>ZNUM----
0..1
-
>Z1ADD----
0..7 (SUB SEGMENT OF E1KNAM1)
-
>PostCode----
0..1
-
>E1KAVVM----
0..999(SUB SEGMENT OF E1KNAM1)
-
>VTWEG----
0..1
-
>LOVEM----
0..1
-
>E1KAVPM----
0..999(SUB SEGMENT OF E1KNAM1)
-
>KUNN2----
0..1
-
>Z1KAN--
-
>NAME1----
0..1
Target File structure is:
MT_Type----
1..1
Row--
0..Unbound
-
Filed1----
0..Unbound
-
Filed2----
0..Unbound
-
Filed3----
0..Unbound
-
Filed4----
0..Unbound
-
Filed5----
0..Unbound
-
Filed6----
0..Unbound
if IDOC contains one IDOC data then it has to generate one file .. If IDOC contains more than one IDOC information then it has to generate one file with multiple IDOC informaiton in it.
how this can be achieved?
Thanks
Rajeev
Hi
if IDOC contains one IDOC data then it has to generate one file .. If IDOC contains more than one IDOC information then it has to generate one file with multiple IDOC information in it.
Do you mean to say processing with multiple IDOCs??? Please confirm about this because your IDOC occurance is 1..1
If you need to handle the multiple occurrences in one file, then make the IDOC 1..Unbounded and map it with the ROW field from File side Structure. It will help you to create one line per IDOC.
If there will be single IDOC, then only one row will be created in file.
thanks
Swarup
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
7 | |
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.