‎2006 Feb 16 7:01 PM
hi friends,
in a program i have 2 itabs.
1st itab:
<b> data: begin of itab1 occurs 0,
banks like lfbk-banks, "bank country
swift like bnka-swift, "swift code
bankl like lfbk-bankl, "aba#
bankn like lfbk-bankn, "bank account no
zterm like lfb1-zterm,
end of itab1.</b>
2nd itab:
<b> data: begin of itab2 occurs 0,
banks like lfbk-banks, "bank country
swift like bnka-swift, "swift code
bankl like lfbk-bankl, "aba#
bankn like lfbk-bankn, "bank account no
zterm like lfb1-zterm,
stras like blfa1-stras,
pfach like blfa1-pfach,
ort01 like blfa1-ort01,
pstlz like blfa1-pstlz,
ort02 like blfa1-ort02,
pstl2 like blfa1-pstl2,
end of itab2.</b>
later in the program,
i'm doing like this:
<b>start-of-selection
clear itab1.
refresh itab1.
loop at itab1.
clear itab2.
move-corresponding itab1 to itab2.
itab2-ort01 = blfa1-ort01.
itab2-pfach = blfa1-pfach.
...............
...............
append itab2.
endloop.</b>
but it is giving the error saying that:
<b>" field blfa1-pfach is unknown. it is not not declared"..</b>
plz tell me how to correct it.
Message was edited by: dev a
‎2006 Feb 16 7:05 PM
I would say your missing a table declaration at the beginning of your program.
ie TABLES: BLFA1.
‎2006 Feb 16 7:05 PM
I would say your missing a table declaration at the beginning of your program.
ie TABLES: BLFA1.
‎2006 Feb 16 7:07 PM
Sometimes programs need the table workarea in order to work...So you need to declare the tables your using o reading with the <b>TABLES:</b> statement.
Greetings,
Blag.
‎2006 Feb 16 7:06 PM
Hi Dev
Include "Tables blfa1." in the beginning of the program and try executing it.
Santosh.
‎2006 Feb 16 7:12 PM
You're also going to have to get some data into blfai.
Rob
‎2006 Feb 16 7:37 PM
Hi Dev,
Give as below..
<b>TABLES: BLFA1.</b>
See that you clear BLFA1 before selecting data to its header.
‎2006 Feb 17 2:16 AM
hi,
though you have declared 'blfa1-ort01' in your internal table, which is just a structure of the table,
but since you want the values into the internal table, you need to declare the table in the report, as our friends mentioned.
tables: blfa1.
cheers,
Aditya.