cancel
Showing results for 
Search instead for 
Did you mean: 

How to send blank fields to reciver file that are not mapped

sridharreddy_kondam
Active Contributor
0 Kudos

Hi All,

I need to send the Target structure to a file,

scenario is IDOC to FILE

Let me explain in detail

I am having more than 100 fields in Taget Structure.. and only 40 fields are mapped w.r.t Source structure... eventhough the taget fields are not mapped how can i send a blank in the reciveing file for all the non mapping target fields..

I have done this way by using a constant with blank and assigned to all the non mapping fields ...

it works fine ... But is there an alternate without using to map all non mapping fields for target..?

Help is appreciated and rewarded

Thanks and Regards,

sridhar Reddy

Accepted Solutions (1)

Accepted Solutions (1)

STALANKI
Active Contributor
0 Kudos

Or use a generic outbound java mapping to generate the output file..:)..by passing the metadata of the idoc to the mapping.

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Sridhar,

Can u trz this?

Ur message mapipng which maps the IDoc fields to ur target structure.

create a generic Java Mapping which takes the output of ur previous mapping and creates a target structure which will be the IDoc structure itself.

Anil

sridharreddy_kondam
Active Contributor
0 Kudos

I think there is no other way .. but only map with constant to all fields

moorthy
Active Contributor
0 Kudos

Hi,

try out built-in function mapWithDefault in the mapping. anyway you need to do this for each every field..

We have done similarly whatever you have done long back..

Regards,

moorthy

Former Member
0 Kudos

Hi sridhar,

we faced a similar problem. Our solution was same as yours:

You have to map every field to a constant.

Regards Mario