dear fabian gomez,
Actually the GJAHR field for your purpose should be picked from BKPF table but It's not possible,
even in Abap code, to make a join on BSEG and BKPF.. Because it's a SAP restriction related to BSEG being a cluster table. An even simpler solution is an incremental load of both BSEG and BKPF and use GJAHR and BUKRS fields as key fields. I am not much of an expert in ABAP , just repeating what I've heard. regards n.selvakumar