Establish link between Billing document and material document
Hi All,
I have billing document for some materials created using the FM BAPI_BILLINGDOC_CREATEMULTIPLE and I have created the material document for the corresponding materials using the FM BAPI_GOODSMVT_CREATE. Both these documents have been created in separate FM calls.
My requirement now is that I have to establish a link between these documents, so that the material document appears when the "Document flow" button is clicked in billing screen (VF02). Does have any suggestion for making this happen ? Any help will be highly appreciated .
Cheers,
Sandeep
hi Meenakshi,
Check with this i hope it will work
you can have the data from BKPF through fields like AWKEY and AWTYP and VBRK (vbeln).
in bkpf there is a field called AWTYP in which you have to specify 'VBRK',and you have split AWKEY depending o upon the vbeln .
bkpf-awtyp = 'VBRK'
bkpf-awkey = vbrk-vbeln
bkpf-bukrs = vbrk-bukrs.
Similar Messages
-
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 -
Link between the Invoice and material document
Hi,
Here I am having a requirement to get all the GR made against an Invoice.
Let me explain it.
I am having one Purchase order. Now I made the GR with a delivery note number. Now in MIRO I pass the bill or create the Invoice against the delivery note. Now I want to know the delivery note number against that invoice number.
I cant go by the Purchase order no and item number also. Because I have to show the delivery note number against that Invoice number only. Because so many Invoices and GR can be created for the same PO item.No I checked it out no value is there.
I am having another doubt also. Whther it is any configuration issue? Because My RSEG-XBLNR, is also blank though I made the invoice against the delivery note. I was expecting XBLNR will get that deliv note no.
Regards
Shiba Prasad Dutta -
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 -
Billing Document and Material Document Relation
Dear all,
i need to know about the relation between Billing document and Material document.
Please let me know if there is any Function Module or Some View available to get these details.
my only requirement is to get only Material document From Billing Document.
Thanks In Advance.
Pradeep.Hi
So the material document should be linked to the delivery
The document flow:
Delivery->Outgoing moviment->Delivery->Bill->FI invoinces
If you start from FI:
- Get the bill number from header data: BKPF-AWKEY
- get the delivery number from bill item VBRP-VGBEL
- get the document flow for the delivery: VBFA: here you can find out the material document
Max -
Link between outbound delivery and matriel documents of good receip
HI,
in which table we can find the link between outbound delivery and matriel documents of good receipt.
thanksHi!,
If you have posted a goods receipt for an outbound delivery, you should find in the header table MKPF for the material document the field MKPF-XBLNR completed with the outbound delivery number.
Then, if the document flow for the delivery has been updated correctly, in the table VBFA for the delivery (VBFA-VBELV), you should find the material document under VBFA-VBELN.
I hope this helps you!
Best regards,
Esther. -
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 -
Link between Business area and Material master
Hi guys
Is there a link between Busines area and material master, i am getting an error when I am trying to Move part of material stock from unrestricted stock to Project stock by 411/Q.
Error
Business area xx changed to yy
Ideas?
samHi
Yes Business area has a link with MMR
Business area determination is through by three rules
1. Plant and item division
2. Sales area( sales orgdistribution channeldivision )
3. Sales org, distribution channel and item division
Here item division means the division in MMR that is basic data 1 tab and sales org 1 tab
This division field forms the main link between Business area and MMR
Regards
Raja -
Billing Document and Material Document number and Date (Goods Issue)
Dear Experts,
Is there a way I can find the relationship between a billing document and a material document number and Goods issue date?
ThanksHi Abid
Is there a way I can find the relationship between a billing document and a material document number and Goods issue date?
You have to follow the flow from the billing document to the material document. This will only work if the billing document comes from a delivery note.
Billing document => Delivery
LIPS-VBELN = VBRP-VGBEL
and LIPS-POSNR-VBRP-VGPOS
So you have LIPS + LIKP with the LIKP-WADAT_IST as the goods issue date.
Delivery => Material Document Number
You can use the table VBFA with the delivery item as the preceding document number (VBFA-VBELV) and item (VBFA-POSNV) ; you will also have to define the preceding document type as J (delivery) and the document category of subsequent document as R (material document).
Because in SAP nothing is simple, there might more than one material document, because the goods issue (601) movement might have been canceled and issue again. So you will have to decide what to do in that case.
Best Regards,
Franck -
Link between Service Call and Marketing documents not working
Hello all,
I found a field in Marketing Documents - Rows data - that should be the link between a Service Call and the Marketing Documents.
The field is for example "INV1.isSrvCall" but, even if I create an Invoice from the Service Call, the field will be populated with the value "N".
Dows anyone knows how to make this field work? Or any workarround to make the connection between a Service Call and the generated documents?
Thanks in advance,
Kind RegardsThe problem with SCL4 is that SAP updates it way too late in the process to be meaningful while in the module. You create a service order, then go into the expense document. That is when we need to know the service call id and the internalsn of the equipment being worked on Only when you get out of the service module do SAP post to SCL4.
The data (before writing to SCL$) exists as a veriable on the original service form. But can we access it from the expense document?
The question is how to access the data (service id) on the original service form from an expense document within the servide module. It is the service form, and that is currently not in focus, so I do not know if you can access it as a varaible, while in the expense document (sales order or invoice) that is in focus.
Can any one help with this/
David -
Link between table SOFFPHF and FI document
Hello Experts,
I have a requirement to find all the FI documents with the attachement .
We have a table SOFFPHF (SOFF: Files of Physical Information Objects) where i can get the details of attachement, But now how to link this table with the FI document which has this attachement.
I tried the link using table SRGBTBREL , But i am not getting entries from table SOFFPHF in this table.
Thanks.
Regards,
Ganesh.Hi Shivkumar,
When you enter the item category as 'D'then a purchase order is
classified as a service purchase order.
When you use ML81N to perform a service entry, then automatically
the GR document is generated.The basis for this is a service can
only be performed and cannot be stored.
The PO history table will give you a good idea of the relation.
You can check the EKBE table.Enter the service entry sheet number
in the field LFBNR of EKBE table, enter the SES number, you will
see all the documents associated with it. -
What is the link between schedule lines and delivery document item level
Can any one please explain me what is the link between the schedule lines of the order/scheduling agreement and the item level of the delivery.
Is there any link between VBEP and LIPS ?Hi
Most of the item level data in delivery doc is copied from Schedlue lines in Sales order for eg delivery date
So u may say that schedule line in sales order becomes the line item in Subsequent doc that is in Delivery doc .
The table u are talking about i.e VBEP is related to sales doc and it contain data for Schedule line in sales order and the other table i.e LIPS give the delivry doc related data at item level.
Hope this help -
Link between billing doc and cancelled billing doc
Hi,
If there is a cancelled billing document then how can I find for which original document the cancelled document was posted? What is the link between Original billing document and cancelled billing document. I mean is there any database field level link?
Thanks!!
Regards,
Sriram.Hi,
Thanks for your reply. Is there any function module to get the original and cancelled document.
Thanks!!
Sriram -
Creating freigth cost document and material document
Dear all,
when creating a freigth cost document the system automatically generates a service entry sheet, and a material document with its accounting document. This is standard behaviour.
When creating freigth cost document we've activated user exit V54C0001 so that field 'Description for reference' (VFKP-POSTX) is populated with outbound delivery number (instead of transport number). We need to know how could we automatically fill field 'delivery note' (LFSNR) in material document with that number.
Best regards
Joana TrigoHi
So the material document should be linked to the delivery
The document flow:
Delivery->Outgoing moviment->Delivery->Bill->FI invoinces
If you start from FI:
- Get the bill number from header data: BKPF-AWKEY
- get the delivery number from bill item VBRP-VGBEL
- get the document flow for the delivery: VBFA: here you can find out the material document
Max
Maybe you are looking for
-
Hi all, when iam trying to create an invoice document and when iam clicking the accounting button the error is dispalyed as a/c doc not yet been created pls help me what to do.
-
No longer able to print via wireless network
I have an HP OfficeJet 6500A Plus E710N and have had it connected to my wifi network and working properly for some time now. Recently, print jobs would queue up and nothing would print b/c it said the printer could not be found on the network. I del
-
I need help figuring out why when I connect my iphone to itunes i get this message - this iphonecannot be used because apple mobile device service is not started. how can i fix it?
-
Function module to retrieve the material master data
Hi all, creating material master dta i am using BAPI_MATERIAL_SAVEDATA .is there any f.m with same structures as BAPI_MATERIAL_SAVEDATA to retrieve the materi master data.
-
Adding Extreme to my existing network
I have an existing 802.11g network on a Linksys router. I have to leave this router as is because my wife's workplace bought it and set it up for VPN. I am not experienced enough to redo everything on a new router so I am just going to leave it alone