Multiple Internal Tables

Development (ABAP Development WorkBench, ABAP/4 programming)

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

Post Reply
A Thomspon

Multiple Internal Tables

Post by A Thomspon » Tue Feb 18, 2003 11:46 am

HI mates,

I've three internal tables. I'm giving them below.

DATA: BEGIN OF STOCK_ITAB OCCURS 10,
ROUTE(3),
VEHICLE(10),
ARRIVAL(4),
HAULIER(15),
TRIPSTART(4),
TRIPEND(4),
TEMPARATURE(4),
DATE(10),
NUMBER LIKE EKKO-LIFNR, "VENDOR NUMBER
S1 LIKE ZSTOCK_INTAKE-ZSILO1,
END OF STOCK_ITAB.

DATA: BEGIN OF STOCKTAB OCCURS 15,
LIFNR LIKE EKKO-LIFNR, " VENDOR NUMBER
EBELN LIKE EKKO-EBELN, "PO NUMBER
ROUTE LIKE ZSTOCK_INTAKE-ZROUTE_NUMBER,
VEHICLE LIKE ZSTOCK_INTAKE-ZVEHICLE_NUMBER,
ARRIVAL LIKE ZSTOCK_INTAKE-ZARRIVAL_TIME,
HAULIER LIKE ZSTOCK_INTAKE-ZHAULIER,
TRIPSTART LIKE ZSTOCK_INTAKE-ZTRIP_START,
TRIPEND LIKE ZSTOCK_INTAKE-ZTRIP_END,
TEMPARATURE LIKE ZSTOCK_INTAKE-ZTEMPARATURE,
DATE LIKE ZSTOCK_INTAKE-ZDATE,
S1 LIKE ZSTOCK_INTAKE-ZSILO1,
END OF STOCKTAB.

DATA FINAL_TAB LIKE STOCKTAB OCCURS 15 WITH HEADER LINE.

Now, I have ALL THE values in STOCK_ITAB except EBELN (PO NUmber). I have Vendor numbers and PO numbers in STOCKTAB. I will have to fill FINAL_TAB with the values (values those match - comparing Vendor Number). What's the best way of coding this? Thanks in advance.

Wishes,

Thompson.

Jumanji
Posts: 23
Joined: Wed Feb 19, 2003 12:48 am
Location: Hyderabad, India

Post by Jumanji » Wed Feb 19, 2003 1:07 am

Hi,
U already seem to have the values in stocktab. why do u want them again in final tab???..

Post Reply