Q55: Relating AP Invoice payment direct to a Purchase Order

Dear All,
I want to create a report  that tells me which AP Invoice relates to a line item on a purchase order but am having difficulty in thinking through the logic.
I can relate a GRPO to a PO and an API but cannot think how to relate an API direct to a PO.
Can anyone give me some assistance please?
Thanks,
Robin

Gordon, the data is being extracted correctly but each time I execute the report the columns appear in a different sequence. I have never experienced this before - do you know why this hsould happen?
I have amended your script to the following so far:
Select
t0.docnum as 'PO Number',
t0.cardname as 'Supplier',
t0.docstatus as 'PO Status',
t1.ItemCode as 'Item Code',
t1.dscription as 'Description',
t1.shipdate as 'Delivery Date',
t1.whscode as 'Warehouse',
t1.Quantity as 'Qty',
t1.LineTotal as 'GBP',
t3.DocNum as 'GR Number',
t2.Quantity as 'GR Qty',
t5.DocNum as 'AP Number',
t4.Quantity as 'AP Qty'
From
opor t0 inner join por1 t1 on t1.docentry = t0.docentry
left join pdn1 t2 on t2.baseentry = t0.docentry and t2.basetype = 22 and t2.baseline = t1.linenum
left join opdn t3 on t3.docentry = t2.docentry
left join pch1 t4 on (t4.baseentry = t3.docentry and t4.basetype = 20 and t4.baseline = t2.linenum)
or (t4.baseentry = t0.docentry and t4.basetype = 22 and t4.baseline = t1.linenum)
left join opch t5 on t5.docentry = t4.docentry
WHERE
t1.shipdate >= '[%0]' and
t1.shipdate <= '[%1]'
ORDER BY
t0.docnum

Similar Messages

  • Vendor down payment request to MM purchase order

    We want to post vender down payments request and make the relation with the purchase order.
    Up to now the systems ask for the purchase order number (mandatory) and the line item number (mandatory)
    As we have with our customer PO's with sometimes more than 100 line items, we do not want to relate down payments request for every PO line item.
    Is it possible to link the total amount of the down payment request to the purchase order as a whole, so without the line item numbers.
    Thanks
    Martien
    Edited by: M. van den Eshof on Mar 12, 2010 1:10 PM

    Dear Martien,
    we have had the same problem here at our company. In ECC6.0 we haven't found a solution for this.
    We are doing a workaround:
    We post the down payment request only on one, the main item in the purchase order. But this causes negative effect on cash management.
    If you find a other solution, so please tell me.
    Best regards.
    Manuel

  • Down payment request to the purchase order as a whole for f-48

    Hi Gurus
    I want to post vender down payments request and make the relation with the purchase order.
    Up to now the systems ask for the purchase order number (mandatory) and the line item number (mandatory)
    As we have with our customer PO's with sometimes more than 100 line items, we do not want to relate down payments request for every PO line item.
    Is it possible to link the total amount of the down payment request to the purchase order as a whole(we can say as Header), so without the line item numbers.
    Actually looking for any screen exit is available for that or any other way.
    Regards
    RK

    Check for FI user exits in this link
    http://wiki.sdn.sap.com/wiki/display/ERPFI/UserExitsin+FI
    Check also this links
    USer Exit / Badi F-47  & F-59
    http://wiki.sdn.sap.com/wiki/display/ABAP/Find%2bApplication%2bclass%2bwith%2bExits%2band%2bBadis%2bfor%2ba%2bTransaction
    Edited by: Jeyakanthan A on May 25, 2010 1:03 PM

  • Down payment request to the purchase order as a whole

    Hi Gurus
    I want to post vender down payments request and make the relation with the purchase order.
    Up to now the systems ask for the purchase order number (mandatory) and the line item number (mandatory)
    As we have with our customer PO's with sometimes more than 100 line items, we do not want to relate down payments request for every PO line item.
    Is it possible to link the total amount of the down payment request to the purchase order as a whole(we can say as Header), so without the line item numbers.
    Regards
    RK

    Hi
    Actually looking for any screen exit is available for that or any other way
    Rgs
    RK

  • Excise Invoice is captured with another Purchase Order

    Hi
    We have a scenrio, transfer the material from debond plant to mfg plant after imported material in kept in Bonding area. STO po is raised to from imported plant to mfg plant with Imported duties as delivery costs.
    Bill of entry is provided for all the materials as one. While capturing the excise amount at line item level is difficult so, captured at first line item level as total because material is Same (Material is Split valuated materials with 3 batches). First GR is done properly but next GR for 2nd and 3 rd line items are refered with earlier Bill of entry, system promprts the error message "Excise Invoice is captured with another Purchase Order".
    Please do the needful.
    Regards
    Mohan

    Hi,
    Please be informed that for one a GR document wrt PO only one excise invoice can exist.
    Ex PO-4500000010
    GR no 5000000010
    only one excise can exist and if the same excise invoice is reffered to another GR with the same PO system will throw an error message. Please let me know the exact business requirement in detail.
    Naveen

  • Capture Excise Invoice w.r .t  Without Purchase order

    HI
    When i try to post J1IEX i.e Capture Excise Invoice w.r .t  Without Purchase order i am getting the following error message :
    Balance in transaction currency
    Message no. F5702
    Diagnosis
    A balance has occurred in transaction currency 'INR' with the following details:
    Exchange rate '00', amount '            1.000-' and currency key 'INR'.
    The data in the transaction currency were transferred from the calling application.
    System Response
    Your data cannot be processed in FI.
    Procedure
    The error is probably in the calling application
    Please help me to solve this issue
    Thanks & Regards,
    Mani

    Hi,
    check in cin-basic settings- co code settings , there will be a check box "Rounding duty on procurement" , pls tick mark this and check it..
    otherwise check in debit / credit  selection for EWPO trans type . as per blw in - Logistics General  Tax on Goods Movements  India  Account Determination  Specify Excise Accounts per Excise Transaction
    EWPO           Credit     CENVAT clearing account
    EWPO           Debit     RG 23 AED account
    EWPO           Debit     RG 23 BED account
    EWPO           Debit     RG 23 ECS Account
    EWPO           Debit     RG 23 NCCD account
    EWPO           Debit     RG 23 SED account and ECS and SE CESS
    Edited by: Jayakumar Raju A.S on Aug 19, 2009 6:36 PM

  • Payment Term default to Purchase Order

    Dear SAP guru,
    We have problem that payment term is not defaulted to Purchase Order if the Purchase Order is converted from Purchase Requisition.
    If purchase order is directly created in ME21N, the payment term will be defaulted from vendor master. However we have purchase requisition that is released/converted to purchase order, these POs willl not copy over the paymetn term from vendor master.
    Can any one share how to make the PO always default payment term from vendor master eventhough it is converted from purchase requisition?
    Thanks a lot in advance for your kind assisstance.
    rgds
    Dahlia

    Hi Rajesh,
    Thanks for your quick reply. No, the PR is not referenced to contract. The PR is for external process, therefore the flows is asa follow:
    1. Production order creation; for external process system automatically create purchase requisition.
    2. Purchase requisition will have vendor code defaulted from production order routing. In the routing for external process you can define the vendor code.
    3. Convert the purchase requisition into purchase order.
    The problem the purchase order will not have payment term default from vendor master.
    Thks
    Dahlia

  • Down payment request based on purchase order

    Dear all,
    How to make down payment request(F-47) based on purchase order(not line item wise) ?,
    Currently in F-47 it is asking to enter amounts purchase
    order line item wise,because downpayment is made only for entire purchase order value not line item wise.
    How to solve this issue ?
    Jeyakanthan

    Hi,
    This is SAP standard functionality. you have to specify line item, though you specify line item system will check for whole PO. and while posting invoice you will get information of the down payment.
    Regards,
    Raj

  • Invoice verification with reference to purchase order

    Hi experts,
    May I know is there any setting or configuration that control the data/field copy from purchase order to invoice in MIRO during invoice verification?
    How do we control which field should be copied? If I add another new field in purchase order, how can I make sure it is copy over to invoice in MIRO during invoice verification?
    Thanks & regards,
    JT

    Hi Andra
    Thanks for your reply.
    Actually what I would like to do is that I added a payment method field in PO. And I would like the payment method to be copied into invoice automatically when we perform the Invoice verification in MIRO instead of manually enter.
    Is there anyway to do that?
    Thanks and regards,
    JT

  • Status (Outstanding Invoice) No working for Process Purchase Order(BBP_POC)

    Hi All,
              We have the filter condition outstanding Invoice in the transaction BBP_POC (Process Purchase order) for the field Status....Can any one tell me which indicator is responsiable for this filter......
              i have observed that for the outstanding confirmation is relative to the Final Delivery(No confirmation required) indicator in the purchase order. But the Final invoice indicator is not affecting the filter....
              Is it a standard behaviour or something is missing...?????
    Thanks
    Dibya

    Hi
    <b>Please go through the related pointers below -></b>
    Note 995146 - BBP_POC: Preferred vendor + vendor w/o result when searching
    Note 1104589 PO Search not returning all results
    Note 1086891 BBP_POC search incorrect for user maintained in txn PFCG
    Note 1082123 BBP_POC - saving search criteria fields
    Note 953825 PO (BBP_POC) find get different version of same PO
    Note 860886 Incorrect search results for deleted 'Preferred Vendor'
    Note 1105922 Shopping Cart search in Po item screen-performance
    Note 932291 Archived purchase orders are not displayed
    Note 956108 Empty worklist after clicking button 'Find'
    Note 825662 PO cannot be found by SC number
    <u>Hope this will help. Do let me know.</u>
    Regards
    - Atul

  • Need help regarding payment terms f4 for purchase order

    hello everyone,
                im currently workin on smartform for purchase order so transaction code is me23n in dat 1st tab delivery/invoice can u see payment terms field its technical field name is ZTERM in dat if u click on f4 ull find tht value along with description say eg 0001 payable immediately due net lik dis it comes so i need to display ths text i.e payable imm... lik dis in my smartforms field im unable to retrieve tht text element i gt 1 function module also ie Fi_F4_ZTERM here im gettin whole record i wnt only 1st record i.e 0001 payable if u click on f4 thr r many records...so whn u go to me23n ie for display u shd hav value tht is alrdy stored lik dis u check ulll understand..  thnx in advance fr ur help...

    Hi,
    The text of payment terms is stored in table T052U.
    You can get the payment terms of a PO in table EKKO and field ZTERM.
    Pass the value of this field i.e. EKKO-ZTERM to T052U-ZTERM  and T052U-SPRAS as SY-LANGU .
    You will get the description of the payment terms maintained in the PO.
    Regards,
    Vinod

  • Vendor Outstanding Payment with reference to Purchase Order

    Is there any standard report to see outstanding payments for vendors? I wanted to see purchase orders no, miro no, vendor, clear amount, pending amount, clearing document etc. i tried FBL1N but i didnt get po no. there. Please Guide.

    There is no standard report which gives your requirement.  You will have to develop the report thru help of abaper or create a abap querry.

  • Down Payment Request for a Purchase Order Type K

    I am making a down payment request to a supplier where the purchase order is of type K.
    At the time of recording the payment request (A-47) the transaction meets the cost center of the purchase order and, because of having a message class (KI 281), blocks the release.
    The question is:
    At present the validation of the message class (OBA5) should validate the account of the purchase order or the supplier's account of the F-47?
    Rgs,
    Ivair

    Hi
    KI 281 message says that the GL account has to be created as a cost element. So, please create a cost element for the GL you are using (KA01). Hope this is the problem.
    If this does not work, please let me know.
    Thanks,

  • Down payment of assets with purchase order

    Hi All,
    Down payment made through F-48 against  asset purchase order
    When purchase order number is entered,it is picking the Asset number  and it is capitalising at the time of down payment.
    i have gone through the Sap Note number 310368 in detial and have completely tested it out,but still it is throwing the Error F5378.
    i have Changed the field status variant in OBC4 and the posting key 39 and 29. the Error message has been changed to warning messsage as prescribed in the sap note.
    But still not able to overcome the problem.
    thanks in advance
    Regards
    Prashanth

    Hi Prashanth,
    Please check the config in the following path:
    Financial Accounting (New)> Asset Accounting> Transactions>Acquisitions>Define transaction types for acquisitions>Select transaction type for Down payment> should be UNTICKED capitalise fixed asset check box
    Regards,
    Babjee

  • Unable to create Invoice against a Project based Purchase Order

    Hi,
    We have a scenario, wherein there is Purchase Order created against a NETWORK ACTIVITY of a PROJECT. We have created a Invoice with ref to this PO. Now we want to cancel this Invoice by creating the Credit Memo against this PO. But, while trying to create the Credit Memo, we end with the following error message:
    "Budget for WBS element XXXX/12:7777-XX-X1-Y1-Z1 was exceeded by XXXX EUR in document item 003 Ntwk actvty XXXXXXXXXXXX 00110.
    Hence unable to create the Credit Memo. Desperately looking for your response to solved this.............
    Rgds,

    Hi,
    Check the cost as on today for ur project under project itself using CJ20n & then go to CJ30 and check the Budget for ur WBS
    regds,
    CB

Maybe you are looking for

  • Robohelp 7 - Context sensitive help and map ID's

    Hi there, Long time reader, first time poster. Let me just say my background is in training, as opposed to technical writing or software, so forgive me if my technical knowledge seems lacking. My issue is that I've been presented with a bought in sof

  • Self Assigned IP ( Simple FIX )

    OKAY , SO iHAVE HAD THIS ISSUE FOR QUITE A WHILE. I HAVE RESEARCHED MANY TIMES AND WAS UNSUCCESFUL AT FINDING A WORKING SOLUTION. SO, I CONFIGURED A SIMPLE METHOD WHICH WORKED PERFECTLY. I AM HERE TO SHARE WITH THOSE HAVING THE SAME ISSUE. ISSUE : SO

  • PACKAGE

    Dear all, 1) Can anyone tell me how to import all java packages like java.util , java.io in a single import statement. 2) If i want to find a perticular .class file from the all packages of java , how can I achieve this? With Regards. SUJOY

  • Abap report  Error

    Hi I generated a report and I found that it is syntactically correct also execution is successful but when I executed the same program after 10 minutes a blank screen appears stating that [Abap Runtime Error    Error Code    - SQL error in the databa

  • Printing problem for line items in a smartform

    Hi I am developing a smartform for inbound delivery, i have to print each line item in each page and each line item should be printed according to count of pallets. lets say if my first line item has 5 pallets, it should print 5 time on smartform. an