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

Fields from screen are not known by program.

yes_sapteam
Participant
0 Likes
557

Hi All.

I have this problem since I started using Dialog programming.

Since I didn't attended any course I might be doing something wrong.

When you define a field in a Dialog screen and you want to refer to it in the program that calls that screen you get a compilation error that there is no such field.

If you define the field as at TABLE-FIELD you can work around this compilation issue by defining the TABLE using "tables: TABLE" statement, but now I have a problem since I don't want to use the TABLE-FIELD definition for my field and thus I'm stuck Shocked

Any help will be appreciated.

Ayal.

Hi All.

I have this problem since I started using Dialog programming.

Since I didn't attended any course I might be doing something wrong.

When you define a field in a Dialog screen and you want to refer to it in the program that calls that screen you get a compilation error that there is no such field.

If you define the field as at TABLE-FIELD you can work around this compilation issue by defining the TABLE using "tables: TABLE" statement, but now I have a problem since I don't want to use the TABLE-FIELD definition for my field and thus I'm stuck Shocked

Any help will be appreciated.

Ayal.

3 REPLIES 3
Read only

Former Member
0 Likes
535

Hai,

If suppose, if you define a field in the screen, it is not mandatory to declare same variable in program level. If we take the same name, after completion of PBO the data automatically transferred to the screen field. If u don't take the same name then you need to pass value of the variable to the screen field in the PBO.

Example :

If suppose, you have a I/O field in the screen with name TEXT.

In the program

data : text(10) type C.

if that is 100 screen.

Process before output.

module display_100.

with in this module

text = 'SRIKANTH'.

this will directly display on the screen.

Read only

Former Member
0 Likes
535

Hi,

You need to define/Declare that field in the TOP include of the module pool program

Regards

Sudheer

Read only

yes_sapteam
Participant
0 Likes
535

Problem solved.

Thanx to everybody.

I still claim that this is a crooked way to work. In Java for example your screen-elements are variables like any other program defined variables.

enjoy.

ayal.