hello,
Let me clarify further, My COPA datasource was already enhanced 2 years ago. I recently made a change by including more fields from selection and that was september. After september, Shipping types became blank even though I could see values in KE24 report and CE1* table.
in the user exit, there is a logic to do a lookup when shipping type is blank. currently some rows are populated and this is because the logic reads from TVRO table. I want the rows to be populated with values from as in KE24 report or CE1* table.
My question are:
- if I need to write logic to populate the field with values from CE1* table
- if regeneration is needed after I added new fields for selections.
- the logic below only populates when shipping type is blank hence I should be able to see the values that have shipping types but so far they are all blank.
when '1_CO_PA_DATASOURCE'.
loop at c_t_data into it_trct.
w_tabix = sy-tabix.
*--- If shipping type is missing ,
then fill
data: it_vsart
type tvro-vsart,
it_route type vbap-route.
if it_trct -vsart
is initial and
not t_trct-kaufn
is initial.
select single route into it_route fromvbap
where vbeln =it_trct -kaufn and
posnr = it_trct -kdpos.
if sy-subrc
= 0.
select single vsart into it_vsart fromtvro
where route =it_route.
if sy-subrc
= 0 and
not it_vsart is
initial.
it_trct -vsart = it_vsart.
endif.
endif.
endif.