Hello all,
I have a question to ask.
Have declared an internal table as follows:
types:tt_gps type table of ukv_gps with key ebeln.
data: gt_gps type tt_gps,
gs_gps like line of gt_gps.
The Ebeln field is filled with values say 10 numbers.Now I want to use a select statement to put the corresponding Lieferant values into the itab gt_gps.
function zgps_read.
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*" TABLES
*" GPS_TAB STRUCTURE /BMW/UKV_GPS
*" EXCEPTIONS
*" SYSTEM_FAILURE
*" COMMUNICATION_FAILURE
*" NO_DATA
*"----------------------------------------------------------------------
select /bmw/ukv_gps~llief into corresponding fields of table gps_tab from /bmw/ukv_gps for all entries in
gps_tab where ebeln = gps_tab-ebeln.
if sy-subrc <> 0.
message 'Nicht gefunden' type 'I' raising no_data.
exit.
endif.
endfunction.
Iam using in the FB,the same gps_tab as input and also filling the same gps_tab accordingly.
Thats not working properly.The gps_tab is getting filled with more than the needed values.
Regards
P