Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

UDF to create decimal output

Hi Experts,

I have a requirement in mapping that in source side I have two inputs LIFNR and KRATE and logic is as follows..

Condition 1 : If LIFNR = 9000 then KRATE value will be mapped to target field RATE

Condition 2 : If LIFNR = 2500 then PI need to check value of KRATE, in that case if KRATE value is more than 4 digits then KRATE value should mapped to RATE field with a decimal point after 4th digit

For example: as per second condition If LIFNR = 2500 and KRATE value is 123456 then target value should be "1234.56" 

This is my requirement, can any please suggest me how I can achieve this requirement using UDF.

Thanks in Advance..!




Not what you were looking for? View more on this topic or Ask a question