12-29-2014 7:44 AM
Hi Expects ,
I am going to develop report for getting Accounting document from RSEG Table with comparison of BKPF ,
But in RSEG Reference filed contain docno+year and BKPF Contain onyy Docno , how can i compare and where can i write the code please.
Regards,
Suman Baina
12-29-2014 8:10 AM
Hi Suman,
Both table have field Accounting document number,you use this field for your comparions.
field name:BELNR and other common field GJAHR for both table.
With regards,
12-29-2014 11:32 AM
Dear Sir,
As per my observations RSEG Contain Only MIRO Document Numbers not MIRO Accounting Document number .
I need accounting Documents number against the MIRO Document Please.
Regards,
Suman
12-29-2014 8:12 AM
Dear Suman,
Kindly try the same with reference field(XBLNR) instead of reference key (AWKEY).
Else you need to use BSEG table along with field SGTXT for finding GR number.
Regards,
Karna J
12-29-2014 11:35 AM
Dear Sir,
As per observations BSEG contain only accounting document,but there is no MIRO Document number for getting right values.
Please advise any other solutions.
Regards,
Suman
12-29-2014 11:56 AM
Dear Suman,
Did you try with reference field (XBLNR)....
Regards,
Karna J
12-29-2014 12:03 PM
Dear Sir,
Yes Sir ,But this field is not updated with GR number for Delivery costs.
Regards,
Suman
12-29-2014 12:19 PM
Dear Suman,
You can come to know the GR number, IR Number and PO number from RSEG table and pass GR no to BSEG-SGTXT for finding accounting document (BELNR) of IR.
Regards,
Karna J
12-29-2014 12:37 PM
Dear Sir,
Just now i have tested , there is no values in BSEG-SGTXT , as per my objervation .
we should get the date from BKPF and RSEG table only with some small code like
AWKEY-GJAHR = BELNR
Please advise how to write this code and where to write in SQ02.
Regards,
Suman
12-30-2014 10:22 AM
Dear Suman,
Then you have to append the field to store IR document and FI document in RSEG OR BKPF,
from there you can take it.
Regards,
Karna J
12-30-2014 10:33 AM
Dear Karna ,
Thank you , but i don't know how to do this , please guide me .
I am a functional please.
Regards,
Suman
12-30-2014 11:04 AM
Suman,
The code needs to be added in 'Extras' -> Code in SQ02. However, in this case it will involve some amount of text parsing etc. You will better served if you post your query in the ABAP development forum.
12-31-2014 4:01 AM