Skip to Content
0

To Restrict Character in editable OO ALV

Sep 21, 2017 at 10:44 PM

60

avatar image
Former Member

Hi all,

I have a editable ALV output with 10 columns.

My Requirement is , I have concatenated my field catalog , field name as 'Mon' '_' '01' and it is character field.

It should not allow character values to enter in columns.

Any idea how to achieve this?

capture.png (6.2 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Sandra Rossi Sep 22, 2017 at 06:48 AM
0

You mean, you only want numeric digits 0 to 9, minus (and possibly decimal separator). You must define the columns in the field catalog with a numeric type like P or I.

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Sandra,

Thanks for your reply.

It is a dynamic Alv output and as i said before ,I have concatenated my field catalog , field name as 'Mon' '_' '01' and it is character field.

So how could i define numeric type for my field catalog ? It is throwing dump if i define numeric and pass character values for my fieldname.

0

make an internal table with numeric fields for for the ALV, and later transfer the internal table to the one with character fields.

0
Raymond Giuseppi
Sep 22, 2017 at 11:03 AM
0

Did you try to use some Numeric text field (characters, only num) when creating the internal table. Also explain your

if i define numeric and pass character values for my fieldname.                                  

What's the relation between the field name and its format/value/content ???

Share
10 |10000 characters needed characters left characters exceeded