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

internal table

Former Member
0 Likes
643

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
597

I would say your missing a table declaration at the beginning of your program.

ie TABLES: BLFA1.

6 REPLIES 6
Read only

Former Member
0 Likes
598

I would say your missing a table declaration at the beginning of your program.

ie TABLES: BLFA1.

Read only

0 Likes
597

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.

Read only

Former Member
0 Likes
597

Hi Dev

Include "Tables blfa1." in the beginning of the program and try executing it.

Santosh.

Read only

0 Likes
597

You're also going to have to get some data into blfai.

Rob

Read only

Former Member
0 Likes
597

Hi Dev,

Give as below..

<b>TABLES: BLFA1.</b>

See that you clear BLFA1 before selecting data to its header.

Read only

former_member184495
Active Contributor
0 Likes
597

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.