Google Search - Blog...........

ABAP - Use Of Dynamic Where Condition In Report Programming

REPORT YDYN_C.

data: source type string.

data: it_flight type sflight_tab1.

data: p_carrid type sflight-carrid.
p_carrid = 'AA'. <=== in your case define a variable and assign the material value to it
source = 'CARRID EQ P_CARRID' .
select * from
sflight
into table it_flight
where (source).

if sy-subrc eq 0.

endif.

No comments:

Post a Comment