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 element display problem

Former Member
0 Likes
753

i am populating an internal table in my program and calling a screen . In the layout of the screen, i drew an output screen element and gave it the exact same name as a field from my internal table ( suppose itab-f1) . After activation and running the report, the screen element comes out blank. Through the debugger i know their is data in that field. Am i missing some step here?

Thanks.

1 ACCEPTED SOLUTION
Read only

former_member186741
Active Contributor
0 Likes
673

create a pbo module, say fill_screen, and in it move data to the fields on the screen. Even if they have the same name on the screen as in your abap, eg itab-f1 = itab-f1.

5 REPLIES 5
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
673

Does your internal table have a header line? If so, you need to read a line of the interal table and put something in your header line.

Read table itab index 1.

Doing this will put something in your header line, and hence, should show up in the screen. I assume that you are just testing stuff out a little, we usually put internal tables in table controls or ALV grids.

Regards,

Rich Heilman

Read only

0 Likes
673

Dear Rich

I am reading it into the header line and it is getting data in it ( i can see in the debugger) but it is just not showing up on the screen. thanks for your reply.

Read only

former_member186741
Active Contributor
0 Likes
674

create a pbo module, say fill_screen, and in it move data to the fields on the screen. Even if they have the same name on the screen as in your abap, eg itab-f1 = itab-f1.

Read only

0 Likes
673

can you post your code?

Regards,

Rich Heilman

Read only

0 Likes
673

Remember that you tell yout table control how much lines it needs to show. You need to do this on the PBO.


PROCESS BEFORE OUTPUT.
  MODULE CHECK_STATUS.


MODULE CHECK_STATUS.
DESCRIBE TABLE T_TAB1 LINES TAB_LINES.
TAB_CONTROL-LINES = TAB_LINES.
ENDMODULE.

Greetings,

Blag.