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 cell format

Former Member
0 Likes
971

Hi!

I'm beginning with ALV's and i have a problem when saving the content of a grid to a Z table that i built.

So...i have one collum that is of type mseg-menge ( i declared like this: zfield like mseg-menge). When i fill in the ALV this cell (for example, with the number 10000) and then hit the save button (wich i control at user_command) it changes that value to 10,000 and saves to the Z table like '*00'.

Does anybody knows how can i solve this problem?

Regards,

RT.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
790

hi boss..,

check this...

http://www.saptechnical.com/Tutorials/ALV/Edit/demo.htm

regards,

venkat.

5 REPLIES 5
Read only

Former Member
0 Likes
790

Why don't you see if the following code in the field catalog (assume structure is wa) does what you want. It suppresses the conversion exit.

wa-no_convext = abap_true.

Your target field may also be too narrow. You should make sure it is wide enough.

Read only

0 Likes
790

I there.

I copied the line of code that you posted butt it stayed the same thing. It noticed that is saving the 10000 like *01.

Read only

Former Member
0 Likes
790

Hi,

When you save your data in the internal table, try using the TRANSLATE command, or maybe you can change the type of your ALV field to string!

Best Regards

Erick

Read only

Former Member
0 Likes
791

hi boss..,

check this...

http://www.saptechnical.com/Tutorials/ALV/Edit/demo.htm

regards,

venkat.

Read only

0 Likes
790

Thanks!

I have the problem solved!