‎2008 Jun 30 6:38 AM
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
‎2008 Jun 30 6:57 AM
‎2008 Jun 30 7:26 AM
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
‎2008 Jun 30 7:29 AM
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.
‎2008 Jun 30 7:32 AM
declare ur fields in the ABAP editor as
Data : field1 type p decimals 2,
field2 type i.
Rewards If Useful
Regards
Prakash Varun
‎2008 Jun 30 7:37 AM
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
‎2008 Jun 30 7:38 AM
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
‎2008 Jun 30 7:38 AM
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.