2008 Jun 11 5:59 AM
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 ...
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 ...
2008 Jun 11 6:07 AM
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
2008 Jun 11 6:08 AM
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.
2008 Jun 11 6:23 AM
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |