Total line items in billing document
Dear Fnds,
I want to Find total line items in Billing document VBRk-posnr
Thanks in advance
Regards
raj.
Hi,
You can get the line items details in internal table then write the following command:
DESCRIBE TABLE itab LINES lv_lines.
In Lv_lines you will get the count for that Sales Order Number (VBELN).
Hope this may be useful..
Regards,
Prashant
Similar Messages
-
Is it possible to have more than one Tax code per line item in Billing docu
Is it possible to have more than one Tax code per line item in Billing document ?
Hi,
I have a different perspective there.
If an item is applicable for two different taxes which are represented by two different tax condition types and these tax conditions are configured in the tax procedure, FTXP and so on....then these two condition records can have two different tax codes.
We actually have this scenario in EU now, where EU talks about service tax in 2010 apart from the normal VAT. So now we have MWST and ZWST(Say)
Now there are some materials which come with a service associated with it. So a service charge is also levied when the material is sold. So the material price will become applicable for VAT and the service charge becomes applicable for service tax. In this case, the tax classification of the customer will have two entries in sales orders updated in the fields VBAK-TAXK1 and VBAK-TAXK2 based on the sequence number of these condition types.
Now based on different tax classification of the customer, we have 2 different tax codes representing different %of tax.
Hope it helps -
How to read product characteristics of a line item in Billing document?
Hi Friends,
I need to read the product characteristics of a line item in Billing document. Can you please help me with which tables or function modules I should use?
Thanks in advance.
Regards
Jaker.Hi,
Use the following BAPI's:
BAPI_OBJCL_GETDETAIL
or use the fun module:
CLAF_CLASSIFICATION_OF_OBJECTS.
Regards
ANJI -
How to increase line item in billing document
Hi
I know that maximum line item in billing is 999, but my requirement is to increase the line item number may be up to 9999. Is there any way
Kindly replay.
Thanks in advance
VinodHello,
I don't think there is a standard settings for this, you need to think of an enhancement, check with your ABAP expert.
Prase -
Report for conditions per line item in Billing document
Hi all,
Is there any report that can tell me all the price conditions that are allocated to a billing document line item? I am talking about the actual conditions relevant for a line item, not only conditions that have a condition record setup.
So I would like to key in billing document number, the line item and get a report of all conditions that are allocated to that line item in the specific billing document.
If there is no such standard report, does anyone know what tables to link?
Thanks in advance,
LarsHi,
Tables VBRK and VBRP. And with field VBRK-KNUMV go to table KONV to obtain the data of all conditions.
Regards,
Eduardo -
Extra accouning line item in billing document with zero value
Hi,
I am using TAXINN procedure, the following accounting document has been generated during billing.This accounting document contains an extra line item with zero value.
However, There is no necessary for this line item with zero value. Can you tell me how to remove this line item?
000 50 VAT Payable A0 0.00
001 01 Sale within state A0 1,212.00
002 50 Sales f/goods-Dome. A0 1,000.00-
003 50 ED Collected Clr. A0 160.00-
004 50 ED Collected Clr. A0 3.00-
005 50 ED Collected Clr. A0 2.00-
006 50 VAT Payable A0 47.00-
Thanks,
KanhuHi
Check if there is any summarization active for billing documents generated through SD. The path for the same is:
IMG>Financial Acxounting>General Ledger Accounting>Integration>Sales & distribution
Check for table VBRK
Regards
Sanil K Bhandari -
Exchange rates at line items in billing document - VF04
Hello,
We are trying to create a collective billing document, via transaction VF04, for deliveries created from two sales orders with different exchange rates (VKBD-KURRF).
When we try to execute this operation, two billing documents are created and in split analysis. This behavior is due to different exchange rates (from sales orders).
Since the sold-to-party is the same, he wants a unique billing document for all deliveries.
So we pretend to post one billing document with different exchange rates at item level, instead of at header level.
Is this possible?
Regards,
José MeloDear José Melo
You can combine multiple deliveries in one billing document provided the following are same in all preceding documents
- Payer
- Actual GI Date from Delivery
- Payment Terms
- Inco Terms
- Account Assignment Group of customer
- Exchange Rate
In your case, since invoice is splitting due to exchange rate, you can achieve to have one invoice. In VF04, you can see a tab Default Data where there is a field Service Rendered Date. Maintain a date and generate so that you will get one invoice.
thanks
G. Lakshmipathi -
Can we change pricing date for line item in billing
Hi Expert,
Can we change pricing date , while raising inoice for particular line iteamHi,
We can not change the pricing date for perticular line item at billing document level, the only option is we can enter the required date at the time of invoice creation in VF01 screen.
If your requirement is copying the same pricing date that is entered at sales order, then do the following.
Go to T Code:VTFL and choose your DElivery Type and Billing Type, then choose your item category and then change the pricing type as 'D' .
Regards,
Pasapula. -
BAPI_BILLINGDOC_CREATEMULTIPLE u0096 Duplication of line item in billing docume
Hi All,
I am using BAPI <b>BAPI_BILLINGDOC_CREATEMULTIPLE</b> to create billing document. Creation of billing document is fine, but issue is I am passing individual line item along with <b>quantity</b> to be billed. But whats happening is if I got 3 item line in sales order with quantity 1-3-5, billing document getting created 3 quantity 1, 3 quantity 3 and 3 quantity 5. So I end up with 9 line item on billing document which is incorrect.
Please see the code below which I am using, can anyone tell me what I am doing wrong here. I basically need to create 3 billing line item with respective quantity I pass. Any hint is much appreciated. Thanks in advance.
Regards,
Tim
loop at GT_INIT_ITAB2 into GS_INIT_ITAB2.
select single * into gs_vbak
from vbak
where vbeln = GS_INIT_ITAB2-VBELN.
select single * into gs_vbap
from vbap
where vbeln = GS_INIT_ITAB2-VBELN AND
posnr = GS_INIT_ITAB2-posnr.
select single * into gs_mara
from mara
where matnr = gs_vbap-matnr.
refresh GT_BILLINGDATAIN.
GT_BILLINGDATAIN-SALESORG = gs_vbak-vkorg.
GT_BILLINGDATAIN-DISTR_CHAN = gs_vbak-vtweg.
GT_BILLINGDATAIN-DIVISION = gs_vbak-spart.
GT_BILLINGDATAIN-DOC_TYPE = GS_INIT_ITAB2-auart.
GT_BILLINGDATAIN-ORDBILLTYP = p_fkart.
GT_BILLINGDATAIN-SOLD_TO = GS_INIT_ITAB2-kunnr.
GT_BILLINGDATAIN-ITEM_CATEG = GS_INIT_ITAB2-pstyv.
GT_BILLINGDATAIN-REQ_QTY = GS_INIT_ITAB2-kwmeng.
GT_BILLINGDATAIN-SALES_UNIT = gs_vbap-vrkme.
GT_BILLINGDATAIN-CURRENCY = gs_vbak-waerk.
GT_BILLINGDATAIN-SHORT_TEXT = 'Test'.
GT_BILLINGDATAIN-BILL_DATE = gl_date.
write GS_INIT_ITAB2-afdat to GT_BILLINGDATAIN-BILL_DATE ddmmyy.
GT_BILLINGDATAIN-BILL_DATE = GS_INIT_ITAB2-afdat.
GT_BILLINGDATAIN-PRICE_DATE = SY-DATUM.
GT_BILLINGDATAIN-REF_DOC = GS_INIT_ITAB2-VBELN.
GT_BILLINGDATAIN-DOC_NUMBER = GS_INIT_ITAB2-VBELN.
GT_BILLINGDATAIN-ITM_NUMBER = GS_INIT_ITAB2-POSNR.
GT_BILLINGDATAIN-ORIGINDOC = GS_INIT_ITAB2-VBELN.
GT_BILLINGDATAIN-ITEM = GS_INIT_ITAB2-POSNR.
GT_BILLINGDATAIN-NO_MATMAST = co_x.
GT_BILLINGDATAIN-COUNTRY = 'AUS'.
GT_BILLINGDATAIN-MATERIAL = gl_matnr.
GT_BILLINGDATAIN-TAXCL_1MAT = '1'.
GT_BILLINGDATAIN-REF_DOC_CA = 'C'.
append GT_BILLINGDATAIN.
endloop.
Prepare for BAPI call
CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'
EXPORTING
CREATORDATAIN = GS_CREATORDATAIN
TESTRUN = co_x
POSTING = co_x
TABLES
BILLINGDATAIN = GT_BILLINGDATAIN
CONDITIONDATAIN = GT_CONDITIONDATAIN
CCARDDATAIN =
TEXTDATAIN =
ERRORS =
RETURN = GT_RETURN
SUCCESS = GT_SUCCESS
clear gl_return.
loop at GT_RETURN.
if GT_RETURN-type EQ 'E' OR
GT_RETURN-type EQ 'A'.
move: GT_RETURN to gl_return.
exit.
endif.
endloop.
if gl_return is initial.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = '1'
IMPORTING
RETURN = gt_return_commit.
endif.Hi,
Check this code...For creating billing document from sales order..
TABLES: vbak.
PARAMETERS: p_vbeln LIKE vbak-vbeln OBLIGATORY,
p_fkart LIKE vbrk-fkart.
DATA:
s_vbsk LIKE vbsk.
DATA:
xkomfk LIKE komfk OCCURS 0 WITH HEADER LINE,
xkomv LIKE komv OCCURS 0 WITH HEADER LINE,
xthead LIKE theadvb OCCURS 0 WITH HEADER LINE,
xvbfs LIKE vbfs OCCURS 0 WITH HEADER LINE,
xvbpa LIKE vbpavb OCCURS 0 WITH HEADER LINE,
xvbrk LIKE vbrkvb OCCURS 0 WITH HEADER LINE,
xvbrp LIKE vbrpvb OCCURS 0 WITH HEADER LINE,
xvbss LIKE vbss OCCURS 0 WITH HEADER LINE.
SELECT SINGLE * FROM vbak
WHERE vbeln = p_vbeln.
IF sy-subrc <> 0.
MESSAGE s208(00) WITH 'Invalid vbeln'.
LEAVE LIST-PROCESSING.
ENDIF.
CALL FUNCTION 'RV_INVOICE_REFRESH'
EXPORTING
with_posting = 'B'
TABLES
xkomfk = xkomfk
xkomv = xkomv
xthead = xthead
xvbfs = xvbfs
xvbpa = xvbpa
xvbrk = xvbrk
xvbrp = xvbrp
xvbss = xvbss.
DATA: BEGIN OF t_vbap OCCURS 0,
vbeln TYPE vbeln,
posnr TYPE posnr,
END OF t_vbap.
SELECT vbeln posnr INTO TABLE t_vbap
FROM vbap WHERE vbeln = p_vbeln.
LOOP AT t_vbap.
Fill the values.
xkomfk-mandt = sy-mandt.
xkomfk-vbeln = p_vbeln.
xkomfk-posnr = t_vbap-posnr.
xkomfk-vbtyp = vbak-vbtyp.
xkomfk-seldat = sy-datum.
xkomfk-fkart = p_fkart.
xkomfk-fkimg = '1.000'.
xkomfk-vrkme = 'EA'.
APPEND xkomfk.
ENDLOOP.
CALL FUNCTION 'RV_INVOICE_CREATE'
EXPORTING
vbsk_i = s_vbsk
with_posting = 'B'
IMPORTING
vbsk_e = s_vbsk
TABLES
xkomfk = xkomfk
xkomv = xkomv
xthead = xthead
xvbfs = xvbfs
xvbpa = xvbpa
xvbrk = xvbrk
xvbrp = xvbrp
xvbss = xvbss.
READ TABLE xvbfs WITH KEY msgty = 'S'.
WRITE:/ sy-subrc.
WRITE:/ xvbfs-msgv1,xvbfs-msgv2,xvbfs-msgv3.
Thanks,
Naren -
Multiple line item in billing but only one line item in accounting document
Hi Everyone,
I am having one scenario in which sales order has more than one line item. Only one billing document is create for all line items in Sales Order but billing document contains as many items as sales order has. In accounting document of billing i find only one customer line which has total amount of all line items in billing as debited. My requirement is Accounting document also should have as many line of customer-debit as in billing items i.e sales order. For example :
(1) Sales order has 2 line items.
(2) Billing document is only ONE and has 2 line items
(3) currently accounting document has only ONE line of Customet - Debit ( Total amount of both items)
My requirement is
Accounting document should have 2 line item of customer - Debit
Customer - Debit (amount of first line item)
Customer - Debit (amount of Second line item)
Sales - Credit
How can it be done ?
Regards,
ManishHi,
This is the SAP expected behaviour
As far as the values correspond to same account key and same GL account as per account determination, then ti will be posted as a single line item in FI document.
If you want the customer specific items to be posted in two GL accounts , then you have to do the account determination that way.
For example, you should have a condition table in FICO as follows.
Sales org/ Account key / Customer
For this condition table, the entries shoudl be as follows.
5110/ERS/Customer A GL ACCOUNT IS 5000100
5110/ERS/Customer B GL ACCOUNT IS 5000200
In this case, there will be 2 entries for the invoice instead of just one line entry. -
Hi All,
Can we do sale order related billing for individual line item wise and quantity wise?
If this is for delivery related billing then the setting will be in item category, billing relevance as K. But what will be the settings for order related billing?
KumarHi,
In two ways you can achieve your requirement.
1.Goto the T.Code VF01
Enter your sales order number.Donot press Enter.
Click on "Selection list".
Select your items.Click on Copy.
Save the invoice.In "VOV7" T.Code maintain the billing relevance as "C".
2.Goto the T.Code "VA02".
Double click on the item.Goto Billing document tab.
Maintain the billing block under "Billing" tab.
Save.
Goto the T.Code "VF01".Enter your order number.
Create the billing document.
Next Goto VA02 and remove the another block.
Create the invoice.
Regards,
Krishna. -
Manual account clear but can see line item after post document
Hi Guru!
I have post account clear with transaction code F-03 with open item zero balance such as
account 214001 balance +500
account 214001 balance -500
when I simulate entry the system not show line item for post document but can post it . I want to know why ?
thank you very much .Dear,
This is standard behaviour...if line item which you are clearing have zero balance then system will not show any line items since open itemss are cleared....
when you have tolerance difference or the residual posting then only system will show the line item....
Regards,
Chintan Joshi -
Line items in a document entry
Hi,
there is restriction on line items for per document entry - i.e. 999.
i would like to know if there is any update on the restriction in the enhancement packs.. or is it still 999.
thank you
- VedavateeCheck WIKI http://wiki.sdn.sap.com/wiki/display/ERPFI/Systemlimitationof999lineitemsperFIdocument
Which Says
Purpose
The purpose of this WIKI is to explain a system limitation which does not allow you to have more than 999 line items per FI document, and also provide you with workarounds you can use to post your document.
Overview
When you are posting an FI document which has more than 999 line items, the system will issue an error message. This is due to the fact that the line item number field (BUZEI) in the BSEG table consists of 3 characters only and therefore the system cannot read more than 999 line items in the FI document. There are some workarounds which can be done so that your document will be successfully posted in the system.
System Limitation
The FI document has more than 999 lines, the system issues error F5 807 ("Number of items in document is too large") or F5 727 ("Maximum number of items in FI reached"), and posting is not possible.
There are no immediate plans to expand the number of line items beyond the current limit (999 lines per document). This is because the line item number (BSEG-BUZEI) field length is defined as 3 numeric positions (leading to a maximum possible number of 999 line items). The SAP development group is aware of this functionality change request, but the change is significant since BSEG is a cluster table which is used in numerous R/3 programs.
Srinivas -
Maximun line items per CO document
Hello,
Which is the maximum number of line items per CO document?
Thanks,I am really not sure about MM.
But in FI and CO, maximum is 999.
There are also some enhancement available for this functionality to increase the number of documents.
If you browse through internet, you will find some source code (sample) for this.
Regards,
Ravi -
Line items in AB document during clearing?
Hello!
When I'm clearing below line items
PK G/L DocumentNo Itm Type Sp. GL Amount in doc. curr.
29 433110 1500006162 1 KT D 7.054,04
29 433110 1500006163 1 KT D 134.710,80
31 433110 1900012587 1 KR 7.054,04-
31 433110 1900012570 1 KR 134.710,80-
as a result I get document
27 433110 100043516 1 AB 141.764,84
39 433110 100043516 2 AB D 141.764,84-
Is it possible to get clearing document without line items, like here:
433010 1500021212 1 KZ 18.360,12 100050060
433010 1500021213 1 KZ 7.080,00 100050060
433010 1500021219 1 KZ 1.300,58 100050060
433010 1500021223 1 KZ 416,00 100050060
433010 1900018975 1 KR 18.360,12- 100050060
433010 1900018976 1 KR 416,00- 100050060
433010 1900018978 1 KR 1.300,58- 100050060
433010 1900018979 1 KR 7.080,00- 100050060
where clearing document 100050060 doesn't contain any line items.
In the first example, why system, during clearing, produce line items in AB document when alll happens on the same GL account?Hi,
Clearing :
1) Manual Clearing :
Manually you have to select the line items and clear invoice with the bank line item - in this case payment document is the clearing document
or
Manually select the two open line items (both dr & cr), clear the line item. - In this case there won't be any line item but you will have a seperate clearing document. Here either dr. line item / cr. line item are not the clearing document.
2) Automatic Clearing :
Using the F110 - in this case payment document is the clearing document
or
Using F.13 - selects one dr.line item & one cr. line item with as per the clearing criteria and clears the document using the clearing document, which doesn't have any line item
VVR
Maybe you are looking for
-
What are record groups for?
hi, Could anybody tell me what is the main purpose of creating record groups whith statements like: create_group_from_query, populate_group, ... Every time we want to access any records we can use blocks which are based on tables or views which are i
-
How do I install Rockbox on the SanDisk Sansa Clip Zip?
Hello: I am new to the SanDisk Forums! I have the SanDisk Sansa Clip Zip player and the version is V01.01.18A. How do I install Rockbox on it? Thank you,
-
"CMD_PATTERN= CGEN_PRBS" option doesn`t work properly in example design
Hi, I am using V6; MIG 3.6.1. When I use the option above, CGEN_PRBS, the memory controller is trying to wirte and read to "bank x" and Micron DDR3 memory model gave me the error, stopping simulation. parameter BEGIN_ADDRESS = 32'h05fff3
-
PS-Relationship between the system status in wbs elements and activities.
Relationship between the system status in wbs elements and activities. We have the following requeriment with the system status in PS. We have a project with complete technically status and we want to undo the complete technically status in one activ
-
Does Photoshop Creative Cloud have the same filters as 5.5?
Does Photoshop Creative Cloud have the same filters as 5.5? Tony