cancel
Showing results for 
Search instead for 
Did you mean: 

How to determine when to add leading zeros to values in bapi calls

0 Kudos

Hi,

I call a couple of BAPIs from .net. In some places I need to add leading zeros to values in order to get the correct results. For example I must add leading zeros to material numbers in BAPI_GET_LIST's MATERIAL_RANGE (LOW and HIGH values).

When looking at the bapi definition is there a way to determine when I have to add leading zeros and when I don't have to add leading zeros? So far I hardcoded the padding with leading zeros, but I would rather determine that programatically.

Thanks

Sascha

Accepted Solutions (0)

Answers (1)

Answers (1)

gabriel_alves
Explorer
0 Kudos

Hello,

Looking to the BAPI is a little bit difficult to confirm this. Usually the domain used in data type of the field's structure is the same of the standard table. If it was the case, you can check if some specific field use a "Conversion Exit" in domain... A conversion exit determines if you have to deal with leading zeros.