Minimum Values in Billing Doc - Consolidated Invoice - How to exclude items
I have a requirement to apply a minimum charge to an invoice but the minimum amount is not to be based on the total value of the invoice.
The invoice is used to bill a rental contract via a billing plan, via deliveries based on actual usage and other manually entered transactions. All these contribute to the minimum value.
The invoice is also used to bill other debit notes during the period but their value MUST not be included when the minimum value is to be determined.
The minimum pricing condition is working as standard SAP, BUT I need to exclude the value of some of the line item. I can distinguish which item are to be excluded by the preceding document type.
Anyone has any idea of how to do this?
Regards
question marked as answered because it is no longer required.
Similar Messages
-
How to get the value of bill doc after creating it using tc VF01.
hi,
i want to get the bill doc no after creating it using BDC tc VF01.
with that no i have to update the ztable.hi,
i tried with the above mentioned method to get the created delivery no.but i am unable to get the created billing doc no using bdc tc VF01.any idea about this...
REFRESH tt_bdcdata.
PERFORM bdc_dynpro USING text-005 text-006.
PERFORM bdc_field USING text-008
text-017.
PERFORM bdc_field USING text-009
text-011.
PERFORM bdc_field USING text-017
wa_worklist-del_no . "wa_created-document_numb.
PERFORM bdc_dynpro USING text-006 text-007.
PERFORM bdc_field USING text-008
text-018.
PERFORM bdc_field USING text-009
text-019.
CALL TRANSACTION c_t_bill USING tt_bdcdata
MODE c_m
UPDATE c_u
MESSAGES INTO tt_bdcmsgcoll .
SORT tt_bdcmsgcoll BY msgtyp.
READ TABLE tt_bdcmsgcoll INTO wa_bdcmsgcoll WITH KEY msgtyp = c_e.
IF sy-subrc EQ 0.
LOOP AT tt_bdcmsgcoll INTO wa_bdcmsgcoll WHERE msgtyp = c_e.
CALL FUNCTION 'FORMAT_MESSAGE'
EXPORTING
id = wa_bdcmsgcoll-msgid
lang = text-010
no = wa_bdcmsgcoll-msgnr
v1 = wa_bdcmsgcoll-msgv1
v2 = wa_bdcmsgcoll-msgv2
v3 = wa_bdcmsgcoll-msgv3
v4 = wa_bdcmsgcoll-msgv4
IMPORTING
msg = v_msg
EXCEPTIONS
not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
ENDIF.
WRITE :/ v_msg.
ENDLOOP.
ELSE.
READ TABLE tt_bdcmsgcoll INTO wa_bdcmsgcoll WITH KEY msgtyp = c_s.
IF sy-subrc EQ 0.
CALL FUNCTION 'FORMAT_MESSAGE'
EXPORTING
id = wa_bdcmsgcoll-msgid
lang = sy-langu
no = wa_bdcmsgcoll-msgnr
v1 = wa_bdcmsgcoll-msgv1
v2 = wa_bdcmsgcoll-msgv2
v3 = wa_bdcmsgcoll-msgv3
v4 = wa_bdcmsgcoll-msgv4
IMPORTING
msg = v_msg
EXCEPTIONS
not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
MOVE wa_bdcmsgcoll-msgv1 TO v_billno.
wa_epit-bill_no = v_billno .
MODIFY TABLE tt_epit FROM wa_epit TRANSPORTING bill_no.
UPDATE zsd_dt_epit SET bill_no = v_billno where del_no = wa_created-document_numb .
IF sy-subrc EQ 0.
ENDIF.
MOVE: v_billno TO wa_worklist-bill_no .
READ TABLE tt_epit INTO wa_epit WITH KEY epi_id = wa_worklist-epi_id epi_sr = wa_worklist-epi_sr.
IF sy-subrc EQ 0.
MODIFY tt_epit FROM wa_worklist TRANSPORTING bill_no WHERE epi_id = wa_worklist-epi_id AND epi_sr = wa_worklist-epi_sr.
ELSE.
APPEND wa_worklist TO tt_epit.
ENDIF.
ENDIF.
ENDIF.
please suggest me..its urgent -
Some doubts in copy control from billing doc to invoice list
Dear all,
The value of allocation number in FI doc can be customized as: A (PO number), B (Sales order num.), etc.
But how can I make it to be assigned an alternative value (for example, we have do an add-on "invoice" then we hope our invoice no. be assigned here)? Is there an exit to do so? or how this happen (especially when SO's billed, then the FI doc has been generated already.) or how a creation of invoice list will changed the value of allocation number in former FI doc created by billing before?
Thanks to all,
JamesHi, thanks for you reply.
The business scenario as following:
The users create SO. Then post it (VF01) (billing doc and accounting doc. SO and billing is one-one relationship). But at this time, users doesn't generated the customized invoice to customer (also the customer may like to be invoiced with different SO). In order to do this, the user should do invoice list (VF21) to include former billing doc. At this moment, we hope we can update the allocation value in FI doc generated by billing before.
SO->Billing (FI doc generated) ->invoice list (Hope can update some fields in the FI doc). -
Net value in billing doc not matching as in sales order
Hi,
I have a scenario wherein the net value in billing document does not match as in the sales order for 2 item categories maintained in the sales order. The net value in sales order has one line item category as 10 and the other as 20 but the same is not picked in billing document.
Any pointers?1. Check the copy control setting at item level for Pricing type.
2. Check the pricing procedure in sales order type & Billing type. Is it same or different.
3. Possibily the condition valuemay have been changed manually in Sales order or Billing Document type.
4. Check Document Pricing procedure in sales order type & Billing type. is it same or Different. If it is blank in Billing type, then it will consider the one maintained in sales order type.
The above are the possibilities,
Regards,
Rajesh Banka
Hope it help to resolve your issue. -
How to get or set default fiscal year value in billing doc
Hi All, my question is simple, how to get or set default fiscal year value (VBRK_GJAHR) in billing document.. is it possible.
Thanks.
Regards,
MichaelHi Michel
If you feel that the fiscal year value should come in the billing document then you have to use a user exit USEREXIT_NUMBER_RANGE .
As this is a related to ABAP , you should give the inputs and ABAP'ers will give the number range as per our requirement .
Regards
Srinath -
Changing condition type values in Billing Doc Line Items
Hi All,
I want to change the value of condition types JLST and JCST to zero in the line items of proforma invoices. How can I do this?
Any function module or BAPI? Should I go for BDC?? I tried to find user exits. What can be the optimal way to do this?
Please help.
Thanks in Advance
- Neha.Hi Neha,
You pass 0 (zero) to the field COND_VALUE in CONDITIONSIN table alongwith other relevant data.
And pass 'X' to the field COND_VALUE in CONDITIONSINX.
hope it helps.
saroj -
Printing of header text msgof billing doc in Invoice.
Hello Gurus,
Goodevening,
I have requirement from client.
This is the requirement ,
He will give the text in billing docment header in billing document but when takes the invoice the header text to be printed in invoice.
Is it possible ? looking for your inputs
Thanks & Regards
Venkat.
Edited by: K.Venkata Chalapathi on Jul 15, 2010 5:08 PMHiii
Billing Header text can be print in your billing document, If it is developed smartform then you can take the help the ABAPer to print the text. For the same you have to create the text ID whichever you want to print in smart form then ABAPer will mapped the ID in his smartfrom on required place.
Regards
Shambhu Sarkar -
Credit Memo more value than Bill Doc?
Can i raise a credit memo which has more value than the billing document.
1. Is this possible
2. If possible, where and what are the config settings
Thanks
Regards,
MaheHi,
Your Credit Memo Request has to be Equal or Less than the original Billing document, First place why you want to have such a facility.
You requirement is possible in SAP.
System will give you a WARNING message when you try to do so. Message number is V4 - 229 in transaction OVAH.
If you set it to E, then you cannot refer more than what is available in Billing.
So as per your requirement, keep it as W or BLANK.
Best regards,
Anupa -
Rebate: Differ "Scale Base Value" between "Statistics" and "Billing Doc"
Dear SD Expert,
After I go with Transaction Code :"VOB3" (run report RV15B002), I found that "Scale Base Value" have different value between "Statistics" and "Billing Doc". And the correct value is "Billing Doc". However, the value which shows in my rebate condition now is "Statistic". Thus, my question is
How can I configure my rebate condition based on "Billing Doc" Value instead of "Statistic"? (I don't want to "Correct backlogs" anytime in changing scales based value.) Anyone please feel free in suggestion.
Thanks,
PrachHI,
This may be useful to you.
http://help.sap.com/saphelp_47x200/helpdata/en/dd/5612d8545a11d1a7020000e829fd11/content.htm
Vrajesh -
Invoice list, individual billing doc and cash sale
hi gurus,
i have a couple of questions regarding the ff topics. need your help..
1. invoice list - i created billing docs with invoice list assigned to each bill doc type. when i tried creating an invoice list, it doesnt capture any docs i created. why?
2. individual billing doc - i changed the routine in the copy control for LF -- F2 to 003 single invoice. when i create an order, i can still create multiple billing docs. why?
3. cash sale - when i create a cash sale transaction and during billing, it is automatically cleared. how is it configured?
thanks!
paul2. individual billing doc - i changed the routine in the copy control for LF -- F2 to 003 single invoice. when i create an order, i can still create multiple billing docs. why?
This is because you must have assigned billing plan type to your order type and it is considering the billing date rule and allowing billing either monthly, or start of the month, or last date of the month. Just check whether you have done that.
I will try solving the others too.
Reward if helpful
Regards
Ravi
in SAP std. process for Cash Sale the customer will not be debited or customer account receivables are not created becuase the customer pays immediately. in cash sale invoice the amounts are posted directly to the Account Key EVV-Cash clearing.
Edited by: Ravi D Mansharamani on Feb 26, 2008 3:34 PM -
Billing doc splitting to different cocodes
hi gurus,
my client needs billing doc splitting to different cocodes with different revenue G/L accounts with common customer. He needs from billing doc flow ?how can we solve this? any inputs on invoice splitting highly appreciated.
thanks in advance.
regds,
ramHi,
I am facing a similar issue. Please let me know a s how you proceeded in clearing the "SPLIT DUE TO PARTNER DATA".
Thanks in Advance.
Regards,
Rajesh -
Item Numbering on Billing docs, goes out of line
Hi all,
A small question for you all...
This is my situation -
We have one sales order with 11 lines on it, some are from stock, some are drop ship and some are on PO's that come in to stock prior to shipping. There is also items that are on billing plans (service items) Currently i have item 10 to 110.
From this we have created two deliveries.
So for the creation of the billing doc i will have 1 sales order and two deliveries (all to go on one bill) Now this all works ok and the bill is created and this is all good, other than all the item number are all over the place.
On VF01 i sent in this order
Sales Order
Delivery 1
Delivery 2
But my number range on my Billing docs has no relevance to my items on the sales order, i understand that the billing plans will add a 1 to the number eg item, so i have the following items on the bill
20, 30, 50, 90, 91, 92, 93, 94, 95, 96, 97, 99, 100 & 110
This is the correct numbe rof items based on the billing plans also.
so the question is how do i ensure that item 10 on order show item 10 on bills and so, also if item 20 has a plan then how can i see 20 from sales order = 20, 21, 22, etc etc.
I have tried my bes tot explain this and please feel free to ask any questions....
all help and advice is welcome
Regards
SteveHello Steve,
I would like to explain how the system determines the item number
The item number is set in the program LV60AA30
loop at avbap where fkrel ne con_fkrel_fplan.
if not xkomfk-posnr is initial.
check : avbap-posnr = xkomfk-posnr.
endif.
Therefore the system starts numbering from the first order related item
So In your case because of the Flag copy item number , the items 10, 40,
70 & 80 are created.
Then system reads item number 20 of the order. Since Item number 20 is
less than the already assigned item number(in this case 80), the
system adds the 'number increment(assume this is 1)' field from VOFA to
determine the next position number and overwrites the value taken from
VBAP.
This happens here:
Main Program SAPLV60A
Source code of LV60AB06
form XVBRK_VORHANDEN
IF SY-SUBRC = 0.
IF *TVCPF-POSVO = 'X' AND
KUMUL = SPACE AND
XPOSNR GT XVBRK-HIPOS.
XVBRK-HIPOS = XPOSNR.
ELSE.
ADD TVFK-INCPO TO XVBRK-HIPOS.
XPOSNR = XVBRK-HIPOS. >>>>>>>>>>>>>>>>>>>>>
This is the standard system behaviour.
Regards,
Raghavendra YN -
Tax amount line item with Business area in Billing Doc generating to A/cing
Hi,
While generating the Billing Doc, for the Tax amount line item , the Business area shd be populated. How this can be done? while for the othter line items it is displaying but not for the tax amount line item.In ECC 6.0 with document splitting and new GL business area would be available in the general ledger view for tax postings. For earlier versions than ECC 6.0 use balance sheet adjustment program SAPF180 to populate business area for tax items.
Thanks and regards
Kedar -
What is the difference between billing document and invoice??
Hello all,
I am an ABAPer but I have less business knowledge.. What types of billing docs are there? Is table VBRK used for all of them? What makes a billing doc. an invoice? What are the tables and tcodes for invoice as compared to that for billing doc?
Thanks,
Hope you answer all my questions here... I will award points.
Best regards,
Charles.Billing document is a general term that includes - sales invoice, debit memo, credit memo and cancellation documents.
In layman's term, invoice usually refers to the sales invoice, or what you send to your customer as your company's bill or charges.
So, all billing documents are not invoices..But all invoices are billing documents
Usually, Invoice is document indicating to delivery goods and Billing is a receipt of payment
Tables are VBRK & VBRP. For flow, go to transaction VF03, enter document number and hit 'Display Document Flow' button on toolbar
VBRK and VBRP holds billing/invoice details..
Billing Document:
Generic term for invoices, credit memos, debit memos, pro forma invoices and cancellation documents.
The tables are VBRK and VBRP.
2) -- once u do PGI the delivery document will be created. There is no way to stop it.. The thing u can to do go to the list of created deliveries in VL09. Select the delivery doc which u created. There u have the option of reversing the goods or canceling it.
Billing is generic term and u can say invoice is a type of billing document.
After PGI only way left is to cancel it by Using TCODE MBST as this Tcode is used to cancel any material document.
Invoice (F2) is a type of billing document. There are many billing documents like
F1 - Order related Invoice
F2 - Delivery related Invoice
F5 - Proforma Invoice for sales order
F8 - Proforma invoice for deliveries
G2 - Credit memo
L2 - Debit memo -
How Billing doc.created from purchase invoice in Third Party Sale
Hi All
Our client requirement has been mapped as sap third party sales process .
But if the vendor is delivering less qty . than the qty. for which Sales ordered has been created, How to create the Sales billing Doc. according to the purchase invoice so that Sales Billing Doc. should be created for the delivered qty. only .
Please suggest the configuration & how the data is flowing from the Purchase Invoice to the Sales Invoice.
Thanks in advance
AshokHi
you can achieve your requirement by following
T-Code VTFA (copy control Order to Billing)
use you Third party order type and billing type
Go to Item category (if Standard use TAS)
there is a option "BILLING QUANTITY"
user there "E" Goods receipt quantity less invoiced quantity"
Hope it will solve your problem
Cheers
Shambhu Sarkar
Maybe you are looking for
-
I've the following query : SELECT cdv.location_id, cdv.address1, cdv.address2, SUM(aps.amount_due_remaining) TOTAL_BALANCE, SUM(DECODE(SIGN(TO_DATE(due_date,'DD-MON-RRRR')-TO_DATE(SYSDATE,'DD-MON-RRRR')),1,aps.amount
-
OS X won't install to hard drive after downloading
I may be having hard drive problems and may need a new drive but I wanted to try everything before that. I could not boot up this morning. Just the grey scene and spinning wheel. I called tech support and was instructed to go through a disk repair a
-
HELP for a clueless Imovie user
I am a beginner.. have created a few projects.. and have uploaded them successfully to mobile me. BUT.. I want to be able to upload the movies to MediaFire, which is a file hosting site. HOW do I do this? Do I have to export as a quick time move onto
-
My a/c name comes up on a shared photo stream, why?
Hi I set up a photostream in my business name to show some clients my work and I always use a pseudonym to keep my ID private as I have a nasty ex that was tracking me, when I posted the photostream to my clients it was the new beta stream and had my
-
Iphone create playlist add all songs
Since upgrading to iOS7.0.4 on my iPhone 4 I have to say I have been very frustrated and unhappy. Not only does my album art not match my songs after various syncs and deletes and resyncs, voice control keeps coming on to interrupt my music draining