Shippment document ----- Item Serial No
hi experts
i have created one delivery order report and its almost completed. but only one thing remains that is itemize serial no. when we ship any item, we have to locate that particular item serial no. to less from inventory, that all we are doing in the right way, but i cant locate that shipped item serial no. in my customize report .. cna any body help me where i can find that shipped item serial no . and its relation to oe_order_lines_all with mtl_serial_no.
regards
anwer
Hi,
The item serial numbers that are shipped will be stored in mtl_unit_transactions (mut) table. You can join oe_order_lines_all (ool) to mtl_material_transactions (mmt) and can then join between mmt and mut to find the item serial number.
Hope this helps.
Regards
Saraja
Similar Messages
-
DIAPI posting Delivery Document with Serial Numbers SP1
Release 2005A, SP1 PL4 seems to have broken code that worked with SP00. When trying to create a Delivery Document that contains Serial Numbers, an error is generated: Error -1, General Error. When adding a delievery document which does not contain serial numbers, the document adds successfully.
The following code loops through a recordset to create documents, add expenses and add serial numbers when appropriate. Is this a new 'feature' or can we make a coding change to eliminate this error?
Sample code:
Try
oSalesOrder = oCompany(piCompany).GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders)
RecSet = oCompany(piCompany).GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
RecSet2 = oCompany(piCompany).GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
RecSet3 = oCompany(piCompany).GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
RecSet4 = oCompany(piCompany).GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
RecSet5 = oCompany(piCompany).GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
RecSet6 = oCompany(piCompany).GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
'-- Select Documents to process and loop through recordset
lsSQL = "SELECT DocEntry FROM DeliveryTable WHERE ProcessResult IS NULL Group by DocEntry"
RecSet.DoQuery(lsSQL)
While Not RecSet.EoF
oSalesOrder.GetByKey(RecSet.Fields.Item(0).Value)
If bDocuments(piCompany).DelDraft = False Then
oDelivery = oCompany(piCompany).GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDeliveryNotes)
Else
oDelivery = oCompany(piCompany).GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDrafts)
End If
oDelivery.CardCode = oSalesOrder.CardCode
oDelivery.Comments = "Based On Sales Order " & oSalesOrder.DocNum & "."
oDelivery.DocDate = Today
oDelivery.ContactPersonCode = oSalesOrder.ContactPersonCode
oDelivery.DocCurrency = oSalesOrder.DocCurrency
oDelivery.DocDueDate = Today
If bDocuments(piCompany).DelDraft = True Then
oDelivery.DocObjectCode = SAPbobsCOM.BoObjectTypes.oDeliveryNotes
End If
'-- Handle Expenses for Document
Dim ExpenseLoop As Integer
Dim ExpenseCount As Integer = 0
For ExpenseLoop = oSalesOrder.Expenses.Count - 1 To 0 Step -1
ExpenseCount += 1
'-- Create new Expense if needed
If ExpenseCount > oDelivery.Expenses.Count Then
oDelivery.Expenses.Add()
End If
oSalesOrder.Expenses.SetCurrentLine(ExpenseLoop)
'-- Copy all non-readonly properties
If oSalesOrder.Expenses.LineTotal > 0 Then
oDelivery.Expenses.BaseDocEntry = oSalesOrder.Expenses.BaseDocEntry
oDelivery.Expenses.BaseDocLine = oSalesOrder.Expenses.BaseDocLine
oDelivery.Expenses.BaseDocType = oSalesOrder.Expenses.BaseDocType
oDelivery.Expenses.DeductibleTaxSum = oSalesOrder.Expenses.DeductibleTaxSum
oDelivery.Expenses.DistributionMethod = oSalesOrder.Expenses.DistributionMethod
oDelivery.Expenses.ExpenseCode = oSalesOrder.Expenses.ExpenseCode
oDelivery.Expenses.LineTotal = oSalesOrder.Expenses.LineTotal
oDelivery.Expenses.Remarks = oSalesOrder.Expenses.Remarks
oDelivery.Expenses.TaxCode = oSalesOrder.Expenses.TaxCode
oDelivery.Expenses.VatGroup = oSalesOrder.Expenses.VatGroup
End If
Next ExpenseLoop
Dim i As Integer = 0
Dim liMinRef As Integer = -1
For x = 0 To oSalesOrder.Lines.Count - 1
lsSQL = "SELECT ISNULL(MIN(CAST(LineRef as int)),999999) as MinLineRef FROM DeliveryTable WHERE DocEntry = " & RecSet.Fields.Item(0).Value & " AND CAST(LineRef as int) > " & liMinRef
RecSet5.DoQuery(lsSQL)
If Not RecSet5.EoF Then
'-- It's possible that the DeliveryTable has less records then the RDR1 table - if that's the case
'-- we may be at the end, so set the liMinRef field to something out of range
liMinRef = RecSet5.Fields.Item(0).Value
End If
'-- get line items for each document
lsSQL = "Select * from DeliveryTable WHERE DocEntry = " & RecSet.Fields.Item(0).Value & " AND LineRef = " & x & " AND ProcessResult IS Null"
RecSet2.DoQuery(lsSQL)
RecSet2.MoveFirst()
While Not RecSet2.EoF
'-- We need to walk through the SO to find the item that we are receiving based on the LineNum
Dim liCurrentLine As Integer = x
Dim lbFound As Boolean = False
While liCurrentLine <= (oSalesOrder.Lines.Count - 1)
'-- We need to get the PO Line number (x is NOT the LineRef)
oSalesOrder.Lines.SetCurrentLine(liCurrentLine)
If oSalesOrder.Lines.LineNum = liMinRef Then
lbFound = True
Exit While
End If
liCurrentLine += 1
End While
If lbFound Then
i += 1
If i > oDelivery.Lines.Count Then
oDelivery.Lines.Add()
End If
oDelivery.Lines.BaseEntry = oSalesOrder.DocEntry
oDelivery.Lines.Quantity = RecSet2.Fields.Item(6).Value
oDelivery.Lines.BaseType = SAPbobsCOM.BoObjectTypes.oOrders
oDelivery.Lines.LineTotal = oSalesOrder.Lines.LineTotal * (oDelivery.Lines.Quantity / oSalesOrder.Lines.Quantity)
oDelivery.Lines.UserFields.Fields.Item("U_WhseLoc").Value = RecSet2.Fields.Item(8).Value
oDelivery.Lines.AccountCode = oSalesOrder.Lines.AccountCode
oDelivery.Lines.Address = oSalesOrder.Lines.Address
oDelivery.Lines.Currency = oSalesOrder.Lines.Currency
oDelivery.Lines.ItemCode = oSalesOrder.Lines.ItemCode
oDelivery.Lines.BaseLine = liMinRef
oDelivery.Lines.ItemDescription = oSalesOrder.Lines.ItemDescription
oDelivery.Lines.WarehouseCode = oSalesOrder.Lines.WarehouseCode
lsUserID = RecSet2.Fields.Item("UserID").Value
'-- manage serial numbers
j = -1
lsSQL = "Select * from DeliverySerial WHERE DocEntry = " & oDelivery.Lines.BaseEntry & " AND LineRef = " & liMinRef
lsSQL += " AND WIPLineRef = " & RecSet2.Fields.Item("WIPLineRef").Value
RecSet3.DoQuery(lsSQL)
While Not RecSet3.EoF
'-- get the next SystemSerialNumber for the Inventory Item
lsSQL = "EXEC " & gsDB(piCompany) & "xspGetSysSerial " & sparm(oDelivery.Lines.ItemCode) & ", " & sparm(RecSet3.Fields.Item("LotNo").Value)
lsSQL += ", " & sparm(RecSet3.Fields.Item("ManSerNo").Value) & ", " & sparm(RecSet3.Fields.Item("IntSerNo").Value)
lsSQL += ", " & RecSet3.Fields.Item("QTY").Value & ", " & sparm(oDelivery.Lines.WarehouseCode) & ", " & sparm(RecSet2.Fields.Item(8).Value)
RecSet4.DoQuery(lsSQL)
j += 1
If j + 1 > oDelivery.Lines.SerialNumbers.Count Then
oDelivery.Lines.SerialNumbers.Add()
End If
oDelivery.Lines.SerialNumbers.SetCurrentLine(j)
oDelivery.Lines.SerialNumbers.BatchID = RecSet3.Fields.Item("LotNo").Value
oDelivery.Lines.SerialNumbers.ManufacturerSerialNumber = RecSet3.Fields.Item("ManSerNo").Value
oDelivery.Lines.SerialNumbers.InternalSerialNumber = RecSet3.Fields.Item("IntSerNo").Value
oDelivery.Lines.SerialNumbers.SystemSerialNumber = RecSet4.Fields.Item(0).Value
oDelivery.Lines.SerialNumbers.BaseLineNumber = oDelivery.Lines.BaseLine
RecSet3.MoveNext()
End While
'-- 'end manage serial numbers
End If
RecSet2.MoveNext()
End While
Next x
'-- now add object to SAP
If 0 <> oDelivery.Add() Then
Dim liError As Long
Dim lsError As String
Call oCompany(piCompany).GetLastError(liError, lsError)
'-- write error code to table - Delivery document creation was unsuccessful
lsSQL = "Update DeliveryTable SET ProcessResult = " & liError & ", ProcessDate = GetDate() WHERE DocEntry = " & oSalesOrder.DocEntry & " AND ProcessResult Is Null"
RecSet2.DoQuery(lsSQL)
lsuWriteEvent("AR Delivery", bDocuments(piCompany).DelDraft, oSalesOrder.DocEntry, liError, lsError, piCompany)
Else
lsuWriteEvent("AR Delivery", bDocuments(piCompany).DelDraft, oSalesOrder.DocEntry, 0, "Success", piCompany)
End If
RecSet.MoveNext()
End While
Catch
LogErrorMessage(Err.Description)
Finally
If Not RecSet Is Nothing Then
System.Runtime.InteropServices.Marshal.ReleaseComObject(RecSet)
End If
If Not RecSet2 Is Nothing Then
System.Runtime.InteropServices.Marshal.ReleaseComObject(RecSet2)
End If
If Not RecSet3 Is Nothing Then
System.Runtime.InteropServices.Marshal.ReleaseComObject(RecSet3)
End If
If Not RecSet4 Is Nothing Then
System.Runtime.InteropServices.Marshal.ReleaseComObject(RecSet4)
End If
If Not RecSet5 Is Nothing Then
System.Runtime.InteropServices.Marshal.ReleaseComObject(RecSet5)
End If
If Not RecSet6 Is Nothing Then
System.Runtime.InteropServices.Marshal.ReleaseComObject(RecSet6)
End If
If Not oSalesOrder Is Nothing Then
System.Runtime.InteropServices.Marshal.ReleaseComObject(oSalesOrder)
End If
If Not oDelivery Is Nothing Then
System.Runtime.InteropServices.Marshal.ReleaseComObject(oDelivery)
End If
GC.WaitForPendingFinalizers()
End TryWe have narrowed down the issue to this:
If you are just adding a delivery document with serial numbers, the DIAPI works OK. If you are adding a delivery document which is based upon a sales order and add the 3 lines that reference it:
oDelivery.Lines.BaseEntry = oSalesOrder.DocEntry
oDelivery.Lines.BaseType = SAPbobsCOM.BoObjectTypes.oOrders
oDelivery.Lines.BaseLine = liMinRef
then you receive a error of -1, General error. This is functionality that did work in 2004 and 2005 SP00. I believe this is a bug. -
Hi,
PO item serial number will come as 10,20,30 etc.
Can we change it into 1,2,3 etc ?
Because in PO print I need serial number as 1,2 ,3 etc.
Kindly advise.
regards,Hi Sandeep
please change PO item interval for document type and check. It is default 10. change it to 1.
SPRO --> Materials Management --> Purchasing --> Purchase Order --> Define Document Types
Otherwise when you print PO, there you can put a code in the print program to print as 1,2,3 etc
let me know how it goes.
regards
Srinivas
Message was edited by:
Srinivas Ponangi -
How to capture Ord-related bill.st. in a sales document item
Hi Experts,
Just want to know how will i able to capture the value of the Ord-related bill.st. in a sales document item.
Here's to give you example.
- Go to VA03 and type in a credit memo req.
- Double click on first item material.
- Go to "Status" tab and you will see the "Ord-related bill.st. under Processing status.
I want to capture the value found to this and display it in my report but I have no idea what table maintain this.
Hope you can help me with this ASAP... Sorry for the rush..
Regards,
YuHi Both,
Thanks for this! I already saw this one but I'm doubting at first if this is correct.
Nevertheless, thanks for all your answer. =)
Appreciate your help! =)
Regards,
Yu
Edited by: Aura Yu on Sep 16, 2010 12:37 PM -
Link between SD invoice item and corresponding accounting document item
Hi,
I have a problem regarding the link between the items of an SD invoice ( or
credit note ) and those of the corresponding accounting document. There's a
custom report which extracts information about each credit/debit note
produced within a certain period. This program has recently failed due to a
particular case: a credit note was generated starting by two note requests;
in other terms, cardinality: 1:N exists between the credit note and the
request document. Currently, the program generates duplicated records in
this case, because of the following schema:
-> main loop on VBAK data ( request document header data )
-> inner loop on BSEG data ( accounting document items );
our current access criteria in reading tb_bseg is only:
... where tb_bseg-belnr = tb_vbrk-vbeln.
Providing that tb_vbrk-vbeln doesn't differ and that both tb_vbak and tb_bseg
contain two records ( the two requests the first and the two accounting
document items the second ), the program fails as follows:
° first request -> two lines
° second request -> two lines.
Is there any way to link each invoice item with the corresponding credit
note item?
Thanks in advance to all of you.
Adrian.Hi,
I have a problem regarding the link between the items of an SD invoice ( or
credit note ) and those of the corresponding accounting document. There's a
custom report which extracts information about each credit/debit note
produced within a certain period. This program has recently failed due to a
particular case: a credit note was generated starting by two note requests;
in other terms, cardinality: 1:N exists between the credit note and the
request document. Currently, the program generates duplicated records in
this case, because of the following schema:
-> main loop on VBAK data ( request document header data )
-> inner loop on BSEG data ( accounting document items );
our current access criteria in reading tb_bseg is only:
... where tb_bseg-belnr = tb_vbrk-vbeln.
Providing that tb_vbrk-vbeln doesn't differ and that both tb_vbak and tb_bseg
contain two records ( the two requests the first and the two accounting
document items the second ), the program fails as follows:
° first request -> two lines
° second request -> two lines.
Is there any way to link each invoice item with the corresponding credit
note item?
Thanks in advance to all of you.
Adrian. -
Missing document items in Sales Order in the receiving system
Hello.
We're doing passing of message type ORDERS (ORDERS05) from one system to another. Idocs were posted successfully but we can't find the document items in the receiving system if we view a particular sales order in VA03. Document items are present in the sending system.
I checked segment E1EDP01 (document items segment) for the inbound idocs and found all items attached to the sales order but we can't see them in VA03 display.
Appreciate help on how to proceed/check this issue.
Thanks. =)If you have verified that the IDOC was complete in the receiving system, I would use WE19 to copy the IDOC in the receiving system (or copy to a development instance of that system) and run the process in debug....someone will have to watch the process, I think and see what is happening to the VBAP table during sales order build.
-
Sales document item is not defined for this transaction in Pur.Order
hi,
At the time of convertion of pr to po one error message received.
Sales document item 46 000010 is not defined for the transaction
Message no. V1198
Diagnosis
You have tried to carry out a business transaction for this sales and distribution document item which, for this item, is not allowed.
This may be due to the fact that this item is not part of a make-to-order production with cost management in the sales order.
Procedure
Please check your entries.
this is MAKE TO ORDER SCENARIO THIS ERROR IS FOR RAW MATERIAL CONVERTION AGAINST SALES ORDER.Hi,
Check in material master MRP3 view there is field called strategy group where you have option to define the planning strategy like make to order/make to stock & like.
Regards
Ravi Shankar. -
How to find the GL Account for a Billing Document Item?
Hi All,
For a specific Billing Document Item, how to fetch the corresponding GL Account No.?
I tried the below approach.
Using the Billing Document Number, I fetched the corresponding Accounting Document No. then I tried to match the item of billing document with the item of Accounting Document by comparing the amount and then fetch the GL Account from table BSEG. When I compared the line items of both the documents, the no. of line items in the Accounting Document is more compared to the no. of line items in the Billing Document. I tried to match the items using Amount, but what if more than one item has the same amount but different GL Account No.?Hi,
i would agree with what 'Rajasekhar Dinavahi' said.
quote,
<b>Hi
If you open the billing document in VF03, click on 'Accounting' , select the accounting document, click on 'Administrat. data' tab.
Here you will find the Reference Document and Reference item no.
Regards,
Raj
</b>
unquote
The reference Doc will be XBLNR .
Regards,
Shehryar -
Err in PO creation-Sales document item is not defined for this transaction
Dear Consultants the errror occurs when we process Individual Purchase Order scenario.
Err in PO creation-Sales document item is not defined for this transaction
Thanks&Regards,
SanthaRamThis error because the item category is not determined correctly in the sales order.
Check the item category in Sales order line item, for Individual Purchase order scenario its TAB.
If its not TAB, then check the assignement for Item category in VOV4.
This thread is more of the SD part, so also put it in SD forum for better solutions.
Regards,
Sheetal -
Fwding agent in Shipping Data fr Stock Transfer of Purchasing Document Item
Hi,
I want to know how to configure the Forwarding agent in Shipping Data For Stock Transfer of Purchasing Document Item (ME21N).
I have used the Forwarding agent as Partner function in Header level but it does not appears in VL10D where we create deliveries from open Purchase orders.
Regards,
AbhilashHi,
Just follow the steps:-
1) You should check the shipping point assignment under SPRO-> Logistics Execution-> Shipping->Basic Shipping Functions->Shipping points & Goods receiving point determination-> Assign shipping points.
OR.....
You may directly check from table also....>
Put T-code SE16-Table TVSTZ
Put your plant and shipping point and check the correct assignments.
2 ) Go to table T001W and check the assignment of customer to plant.And also check the sales area in this table for both Supplying & Receiving plant.
3) Check wether the customer is in the required sales area or not.
If still u face problem kindly reply me.
Regards,
Savita -
Budget control - Assigned funds are less than payment budget for fiscal year in document item
Dear Experts,
We are using Former budgeting, when ever we run the transaction FMBV getting the following message to a particular user.
Budgeting
Assigned funds are xxxx BHD less than payment budget for fiscal year
2014 in document item XXXX /XXXXX .
And also when purchasing creates the PO getting similar message to a particular user.
Purchase order 450000XXXX
Assigned funds are XXXX BHD less than the commitment budget for
fiscal year 2014 in document item 010 XXXX /XXXXX .
How to know where these users were maintained.
Thanks for the helpHello Itai,
Sorry for my late reply. Have you been able to find a solution for this?
If not, please update, otherwise please make this thread as answered.
Sorry for the delay...
Kind regards, Mar. -
How can I find clearing document item from BSE_CLR?
Hi All,
I can find cleared document item be partial paid in table bse_clr by field BUKRS, BELNR, GJAHR, BUZEI.
but I can't find clearing document item in table bse_clr, is there any other table stored the clearing document item data?
best regards,
Erichi
Use table BSAD,BSAS,BSAK for cutomers, gl accounts and vendors respectively
Regards -
Change FI document items created from MIRO
Hi All
I'm creating invoices with MIRO transaction.
I want to change some document items of FI document related to one invoice, assigning the vendor number of header invoice to the field bseg-lifnr created in FI document.
I have tried with BTEs, substitutions, exit LMR1M001, BADI Invoice_Update and Enhancement in MRM_INVOICE_PREPARE_AND_POST.
I can't find the way to change this field of the FI document during posting with any of these techniques.
Thank you in advanceHi niraj and Rob
I have made a substitution at line level that calls a user exit created in report ZRGGBS000.
This works fine in FI documents created from FI transactions like FB01 but the MIRO execution doesn't pass for it.
Our users are responsible of some profit centers.
They want to know in profit center analysis all invoices that refer to their own profit centers, and who are their respective vendors.
In those analysis, they see GL line items of incomes and expenses and need to know the vendor that origins them. -
About updating long text in the document item with bdc of fb02
HI,
I have a question about updating long text in the document item of sap:
Can I directly updating the long text information with the fuction save_text?
The long text is in :
tcode: fb02 -->input document no ... --> Document overview --> select one document
long text --> updating the value.
Becaust I want to update some items in a G/L Account with bdc or other technique, but I found I can't choose the items in the G/L Account with bdc automatically .That means I can't get the selected items and update them.So I try to update them with the function save_text directly (I know the doc no,bukrs,fiscal year ,item no which will decide the long text item).
Who can help me ?Or is there any way to solve the problem? Thanks very much.Yes, you can update directly using SAVE_TEXT.
Check this for the same.
[update long text in FB02|https://forums.sdn.sap.com/click.jspa?searchID=22194840&messageID=5418662] -
Material BOMs with document items using RCSBI010
Has anyone uploaded material BOMs with document items using RCSBI010? I set the item category to D, but receive an error in LSMW when I attempt to convert the data. The error specifies that the document items are not valid material numbers. They are not material numbers. They are document info records.
Found the problem. The document number was being mapped to BOM Component IDNRK instead of document number DOKNR.
Maybe you are looking for
-
hello hi, i just won't to ask, if there has been any changes on how to find a stolen phone, did some one come up with a fare and good solution, new Apps. as it is not fare at all when some one could use it for free and there is a lot of things could
-
Can not update to Camera Raw 6.7
I can't open Canon Raw Files so I tried to update Camera Raw in Photoshop CS5. On screen I see the updating process but ultimately I get a message saying: "There was an error downloading this update. Please quit and try again later" I've tried severa
-
How can I attach a PDF file on an iWeb created page?
How can I attach a PDF file on an iWeb created page so that person can click the link and open the file. I have a website for my Labradors and would like something that will link from the dogs web page to their pedigree. TIA.
-
I installed and configured an Edge Transport server. In ECP under servers if I click to access the Edge Transport server I get a warning message pop up that says "An error occurred while accessing the registry on the server "FQDN". The error that occ
-
3D layers look really bad in CC 2014?
I went to open some of my CS6 Photoshop files that had 3D layers, in Photoshop CC 2014, and they looked okay when it first loaded, but as soon as I touched it they looked awful. Also, not sure what this overlay is when you view the texture... assumin