2008 Nov 18 7:38 AM
Hi,
i am create an alv report but i am get stuck in problem that i am not get the output of one column.
my code is this as i debug the programm value are shown but when modify the internal table for output data
its not displayed.
LOOP AT ch_it_mara INTO ch_wa_mara.
gv_count = p_date - ch_wa_mara-ersda.
if gv_count > '183'.
ch_wa_output-ersda = ch_wa_mara-ersda.
ch_wa_output-mtart = ch_wa_mara-mtart.
ch_wa_output-matkl = ch_wa_mara-matkl.
MODIFY ch_it_output FROM ch_wa_output
TRANSPORTING ersda
mtart
matkl
WHERE matnr = ch_wa_mara-matnr.
CLEAR: ch_wa_mara,
ch_wa_output.
endif.
ENDLOOP.
ENDIF.
ENDIF.
i am not get data of MTART field.
Thanks
jayant
plz give me solution or tell me where i am wrong.
2008 Nov 18 7:45 AM
Try to use MODIFY TABLE <internal table> from wa Transorting fields.
Hope it helps.
Thanks,
Jayant
2008 Nov 18 7:45 AM
Try to use MODIFY TABLE <internal table> from wa Transorting fields.
Hope it helps.
Thanks,
Jayant
2008 Nov 18 7:51 AM
Hi jaynt,
try this.
MODIFY TABLE ch_it_output FROM ch_wa_output
TRANSPORTING ersda
mtart
matkl
WHERE matnr = ch_wa_mara-matnr.Regards,
Anver
2008 Nov 18 7:54 AM
Hi
check the sy-subrc after MODIFY .
May be matnr does not exists in ch_it_output .
MODIFY ch_it_output FROM ch_wa_output WHERE WHERE matnr = ch_wa_mara-matnr TRANSPORTING ersda
mtart
matkl
.
try the above way.
regards,
Ramya
2008 Nov 18 9:48 AM
Hi,
Use Modify Table <internal table>.
Hope ur problem is solved.
Thanks & Regards,
Sudheer
2008 Nov 18 12:28 PM
CHECK FILED NAME IS CAPITAL IF NOT THEN DO IT AND RUN YOUR REPORT.
wa_fieldcat-fieldname = 'MATNR'.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |