How to get BKPF-BELNR or BSEG-BELNR using ANEP-BELNR as reference?
Hello all you experts!
I am having a problem with a Z report. I need to access BSEG using BELNR, but the only Document number (BELNR) I have at runtime is ANEP-BELNR that is not the same Document number (BELNR) that the one in BKPF or in BSEG.
I tried to access BSEG using BUKRS, GJAHR, ANLN1 and ANLN2 (I already have those values in an internal table) but it is taking forever since I didn't specified BELNR.
Is there a relationship with ANEP and BKPF/BSEG?
Please help, it is kind of urgent!
Many thanks in advance.