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

output not displayed

jayant_kumar
Explorer
0 Likes
871

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
850

Try to use MODIFY TABLE <internal table> from wa Transorting fields.

Hope it helps.

Thanks,

Jayant

5 REPLIES 5
Read only

Former Member
0 Likes
851

Try to use MODIFY TABLE <internal table> from wa Transorting fields.

Hope it helps.

Thanks,

Jayant

Read only

anversha_s
Active Contributor
0 Likes
850

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

Read only

Former Member
0 Likes
850

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

Read only

Former Member
0 Likes
850

Hi,

Use Modify Table <internal table>.

Hope ur problem is solved.

Thanks & Regards,

Sudheer

Read only

Former Member
0 Likes
850

CHECK FILED NAME IS CAPITAL IF NOT THEN DO IT AND RUN YOUR REPORT.

wa_fieldcat-fieldname = 'MATNR'.