Skip to Content
avatar image
Former Member

Field type for Screen Field

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 04, 2008 at 08:44 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 04, 2008 at 06:45 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 04, 2008 at 06:57 AM

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

    Add comment
    10|10000 characters needed characters exceeded