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 DECLARATION

Neithan
Participant
0 Likes
1,176
TYPES : BEGIN OF book_list ,

book_id TYPE ZFK_DE_BOOKID,
book_name TYPE ZFK_DE_BOOKNAME,
book_writer TYPE ZFK_DE_BOOKWRITER,
book_case TYPE ZFK_DE_BOOKWRITER,

END OF book_list .


DATA : gt_book TYPE TABLE OF zfk_book ,
gs_book TYPE zfk_book .
* Hi , everyone !
* I have a little problem . As you can see, I have defined an internal table above. And it works fine .
* But when i change the zfk_book(my data base table name) like book_list something get wrong .
* And i dont understand why . Actually i wanna use book_list to change my table's lines  .
* But when i use book_list it does not work fine . 
* I am adding the picture of problem when i use book_list
* Can someone explain the problem . Thanks all !

* Note : The Last line is the problematic line . (When i use the book_list to define Iternal Table)
3 REPLIES 3
Read only

SimoneMilesi
Active Contributor
998

Hello,

it's pretty hard to understand what's wrong without knowing your DB table structure and how you fill your internal table, your program's flow and so on.

I bet it's a matter of how you fill your internal table, not table declaration.


PS
Edit your initial post and format it correctly to help us reading it better.

Read only

Sandra_Rossi
Active Contributor
998

I agree with Simone, how do you fill the internal table? And better formatting of your question:

---------------

Hi , everyone !

I have a little problem . As you can see, I have defined an internal table above. And it works fine .

But when i change the zfk_book(my data base table name) like book_list something get wrong .

And i dont understand why . Actually i wanna use book_list to change my table's lines .

But when i use book_list it does not work fine .

I am adding the picture of problem when i use book_list

Can someone explain the problem . Thanks all !

---------------

TYPES : BEGIN OF book_list ,

          book_id     TYPE ZFK_DE_BOOKID,
          book_name   TYPE ZFK_DE_BOOKNAME,
          book_writer TYPE ZFK_DE_BOOKWRITER,
          book_case   TYPE ZFK_DE_BOOKWRITER,

        END OF book_list .


DATA : gt_book TYPE TABLE OF zfk_book ,
       gs_book TYPE zfk_book .
Read only

RaymondGiuseppi
Active Contributor
0 Likes
998

Could you post the code that read and update the database to and from your internal tables and the description of the database table, seems you forget some trailing field(s)

(Read first the update statement documentation, look for work area prerequisites)