cancel
Showing results for 
Search instead for 
Did you mean: 

File Content Conversion - Issue

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

moorthy
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Raj,

I have not understood anything from what you have asked? Can you please explain clearly what you needed?

...Satish

Former Member
0 Kudos

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