Billing table VBRK VBRP
I have raise a question about this, but I can't find it. My problem is that I found this a document number missing in both VBRK and VBRP. i.e. there are document 10001 and 10003,but I can't found the document 10002. Unfortunately, there is a FI document related to this document 10002. I would like to know if anyone met the similiar problem. Could you please help me? Thank you very much in advance!
Hi Christina,
Goto transaction FB03 and put your accounting document no, company code and fiscal year.Press enter.
You will get to see the various accounts related to this accounting document.
Click on the environment in the blue menu bar at the top of the screen ,select document environment and then original document,you will see your billing document for this.
You can also goto se16 and put VBFA as table and then put your sales document no. in preeceding document you will find your billing document no.
U can also check table BKPF in SE16.
Reward points if it helps.
Regards
Karan
Message was edited by:
Karan Bhatia
Similar Messages
-
How to create analytic view with tables VBRK VBRP KONV ?
Hi Gurus,
What is the best way to combine in a analytic view tables VBRK VBRP and KONV for better optimization or
how to make the relationship tables VBRK VBRP KONV with better performance in Hana Studio ?
This analytic view should be used in a calculation view to the final calculations.
Thanks !Hi Rogerio,
Greetings.
Basically , when you design your analytic views , while designing your data foundation , you can directly join the tables with the corresponding key attributes . Analytic views are capable of optimizing the join operation when we access the view.Logic of joining is purely depends on your business requirement
Sreehari. -
I want to join the table vbrk,vbrp,konv and fields are vbeln, knumv.
i want to join the table vbrk,vbrp,konv and fields are vbeln, knumv is possible .
if it isn't possible. what is the another method output is doc. no.(vbrp-vbeln) condition doc. no.(vbrk-knumv) , condition(konv-kschl), tax rate(konv-mwsk1), quantitty(vbrp-fkimg) .reply pls... as soon as possible..Hi..
This is the Join :
SELECT VBAKVBELN VBRKKNUMV
VBRP~FKIMG
KONV-KSCHL KONV~MWSK`
FROM VBRK
INNER JOIN VBRP
ON VBRKVBELN = VBRPVBELN
INNER JOIN KONV
ON KONVKNUMV = VBRKKNUMV
INTO TABLE <ITAB>
WHERE <CONDITION>.
REWARD IF HELPFUL. -
I want to join the table vbrk,vbrp,konv but konv is cluster table .
Hi
konv is the cluster table . so I want to join the table vbrk,vbrp,konv and fields are vbeln, knumv is possible .
if it isn't possible. what is the another method output is doc. no.(vbrp-vbeln) condition doc. no.(vbrk-knumv) , condition(konv-kschl), tax rate(konv-mwsk1), quantitty(vbrp-fkimg) .reply pls... as soon as possible..hi
good
1) Open
Select
Mard~matnr
Makt~maktx
From Makt
Inner Join Mard
on Maktmatnr = Mardmatnr
Where Makt~Spras = SY-LANGU
2) Native Oracle
SELECT Mard.matnr,
Makt.maktx
From Makt, Mard
Where Makt.mandt = Mard.mandt
And Makt.matnr = Mard.matnr
And Makt.mandt = :SY-MANDT
And Makt.spras = :SY-LANGU
3) KONV is Cluster - BAD LUCK!
Select VBRK~VBELN
VBRP~POSNR
KONV~KSCHL
KONV~KWERT
From ( VBRK Inner Join VBRP
On VBRKVBELN = VBRPVBELN )
Inner Join KONV
On VBRKKNUMV = KONVKNUMV
And VBRPPOSNR = KONVKPOSN
4) KONV is Cluster - BAD LUCK!
Select KONV~KNUMV
KONV~KPOSN
KONV~KSCHL
KONV~KWERT
From KONV
Where KONV~KNUMV in (
Select VBRK~KNUMV
From VBRK Inner Join VBRP
On VBRKVBELN = VBRPVBELN
Where VBRKKNUMV = KONVKNUMV
And VBRPPOSNR = KONVKPOSN
5) Open
Select VBRP~MATNR
Sum( VBRP~NETWR )
From VBRP
Group By VBRP~MATNR
6) Native Oracle
Select VBRP.MATNR ,
Sum( VBRP.NETWR )
From VBRP
Where mandt = :sy-mandt
Group By VBRP.MATNR
7) Native Oracle
Select VBRP.MATNR ,
Count( VBRP.NETWR ),
Sum( VBRP.NETWR )
From VBRP
Where mandt = :sy-mandt
Group By VBRP.MATNR
8) Open
Select VBRP~MATNR
makt~maktx
Sum( VBRP~NETWR )
From VBRP inner Join MAKT
On VBRPMATNR = MAKTMATNR
Where MAKT~SPRAS = SY-LANGU
Group By VBRPMATNR maktmaktx
9) Native Oracle
Select VBRP.MANDT,
VBRP.MATNR,
MAKT.MAKTX,
Sum( VBRP.NETWR )
From VBRP , MAKT
Where VBRP.MANDT = MAKT.MANDT
And VBRP.MATNR = MAKT.MATNR
And MAKT.SPRAS = :SY-LANGU
Group By VBRP.MANDT, VBRP.MATNR, MAKT.MAKTX
10) Open
SELECT EKET~EBELN
EKET~EINDT
EKET~WAMNG
EKET~WEMNG
From ( ekko INNER JOIN ekpo
ON ekkomandt = ekpomandt
AND ekkoebeln = ekpoebeln
INNER JOIN eket
ON ekpomandt = eketmandt
AND ekpoebeln = eketebeln
AND ekpoebelp = eketebelp
AND EKET~WAMNG > 0
AND EKETWAMNG <> EKETWEMNG
Where EKPO~MATNR = 'NB220'
And EKPO~WERKS In ('P001', 'P004', 'L004')
And EKKO~BSTYP = 'F'
And EKKO~BSART = 'UB'
And EKPO~ELIKZ <> 'X'
And EKKO~LOEKZ <> 'X'
11) Native Oracle
SELECT EKET.EBELN,
EKET.EINDT,
EKET.WAMNG,
EKET.WEMNG
FROM ( ekko INNER JOIN ekpo
ON ekko.mandt = ekpo.mandt
AND ekko.ebeln = ekpo.ebeln
INNER JOIN eket
ON ekpo.mandt = eket.mandt
AND ekpo.ebeln = eket.ebeln
AND ekpo.ebelp = eket.ebelp
AND EKET.WAMNG > 0
AND EKET.WAMNG <> EKET.WEMNG
Where EKPO.MATNR = 'NB220'
And EKPO.WERKS In ('P001', 'P004', 'L004')
And EKKO.BSTYP = 'F'
And EKKO.BSART = 'UB'
And EKPO.ELIKZ <> 'X'
And EKKO.LOEKZ <> 'X'
thanks
mrutyun^ -
Relation field between table VBRK/VBRP and BSEG
Can any body guide on the common fields between VBRK/ VBRP and BSEG, except field "assignment".
Hi,
If you know the accounting document number, Goto SE16. enter BSEG table and enter.
Enter the accounting document number in selection screen. E.g 90000498.
You will get multiple lines. E.g normal billing document(Not credit memo /debit memo)
Customer information will be available in posting key 01 line (Header). And Item information will be avilable in Posting key 50 line.
List of fields available in Header.
Billing document number
Customer
Payment terms
Amount.
Company code
Controlling area
Reconciliation account number
Assignment
Item level information in Posting key 50.
Material
Plant
Amount
Tax amount
Tax code
As per my knowledge for reporting purpose we don't use BSEG bcoz of performance issue.
BKPF - Accounting document Header
BSID
BSIS
Regards,
Chandra -
Open item indicator in Billing tables
Hi Experts,
I want to know whether any indicator is available in Billing tables VBRK / VBRP if payment is not
received of that bill or apart from BSEG any other table is there where payment receipt data are getting stored.
Regards,
SP Shukla.hello, friend.
i think you are right that collection/payment indicator is found in BSEG. since payment is done/processed in FI, it is more likely that indicator will be found in FI-related tables.
regards. -
Z report from table VBRK - Release to Accounting indicater
Hello,
Creating a Zreport from table VBRK, and only want to pick billing documnets which are released to Accounting. Is there an indicater in table VBRK, VBRP, or KONV, or somewhere else where i can filter these records.
ThanksHi
You can use the table VBUK field BUCHK, ie, if VBUK-BUCHK = 'A'.
The best manner is the view M_VMCFA. If you see in SE11 you can see as works for the field VBRK-RFBSK.
Regards
Eduardo
Edited by: E_Hinojosa on Sep 7, 2011 4:18 PM -
Function Module to Edit Billing Document Header (table VBRK)
Hi all,
Can someone tell me if there is a function module that can edit the billing document header please? I do not need to created the billing document, it already exists. I just need to edit specific fields.
Many thanks.The requirement is to update these 2 fields in the table VBRK:
BSTNK_VF (customer po number)
ZUONR (assignment number)
The client uses these 2 fields for non-standard purposes.
Actually I was already trying to use the FM RV_INVOICE_DOCUMENT_UPDATE, but I am unable to make it work, for some reason.
For that function, I only passed VBRK as table, nothing else. Specifically, I retrieved the header from VBRK, modify the 2 fields, then pass it to the VBRK table parameter of the function. -
Excise invoice table and billing table relation???
Can anyone please tell me how excise invoise and billing table are related??
Hi
check these table VBRP and VBRK
you wil get idea.
if its useful reward points
thanks
senthil -
How to Join VBRK, VBRP and BSEG
Dear Guys
I have Billing No from VBRP/VBRK and want to join these tables with BSEG to pick Accounting Doc No.
How to Join these tables.
ThanksHi,
What you can do is to use FM AC_DOCUMENT_RECORD. Please check my example below:
MOVE: 'VBRK' TO lv_awtyp,
wa_vbrk-vbeln TO lv_awref,
'2007' TO lv_aworg.
CALL FUNCTION 'AC_DOCUMENT_RECORD'
EXPORTING
i_awtyp = lv_awtyp
i_awref = lv_awref
i_aworg = lv_aworg
* I_AWSYS = ' '
* I_AWTYP_INCL = ' '
* I_AWTYP_EXCL = ' '
* I_BUKRS = ' '
* I_VALUTYP = '0'
x_dialog = ''
TABLES
t_documents = lt_documents
EXCEPTIONS
no_reference = 1
no_document = 2
OTHERS = 3
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Hope it helps...
P.S. Please award points if it helps... -
How to Increase Billing Tables perforamnce
Dear Friends,
I am writing a query simply joining tables VBRK an VBRP.
But its taking very long time. we have mor then 2,800,000 Records in our VBRP
table.
I need your help gurus how can we boost the performance of this quer.
my select is
select vbrk~fkart vbrk~kunag vbrk~kunrg vbrk~fkdat vbrk~vkorg vbrk~vtweg
vbrk~vbeln vbrk~ernam vbrk~fktyp vbrp~matnr vbrp~fkimg vbrp~netwr
vbrp~meins vbrp~spart vbrp~matkl vbrp~mvgr1 vbrp~mvgr2 vbrp~mvgr3
vbrp~mvgr4 vbrp~mvgr5 vbrp~aufnr vbrp~posnr vbrp~vgbel vbrp~kvgr1
vbrp~kvgr2 vbrp~kvgr3 vbrp~werks vbrp~vstel vbrp~wavwr
into (itab_bill-fkart, itab_bill-kunag, itab_bill-kunrg, itab_bill-fkdat,
itab_bill-vkorg, itab_bill-vtweg, itab_bill-vbeln, itab_bill-ernam,
itab_bill-fktyp, itab_bill-matnr, itab_bill-fkimg, itab_bill-netwr, itab_bill-meins,
itab_bill-spart, itab_bill-matkl, itab_bill-mvgr1, itab_bill-mvgr2, itab_bill-mvgr3,
itab_bill-mvgr4, itab_bill-mvgr5, itab_bill-aufnr, itab_bill-posnr, itab_bill-vgbel,
itab_bill-kvgr1, itab_bill-kvgr2, itab_bill-kvgr3, itab_bill-werks,
itab_bill-vstel, itab_bill-wavwr)
from vbrk
join vbrp
on vbrk~vbeln = vbrp~vbeln
where vbrk~fkdat in s_fkdat "Billing Date(7)
and vbrk~fkart in s_fkart "Billing Type(1)
and vbrk~kunag in s_kunag "Sold To Party
and vbrk~vkorg in s_vkorg "Sales Organisation
and vbrk~vtweg in s_vtweg "Distribution Channel
and vbrk~vbeln in s_vbeln "Billing Document
and vbrp~matnr in s_matnr "Material Number
and vbrp~spart in s_spart "Division
and vbrp~matkl in s_matkl "Material Group
and vbrp~kvgr1 in s_kvgr1 "Customer Group1
and vbrp~kvgr1 in s_kvgr2 "Customer Group2
and vbrp~kvgr1 in s_kvgr2 "Customer Group3
and vbrp~vstel in s_vstel. "Shipping Point/Receiving Point
Regards
Malik
Edited by: Malik Naeem on Feb 12, 2009 9:20 AMHi ,
In your case ...
select vbrkfkart vbrkkunag vbrkkunrg vbrkfkdat vbrkvkorg vbrkvtweg
vbrkvbeln vbrkernam vbrkfktyp vbrpmatnr vbrpfkimg vbrpnetwr
vbrpmeins vbrpspart vbrpmatkl vbrpmvgr1 vbrpmvgr2 vbrpmvgr3
vbrpmvgr4 vbrpmvgr5 vbrpaufnr vbrpposnr vbrpvgbel vbrpkvgr1
vbrpkvgr2 vbrpkvgr3 vbrpwerks vbrpvstel vbrp~wavwr
into table itab PACKAGE SIZE 100000
from vbrk
join vbrp
on vbrkvbeln = vbrpvbeln
where vbrk~fkdat in s_fkdat "Billing Date(7)
and vbrk~fkart in s_fkart "Billing Type(1)
and vbrk~kunag in s_kunag "Sold To Party
and vbrk~vkorg in s_vkorg "Sales Organisation
and vbrk~vtweg in s_vtweg "Distribution Channel
and vbrk~vbeln in s_vbeln "Billing Document.
delete itab where conditions for VBRP.
append lines of itab to itab1
Endselect..
Hope this works
Raj -
Need pointers to improve performance of a select query to table vbrk
Hey Folks,
I have a query , whose performance needs to be tuned , as such:
SELECT a~vbeln
a~fkart
a~waerk
a~fkdat
b~posnr
b~vgbel
b~vgpos
b~matnr
b~arktx
b~prctr
b~txjcd
INTO TABLE gi_billing_items
FROM vbrk AS a
INNER JOIN vbrp AS b
ON a~vbeln = b~vbeln
FOR ALL ENTRIES IN gi_sales_items
WHERE b~vgbel = gi_sales_items-vbeln
AND b~vgpos = gi_sales_items-posnr
AND b~matnr = gi_sales_items-matnr
AND b~werks = gi_sales_items-werks.
where
gi_sales_items is an internal table consisting of 278 entries,.
The result set collected in table gi_billing_items is 200 records
The total execution time for this query for the afore given data is 72,983 ms with the average time/record being ~ 9,471 ms which is too high.
When I try to verify the Explain Plan of the query in ST05, in the Access path I see that the performance of Query Block 1 is bad. Query Block 1 is of the QBLOCK_TYPE UNIONA. Its the very first step in the Query execution internally.
The indexes are defined on participating tables VBRK and VBRP as:
VBRK~0 MANDT,VBELN
VBRK~LOC MANDT,LCNUM
VBRP~0 MANDT,VBELN,POSNR
VBRP~Z01 FPLNR,MANDT
VBRP~Z02 MANDT,MATNR,WERKS
Its clear from the ST05, STAD and SE30 traces that there is a performance issue in this query. Does anyone have any pointers as to how to resolve this issue? Is there a protocol one needs to follow when using the "FOR ALL ENTRIES IN" clause? Or is there a need for any secondary indexes to be created?
Please let me know
Thanks and Best Regards,
Rashmi.Hi,
Try using the VBFA...to get the Invoice number and line item..and then use that value in VBRK...
* Declare the internal table for T_VBFA.
IF NOT gi_sales_items[] IS INITIAL.
SELECT VBELV
POSNV
VBELN
POSNN
VBTYP_N
INTO TABLE T_VBFA
FOR ALL ENTRIES IN gi_sales_items
WHERE VBELV = gi_sales_items-VBELN
AND POSNV = gi_sales_items-POSNR
AND VBTYP_N = 'M'. "Invoice ""Added this..
ENDIF.
**Add two columns to GI_SALES_ITEMS..to store the VBELN POSNN the data from t_vbfa..let's assume it is VBELN_VF and POSNR_VF
* Basically merge gi_sales_items AND t_vbfa
** Then use that field in
IF NOT GI_SALES_ITEMS[] IS INITIAL.
SELECT a~vbeln
a~fkart
a~waerk
a~fkdat
b~posnr
b~vgbel
b~vgpos
b~matnr
b~arktx
b~prctr
b~txjcd
INTO TABLE gi_billing_items
FROM vbrk AS a
INNER JOIN vbrp AS b
ON a~vbeln = b~vbeln
FOR ALL ENTRIES IN gi_sales_items
WHERE b~vbeln = gi_sales_items-vbeln_vf " Change here
AND b~posnr = gi_sales_items-posnr_vf " Change here
AND b~matnr = gi_sales_items-matnr
AND b~werks = gi_sales_items-werks.
ENDIF.
Thanks
Naren
Edited by: Narendran Muthukumaran on Oct 15, 2008 11:35 PM -
Adding new field KUONR in VF05 Standard Report from table VBRK
Hello All,
I need to add the Assignment Number Field KUONR from the table VBRK into VF05 standard Report and show the respective Assignment Number for the Billing Document.
Please suggest the exact OSS note and the process
The SAP Version is SAP ECC 6.0.
Thanks and Regards
KarthikHi Karthik,
Welcome to the forum!
Please refer to the thread given below. Hope it helps.
How to Add new fields to display in VF05
Regards,
Sridhar -
Link between KONA and VBRK/VBRP and KONP and VBRK/VBRP
Hi
please suggest me the link between KONA and VBRK/VBRP and
KONP and VBRK/VBRP
I want to give link of rebate agreement and invoice no/Inv Qty
My requirement is I want a report where i can see Under one Rebate agreement ,how many Commercial Invoice use
e.g. Rebate Agreement no -125 ( for 10 Rs / unit)
I have created 10 Invoice for 10 qty each so accrual Amount is 10* 10= 100
I want such report where for agreement No 125- 10 Invoice No should be reflected.
I don't want to go into VBO2 and go to verification level that concept i know
i want one report where i will see all
Regards
HemantHi
In my case i want commercial invoice no (billing type F2) but if i try to find link between KONA and VBRK for field KNUMA i can only see credit Memo No(Billing type-B3-rebate billing type) ,
I want to display commericial invoice and not rebate credit memo
Pls advice
Regards
Hemant Gaikwad -
Link betwwen KONA and VBRK/VBRP
Hi
please suggest me the link between KONA and VBRK/VBRP and
KONP and VBRK/VBRP
I want to give link of rebate agreement and invoice no/Inv Qty
My requirement is I want a report where i can see Under one Rebate agreement ,how many Commercial Invoice use
e.g. Rebate Agreement no -125 ( for 10 Rs / unit)
I have created 10 Invoice for 10 qty each so accrual Amount is 10* 10= 100
I want such report where for agreement No 125- 10 Invoice No should be reflected.
I don't want to go into VBO2 and go to verification level that concept i know
i want one report where i will see all
Regards
HemantYou can go via KONH - KONV to VBRP but you will have big performance issues especially with the KONV table when you enter the condition record number from KONH only.
Much easier go to KONH enter your Agreement number. Get the KNUMH from your rebate agreement and enter it in Table S136. This will give you all the invoices associated with your rebate.
Good Luck.
Maybe you are looking for
-
Numbers fails to connect to iCloud.
Numbers 3.5 fails to connect to iCloud. In Numbers for Mac preferences there are no iCloud options. On my Mac (OSX 10.10) in Settings > iCloud is connected and Numbers for Mac is shown as sharing data to iCloud. I tried turning this off (then quit se
-
Program doesn't work correctly after a copypaste from a working program
Hi everybody! i made a really easy program, that doesn't work for some mysterious reasons... This first one is the prototype of the program: http://pastebin.com/fpFy3uLn in this version all is working correctly! So, where is the problem? The problem
-
Location of pictures after editing
After I edit a picture, how do I know where to retrieve the newly edited photo since there is no save as option, and Im not sure where they are automatically saved to?
-
Form Based Authentication not working for my sharepoint site.
I am using FIM 2010 r2 on Sharepoint -80 . I tried to use forms based authentication instead of default windows based auth. But the site is not even redirecting to the custom login page i am trying to connect . Any suggestions ?
-
How to set logging on ISE not to UTC timezone
Hello everyone, I was wondering if there's a way to change the way ISE logs authentications in terms of timezone. I found that it is UTC even if I changed the timezone to my local timezone (PST8PDT).