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

Passing structure data to screen at module pool

Former Member
0 Likes
1,124

Hi All,

I have created one screen (100) with some output fields and I created the structure for these fields and filled the data into structure. I am getting the data into the structure and not able to display in the screen output.

Am I missing anything.

Regards

Ramesh.

3 REPLIES 3
Read only

Former Member
0 Likes
700

hi,

Whether your screen fields and structure fields are having same name. Just check it.

Read only

former_member302911
Active Participant
0 Likes
700

Ramesh,

For example, on Screen 100 you have 2 Field I/O with name TAB_1-TRY1 and TAB_1-TRY2.

In global data of your program/include, you should declare this:

DATA: BEGIN OF TAB_1 OCCURS 0,

TRY1 TYPE STRING,

TRY2 TYPE STRING,

END OF TAB_1.

In the PBO of screen 100 you should create a module ex.: MODULE FILL_FIELDS with the code

MOVE 'THIS IS A TRY' TO TAB_1-TRY1.

MOVE 'THIS IS A TRY2' TO TAB_1-TRY2.

APPEND TAB_1.

READ TABLE TAB_1 INDEX 1. <- The Header line shoul be filled, or you can declare TAB_1 "like line of"

Regards,

Angelo.

Read only

Former Member
0 Likes
700

Solved myself.