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

screen painter

Former Member
0 Likes
599

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.

1 ACCEPTED SOLUTION
Read only

rajasekhar_matukumalli3
Active Participant
0 Likes
577

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

5 REPLIES 5
Read only

Former Member
0 Likes
577

hello

Did u define the fields in ur global decalaration include.

Otherwise try defining them as global declaration.

Vj

Read only

0 Likes
577

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

Read only

0 Likes
577

<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

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
577

You need to define DATA statements in a global area, in the TOP include is a great place. The names of these variables must be exactly the same as the names of the fields in the screen. Not the labels of the fields.

REgards,

Rich Heilman

Read only

rajasekhar_matukumalli3
Active Participant
0 Likes
578

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