Skip to Content
0
Former Member
Dec 06, 2006 at 06:18 PM

Problem getting data in Report

61 Views

Hi,

I have the following code in my report.

data: it_adrc type table of adrc.

data: wa_adrc type adrc.

perform get_address tables it_adrc

using add_partner.

loop at it_adrc into wa_adrc.

wa_output-country = wa_adrc-country.

wa_output-state = wa_adrc-region.

wa_output-name_co = wa_adrc-name_co.

wa_output-str_suppl1 = wa_adrc-str_suppl1.

wa_output-su_adr1 = wa_adrc-street.

wa_output-su_adr2 = wa_adrc-str_suppl3.

wa_output-su_street5 = wa_adrc-location.

wa_output-su_city = wa_adrc-city1.

wa_output-su_zip = wa_adrc-post_code1.

wa_output-su_ph = wa_adrc-tel_number.

wa_output-su_fax = wa_adrc-fax_number.

endloop.

form get_address tables it_adrc

using add_partner.

data: addrnum type but020-addrnumber.

select * into corresponding fields of table it_adrc

from ( adrc

inner join but020

on but020addrnumber = adrcaddrnumber )

where but020~partner = add_partner.

endform. " GET_ADDRESS

The problem is i am getting all the data for all the fields except for tel_number and fax_number.

When I debug i see that the values are not coming to wa_adrc though the tel_number and fax_number have values and it doesnt give any error. I dont understand why? Can someone please help me.

Regards,

D