Relation between BKPF-BELNR and Clearing document number
Hi Friends,
I need one to one relation between Posted document number BKPF-BELNR and
the clearing document number generated for that (AUGBL).
I could find BSEG is having the clearing document number in its one of the line item but i don't want to strain my code querying BSEG.
is there any other way.
If querying BSEG is the only option, appreciate if any one help me in giving an optimal query( if you have faced the similar requirement)
Thanks in advance
Simha
Hi All,
Thanks for your help.
My problem is resolved. I queried BSAK (for my requirement)as suggested by many of you.
Thanks.
Simha
Edited by: Simha on Nov 15, 2008 5:27 AM
Similar Messages
-
Relation between goods receipt and material document number
guyz!
i got stuck up at one functional doubt. can any one say link between goods receipt and material document number. in other way, i wanted to know difference between these two i.e. goods receipt and material document number. or both are same.
awaiting for reply
manasHi,
Just have a look if this thread can solve ur problem.
Re: display goods receipt
Rgds,
Prakash -
Relation accounting document number and clearing document number
Hi everyone,
What is the relation between accounting document number and clearing document number.For every accounting document when it is posted it should be available in BKPF Doc header table.. Once that document is closed or cleared..there is any entry made to BSAK for Vendors (Cleared Items) or BSAD for Customers (Cleared Items).
Eg: When a invoice is generated for a PO it gets created and is still not cleared or is not closed , it makes an entry in BSIK. Once it is closed it is available in BSAK.
Same is the case with Sales order.. -
Relation between Tax Invoice and Billing Document
Hi,
Could you please let me know the following;
1. How to find a Billing Document from a Tax Invoice number, i,e the table linkage. I have found out a way by passing the XBLNR (tax invoice) field in BKPF table and getting the BELNR (Accounting Document). Now, we can pass BELNR into BSEG and get the VBELN (Billing Document). Is the above the correct method ?
2. If the previous method mentioned is correct, then for Service related Invoices where there are no Sales Document or Delivery is created, we are unable to link the Tax Invoice to a Billing Document (the field VBELN in BSEG is empty).
Could you please help in this regards.
Thanks & Regards,
SandipanHave you seen your posted documents through MIGO and MB1C in MB03.Are you able to see any document type difference once you select header.
Refer below link you will understand the process.
http://help.sap.com/saphelp_45b/helpdata/en/f8/6cec6eb435d1118b3f0060b03ca329/frameset.htm
Edited by: Sridhar Jayavarapu on Feb 10, 2010 7:01 PM -
Link between purchase requisition and dms document number(cv02n)
hai all,
can u pls tell me how to get the dms document number(cv02n) for a given purchase requisition number?
is there any table?
Tnx & Regardstry table DRAD with field DOKOB = EBAN. The number of PR is in field OBJKY.
Teresa -
Relation between Proforma Invoice and Credit Note Number
Hi,
Could you please tell me how i can link the proforma invoice number with credit note number.
I have proroma invoice number. I want to find its corresponding credit note number.
Kindly help.
Regards
Sachinthere wont be any entry in BKPF as this is proforma invoice...
i tried to link by VBFA but no sucess...
Kindly help.. -
Relation between Material Movement and Material Document
Hi all,
Let me explain my doubt. I'm doing a 501 movement through Migo and through MB1C. Both create material documents, but in different ranges! :O
In Mb1c, uses the 50* range, correct
In Migo, uses the 49* range, not correct.
I can't find where is the material range - Material document relationship is done.
Can you help me?
Regards,
PedroHave you seen your posted documents through MIGO and MB1C in MB03.Are you able to see any document type difference once you select header.
Refer below link you will understand the process.
http://help.sap.com/saphelp_45b/helpdata/en/f8/6cec6eb435d1118b3f0060b03ca329/frameset.htm
Edited by: Sridhar Jayavarapu on Feb 10, 2010 7:01 PM -
Link between billing document and accounting document number
Hi Frnds,
When i receive a partial receipt (of an invoice) from a customer using f-28, i am getting the link between invoice number and accounting document number from a table (BSEG), but when i am receiving the final settlement amount from the customer, i m not getting the link between the inv. no. and accounting document number. Can anyone tell me how can i get the same?
I have tried table BSAD and BSID.Hi,
I will give you two options.
1)Goto FBL5n.Enter your customer number and company code.Select All items.
Execute.
Search for your billing document number using CTRL+F.Select that line.Click on display.
Here you will find the reference number and clearing document number also.
2)Goto VF02.
Enter your billing document number.Enter.
Press Shift+F4 or the path is:goto-->Accounting document.
You will get the accounting document number here.
3)Goto FB03.Key in the document number.Enter.
Regards,
Krishna. -
Relation between BKPF and EKBE table for reversing document?
Is there any relation between BKPF and EKBE table for reversing document when STBLG is blank in BKPF.
AND
How to differentiate Old Accounting document / Reverse document / New document when in BKPF-STBLG is blank for all three document and BKPF-XBLNR are same for all.Hi Varun,
Table Document no (BKPF-BELNR) is link between Material document no (EKBE-BELNR). If you are looking for validating Material reversal document then please use following logic for your requirement.
Material Document (MBLNR) & Material Document Year (MJAHR). Pass material document (MBLNR) to MSEG-SMBLN to read MSEG-MBLNR with MSEG-MJAHR to MSEG-SJAHR, if record found delete both the documents i.e. MSEG-SMBLN & MSEG-MBLNR (donu2019t consider these documents in the logic) and display Material Document No. (MSEG-MBLNR)
Regards,
Santosh -
Payment document cleared and invoice document number cleared
Dear experts,
Could you please help me to locate (table and field name) what is the payment document number clear and invoice document number cleared ?
In my point of view, the invoice document number is :
BSAD-BELNR: Customer Invoice document number cleared
BSAK-BELNR: Vendor Invoice document number cleared
Is it right ?
How about the payment document number cleared ?
How about the relation between these payment document number clear and invoice document number cleared?
Thank you in advanceHi
You can see data on invoices cleared using following tables.
For customer - BSAD
For Vendor - BSAK
For all invoices ( open and cleared ) it is BSID & BSIK.
Thanks
kamala -
Relation between BKPF and MKPF
I want relation between BKPF and MKPF,
because i want account document number on storage location basis.
if anyone know the solution or any standard report pl. tell me.Hi Omar,
For all tables if you wan to find the table relation shipss...
use the T-Code -->SQVI--> select table join--> enter first the table name--> enetr another tbale name..
it will show the possible relation ship between the tables
Regards,
Prabhduas -
Link between invoice number and material document number
I need a way to get the list of material document numbers which correspond to a particular invoice. Is there a way to find this information? I am looking [looping] at table EKBE during a user exit in SAPMV60S but I need to restrict the entries by a range of (multiple) material document numbers.
Regards,
DavisIt looks like you're missing a piece of code.
SELECT SINGLE * FROM BKPF WHERE BUKRS = Z_EKKO-BUKRS AND
* BELNR = EKBE-BELNR AND
AWKEY LIKE X_KEYFLD AND
CHECK SY-SUBRC = 0.
The SELECT just ends at the "AND".
Should there be another line after the "AND"?
You said you had an invoice number; why can't you use that in your WHERE clause to limit what is returned from BSEG?
What field are you using for the invoice?
I had mentioned BKPF-XBLNR before, which we use to store the vendor invoice on a PO, but what you are doing sounds different. Are you referring to an invoice that you created?
I think that this might be in BSEG-REBZG, and you should be able to filter on this field.
Shouldn't such an additional filter give you what you want?
e.g.
if the invoice specification is a single value:
* Getting the Vendor Invoice header data
SELECT SINGLE * FROM bseg WHERE bukrs = z_ekko-bukrs AND
belnr = bkpf-belnr AND
hkont = '0000416000' AND
rebzg = invoice
or, if the invoice specification is a range or list:
* Getting the Vendor Invoice header data
SELECT SINGLE * FROM bseg WHERE bukrs = z_ekko-bukrs AND
belnr = bkpf-belnr AND
hkont = '0000416000' AND
rebzg IN s_invoice
If you are not using rebzg, then do the same against whatever field you are using.
Good luck
Brian -
Differentiate between invoice and clearing document
the table BSID and BSAD contains the details of both invoice and clearing documents.
How to differentiate betwee invoice and clearing document.
i thought that all debit documents are invoices and credits are clearing documents.
But its not working because there are invoices which are credit and clearing documents which are debit.
Please let me know if there is any indicator or field whichHi,
No difference between invoice and billing document.
But If we want to inform the payable to the customer we use the terminalogy invoice.
Example Credit meomo, debit memo. etc ...
As there is no difference , both have the same document types.
thanks
Kuntla -
Link between inv. number and accounting document number
Hi Frnds,
When i receive a partial receipt (of an invoice) from a customer, i am getting the link between invoice number and accounting document number from a table (BSEG), but when i am receiving the final settlement amount from the customer, i m not getting the link between the inv. no. and accounting document number. Can anyone tell me how can i get the same?Hello,
Try to prepare query based on tables BSIK, BSAK and BSEG. (Transaction code SQVI)
Regards,
Ravi -
Link between invoice number and accounting document number
Hi Frnds,
When i receive a partial receipt (of an invoice) from a customer, i am getting the link between invoice number and accounting document number from a table (BSEG), but when i am receiving the final settlement amount from the customer, i m not getting the link between the inv. no. and accounting document number. Can anyone tell me how can i get the same?hi
try these tcodes
FBL5N
FB02
regards
Maybe you are looking for
-
Blue background under finder icon in dock
Hi guys, i have this problem (as you can see on screen shot - blue background under finder icon in dock), what i need to do to fix it?
-
Photo library has two albums with same pics.
Hey guys, I am having a problem... not really a problem but an annoyance. I have two photo albums on my Ipod touch 4g with the same pictures. I have tried to restore, resynch, anything I could think of too only have one but no5hint worked. What I mea
-
Hello Gurus, We have a requirment where we have to send out a query output exactly the way it is in to CSV format. Here I have tried RSCRM_BAPI and RSANWB (APD) but i am not comfortable with the output as it do not extarct the Text info
-
Include array of data in additional results
It seems not to be possible to use array of data in additional results? Anyone who knows if this correct? Regards Vagn
-
My ipod nano 6g only has 247Mo of memory
After formatting it on windows, it shows only a capacity of 247 Mo. Therefore, there is only one partition (no hidden partition)