添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
眼睛小的番茄  ·  I did not understand ...·  7 月前    · 
高大的柚子  ·  The cultural ...·  8 月前    · 
爱笑的紫菜汤  ·  Methods - Usability ...·  9 月前    · 

Hai,

I want to do good Issue with Serial Number using DI API but I got an error message <b>"\[IGE1.DocEntry]\[line:0],item serial is not found in Whse SR-5155 - 1 - R5155KGS ' (-5002)" </b>

here is the code

-


Set oGoodIssue = oCompanyDI.GetBusinessObject(oInventoryGenExit)

oGoodIssue.DocDate = "12/14/2007"

oGoodIssue.Lines.itemCode = "SR-5155"

oGoodIssue.Lines.WarehouseCode = "R5155KGS"

oGoodIssue.Lines.SerialNumbers.SystemSerialNumber = CStr(1)

oGoodIssue.Lines.SerialNumbers.ManufacturerSerialNumber = "SR-0000001"

oGoodIssue.Lines.SerialNumbers.InternalSerialNumber = "SR-0000001"

oGoodIssue.Lines.SerialNumbers.SetCurrentLine 0

oGoodIssue.Lines.SerialNumbers.Add

retval = oGoodIssue.Add

If retval <> 0 Then

oCompanyDI.GetLastError errMsg, errMsg2

sbo_application.messageBox errMsg & " (" & errMsg & ")"

Else

sbo_application.messageBox "Success"

End If

-


I check already from SAP BOne and the serial number is exist

Can someone help me solve this problem

Thanks and Regards,

Arthur Siwan

Hi Arthur,

Try this code ( i had changed only one line of code in your original code)

Set oGoodIssue = oCompanyDI.GetBusinessObject(oInventoryGenExit)

oGoodIssue.DocDate = "12/14/2007"

oGoodIssue.Lines.itemCode = "SR-5155"

oGoodIssue.Lines.WarehouseCode = "R5155KGS"

oGoodIssue.Lines.SerialNumbers.Add

oGoodIssue.Lines.SerialNumbers.SystemSerialNumber = CStr(1)

oGoodIssue.Lines.SerialNumbers.ManufacturerSerialNumber = "SR-0000001"

oGoodIssue.Lines.SerialNumbers.InternalSerialNumber = "SR-0000001"

oGoodIssue.Lines.SerialNumbers.SetCurrentLine 0

retval = oGoodIssue.Add

If retval 0 Then

oCompanyDI.GetLastError errMsg, errMsg2

sbo_application.messageBox errMsg & " (" & errMsg & ")"

Else

sbo_application.messageBox "Success"

End If

Hope it helps you

Regards

Vishnu

create and update sales order with API_SALES_ORDER_SRV using $batch with content-id in a changeset in Enterprise Resource Planning Q&A How to Include Tax and Discount Per Item in Purchase Order Output Form in Enterprise Resource Planning Q&A SAP edocument - Support Documents (Documento Soporte - Colombia) XML in Enterprise Resource Planning Q&A Configuration nodes for 4BL are not open in S4 Public Cloud in Enterprise Resource Planning Q&A Reorganizing of demand with T-code MD74 is not working in Enterprise Resource Planning Q&A