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

Filds on screen

former_member549415
Participant
0 Likes
854

Hi to all

m trying to display the dictionary field data on screen fields.. where on screen i have added fields from program by providing .internal table name..

i have write following code..

data : itab like mara occurs 0 with header line.

call screen 200.

PAI Event :

case sy-ucomm.

when 'D'.

select * from mara into corresponding fields of table itab.

when 'E'.

leave program.

endcase.

its not showing the data on screen field.Please help me reg this.

Thanks in Advanced

hi,

If u need to display the fields then the code should be written in the PBO rather than the PAI,

Please try it.

Do revert back if problem is still dere.

Manish

6 REPLIES 6
Read only

Former Member
0 Likes
813

you are selecting data into itab. you need to display this data on the screen.

so write code in PBO...

loop at itab.

write code to display fields...

endloop.

Read only

Former Member
0 Likes
813

The data to be displayed on screen should be fetched before screen appears.Soyou should write it in PBO block .

PBO.

select * from ......

PAI

When ....

Reward points if found helpful.

Regards,

Linda.

Edited by: Linda on Aug 12, 2008 1:42 PM

Read only

Former Member
0 Likes
813

Dear,

U have to pass the data to screen feild like

example like

screen feild name = itab-abc.

and screen field sud be define in ur prog.and do ur work in PBO.

Thanks,

jaten

Edited by: jaten Sangal on Aug 12, 2008 1:59 PM

Read only

Former Member
0 Likes
813

Hi Somnath,

Try this....

PAI Event :

case sy-ucomm.

when 'D'.

select * from mara into corresponding fields of table itab.

when 'E'.

leave program.

endcase.

In PBO add this....

MODULE STATUS_0200 OUTPUT.

  • SET PF-STATUS 'xxxxxxxx'.

  • SET TITLEBAR 'xxx'.

LOOP AT ITAB INTO ISAB.

MOVE-CORRESPONDING ISAB TO MARA.

ENDLOOP.

ENDMODULE.

Read only

Former Member
0 Likes
813

Hi,

When you fetch data from standard tables to your internal tables then you need to work on PAI and PBO blocks.

So, at this point you need to erite code in PBO block:

select * from .................

Thanks.

Read only

Former Member
0 Likes
813

hi,

If u need to display the fields then the code should be written in the PBO rather than the PAI,

Please try it.

Do revert back if problem is still dere.

Manish