Order invoices by vendor
I am trying to get a result in XML Publisher, just like Reports does. I am trying to get my datatemplate the right way. this is the thing:
In Reports i create multiple queries and bind them by "WHERE vendorid = :vendor_id1". This way my XML result looks like this:
<Vendor>
<vendorname />
<Invoices>
<invoicedate />
<invoicenum />
</Invoices>
<Invoices>
<invoicedate />
<invoicenum />
</Invoices>
<Invoices>
<invoicedate />
<invoicenum />
</Invoices>
</Vendor>So the invoices are sorted by vendor. But the thing is, the relations are like this: The Invoice is the master table, which contains invoice info, the vendor_id, and ofcourse info like date, amount etc. So when querying the invoices you get more times the same vendor_id, with a different invoice number. Of course a customer can have more invoices. Now the relation to the vendor table is | Invoices N >-- 1 Vendors |. So this means my output in XMLP is like this:
<Invoice>
<date />
<amount />
<Vendor>
<name />
<number />
</vendor>
</Invoice>
<Invoice>
<date />
<amount />
<Vendor>
<name />
<number />
</vendor>
</Invoice>That is the other way around. This is what i expected it to do, but i cannot think of a way to turn it over. The problem is i guess the link of the vendor ID. Because first you have to query for the vendor_id, and then you can query for the vendor info. but you sort of need it the other way around, but you must be able to sort on vendor, and date.
So can anyone help me with this? I think XMLP can be very powerful, but for now, reports is easyer.
Wel... thats the thing, i have multiple. I am using XML Publisher Enterprise (with the nice GUI) and created multiple DataSets. Then selected this "Concatenated SQL Data Source", and kinda hoped that the queries would come together, which they dont :(. I also tried to make a complete DataTemplate with the XML in it etc. but if I have to create a query like that all the time, it is still easier to use reports. But anyway, i will give a piece of my DataTemplate here.
<dataTemplate name="controle_epn_pay" dataSourceRef="srv-vm-tst">
<dataQuery>
<sqlStatement name="Q_ap_invoices_all">
<![CDATA[SELECT doc_sequence_value
, invoice_num
, PAY_GROUP_LOOKUP_CODE
, PAYMENT_METHOD_LOOKUP_CODE
, DESCRIPTION
, vendor_id
, invoice_id
, batch_id
FROM ap_invoices_all
WHERE doc_sequence_value LIKE '10110%']]>
</sqlStatement>
<sqlStatement name="Q_ap_vendors_v">
<![CDATA[SELECT vendor_number
, vendor_name
FROM ap_vendors_v
WHERE vendor_id = :vendor_id]]>
</sqlStatement>
</dataQuery>
<dataStructure>
<group name="G_invoices_all" source="Q_ap_invoices_all">
<element name="invoice" value="invoice_num"/>
<group name="G_vendor" source="Q_ap_vendors_v">
<element name="Vendor" value="vendor_name"/>
</group>
</group>
</dataStructure>
</dataTemplate>So now according to the "active" invoice we have a invoice_id, and that invoice_id is used in the vendors query.
Similar Messages
-
Table for open Purchase order and pending invoices for vendors
Hi,
Are there any table to know open Purchase orders and pending invoices for vendors.
Quick response will be appreciated.
Thanks & Regardshi,
Purchase Order:
S011:(PURCH: Purch. Group Statistics)
Statistics (SSOUR)
Version (VRSIO)
Month (SPMON)
Day (SPTAG)
Week (SPWOC)
Posting Period (SPBUP)
Purchasing Org (EKORG)
Purchasing Group (EKGRP)
Vendor No (LIFNR)
S012: (PURCHIS: Purchasing Statistics)
Statistics (SSOUR)
Version (VRSIO)
Month (SPMON)
Day (SPTAG)
Week (SPWOC)
Posting Period (SPBUP)
Purchasing Org (EKORG)
Purchasing Group (EKGRP)
Material No (MATNR)
Plant (WERKS)
Info Record Category (ESOKZ)
Material Group (MATKL)
Info Record (INFNR)
Country (LAND1)
EINE: (Purchasing Info Record: Purchasing
Organization Data)
Info Record (INFNR)
Purchasing Org (EKORG)
Info Record Type (ESOKZ)
Plant (WEKS)
EKET: (Delivery Schedules)
Purchasing Doc (EBELN)
Item (EBELP)
Delivery Schedule (ETENR)
EKPO: (Purchasing Document Item)
Purchasing Doc (EBELN)
Item (EBELP)
EKKN: (Account Assignment in Purchasing
Document)
Purchasing Doc (EBELN)
Item (EBELP)
Account Assignment (ZEKKN)
EKKO: (Purchasing Document Header)
Purchasing Doc (EBELN)
EORD: (Purchasing Source List)
Material No (MATNR)
Plant (WERKS)
Source List No (ZEORD)
thx,
Ganpat -
One invoice with more purchase orders with more vendors
Hi guys,
a question: I have made an invoice in reference to two Purchase orders.
The first PO has the vendor1(also invoicing party1) and the second PO has the vendor2(also invoicing party2):when I enter the invoice in reference to these two PO's in order 1 and 2 the invoice takes the vendor1 like vendor to post and I save without problems..In your opinion is this behaviour correct or is there something to parametrize to avoid that one invoice can be posted on more PO with different invoicing partys/vendors?
Thanks in advance for interesting
ByeHi, It is possible to process more than one PO in MIRO but the vendor in all the PO's should be same.
The system will take over the invoicing party from the first PO and ignore the invoicing parties of other PO's if you are using multiple PO's with different Vendor's,
You can see it in 'Detail' tab at header in MIRO, This is SAP standard functionality.
Refer below link for multiple PO's posting for same vendor,
http://sapfunctional.com/MM/Invoice/MultiplePOs.htm
Refer following Notes for more details,
393431
458692 -
Purchase Order Number in Vendor Line Item (FBl1N) and Clear Vendor (F-44)
Hello,
I am not getting the Purchase Order Number in Vendor Line Item.(FBl1N).
Also during Clear of Vendor through F-44 i am not able to identify the Line item on the basis of Purchase Order Number.
Could any one pleae help me out on this issue as i have to clear the vendor Line item in mass.
Thanks
Nitin Jindal
Moderator: Please, respect the rules of the forum and search SDN before posting new thread. This question has been answered several times. Also, please choose proper forum to post your questions; this one is related to Financials and not to ControllingBased on my experience std feature from SD-FI . Depending on the SD Billing config which can be by delivery(VTFL) or sales order(VTFA). You can assign options of A: Cust PO No. B Sales order no. C Delivery no. D External delivery no. E Actual invoice number to available header fields of Assignment No. or Reference No. Try it out
-
Table Relation with Payment and Invoice of Vendor
Hi all,
I have one question about Table Relation with Payment and Invoice of Vendor.
the scenario is.
2 Purchase Order number : 100000001/100000002
1 Invoice document number : 200000001 which include 2 Purchase Order.
1 Payment document number : 300000001
How should I found out table relation from Payment document number - Invoice document number - Purchase Order number. ?
I try to link the following table, but it does not work.
RBKP * Invoice Receipt
RSEG * Invoice Receipt document line item
BKPF * Accounting Document Header
BSEG * Accounting Document Segment
PAYR Payment Medium File
BSIK Accounting: Secondary Index for Vendors
BSAK Accounting: Secondary Index for Vendors (Cleared Items)
BSIS Accounting: Secondary Index for G/L Accounts (Open Items)
Does any one know about it ?
Regards
KY ChuangHi Venkatesh,
Thnx a lot for the reply. This has almost solved my problem, however there's one thing left. when I'm trying to take a print out after exporting the info into an excel sheet, the information really looks scattered, i.e., is there a way where we can go ahead and get the info in a rather unscattered manner.
I've tried to take a print directly without actually transferring the info into an excel sheet, then each of the vendor is printed in a separate page, which again they feel is a problem.
So, if you have an idea pls suggest.
Thnx again for the information.
regards
sandhya -
MRNB- Revaluation with Logistics Invoice Verification Vendor wise
Dear Experts,
As per SAP standard MRNB transaction is vailable for Revaluation of Purchase Order Price changes.
My requirement as below:
We are manitaining Purchasing Info Records compulsory.
when purchasing rate changes, we are changing Info Records and not chaging purchase orders( its very tough taks to chage Individually Bcoz huge count).
so want Revaluation with Logistics Invoice Verification Vendor wise from Purchase Info Records.
is there any other alternative.??
Please Help.
..AjayHi subhuram,
I want credit memo or debit memo to Vendors.
not only revalution of materials.
Ajay -
Invoice from Vendor AA, paid check to Vendor BB
HI,
I've a question.
we issued Purchase Order to vendor AA
we received invoice from vendor AA
we paid cheque to vendor BB (because Vendor AA ask us to do so)
How to print cheque to vendor BB? Is it possible to issue cheque to different vendor name, instead of invoicing party?
Thanks.HI,
Thanks for guidance.
I've done:
Vendor master
1. General data, add alternative payee, and tick individual payee
2. company code, add alternative payee
MIRO
1. payment tab, tick individual payee, enter the alternative payee name, city, etc
F-58 Payment with printout
1.F-58 Do I need to enter the alternative payee number under payee field?
If I enter, I hit this error:
Payee 6100000 is not defined for account 6100003 0001
Message no. FR003
Diagnosis
Account number 6100000 specified for the payee is not defined in vendor 6100003's master record either in the company code-independent data nor in the paying company code 0001's data.
System Response
Error message
Procedure
Correct or delete your entry
My cheque still cannot print alternative payee name. What is step I miss out?
Appreciate your guidance. Thanks -
Asset purchasing order invoice verification error
Hi expert. I meet a problem about asset purchasing order invoice verfication. the detail as below:
1. creat the purchasing order, the account assign category is 'A'. passed
2. goods receipt.passed, the material document created.
3. infoice verification. when simulate the finance document, the debit is the vendor (no problem), but the credit is empty (it should be the asset number which selected in PO). the document error.
what can I do to solve the problem, thanks!HI, thanks for your reply.
reference PO have been typed and balance is zero. when simulate the document, there is only the debit (vendor), no credit (asset).
this function is good yesterday. I don't know who change the configuration today, I think it must be some config change lead to this problem. -
Hi All
Is there a report that will give me all invoices processed against a vendor and the Purchase Order for that vendor
VishnuHi Vishnu,
You mean to say Invoice received or Invoices paid to vendor.
If you are asking invoices paid to vendor there is no report with link to purchase order. You have report of vendor balances only against invoice numbers.
Regards
Rang -
How to get data from ECC --- Sales Order,Delivery,Transfer Order & Invoice
Hi,
Good day.
I'm ABAPer and I need to get Sales Order,Delivery,Transfer Order & Invoice data from ECC. The said data will be displayed in the custom form that I need to create. How exactly do i get the said data above?
Can I get them in the tables avaialable in GTS? Where?
Or do I get the data directly in ECC? How?
Thank you very much!
Best regards.
BrandoFirst of all push ECC data in to GTS server through T.code:/N/SAPSLL/MENU_LEGALR3. First click on Master data tab there enter customer/vendor number then execute.
2-Go to document tab there enter Sales order no/PO number then execute it.
Then go to GTS server in compliance management module you can get all the information.
Regards
Sitanshu Panigrahi -
Report for Number of invoice per vendor with amount
Hi All,
is there any standard SAP report we have which provide us number of invoices and amounts invoiced per vendor for a given time period.
Amit.Hi amit
I have the same requirement
"The requirement is to view POs related to invoices per vendor""
Can you suggest me a solution
Please help
Regards
Shanker -
Define key figures -incoming order, invoiced sales and credit memo in BW
Hi everyone,
I combined two ODS into one ODS from 2LIS_11_VAITM & 2LIS_13_VDITM. I want to generate reports that contain net value, cost of incoming order, invoiced sales, and credit memo'(SD module).
I tried to create some calculated key figures in BW that contain the net value and cost of incoming order, invoiced sales and credit memo. However, i couldn't find relative fields to define them.
Can anyone provide help regarding how to create those key figures in BW? Thank you.Hello John,
I think the best way to check it out is by looking at the business content. There might be mapping already defined for the fields you are looking for. The one standing out is perhaps the net value 'ONET_VALUE'.
Please try to use as much of content KF as possible. A good approach to finding the right info-objects is by searching the business content by info-sources and marking the grouping as 'Collect before and afterwords', it should list down all the dependent info-objects.
Hope that helps.
Cheers, Ashu -
How to block material issuing after sales order invoiced?
As the subject mentioned, could be a possible to block material issuing since sales order invoiced, or
in the another words, after the sales order completed?
Or could be a possible to set sales order as closed, and then material issuing related with this sales order are
forbidden?
Thanks in advanced,
Zhou ZhenDear Friend
A sales order is created say order no 10000 and for material X say 10 units this order is delivered and PGIed and invoiced and the payment too has come
That means the order 10000 is closed
Case 1
Now an user goes to VA02 t code and put this order no 10000 and changes the material X qty from 10 to 12 and opens up the whole order once again
This can be controlled by using t code OVAH choosing message class the V4 message no 083 and change from warning to error
Case2
But to avoid the user to add material Y to the existing order say 10000 then i think we have to go for user exit
Because the system doesnot even throw a warning message too in case 2 (according to my knowledge) and allows another line item to be added in the same order
But you can test it if it throws any warning message we can try to convert that error
But in case 2 it is not happening(even warning is not there)
Regards
Raja -
Report needed to view different prices applied in a sales order / invoice
Hi Friends
In the sales order/ Invoices there are 2 different prices , List price and another special price . These 2 condition types are generally determined in pricing .
Requirement is to have a report which displays these 2 prices per customer per a specified time period .
Customer wants to see how much discount in the form of special price he received .
Is there any standard report for this , or can this be created using ABAP queries or Net price list ?
Regards
Ragav...Hi All ,
Thank you all for your quick respose . Let me give your more info for a better understanding of my requirement . Basically here two prices are to be compared . List price which is based on sales org / distribution channel and material . The other is special price matained for sales org , customer and material .
In my system I have 2 different pricing reports ( T- code SAP1 ) , one is based on sales org , material - This I can use to find list price . I also have another customer based report and using this I can get the special price
But user wants to see both these prices side by side in a single report . Is there a way these two reports can be combined ?
Regards
Raghav -
Partner profile and partner number in output of order/invoice.
Hello Experts,
I want to know how system pick partner profile from output type triggered in sales order/invoice??
I could see partner profile is different from partner number exist in output triggered in sales order/invoice.
I want to know the triggering point of idoc from SO/invoice.
ThanksThe phrase "ouptut goes to partner" indicates that the partner will be recipient of the output type. E.g., ship-to partner will be the recipient of the delivery and the delivery note.
The use of an output partner in the output condition record is used to control the output device used in the output determination - a completely separate issue.
Unless you are (e.g.) using different printers for outputs which will be sent to different partners, you would likely be better off using a more generic access for your output condition records.
HTH
James
Maybe you are looking for
-
I want to fill the rows of the report from the loop
I want to fill the rows of the report from the loop For example, in forms cursor bdl is select code,decode(:global.user_lang,1,name,2,latin_name) name from GL_ANALYSISHDR begin go_block('bdls'); clear_block; first_record; for rec
-
Contact is hidden, but there - not sure what to do?
Hi folks, Today I received an email from a new contact. I did what I normally do and ctrl-clicked on their email address in Mail and opted to add new contact to address book. But when I look up their name in the Address Book they are not there. Yet w
-
hi , i have an exception i don't know why . java.io.UTFDataFormatException: invalid byte 2 of 3-byte UTF-8 sequence (0x76) what can i do ?
-
Problem Adding Vaults in Aperture
Hi - I recently upgraded to Snow Leopard (from Tiger) and to Aperture 2.1.4 (from Aperture 1x). Although my existing vault appears to be working I would like to create a new vault on an new external drive. When I click on file/vault/add vault nothing
-
Send Program Change bug in Logic 7.2.2
I recently got a Mac Pro 3.0, and installed Logic 7.2.2. In general things are going okay, but I recently found a bug and I wonder if anyone else has run into it. I have a fairly extensive studio setup (6 Gigasamplers, some hardware samplers, quite a