Skip to Content
0
Former Member
Oct 17, 2007 at 07:31 AM

Why many zero are returned when a field is empty

35 Views

Hi,

I am using sapjco 2.1.8 in my Java code to call a BAPI function (rsz_x_component_get).

When executing this bapi function in SAP GUI, I can see one field is empty, and it's defined as as 70 characters. However, in Java code what I received is "000000000", while I should receive an empty string, "".

Does anyone know why the empty string is transferred into a string containing many zero?

Thanks,

Ray