cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to interpret a mapping description

Former Member
0 Kudos

Please try to interpret the following mapping description:

if (substring-before(NET__SALES__VALUE(L1),'.')="-0") then

pad-front(concat('-',pad(trim(substring-after(NET__SALES__VALUE(L1),'.')),'2','0')),10,0)

else

pad-front(concat(substring-before(NET__SALES__VALUE(L1),'.'),pad(trim(substring-after(NET__SALES__VALUE(L1),'.')),'2','0')),10,0)

Thanks,

Ramya

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Shenoy,

On a high level roughly what I understand is you are getting a value and checking before the decimal has - symbol (like if -0.00). If yes then you are taking substring after decimal and padding up with zeros for 10 digit length.

Regards,

---Satish

Answers (1)

Answers (1)

VijayKonam
Active Contributor
0 Kudos

Hi Ramya,

Best thing would be to exceute those steps manually on paper if you have some sample data. They seem to nested in complex way and not easy to understand by someone who does not know about the kind of data it manipulates.

VJ