Add Leading Zeros

Previous  Home  Next

In some cases we require to send a field number of a particular length prefixed with zeros in to SAP.

As for example consider customer number for BAPI_Customer_Getdetail2. It should be a 10 digit number.

Eg. 0000000001 and not just 1

So if we have a customer numbers as below, we can append the leading zeros with the help of this DF.

add leadind zeros

In Mapper in the Dynamic Formula column (it will be visible after we click on Advance button in Mapper toolbar), enable “A-Add Leading Zeros” for that field as shown below:

add leadind zeros1

add leadind zeros2

 

 

Next:

Decimal Transform . to , | Transform Excel date to DD.MM.YYYY | Transform YYYYMMDD to DD.MM.YYYY

Split & Append Long Text Line(s) | Custom Formula