Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALV Problem

Former Member
0 Likes
512

Hi

My Alv program extracted some employee details. The program output is displaying correctely. when i try to download the data to excel some employee numbers missing. Anybody know what cause is this?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
489

Please try to avoid any leading zeros in ALV output. In other words use conversion exits like 'CONVERSION_EXIT_ALPHA_OUTPUT' before displaying the ALV output

siddu.

4 REPLIES 4
Read only

Former Member
0 Likes
489

Hi Kumar,

have you tried to download the data in other file format? Is the same issue there?

Regards,

Atish

Read only

0 Likes
489

Hi Atish

I tried in HTML format. It is ok. Only excel got problem

Thanks

Kumar

Read only

Former Member
0 Likes
490

Please try to avoid any leading zeros in ALV output. In other words use conversion exits like 'CONVERSION_EXIT_ALPHA_OUTPUT' before displaying the ALV output

siddu.

Read only

venkat_o
Active Contributor
0 Likes
489

Hi,

Try to avoid leading zeros. you can avoid leading zero while building field catalog

Check below sample code.

w_fieldcat-fieldname = 'PERNR'.
  w_fieldcat-tabname   = 'I_PA0001'.
  w_fieldcat-seltext_m = 'Employee No'.
  w_fieldcat-no_zero   = 'X'.                   "Set X here not to display leading zeros
  APPEND w_fieldcat TO i_fieldcat.
  CLEAR w_fieldcat.

Thanks

Venkat.O