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

packed decimal in structure

Former Member
0 Likes
3,218

Hi all,

can we create a field of type P decimals 2 in structure through SE11?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,900

Hi Jayshri,

You can create a field in structure of type DEC clicking on the Predefined type button specifying the length and the decimals to be 2, or you can use the stndard data element which is having 2 decimal places, i dont know if i have got ur question right , let me know if u r referring to something else.

Regards,

Santosh

Hi Jayshri,

You can create a field in structure of type DEC clicking on the Predefined type button specifying the length and the decimals to be 2, or you can use the stndard data element which is having 2 decimal places, i dont know if i have got ur question right , let me know if u r referring to something else.

Regards,

Santosh

5 REPLIES 5
Read only

Former Member
0 Likes
1,901

Hi Jayshri,

You can create a field in structure of type DEC clicking on the Predefined type button specifying the length and the decimals to be 2, or you can use the stndard data element which is having 2 decimal places, i dont know if i have got ur question right , let me know if u r referring to something else.

Regards,

Santosh

Read only

0 Likes
1,900

Yes santhosh,

I am trying to know that only. I have to prepare one final internal table in my main program,then I have to transfer the data to SMARTFORMS.In this table I have some fields which'll show the %. I have to create structure for the reference of this internal table.

Read only

Former Member
0 Likes
1,900

hi,

Create a Structure with Decimal TYPE Data type and then create an internal table using that structure type as line type .

You can not use P in structure as Packed is an ABAP Data type. Interanal representation of Packed is like DECIMAL.

Regards

Sumit Agarwal

Read only

0 Likes
1,900

Thak u santhosh and Sumit.My problem is solved.

Read only

Former Member
0 Likes
1,900

Create Structure with Decimal TYPE Data type .

Then create an internal table using that structure type as line type .

You can not use P in structure as Packed is an ABAP Data type.

Internally PACKED is DECIMAL.