SELECT banfn werks flief badat FROM eban INTO TABLE it_eban WHERE badat IN s_badat. IF NOT it_eban IS INITIAL. SELECT bwkey bukrs FROM t001k INTO TABLE it_t001k FOR ALL ENTRIES IN it_eban WHERE bukrs EQ it_eban-werks. ENDIF.
I need to write a statement that would take flief (vendor) from EBAN and bukrs from T001K and pass in LFB1 to check whether the vendor is extended to that company code.
How to add the logic?
Pls assist.
-babu