Application Development 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: 

Field type for Screen Field

Former Member
0 Kudos

Dear all,

Actually i want to store Numeric Value with '+' or '-' sign in module pool's Screen Field.

how can i store that type of data.

currently i m declared as a decimal type variable.

but when value is coming with negative sign in internal table. dum error is occured like this...............

There was a conversion error in the output of fields to the screen.

The formats of the ABAP output field and the screen field may not match.

Some field types require more space on the screen than in the ABAP

program. For example, a date output field on the screen requires two

more characters than the corresponding field in the ABAP program. When

the date is displayed on the screen, an error occurs resulting in this

error message.

Screen name.............. "ZPPI_SCRAP_RECORD"

Screen number............ 9000

Screen field............. "T_ITAB-DIFF"

Error text............... "FX015: Sign lost."

Other data:

" "

" "

" "

Plz help me

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Go to the screen layout and choose the attribute of the field. You should get a popup with all the attributes.

One of them is the input attribute and there you will see a number of underscores, eg. _______

Add a 'v' at the last position. like: _______v or _______V (If i remember correctly V is the placeholder for the sign).

Edited by: Maen Anachronos on Oct 4, 2008 10:45 AM

5 REPLIES 5

Former Member
0 Kudos

Hi Anshuman Singh,

Is there any possiblity to adopt the following logic for your requirement?

Just declare a character field with length of maximum number of digit you want to input plus one.

Now input with '+' or '-' sign.

Before processing this value, check for only numbers except sign.

Now except that sign, assign or write the remaining value to the temprary varibale for processing.

Regards,

R.Nagarajan.

Former Member
0 Kudos

Hi Anushu,

have you check the output length of your field whether it is lower than your value length. Otherwise try using INT4 data type resolve your issue. If i am wrong correct me.

Cheers!!

Former Member
0 Kudos

Go to the screen layout and choose the attribute of the field. You should get a popup with all the attributes.

One of them is the input attribute and there you will see a number of underscores, eg. _______

Add a 'v' at the last position. like: _______v or _______V (If i remember correctly V is the placeholder for the sign).

Edited by: Maen Anachronos on Oct 4, 2008 10:45 AM

0 Kudos

Thanx a lot...................................

0 Kudos

That's the correct answer....thanks, I had the same problem !!!!!

Saludos.

Angel.