2008 Aug 12 12:11 PM
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 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
2008 Aug 12 12:13 PM
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.
2008 Aug 12 12:42 PM
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
2008 Aug 12 12:57 PM
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
2008 Aug 12 1:12 PM
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.
2008 Aug 12 1:13 PM
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.
2008 Aug 13 10:12 AM
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
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |