on 02-10-2007 9:14 PM
I have this flat file, please note there is no header or trailer. I need to build static header and trailer 1- Header Rec type, 5 - detail, 9- trailer. i have tried all the earlier blog suggestions in this forum. Suggest the correct content conversion values.
Sending File:
AB44444123
BC44444123
DT_rec_in
Records
record
Field1
Field2
My recieving file should look like:
123333333
5AB44444123
5BC44444123
9
DT_rec_out
Recordset 0.1
Record 0..unbound
Hdr 0.1
hdr1 1
hdr2 1
Det 0..unbound
det1 1
det2 1
trailer 0.1
Any help is appreciated
sdraj
Hi,
If your incoming file does not has Header, then option is in the Mapping Step or Adapter Modules.
In your case, you can do this in the mapping. Use User Defined function to generate header structure or map with Constant Values if it feasible.
btw, in the receiver side, you can add Header line Items.. for this refer-
http://help.sap.com/saphelp_nw2004s/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
Rgds,
Moorthy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Raj,
I have not understood anything from what you have asked? Can you please explain clearly what you needed?
...Satish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Srinivasan,
I think using User Defined Function is a better option for u ( easy one !!)
For Header : Write a substring function which collects the last the characters
of Field1and pads it with the characters u want
For Details
Field1 -- -
| det1
Constant(value 5)----
|
For trailer :
Constant mapped to trailer node.
Hope I understood ur requirement
Regards
Kavitha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
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.