Application Development 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: 

Hi Write Screen

Former Member
0 Kudos

hi

I use a screen ( normal type ) for entry data and write database

and ı see saved data .

i want use WRİTE commend ( with internal table)

but not write ( inner table has data )

what is problem ?

13 REPLIES 13

Former Member
0 Kudos

problem is in ur inner join i think.match the fields correctly.

if data is there in data base.it will display in output.

if u post the select statement what u wrote i can send the solution.

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

thank you answer but ...

CLEAR t_zs0009RE_t1.

SELECT * from zs0009RE_t1 into TABLE t_zs0009RE_t1.

LOOP AT t_zs0009RE_t1.

WRITE 😕

t_zs0009RE_t1-menkul_id ,

t_zs0009RE_t1-menk_tip ,

t_zs0009RE_t1-islem_tipi ,

t_zs0009RE_t1-mahalle_id ,

t_zs0009RE_t1-aadres ,

t_zs0009RE_t1-kadres ,

t_zs0009RE_t1-genislik ,

t_zs0009RE_t1-oda_sayisi ,

t_zs0009RE_t1-kat ,

t_zs0009RE_t1-dig_oz ,

t_zs0009RE_t1-imr_drm ,

t_zs0009RE_t1-fiyat .

make debug inner table . have any problem

ı think I used screen is not true ...

have not trigged problem because before code normally run ...

Edited by: Turgut ÇILGI on Sep 20, 2008 10:13 AM

0 Kudos

Hello Turgut,

Is there any data in zs0009RE_t1?

Regards

Farzan

Former Member
0 Kudos

YES

0 Kudos

Hello Turgut,

Did you keep a break point and check if data is getting fetched to the internal table?

Can you please send the whole code so that we will have a clear picture.

Regards

Farzan

Former Member
0 Kudos

&----


*& Report ZS0009DNM

*&

&----


*&

*&

&----


REPORT ZS0009DNM.

tables : zs0009RE_t1.

data t_zs0009RE_t1 TYPE zs0009RE_t1 OCCURS 0 WITH HEADER LINE.

call SCREEN 100.

&----


*& Module STATUS_0100 OUTPUT

&----


  • text

----


MODULE STATUS_0100 OUTPUT.

SET PF-STATUS 'GUI'.

  • SET TITLEBAR 'xxx'.

ENDMODULE. " STATUS_0100 OUTPUT

&----


*& Module USER_COMMAND_0100 INPUT

&----


  • text

----


MODULE USER_COMMAND_0100 INPUT.

CASE sy-ucomm.

WHEN 'BACK'.

LEAVE TO SCREEN 0.

ENDCASE.

ENDMODULE. " USER_COMMAND_0100 INPUT

&----


*& Module LISTELE OUTPUT

&----


  • text

----


MODULE LISTELE OUTPUT.

CASE sy-ucomm.

WHEN 'LIST'.

select * from zs0009RE_t1 INTO TABLE t_zs0009RE_t1.

LOOP AT t_zs0009RE_t1.

WRITE 😕

t_zs0009RE_t1-menkul_id ,

t_zs0009RE_t1-menk_tip ,

t_zs0009RE_t1-islem_tipi ,

t_zs0009RE_t1-mahalle_id ,

t_zs0009RE_t1-aadres ,

t_zs0009RE_t1-kadres ,

t_zs0009RE_t1-genislik ,

t_zs0009RE_t1-oda_sayisi ,

t_zs0009RE_t1-kat ,

t_zs0009RE_t1-dig_oz ,

t_zs0009RE_t1-imr_drm ,

t_zs0009RE_t1-fiyat .

ENDLOOP.

ENDCASE.

ENDMODULE. " LISTELE OUTPUT

******************************************************************

i add a break point

i see my data in internal table...

0 Kudos

Hello Turgut,

This will not work as write statements are not used to display data in module pool programming. If you want to display in a different modified screen as screen 100 go for a table control.

Else you just want to display in the report output remove the call screen 100 statement and in the start-of-selection event, use the write statement.

Second option will be preferable and easier if you don't have to work on module pool and make much modification in the screen.

Regards

Farzan

Former Member
0 Kudos

thank you your answer Regards Farzan .

0 Kudos

Is your question answered?

Regards

Farzan

Former Member
0 Kudos

yes , I have no problem

again thank you.

0 Kudos

Did my answer help you?

Edited by: Farzan Mohamed on Sep 22, 2008 11:33 AM

Former Member
0 Kudos

yes

your asnwer is helpful for my project .