cancel
Showing results for 
Search instead for 
Did you mean: 

Zero is getting truncated while XI is creating a CSV file

Former Member
0 Kudos

Hi,

Scenario is IDOC to File.

in the IDOC i get some Serial number as 00000007856465 in the output CSV file i need this value as 07856465

Here when i run this map in the ESR Message mapping i could see 07856465 this value fine but while posting at the output directory the values are dropped with zeros truncated.

in the output CSV file -- the value is -- 7856465

Could you please help me out in solving this issue.

Thanks,

--Sai.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Sai Krishna,

As said by Bhaskar, use Formatnum function or UDF in your mapping. So that you would be able to get the 0's in the output.

I would prefer to go with FormatNum function.

Check the UDF provided by Raja Shekar in the below thread:

Thanks,

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Use Formatnum standard function or UDF.

Refer this thread... very simple

former_member854360
Active Contributor
0 Kudos

Hi in receiver file adapter under message content tab please check the XML content .

Please check whether in that XML 0 prefix is present or not.

Shabarish_Nair
Active Contributor
0 Kudos

can you open the CSV file in a different editor and check if the data is still missing?

Ex. check in notepad, wordpad or excel etc

Former Member
0 Kudos

HI Shabarish,

i could see the data when i open in notepad, problem with CSV.

Could you please suggest does it require any configuration in the receiver file adapter.

Thanks,

--Sai

Shabarish_Nair
Active Contributor
0 Kudos

i think it is just that excel is formatting the display. No issues with PI.

Use the format cell option and try changing the settings to general etc