Address node in Smartform
Greetings of the Day.
This is my first thread in SDN.SAP .com .
I am making a smartform having i have to dynamically print both soldto and shipto address.
I am passing the internal tables from my print program but i am writing the code for address fetching in smartform only .
I write the following query .
types:begin of sItabaddr,
vbeln type vbak-vbeln,
addrnumber type adrc-addrnumber,
end of sitabaddr.
data:itabaddr TYPE TABLE OF sitabaddr.
data: wa_itabaddr type sitabaddr.
select vbeln addrnumber from it_vbak
inner join kna1 on it_vbak-kunnr = kna1-kunnr
inner join adrc on adrc-adrnr = kna1-adrnr
into table itabaddr.
But i got the following error.
""Global Definitions: "IT_VBAK" is not defined in the ABAP Dictionary as a table, projection view or database view.""
Can anyone please tell me how to pass the address number in address node and how to resolve the above error .however i tried to pass the itabaddr-addrnumber by checking the checkbox dynamic address in Address window.But still error is coming.