Goods Issue via SDK

Hi guys,
I would like to create a Goods Issue (Stock Management->Stock transactions->Goods Issue) using the DI API. What object am I supposed to use?
eg: private SAPbobsCOM.GoodsIssue;
Regards,
Costas

Its the documents object using the oInventoryGenEntry
e.g.
SAPbobsCOM.Documents goodsIssue = (SAPbobsCOM.Documents)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInventoryGenEntry);

Similar Messages

  • Different movement types for goods issue via outbound delivery

    Hi gurus,
    How can I use different movement types for goods issue via outbound delivery?
    Thanks&Best Regards,
    Burcu

    To use different schedule lines, we need different item types and different document types. Is that right?
    Is there a user exit in outbound delivery to post goods issue?
    Thanks...

  • Error message popped up when goods issue via mb1a

    Hi guru:
    I encountered the error message when I am trying to goods issue via mb1a as below:
    Document 1000041 / 0000000074 does not contain any
    selectable items
    How to solve?

    check are you maintained the backflush indicator in Component overview, Remove the backflush indicator and do the Posting In MB1a, or while confirming DO the goods movement If you want Back flush in Co11n
    and also check final issue is ticked or not in component overview

  • Problem in creating a new entry in Goods Issue via DI

    Good Day Experts,
    Im having trouble creating Goods Issue Document Entry via DI API. The code works fine,
    it just returns "-1150 (Invelid Index)" after adding the GI Document. I would like to know
    if there's something i missed out?
    Below is my sample code for the creation of GI :
            Dim goodsIssue As SAPbobsCOM.Documents = Nothing
            Dim lRetCode As Long
            Try
                goodsIssue = _company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInventoryGenExit)
                With goodsIssue
                    '// HEADER
                    .DocNum = GetDocEntry()
                    .Reference1 = _InventoryTransferLOBO.DocNumber
                    .HandWritten = SAPbobsCOM.BoYesNoEnum.tNO
                    .DocType = SAPbobsCOM.BoDocumentTypes.dDocument_Items
                    .DocDate = _InventoryTransferLOBO.CreatedDate
                    .DocDueDate = _InventoryTransferLOBO.CreatedDate
                    '// DETAILS
                    For x As Integer = 0 To _InvTransLOItems.Rows.Count - 1
                        .Lines.ItemCode = _InvTransLOItems.Rows(x).Item("U_ItemNo")
                        .Lines.ItemDescription = _InvTransLOItems.Rows(x).Item("U_ItemDesc") 'drITLOItems("U_ItemDesc")
                        .Lines.WarehouseCode = _InvTransLOItems.Rows(x).Item("U_FWhse") 'drITLOItems("U_FWhse")
                        .Lines.Quantity = _InvTransLOItems.Rows(x).Item("U_Qty") 'drITLOItems("U_Qty")
                        .Lines.AccountCode = GetAccountCode(_InvTransLOItems.Rows(x).Item("U_FWhse")) 'drITLOItems("U_FWhse"))
                        If x < _InvTransLOItems.Rows.Count - 1 Then .Lines.Add()
                    Next x
                    lRetCode = .Add()
                End With
                If Not lRetCode = 0 Then
                    _sboInventoryTransferLO.MessageBox("Error: " & lRetCode & ", " & _company.GetLastErrorDescription)
                End If
            Catch ex As Exception
            End Try
    Thanks in advenced
    Tyron James Gono

    Hi Sir Owen,
    Thank you so much for your reply, it still doesn't solved the problem. In my code below
    i repositioned the Line.Add Property and also added the "Lines.SetCurrentLine(Index)".
    It still returns the message "-1150 Invalid Index".
    Is it the row items im having a problem with? or the header itself?
                    For x As Integer = 0 To _InvTransLOItems.Rows.Count - 1
                        If x > 0 Then .Lines.Add()
                        .Lines.SetCurrentLine(x)
                        .Lines.ItemCode = _InvTransLOItems.Rows(x).Item("U_ItemNo")
                        .Lines.ItemDescription = _InvTransLOItems.Rows(x).Item("U_ItemDesc") 'drITLOItems("U_ItemDesc")
                        .Lines.WarehouseCode = _InvTransLOItems.Rows(x).Item("U_FWhse") 'drITLOItems("U_FWhse")
                        .Lines.Quantity = _InvTransLOItems.Rows(x).Item("U_Qty") 'drITLOItems("U_Qty")
                        .Lines.AccountCode = GetAccountCode(_InvTransLOItems.Rows(x).Item("U_FWhse")) 'drITLOItems("U_FWhse"))
                    Next x
                    lRetCode = .Add()
    Regards,
    Tyron

  • How do load system form matrix -Inventory-Goods Issue through SDK UI &DI

    While I am accessing system form matrix -Inventory Goods Issue/ Goods Receipt, the matrix object is not accessible.
    Error is coming stating "Item 13 is invalid, where 13 is item uid for matrix.
    So,How do load system form matrix -Inventory-Goods Issue(FORM 720/-720) through SDK UI &DIAPI.
    Form Type: -720
    How to get reference of System form matrix object -Inventory-GoodsIssue.
    Some thing similar to CopyFrom functionality for -Inventory-Goods Issue.
    Currently my client requirement is as follows.
    I created a UDF ((U_ILC) Incoming Log Challan) for marketing documents. And, this field is added in the header level of Goods Reciept, Goods Issue documents.
    1. Through Inventory->Goods Receipt (ILCNo.10), items are received. Assume, M00001, M00002 are the items received with qty, price, whse, account values.
    2. Through Inventory->Goods Issue, item should be issued. In this Goods Issue Form, after entering U_ILC value as 10, pressing Tab, the GoodsIssue matrix should be loaded with the values of GoodsReceipt(IGN1 for U_ILC:10) document i.e. M00001,M00002 along with the same values as in GoodsReceipt of ILC:10.
    The code is as follows:
    If (( ( pVal.FormType = "-720" or pVal.FormType = 720) And pVal.EventType <> SAPbouiCOM.BoEventTypes.et_FORM_UNLOAD) And (pVal.Before_Action = False)) Then
                '// get the event sending form
                oForm = SBO_Application.Forms.GetFormByTypeAndCount(pVal.FormType, pVal.FormTypeCount)
                If pVal.ItemUID = "U_ILCNo" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_LOST_FOCUS And pVal.Before_Action = False Then
                    SBO_Application.MessageBox("ILC No. Lost Focus")
                    oMatrix = oForm.Items.Item("13").Specific
                    oColumn = oForm.Columns.Item("1")
                    oEditItmCode = oColumn.Cells.Item(1).Specific
                    oEditItmCode.Value = "07215090x606"
                    oItem = oForm.Items.Item("U_ILCNo")
                    oEdit = oItem.Specific
                    SBO_Application.MessageBox(oEdit.String)
                End If
            End If
    3. The code
    oMatrix = oForm.Items.Item("13").Specific
    is raising error. I have used Event Logger and breakpoints to see where the code is halting.
    Help me, how to access the matrix of Goods Receipt/ Goods Issue and load based on the existing data.
    Thanks in advance

    HI
    If your code is in the SBO_Application_ItemEvent then try using this line
    oForm = SBO_Application.Forms.Item(strFormUID)
    instead of
    oForm = SBO_Application.Forms.GetFormByTypeAndCount(pVal.FormType, pVal.FormTypeCount)

  • MIGO - Goods issue to determine cost center based on storage location

    Hi Experts,
    Any idea how to determine the cost center based on the storage location instead of from tcode - OKB9 when creating Good Issue via MIGO_GI?
    Points will be awarded for useful solutions. Thanks.

    Hey Janet,
    A Cost center cannot be determined from an SLOC..it si always at the company code and valuation aea level

  • Exit to Fill Assignment Field in Good Issue Accounting Document

    Dear,
    I would like to fill assignment field with eqipment number when post good issue via VT01N (shipment).
    What exit that i should use for that purpose?.
    Thank you

    Hello,
    I am not aware of any exits which can do this for you. Did you try substitution for your requirement ? Also there is a possibility to use the field XREF3 to get the desired result.
    I hope the above hints help to resolve the issue.
    Thanks and regards,
    Suresh Jayanthi.

  • Backdate Posting of Goods Issue using standard BADI

    Hi Experts!
    The standard BADI we are using creates an STO then a Delivery and Goods Issue via a userexit. We have a requirement to backdate the posting dates and have a concern of deficit stock levels at the point of Goods Issue. How do we control this?

    Hi,
    Instead of updating entire data of deliveries and PGI once, you can manually update the stock for a specific period and then update the Deliveries and PGI in the system.
    Or update entire stock at once till date and only then update the Deliveries and PGI in the system.
    Hope this helps.
    Regards,
    Sharan

  • Good Issue - Cost Center & Activity Code

    Hi All,
    I've a problem when I creating Good Issue using SDK SAP2007, I set "Cost Center" (CostingCode) dan "Activity Code" (CostingCode2).
    When I run the code, and check the result in SBO2007 Good Issue, the "Cost Center" (CostingCode) dan "Activity Code" (CostingCode2) was in the "DistrRule" column not in the "Cost Center code" and "activity code" column, is this normal ? how to insert both data into the right column ?
    This is my code:
       Public Function uf_SAP_GoodIssue(ByVal dtTable As DataTable, ByVal p_cardCode As String, ByVal p_Date As Date, ByVal p_priceList As Integer) As String
            Dim lngErr As Long
            Dim strMsg As String = ""
            Dim sboStockOut As SAPbobsCOM.Documents
            sboStockOut = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInventoryGenExit)
            sboStockOut.DocDueDate = CDate(p_Date)
            sboStockOut.DocDate = CDate(p_Date)
            sboStockOut.PaymentGroupCode = Trim(p_priceList)
            sboStockOut.CardCode = Trim(p_cardCode)
            Dim i As Integer
            For i = 0 To dtTable.Rows.Count - 1
                If i <> 0 Then
                    sboStockOut.Lines.Add()
                End If
                sboStockOut.Lines.AccountCode = Trim(dtTable.Rows(i)("AccountCode"))
                sboStockOut.Lines.CostingCode = Trim(dtTable.Rows(i)("CostCenter"))
                sboStockOut.Lines.CostingCode2 = Trim(dtTable.Rows(i)("ActivityCode"))
                'sboStockOut.Lines.CostingCode3 = Trim(dtTable.Rows(i)("PersonnelNo"))
                'sboStockOut.Lines. = Trim(dtTable.Rows(i)("ActivityCode"))
                sboStockOut.Lines.ItemCode = Trim(dtTable.Rows(i)("ItemCode"))
                sboStockOut.Lines.Quantity = CDbl(dtTable.Rows(i)("qty"))
                'sboStockOut.Lines.Price = 500
                sboStockOut.Lines.WarehouseCode = Trim(dtTable.Rows(i)("WarehouseCode"))
            Next
            lngErr = sboStockOut.Add
            If lngErr <> 0 Then
                Call oCompany.GetLastError(lngErr, strMsg)
                Return "Found error:" + Str(lngErr) + "," + strMsg
                'Return "Failed to issue Stock." & lngErr
            Else
                Return "" '"Stock Issued"
            End If
            Call oCompany.GetLastError(lngErr, strMsg)
            If lngErr <> 0 Then
                Return "Found error:" + Str(lngErr) + "," + strMsg
            End If
            Return ""
        End Function
    Thx Before
    Herfin Jodana

    Hi Suraj,
    Please check table COBK / COSP (with business transactions RKP1 and RKP2). Hope this may help you.
    Best regards,
    Dhananjai

  • Why MKPF-Doc Type showing as Goods Issue, when I did GR via MB1C tx , ?

    Hi Experts,
    Via MB1C tx, am posting the Goods Receipt (with out PO type) & MBLNR_1 is creating in MKPF.
    But, when I saw the Doc type in MKPF for this MBLNR_1, it showing the doc type as Goods Issue type???
    pls. clarify me, Why SAP showing it as Goods Issue?
    pls. let me clarify scenario? How SAP processing them?
    thanq.

    Hi Srikhar,
    Since the default document type is maintained in the IMG is WA which is for goods issue . it will reflect as goods issue only.
    if u dont want this to happen then Go to the tcode OMBA and select good receipt document type ,
    Against the toced MB1C,change the documet type as "WE"which is goods receipts.
    hope it wud have answered ur question
    Reward if useful
    Shawn

  • How to Handle Returns of Vendor Consigned Stock Issued via Delivery ?

    Hi.
    I am currently able to issue Vendor Consigned Stock via Delivery. I use Lean Warehouse Management, and I have implemented Stock Determination Rule to take Vendor Consigned Stock and Unrestricted own stock in account during Issue. I am even able to insert the correct Vendor Number during the confirmation of the Transfer Order. When I generate the Goods Issue of the Delivery Order, I get an accounting document that affects both the Account Payable Liability and a Consumption Account.
    Now My Question is this :
    How do I handle Customer Complaints that lead to a Return of the Goods, back into Vendor Consigned Stock ? The goods that is returned, needs to be taken back into Vendor-Consigned Status, and a appropriate Accounting Document needs to be generated to reverse out the Acct Payable Liability and Consumption Account entries.
    Do I use a Returns 'RE' Sales Order to bring back the Stock ? I need to be able to create a Return Delivery that will immediately post the returned Stock back into Vendor Consigned Status. So where and how can I key in the vendor number in the Return delivery, keeping in mind Return Delivery in Standard SAP does not use Warehouse Management ?
    regards
    Peo

    Hi Edmund
    I think you can try the following:
    1. Define a new schedule line category - here you can define the movement type and the item category (as given in a Purchase Info Record). - Transaction VOV6
    2. Define a new sales order type for returns. - Transaction VOV8
    3. Define a new item category for the returns document, - you can mention the special stock type here too
    4. Carry out the sales order to item category and item category to schedule line category assignments.
    I am not sure if the system will prompt you to provide the vendor number or how does it populate the vendor no. while posting the material doc. However you can try this out and check if this solves your issue.
    Reward points if you find this helpful

  • How to Close PO relate Inbound Deliveries w/o posting goods issue?

    Hello,
    Recently someone helped me in trying to find the status in the ABAP Dictionary of an Inbound Delivery. So thanks!
    I have another question, is there a way to close the Inbound Delivery without posting to goods issue or while its still open in the document flow.
    I want to ask because the business requirment needs to clsoe these Inbound Delivery Documents for archiving purposes and in SAP they are never closed since the Material Document is created (via MB01) w/o SAP referncing it to the Delivery Document.
    I was thinking maybe I can tag a field somewhere or use a BAPI/FM to do this.
    I hope to hear from you soon.
    Thank you and good day.

    You might want to define what exactly do you mean by "close".
    As far as I understand, if there has been no goods movement ("goods issue" is for the outbound deliveries, inbound deliveries create "goods receipt", just FYI) or TOs created against a delivery, it can be simply permanently deleted from the database. The corresponding purchase order would then have to be also deleted or somehow rejected (not sure if there is something similar to the SD "rejection reason" in PTP). As an alternative, the PO quantity could probably be changed to 0.
    Also it might be an option to change both the received and delivery quantity to 0 and then do "post goods receipt". This should not create any goods movement, but will most likely set the delivery status to 'complete".
    Unfortunately, I don't have a system with the deliveries right now to verify these theories...

  • Delivery and Goods Issue

    Hi,
      I am new to SAP and was trying to do a Goods Issue after creating a delivery. When i click on Goods Issue from the delivery document, I get the message
    " Storage Location not defined for delivery item 000010"
    When I try to go to picking overview and manually enter the storage location, it gives me a message,
      " Error while determining ref. mov. type for WM via table 156S/601////L/X"
      Could you please advice me for the same?
    Thanks and Regards,
       Aditya

    Go to your material master and input the storage location there.
    Maybe you have WM view active in MM. The location from where you are trying to delivery is a Warehouse managed location. you post some stock to storage location, which is not warehouse managed. Or do the stock transfer to this location. Then you will be able to do the PGI.
    Thanks

  • Goods issue for plant maintenance order

    Goods issue with ref to plant maintenance order( Componenets of the order) is not possible in transaction code MIGO. Error message " MIGO is not possible for the refurbishment order".
    Goods issue for the same order can be posted with transaction MB!A.

    hi santhosh
    kindly check the order type .i think you are using MB1A for refurbishment process.but it is not possible.only maintenance order can be posted via MB1A
    follow the procedure for goods issue in refurbishment order.
    Choose Logistics ® Plant maintenance ® Maintenance processing ® Completion confirmation ® Goods movement ® Goods movement.
    The entry screen for a goods issue appears.
    Choose the pushbutton For order.
    Enter the relevant order number in the dialog box and choose Continue.
    An entry screen appears.
    Choose Copy.
    The Maintain Serial Numbers dialog box appears.
    Choose Reference document.
    Enter the order number in the Refurbishment order group box and choose Execute.
    A list appears with the planned serial numbers for the refurbishment order.
    Check the selections of serial numbers, for whose material you want to post a goods issue, and choose Copy.
    The serial numbers are copied into the Maintain Serial Numbers dialog box.
    Choose Exit window.
    The goods issue is posted.
    regards
    thyagarajan

  • Goods picking and Post goods issue in VL02N

    Dear All,
    Am hving problem in Picking goods and Post goods issue.
    This is for the Stock Transport Order with Delivery via Shipping
    Supplying plant is 1000(SAP std,sloc 0001) and Receiving plant 1100(sloc 0001).
    Sales org:1000
    Distrbn Chnnl:10
    Division:00
    1.maintained matrial for both the plants.
    2.Creted STO by using DOC type as "UB" and item cat "U".
    3.And getting the Shipping data for the material in the STO.as shipping point is 1000.
    saved the Po.
    4.After that i done the GR w/o PO for the material using Mvt type 501.
    5.Then,VL10B creating Delivery doc.n this is also created.
    6.but when i do the picking and PGI in VL02N there picking field is greyed out bt i have tried to mangae that when i give the picking Qty in the picking qty field system is throwing the following error.
    <b>Item to be picked by WM (picking quantity cannot be entered)
    Message no. VL118
    Diagnosis
    For this item, picking is carried out using warehouse management transfer orders since the material is stored in a warehouse with random storage.
    System Response
    The system does not allow you to enter a picking quantity manually. The picking quantity is copied automatically into the delivery during the creation of the corresponding transfer order.</b>
    is any data missed by me while doing this process?
    pls let me know n help me in this regrds
    Thank you all

    Hi Vijay
    By changing storage location you could do b'coz the new storage location is not maintained with warehouse, hence no need to perform warehouse transactions (TO creation and confirmation) before inventory mgmt transactions (PGI).
    For trying pick up with WH, first u should have enough stocks in approppriate storage bins and u should perform pick up by creation of TO and confirmation.
    warm regards
    sairam akundi

Maybe you are looking for