cancel
Showing results for 
Search instead for 
Did you mean: 

Empty fields not getting created in File

former_member188885
Active Participant
0 Kudos

Hi All,

I have a Proxy to File scenario. Since its the same structure, i have not used mapping. The fields are say F1, F2, F3, F4. In these F1, F2 and F4 are mandatory. So the proxy is sending data for mandatory fields alone. The file is tab separated.

The file is created as F1     F2     F4.

Though F3 is empty there should be a additional tab between F2 and F4. Can anyone tell me how to correct this?

Regards,

Lavanya R

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Lavanya,

you could use mapwithdefault function between the source and  the target element  (mapping). This will create empty tag for no values from source.

Best Regards

Harald

former_member188885
Active Participant
0 Kudos

yeah.. but since i have not used mapping. Is there any other way? Or is mapping the only solution?

iaki_vila
Active Contributor
0 Kudos

Hi Lavanya,

You can use a XSLT inside the MessageTransformBean module adapter to generate the empty files. Check this link Inserting MessageTransformBean in Module Processor - SAP NetWeaver Process Integration - SAP Library

Regards.

naveen_chichili
Active Contributor
0 Kudos

Hi Lavanya,

As Inaki said you can use MessageTransformBean in adapter module to generate empty fields.

Thanks,

Naveen