on 09-08-2011 10:23 AM
Hi,
I have a query as I have multiple delivery documents and I am going to create single billing document against delivery documents.
Here I want to check whether all delivery document have same Sold to Party (LIKP_ KUNAG) and Ship to Party (LIKP_ KUNNR) before Billing document is created.
Pls let me know if there is any standard user exist for the same.
Regards
Rajat
Hello,
USEREXIT_FILL_VBRK_VBRP (Module pool SAPLV60A, program RV60AFZC)
This User Exit is called when Billing Document is created.
In this exit you can add your ABAP code which will check Sold-to-Party & Ship-To-Party in all the Deliveries & only then proceed to create Invoice.
Hope this helps,
Thanks,
Jignesh Mehta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Refer the requirements.
The ABAP Code will check whether Sold-to-Party & Ship-to-Party are same in all the Deliveries. If yes only then it will allow to create Invoice. If they are not same, it can give a mesage & exit the VF01 Transaction.
Hope this helps,
Thanks,
Jignesh Mehta
PS: Typewriter, what is your real name?
Hello,
Please take help of your ABAPer.
He can easily create Temporary tables & feilds to storre date from VF01 input screen & process the data (that is comparision of Sold to & Ship to Parties). Data can be easily fetched from LIKP, LIPS, VBAK & VBAP & necessary Partner Functions can be compared.
I will involve writing a ABAP code of many lines, which I or you cannot write. It is best done by a ABAPer.
Hope this helps,
Thanks,
Jignesh Mehta
Hi Rajat,
to clarify before creating an invoice you want system to check the deliveries and select those deliveries that have the same SP and SH and then create a single billing document for them. Is my understanding correct?
as I suggested, filtering on SP is standard functionality in VF04.
maybe i am not understanding some key point, pertaining to your business requirement.
please clarify, many thanks!
As correctly pointed out before, it's not feasible to combine the deliveries with different Sold-to on one invoice. So no need to worry about checking that.
Standard functionality is to combine the multiple orders/deliveries into one billing document, unless header data is different or unless specified otherwise. Since it seems that the requirement is to have separate invoices by Ship-to then this may be achieved by using VOFM routine in Data Transfer. There is the routine #1 with an example of how to split the invoice. There are also many SDN posts already regarding the document split or combination.
I really don't see a point or doing this the other way around and placing some error message in a user exit. This would also affect negatively the batch invoicing capability in VF04.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
(Start by taking /) Take a look at SAP Note 177664 - Billing split due to VBPA-ADRNR or VBPA-ADRDA
Regards,
Jan Pel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What about using VF04 and giving for Sold To party, the billing duelist shall contain all the deliveries ready for billing from that SoldTo only.
Furthermore, if you want to create single billing document, it is NOT possible with deliveries from different SoldTo parties, as SP is a header partner function in the billing doc.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.