‎2007 Feb 07 6:15 PM
hi ..
i m trying designing a screen with 3 text fields where 2 fields should do the arithmetic operation and 3rd field should show the result. in the module should i call the field name or label name. i tried with both. but system shows error that fields are unknown. what to do. plz help me out..
thnx.
Ashraf.
‎2007 Feb 07 6:31 PM
Hi,
In your main program, declare three variables which you want to use on the screen
While designing the screen, in the screen painter, use the same fields for your calculations.
In the module use the variables for calculation purpose. Label is never used for any calculation as it is only an output field and cannot accept any values.
Hope this answered you question
Enjoy SAP
Rajasekhar
‎2007 Feb 07 6:23 PM
hello
Did u define the fields in ur global decalaration include.
Otherwise try defining them as global declaration.
Vj
‎2007 Feb 07 6:29 PM
yes ..
i did in that way also earliar. system runs without error. but i did not get any output in the required text field. if v assign that field is that global. how to link with that field and this varaibles..
Ashraf
‎2007 Feb 07 6:38 PM
<i>if v assign that field is that global</i>
No, what makes it global is the fact that it is defined in the TOP include of the main program and not inside of a module.
The link between the fields in the ABAP program and the screen is just the name of the field. So if the name in your data statement is ....
data: P_PARM1 type c..... the the name of your screen field should be P_PARM1. That's it, the rest is handled magically by the ABAP runtime, you do not have to manage the passing of the value back and forth to/from the screen.
You mentioned that you don't see any value in the field, you do have to put a value in it before the screen is thrown. You can do this in the PBO of the screen.
P_PARM1 = 'X'.Regards,
Rich Heilman
‎2007 Feb 07 6:29 PM
‎2007 Feb 07 6:31 PM
Hi,
In your main program, declare three variables which you want to use on the screen
While designing the screen, in the screen painter, use the same fields for your calculations.
In the module use the variables for calculation purpose. Label is never used for any calculation as it is only an output field and cannot accept any values.
Hope this answered you question
Enjoy SAP
Rajasekhar