05-16-2016 5:17 AM
Hi,
I'm working on a report where i need to link the Price change document table MLHD or MLIT with Accounting document with table BKPF or BSEG table.
Immediate response in highly appreciated.
Best Regards.
Hemanta Kumar
05-16-2016 6:45 AM
HI,
Use functiona module FI_DOCUMENT_RECORD
with below parameters
I_AWTYP = 'PRCHG'
I_AWREF = mlhd-belnr
I_AWORG = mlhd-KJAHR
bukrs = MLIT-BUKRS
in the result table T_DOCUMENTS you will get all the documents realted to accounting and controling,
select one with AWTYP = 'BKPF' this is your accounting document
Regards
Ganesh
05-16-2016 6:45 AM
HI,
Use functiona module FI_DOCUMENT_RECORD
with below parameters
I_AWTYP = 'PRCHG'
I_AWREF = mlhd-belnr
I_AWORG = mlhd-KJAHR
bukrs = MLIT-BUKRS
in the result table T_DOCUMENTS you will get all the documents realted to accounting and controling,
select one with AWTYP = 'BKPF' this is your accounting document
Regards
Ganesh
05-16-2016 8:06 AM
Dear Sawant,
Super !!!
I already shared the FSD with similar approach.
Passed MLIT-BELNR & KJAHR in BKPF - AWKEY to get BKPF-BELNR
Best Regards,
Hemanta Kumar