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

report problem

Former Member
0 Likes
491

hi

here is the code for the report that i have developed.

TABLES : TSTC, TADIR,T000,USR01. "TABLES FOR SELECTION

Data : Begin of it_itab occurs 0,

pgmna type tstc-PGMNA,

end of it_itab.

Data : wa_itab like it_itab.

PARAMETERS : Prog as CHECKBOX Default '',

TCODE as CHECKBOX Default '',

Userid as CHECKBOX Default '',

Clntid as CHECKBOX Default ''.

start-of-selection.

if Prog = 'x'.

select PGMNA from tstc into table it_itab.

endif.

end-of-selection.

if Prog = 'x'.

loop at it_itab into wa_itab.

write 😕 wa_itab-pgmna.

endloop.

endif.

let me know if any code that i have to change. this code isnt displaying anydata and also its fetching the technical char's of the fields.

points will be given. its urgent ...

3 REPLIES 3
Read only

Former Member
0 Likes
467

Change the code as following

TABLES : TSTC, TADIR,T000,USR01. "TABLES FOR SELECTION

Types : Begin of ty_itab,

pgmna type tstc-PGMNA,

end of ty_itab.

Data : it_itab type table of ty_itab,

wa_itab type it_itab.

PARAMETERS : Prog as CHECKBOX Default USER-COMMAND,

TCODE as CHECKBOX Default USER-COMMAND,

Userid as CHECKBOX Default USER-COMMAND,

Clntid as CHECKBOX Default USER-COMMAND.

At selection-screen.

if Prog = 'x'.

select PGMNA from tstc into table it_itab.

loop at it_itab into wa_itab.

write 😕 wa_itab-pgmna.

endloop.

endif.

Regards,

Jagadish

Read only

Former Member
0 Likes
467

hi there...

u have not declared the work area properly...

the syantax is data : wa like line of it.

try this and c if it helps...

regards.

Read only

Former Member
0 Likes
467

thanks alot.

i caught the problem....