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

data type in module pool

Former Member
0 Likes
1,625

I want to create sceen in module pool programming with 2 filed , one with type P length 8 decimals 2, and another with type I,

as I need it to do calculation.

can anybody suggest ?

thanks

7 REPLIES 7
Read only

Former Member
0 Likes
1,182

Hi,

What kind of suggestion do you want?

Regards,

Sujit

Read only

0 Likes
1,182

Hi

i WANT TO KNOE WHAT TYPE OF DATA TYPE I HAVE TO DECLARE IN SCREEN FIELD in dictionary format (attributes),

when creating screen, as

I want to create sceen in module pool programming with 2 filed , one with type P length 8 decimals 2, and another with type I,

as I need it to do calculation.

can anybody suggest ?

thanks

Read only

0 Likes
1,182

In the attributes you will have to first of all declare a field OK_CODE type sy-ucomm.

After this declare all the fields you require for the computation.

Reward if useful

Regards,

Mansi.

Read only

Former Member
0 Likes
1,182

declare ur fields in the ABAP editor as

Data : field1 type p decimals 2,

field2 type i.

Rewards If Useful

Regards

Prakash Varun

Read only

Former Member
0 Likes
1,182

hi,

First you havr to create the fields in Your ABAP program which is using the Screen. Declare the fields in the ABAP program with the specification you want. And then use Form PAinter to Include those fields on to ur Screen.

Hope this will Help.

Reward if helpful.

Sumit Agarwal

Read only

Former Member
0 Likes
1,182

Hi,

Its depend on your requirements-

If you want To display text then go for CHAR Type.

If you want to display number then Go for INT4/INT2/INT2

For amount DEE - So On.

Now Put the Text filed from List And Double Clicking on the field Attribute list is diaplyed , In the Distionary Attributes you put DATA TYPE.

Do not Forgrt to place OK-CODE Field In Element List.In the Element list you also Define the Type, Length attrubutes.

If Any Confusion let me know.

Regards,

Sujit

Read only

Former Member
0 Likes
1,182

Hi Kumar,

You declare

one variable with type P length 8 decimals 2,

and another variable with type I,

in your program.

When you are designing a screen for this program just give the screen number and go to layout there is a button

'Dictionary/Program fields window ' or press F6 there you

click on 'GET FROM PROGRAM ' button there you can select the fields which ever you want.

Regards,

Rajitha.