2007 Aug 28 10:09 AM
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.
2007 Aug 28 11:57 AM
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.
2007 Aug 28 12:04 PM
Hi,
You need to define/Declare that field in the TOP include of the module pool program
Regards
Sudheer
2007 Aug 28 1:56 PM
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.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |