Skip to Content
author's profile photo Former Member
Former Member

Report - PO History Lines

Hello Friends,

I am trying to build a logic where I can input the Contract Number or Purchase Order Number and in out will expect the all the information related to PO lines up to payment.

For achieving the above result I will consider the below tables:

Table EKPO: From where you can find the Contract Number and Material used in the PO

Table EKBE: From where you can find the Material Document and all the steps performed for PO Line item (PO History)

But still I am not aware how to get the Payment Document , I mean which table is best to refer to find the accounting documents which are related to Advance Payment, Payment Done etc. scenario.

Can any please give me a right guide line as I am not aware the MM part much.

Regards,

Rajesh K.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Posted on Dec 16, 2014 at 09:53 AM

    Hi Rajesh.

    Get MIRO number from RSEG table,

    then you have to pass AWKEY(ref. field) into BKPF table (where AWKEY = MIRO no. + FY)

    Thus you will get FI document number..

    Pass it to BSAK table & get clearing document number...

    This clearing document number is your required payment document number..

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 16, 2014 at 10:32 AM

    hi,

    use BSEG table ( ebeln - po number & get belnr )

    pass belnr and get awkey in BKPF table.

    pass awkey to table RSEG WHERE LFBNR = AWKEY+0(10) to get accounting document number

    rbkp table contains the amount value

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 16, 2014 at 08:52 AM

    Since payment is not part of MM I am moving this discussion to FI

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 16, 2014 at 09:09 AM

    Hi Rajesh,

    You can check the report ME80FN to get purchase order history. If you want payment details against the PO then you can check the table BSEG.

    Regards,

    Mukthar

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.