on 2012 Mar 02 2:04 PM
Dear Experts,
My smartform gives dump due to identified reason.
That is
Type conflict of one field in the structure.
The data type of this filed READG is declared as p decimals 2
I am not clear how to define this field (as predefined) in the structure.
I have tried different types like DEC, NUMC which are not accepted and smartform gives dump.
I know that a proper data type declaration in the structure for field READG (P DECIMALS 2) would solve my problem.
Kindly help
kind Regards
Jogeswaraa Rao
Hi,
You did not write about field length.
If You create structure, You can choose 'Predefined Type' button and specify length and decimal places.
Alternatively You can create domain and data element and use data element.
Regards,
--
Przemysław
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Prominski,
My filed length is 10 with decimal places 2.
1. Is it OK to declare it as 'P DECIMALS 2' in the abap code?
2. How to declare this in the Predefined type of structure. (Is it necessary to create Domain and data Element)
Please guide.
kind regards
Jogeswara Rao
Edited by: K Jogeswara Rao on Mar 2, 2012 7:49 PM
Hi,
no, You are still missing length in declaration.
Correct will be:
DATA lv_readg(10) TYPE p DECIMALS 2.
If You create structure in ABAP code, use above statement.
If You are creating structure in SE11, there is 'Predefined type' button.
You do not need to create domain and data element,
but sometimes it is better then declaring type.
You can also find other matching data element.
Regards,
--
Przemysław
User | Count |
---|---|
70 | |
10 | |
10 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.