Added A/R invoice with Serial or Batch
why i keep get this error?
[INV1.WhsCode][line: 1] , 'The selected quantity of batch/serial numbers is greater than the open quantity.
the quantity is more than enough
any idea?
Ok, here you go
all of the data already populated to myOrderDetailsTable datatable
i'm very22 confuse, eventhough i only added 1 row..it still receive error
what is open quantity anyway?
For iRow = 0 To myOrderDetailsTable.Rows.Count - 1
If myOrderDetailsTable.Rows(iRow).Item(ISSCANNED_FIELD) = 1 Then
CompleteOrder = myOrderDetailsTable.Rows(iRow)
sWhsCode = CompleteOrder(WHSCODE_FIELD)
With oInvoices
If isAddHeader Then
iBasedDoc = DOCNUM_FIELD
'.DocObjectCode = SAPbobsCOM.BoObjectTypes.oInvoices
.DocDate = Today.Date
.DocDueDate = Today.Date
.TaxDate = Today.Date
.CardCode = CompleteOrder(CARDCODE_FIELD)
.Reference1 = CompleteOrder(DOCNUM_FIELD)
isAddHeader = False
ElseIf isAddHeader = False Then
.Lines.Add()
End If ' isAddHeader
'.Lines.BaseLine = i
'.Lines.BaseType = SAPbobsCOM.BoObjectTypes.oOrders
'.Lines.BaseEntry = iBasedDoc
iAddedQty = 0
iCurrLine = 0
.Lines.ItemCode = CompleteOrder(ITEMCODE_FIELD)
.Lines.WarehouseCode = CompleteOrder(WHSCODE_FIELD)
If CompleteOrder(ISUSEBATCH_FIELD) = 1 Then
For iCurrLine = 1 To CompleteOrder(QUANTITY_FIELD)
.Lines.BatchNumbers.Quantity = 1
.Lines.BatchNumbers.BatchNumber = CompleteOrder(SCANNED_FIELD)
.Lines.BatchNumbers.SetCurrentLine(iCurrLine - 1)
.Lines.BatchNumbers.Add()
Next
ElseIf CompleteOrder(ISUSEBATCH_FIELD) = 0 Then
While sWhsCode = CompleteOrder(WHSCODE_FIELD)
.Lines.SerialNumbers.SystemSerialNumber = CompleteOrder(SYSSERIAL_FIELD)
.Lines.SerialNumbers.InternalSerialNumber = CompleteOrder(SCANNED_FIELD)
.Lines.SerialNumbers.SetCurrentLine(iCurrLine)
.Lines.SerialNumbers.Add()
iCurrLine = iCurrLine + 1
iRow = iRow + 1
If iRow <= myOrderDetailsTable.Rows.Count - 1 Then
CompleteOrder = myOrderDetailsTable.Rows(iRow)
ElseIf iRow > myOrderDetailsTable.Rows.Count - 1 Then
Exit While
End If
End While
iRow = iRow - 1
'CompleteOrder = myOrderDetailsTable.Rows(iRow)
End If
.Lines.Quantity = iCurrLine
End With ' oInvoices
End If ' CompleteOrder(ISSCANNED_FIELD) = 1
Next iRow
Edited by: Erick Widya on May 19, 2008 10:39 AM
Edited by: Erick Widya on May 19, 2008 10:43 AM
Similar Messages
-
Error when posting AR Invoice with serial
Hi experts, just want to ask what is the problem when posting AR Invoice with serial number. The error is "Internal error (-5002) occurred [الرسالة 131-183]"
Here's my code :
If Not oSerial Is Nothing Then
oSerial.DefaultView.RowFilter = "product_reference_code = '" & oDrView("product_reference_code") & "' " 'AND site_reference = '" & oDrView("site_reference") & "' "
For Each oDrSerial As DataRowView In oSerial.DefaultView
Try
.Lines.SerialNumbers.Quantity = 1
.Lines.SerialNumbers.InternalSerialNumber = oDrSerial("serial_no")
.Lines.SerialNumbers.Add()
Catch ex As Exception
End Try
Next
End IfHi Bryan,
Have you try to debug it , which line is causing problem.
With serial numbers you don't have to set the qty.
other fields that need to be set are :
for (int count = 0 ; count < totalcount; count ++)
if (count > 0)
.Lines.SerialNumbers.Add();
.Lines.SerialNumbers.SystemSerialNumber = SysSerialNum;
.Lines.SerialNumbers.ManufacturingSerialNumber = ManufacturingNum;
.Lines.SerialNumbers.InternalSerialNumber = internalserialnumber;
Count++ ;
Hope it will help.
Regards -
Error on adding Delivery / AR Invoice with Freight
Dear Experts,
While punching a delivery or A/R invoice with freight values, i get the following error:
Cannot add or update this document, rows are missing [freight code missing for line 0]
I have assigned a particular tax code to freight and im using it for the freight values.
Kindly help me on this issue.
Regards,
Jimit ChhapiaHI,
I have checked and all the codes do exist.
Apart from that, the entries do not show an error when passed using the manager login, but when i try to punch the entry with other user id the error comes up. The other user also has full authorizations.
What could be the issue? -
Retrieve a lost invoice with serial number
Hi,
I've lost my computer invoice and would like to know if there's a way to retrive my invoice.
Cheers,Call the store from where you purchased your MBP.
You can get your serial# by going to Apple>About This Mac>More Info>Overview -
Adding a delivery document with serial numbers
Hi everyone,
A delivery document is created in code and the item delivered requires a serial number. In this example there is a quantity of two so two serial numbers will need to be added.
Dim oCompany As New SAPbobsCOM.Company, lRetCode As Long
Dim oSerialNumbers As SAPbobsCOM.SerialNumbers
Dim oDelivery As SAPbobsCOM.Documents
Dim RetVal As Long
Dim ErrCode As Long
Dim ErrMsg As String
oDelivery = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDeliveryNotes)
oDelivery.CardCode = "KellyD"
oDelivery.DocDate = "09/20/2005"
oDelivery.Lines.ItemCode = "MDASTPE"
oDelivery.Lines.Quantity = 1
oDelivery.Lines.TaxCode = 0
oDelivery.Lines.Price = 300
oSerialNumbers = oDelivery.Lines.SerialNumbers
??What code goes here to enter the serial numbers??
RetVal = oDelivery.Add
Any help would be appreciated.
Thanks.Hi
try this or something alike
oSerialNumbers.add() ' i'm not sure if its necessary
oSerialNumbers.SetCurrentLine(0)
oSerialNumbers.InternalSerialNumber="yourfirstserial"
oSerialNumbers.add()
oSerialNumbers.SetCurrentLine(1)
oSerialNumbers.InternalSerialNumber="yourSecondserial"
tell me results
Kind regards
Salvador Biot -
Error when adding new service invoice with DI Server, error -1114
<b>Hi everybody.
I'm trying to add an serviceinvoice (DocType = 'Service Transaction') with DI Server AddObject method.
The xml-request document looks like this:</b>
<?xml version='1.0' encoding='UTF-16' ?>
<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
<env:Header>
<SessionID>........</SessionID>
</env:Header>
<env:Body>
<dis:AddObject xmlns:dis='http://www.sap.com/SBO/DIS'>
<BOM>
<BO>
<AdmInfo>
<Object>oInvoices</Object>
</AdmInfo>
<Documents>
<row>
<DocNum>1241</DocNum>
<HandWritten>1</HandWritten>
<DocDate>10/08/2005</DocDate>
<DocDueDate>10/08/2005</DocDueDate>
<CardCode>V1010</CardCode>
<DocType>S</DocType>
</row>
</Documents>
<Document_Lines>
<row>
<Currency>USD</Currency>
<LineTotal>7500,00</LineTotal>
<AccountCode>_SYS00000000001</AccountCode>
<TaxCode>LA</TaxCode>
</row>
<row>
<Currency>USD</Currency>
<LineTotal>-7500,00</LineTotal>
<TaxCode>LA</TaxCode>
</row>
</Document_Lines>
</BO>
</BOM>
</dis:AddObject>
</env:Body>
</env:Envelope>
<b>...But I get error eveytime I try to do it, the response document as follows:</b>
<?xml version="1.0"?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
<env:Body>
<env:Fault>
<env:Code>
<env:Value>env:Receiver</env:Value>
<env:Subcode>
<env:Value>-1114</env:Value>
</env:Subcode>
</env:Code>
<env:Reason>
<env:Text xml:lang="en">Schema Validation Failed</env:Text>
</env:Reason>
<env:Detail>
<ErrorList>
<Error>System Id = 193271344, Line Number = 1, Column Number = 359, Description = Datatype error: Type:InvalidDatatypeFacetException, Message: Invalid chars encountered..</Error><Error>System Id = 193271344, Line Number = 1, Column Number = 488, Description = Datatype error: Type:InvalidDatatypeFacetException, Message: Invalid chars encountered..</Error>
</ErrorList>
<Object>13</Object>
<ObjectIndex>1</ObjectIndex>
<Command>AddObject</Command>
<SessionID>............</SessionID>
</env:Detail>
</env:Fault>
</env:Body>
</env:Envelope>
<b>Why? Which fields are missing or which field values of those I'm sending might be wrong?</b>Did you try to set the AccountCode also for the 2nd line?
HTH,
Frank -
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. -
Problem adding Sales Invoices with batches
Hi,
I am trying to create an invoice with a batch component which is returning "Cannot add row without complete selection of batch/serial numbers".
I can add these lines manually using teh UI but not via the DI Server. The relevant <BOM> section is shown below. The only mandatory element seems to be <BatchNumber> and I have tried it with just that element and with combintaions of them all. I have also tried adding a <LineNum> to the main <Document_Lines> section in case it needed this to tie up with teh <BaseLineNumber> (which I have als tried leaving out).
I have extarcted a GetByKey for a manually entered one and I cannot see the problem. Any help would be appreciated.
Nick
<BOM>
<BO>
<AdmInfo>
<Object>oInvoices</Object>
</AdmInfo>
<Documents>
<row>
<CardCode>C000002</CardCode>
<NumAtCard>Order #12979</NumAtCard>
<Confirmed>tYES</Confirmed>
<DiscountPercent>0.000000</DiscountPercent>
<PayToCode>Aidann Bowley</PayToCode>
<ShipToCode>Aidann Bowley</ShipToCode>
<ContactPersonCode>34</ContactPersonCode>
</row>
</Documents>
<Document_Lines>
<row>
<ItemCode>BM25-15</ItemCode>
<Quantity>1.000000</Quantity>
<PriceAfterVAT>6.000000</PriceAfterVAT>
</row>
</Document_Lines>
<BatchNumbers>
<row>
<BatchNumber>WEBTEST</BatchNumber>
<ManufacturerSerialNumber/>
<InternalSerialNumber/>
<ExpiryDate nil="true"/>
<ManufacturingDate nil="true"/>
<AddmisionDate>20140428</AddmisionDate>
<Location/>
<Notes/>
<Quantity>1.000000</Quantity>
<BaseLineNumber>0</BaseLineNumber>
</row>
</BatchNumbers>
</BO>
</BOM>Hi
Please enter your thread in SDK Forum
SAP Business One SDK
Thanks
Mohammad Imran -
DI API error while adding AP Invoice (Using serial Nos.)
Hi,
Im getting the following DI API error when adding an AP Invoice which has serial numbers and i cant seem to find any logical fault in the code.
" [PCH1.WhsCode][line: 4] , 'This entry already exists in the following tables (ODBC -2035) "
If anybody has encountered this error and found a solution kindly let me know.Hi Vivek,
Are you trying to add same document number, serial number or so on?
"entry exist " means like "duplicate key problem", I guess.
Basically, whscode column in PCH1 table allows duplicating.
So, I think serial number is duplicated among same item code.
Hope this useful for you.
Regards,
Hyunil Choi. -
PO Goods Receipt with Serial / Batch number with DI API
I am creating PO Goods Receipt with DI API. This works fine. But when i have items with serial numbers and batch numbers in the same PO, then i am getting either of the following errors:
1. [OITM]Item has no serial number management
2. [OIBT] Invalid Item Code.
I debugged the code and the values i set seems to be correct. I am using VB.Net and SAP 2004 with Patch 23.
Thanks
AnandAnand,
When you are working with a Serialized item in the first scenario, have you tested working with the item in the Business One application itself? Have you tried to have the system assign a serial number for the item when issuing a Goods Receipt? Do you get the same issue through the Business One interface. With respect to working with Batches, have you setup the Batches for inventory items through the Business One interface yet? If you have not setup Batches, this would be why you would not have any data in the OIBT table.
HTH,
Eddy -
Cancel insp.lot for batch material with serial number?
We have a problem with an inspection lot....
A few months ago we made a goods receipt for batch material... it ended up in Q- stock.
The weeks went by and the material was changed ito a serial number material... that process works fine...
But now we want to scrap the material that is batch-handeled ... the inspection dont want to let go.. it want serial numbers... even if I create serial numbers for this the inspection lot
dont let me register any numbers.. So I cant cancel/delete it... And after all I just want to scrap the batch...
Can someone help me?
// Andreasif stock of that material with serial numbers exist, then scrap that stock and disable the serial number for the material by deleting the serial number profile in the work scheduling view of the material master.
then try cancelling the inspection lot. After cancelling the inspection lot, activate the serial number for that material again and bring back the scrapped stock into the unrestricted use.
Note: please advice the users not to post any stock for that material till you complete this or else block the posting t.code for all the users. -
Make invoice with item level only not by batch level
Hii
i made a delivery doc say material 'A' having batch1,batch2,batch3 with different qty .
exp:(VL03N)
material a batch1 10ton
material a batch2 20ton
material a batch3 30ton
Now i wanted to club all this qty and do invoice with single item for 'Material A' ,it shouldn't come with batch level wise material .
so in vf01 it should look like this .
material a 50 ton .
Plss suggest what should i do for this cases ?? if poosible for changes in routine vbrk/vbrp in copy control then kindly suggest /
sourav .Hi,
Is your requirement for printing the invoice or while creating the invoice [VF01] Please confirm.
regards,
Chetan -
Certificates using serial numbers with material without batch assigned
Hi experts...how can i track serial numbers and inspection lots from roh material without batch assign but with serial numbers ? these roh materials were used in PO without batch assign to FERT material yet. Is possible use where-used list only to manage serial number or only using batch administration over the serial numbers ?
i will apreciatte any answer!
Regards
Marco Antonio Trois EndresHi ,
This seems to be a Material Management configuration question, I dont know if this will answer it
You will have to configure the Characteristics of your Material from a task list and transfer/Copy it to your Certificate profile,
there has to be a feature to enter the desired selection Criteria based on your question
Work with the security team if your MM_G and MM_S class objects can help open or close certain authroization objects to achieve your goal.
in one of the google search it states that
"This can be done from Extras Characteristics from your task list.
A dialog box appears for entering the selection criteria for the task list"
Will Need more security related information to help you on this. -
Adding Purchase Delivery Note with SerialNumbers via DI Server
I try to add Purchase Delivery Notes via DI Server. It already works for items that do not need serial or batch numbers. But if I try to add a PDN with an item that needs such numbers, I'm getting an error that the line of the item cannot be added without these numbers.
Then I tried to add SerialNumbers to my request, but I am still getting the same error.
The xml template for the SerialNumbers part looks like this:
<SerialNumbers>
<row>
<SystemSerialNumber />
<ManufacturerSerialNumber />
<InternalSerialNumber />
<BatchID />
<ExpiryDate />
<ManufactureDate />
<ReceptionDate />
<WarrantyStart />
<WarrantyEnd />
<Location />
<Notes />
<BaseLineNumber />
</row>
</SerialNumbers>
Can someone explain me, how to use it?
What are the mandatory fields?
What is <BaseLineNumber>? Is it the line number of the item in the purchase delivery note?
Do I have to include <SystemSerialNumber> or will this number be generated automatically by SBO?Hi Nico,
you should use the SDK Help Center to determine the mandatory fields...
When creating an incoming document (Purchase Delivery Note) with serial numbers using the DI API I assign the InternalSerialNumber property only and this works.
The only Mandatory field when creating an outgoing document is SystemSerialNumber which is the unique key for a serial number...
As a side note, I am still experiencing some strange behaviour trying to use the DI API to create documents using serial numbers. I am in contact with SAP regarding this but am getting very slow responses...
Daniel -
Goods Receipt entry for items with serial number
Hi All,
When I try to create a Goods receipt entry, for items with serial number, i'm always getting the following error message.
[OSRI] , 'The selected quantity of serial/batch numbers is greater than the quantity in row Id'
The following is the code that I'm using
Dim oInvetoryGenEntry As SAPbobsCOM.Documents
Dim oSerialNumber As SAPbobsCOM.SerialNumbers
Dim ErrCode As Long
Dim ErrMsg As String
Dim ret As Long
Set oInvetoryGenEntry = oCmp.GetBusinessObject(oInventoryGenEntry)
Set oSerialNumber = oInvetoryGenEntry.Lines.SerialNumbers
oInvetoryGenEntry.DocDate = Now
oInvetoryGenEntry.DocRate = 1
oInvetoryGenEntry.TaxDate = Now
oInvetoryGenEntry.PaymentGroupCode = "3"
oInvetoryGenEntry.Comments = "GRN Entry11"
oInvetoryGenEntry.Lines.ItemCode = "A00004"
oInvetoryGenEntry.Lines.Price = 100
oInvetoryGenEntry.Lines.Quantity = 1
oSerialNumber.SystemSerialNumber = 55555
oSerialNumber.InternalSerialNumber = "2354"
oSerialNumber.BatchID = "bt1"
oSerialNumber.Add
ret = oInvetoryGenEntry.Add
If ret <> 0 Then
oCmp.GetLastError ErrCode, ErrMsg
MsgBox ErrCode & " " & ErrMsg
Else
MsgBox "GRN Entry made."
End If
It would be wonderful if anyone help me out to trace the exact reason for this issue.
Thanks
JohnHi John I'm almost sure that your working with SDK 6.5 with SP1 or lower, visit this address
https://www.sdn.sap.com/sdn/collaboration.sdn?node=linkFnode6-1&contenttype=url&content=https://DI: Add more than one serial numbers in Invoice
Maybe you can find your answer if you can fix it let me Know my email address is [email protected] because i had the same problem.
Regards
Maybe you are looking for
-
Macbook Cd/Dvd burner drive wont read Cd's properly, but Dvd's are fine.
Hello. I recently updated my Macbook 1,1 to Snow Leopard, and got new RAM and HDD. Therefor I'm importing my cd collection once again, but when i put in a CD, it makes loud weird noises and either ejects the disc automatically, or doesn't import/read
-
Mac Pro will not boot with Snow Leopard - need help!
I have had a lot of issues with Snow Leopard since I upgraded from 10.5.8. Most of my problems started after installing Office 2007. I finally wiped the hard drive and reinstalled everything. No problems until last week. Start up was taking longer an
-
Unable to install Itunes 7.5
Having recieved an 3rd generation Nano for Xmas, I am more than a little frustrated to learn that it does not seem to work with Itunes 4 (which is already installed on my laptop for my daughter's ipod) I successfully downloaded version 7.5 but have s
-
Help Required:How Upload Excel file Into Oracle Table Using PLSQL Procedure
Please Help , Urgent Help Needed. Requirement is to Upload Excel file Into Oracle Table Using PLSQL Procedure/Package. Case's are : 1. Excel File is On Users/ Client PC. 2. Application is on Remote Server(Oracle Forms D2k). 3. User Is Using Applicati
-
Comparison with other authoring tools
Most of the time people get into one authoring tool like Encore, DVD Studio Pro, Sonic Solutions Authoring packages, ... I have the feeling with Encore 2.0 that it is not a professional package (but of course I could be wrong); a lot of possibilities