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

Field type for Screen Field

Former Member
0 Likes
1,744

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
Read only

Former Member
0 Likes
1,231

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

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

5 REPLIES 5
Read only

Former Member
0 Likes
1,231

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.

Read only

Former Member
0 Likes
1,231

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!!

Read only

Former Member
0 Likes
1,232

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

Read only

0 Likes
1,231

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

Read only

0 Likes
1,231

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

Saludos.

Angel.