Simulation of Creating Goods Issue

Hello to all,
we are using function module WS_DELIVERY_UPDATE to create a goods issue with reference to outbound delivery.
In the dialogue I would like to simulate the creation of goods issue?
Is there any possibility to simulate the process using function module WS_DELIVERY_UPDATE?
Thanks & best regards,
Kurt.

Hi,
I suggest to use the BAPI BAPI_GOODSMVT_CREATE for this. Go through the FM documentation to know how to use this BAPI. SCN also has lot of sample codes. You can search for this.
Thanks,
Vinod.

Similar Messages

  • BAPI For Create Goods Issue for Sales order with picked quantity

    Hi friends,
            Is there any BAPI available to create Goods issue For sales order with picked quantity...............?
    we hv used BAPI_OUTB_DELIVERY_CREATE_SLS
    with sales order .......its creating delivery order but not doing goods issue with piked quantity........

    pls,reply its argent

  • Check a UDF of batch number when I create Goods Issue or Delivery

    Hello,
    I manage my items with batch number and I want to block the creation of all  Goods Issue or Delivery in function of the value of a UDF (created the OIBT table).
    I think I can achieve this by using the stored procedure SBO_SP_TransactionNotification, but I never used it and I don't know if (and how) I can retrieve the selected batchnumbers of my documents.
    Is it possible to do so, or do you have any better suggestions???
    Thank You,
    Xavier.

    Hi Xavier,
    You can find some additional information about the SBO_SP_TransactionNotification stored procedure here:
    [https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e991e2b9-0901-0010-0395-ef5268b00aaf]
    The stored procedure only returns the following;
    - Object type
    - Transaction type
    - Num_of_cols_key (number of columns in the primary key of the object)
    - List_of_key_cols_tab_del (the list of the columns in the primary key)
    - List_of_cols_val_tab_del (the values of these columns)
    So the stored procedure doesn't directly return the information you want. You would have to link this with a DI application to access the document in question using the value of the primary key returned by the stored procedure. (Or through using an SQL query also using the primary key returned by the SP).
    Please note however, that SBO_SP_TransactionNotification is designed for notification purposes only. SAP can only support any issues arising out of use as a notification mechanism; the use of this stored procedure to block transactions or work as an authentication step are not supported. Please see SAP note 1011154 for more information.
    Regards,
    Niall

  • 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

  • Goods Issue with reference to Material document

    Hello,
    I would like to create Goods Issue with reference to material document (Transfer Posting document) , but the following message appears :
    "Selected material document does not correspond with action to be executed".
    Is it possible to create Goods Issue with reference to Transfer Posting (mov.type 311 - from stor.loc. to stor.loc.)  ?
    Thanks

    Thanks,
    probably I'll have to find another way to solve this business requirement of copying the transfer document data in GI.
    We have an auto created transfer postings via interface from another system and the main idea was to use already entered fields in transfer posting document such as material , quantity , text , goods recepient , etc. and not to enter them twice when GI should be created. In our case (it's a case for certain materials) it's always 1:1 relationship, so the idea was to facilitate the job of creating the GI, because GI should contain the same data as in transfer posting document.

  • How to block release item in Goods Issue if the stock is 0

    Dear All,
    I have an item that is placed in 2 warehouses.
    For example in Warehouse 1 there are stock as much as 5
    And there is No stock at all in Warehouse 2.
    But when I create Goods Issue, SAP didn't block me to release the item from Warehouse 2 even though the stock is 0 so the inventory becomes negative. Beside that, there is also no warning about that.
    Please let me know if there is setting I missed to block that process.
    Thanks in advance.
    Regards,
    Lina Yuanita

    Dear Lina,
    Just add Michael, Lina Should tick manage inventory by Warehouse in Item master Data Tab Inventory.
    HTH,
    Yun Pho

  • 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

  • Authoriztion for Goods Issue/Goods Reciept documents

    Hi..
    I want to authorize the two users who create goods issue/goods reciepts. Each of them should acces only his goods issue/goods reciepts documents
    I haver not found Goods issue/Goods reciept document on "Data Ownership Exceptions" window and checked  "enabler ownership filteration"  as well.
    please let me know how to achieve this..
    Regards
    Akriti

    Data Ownership would only apply to marketing documents.  However, Goods Issue/Goods Receipt documents are not parts of marketing documents.  Therefore, this function is not yet available.  You may use SDK, SP or add-on to achieve your goal.  Or post a DRQ here:
    /community [original link is broken]
    Thanks,
    Gordon

  • Related to Reservation and Goods Issue

    Hi SAP Gurus,
    Reservation Created for Materials A,B,C on 16th of Augest and Stock was not available on that day.
    Goods came on after 20th Aug and I am creating Goods Issue for A,B,C and For A i can create Goods Issue against that reservation and for B,C the system throughing an error that Stock not available on 15.02.2009.
    Please suggest me immediately,
    Thanks

    Hi,
    Go to co06 & check for mtl B & C if the stock is pegged for other requirements. It could be the reason system is prompting so. Also just check if the stock is in unrestricted or in QI stock.
    Check & revert if it does not resolve the issue.
    If helpful award points
    Regards,
    Vivek

  • Good Issue to Account Receivable

    Dear Expert,
    My client has requirement to create good issue with output accounting document as below:
    Dr Account Receivable
    Cr Material
    Do you have any idea, if this requirement can be accommodated in MM via automatic posting?
    Is there any movement type that can be used to accommodate this requirement?
    If it's not, do you have any idea to perform this transaction?
    FYI, current accounting document for good issue is:
    Dr Expense
    Cr Material
    Thank you in advance for your assistance.

    Hi,
    The accounting document of goods issue will have:
    debit   GBB
    credit  BSX
    And the posting key is determined by the value string for certain movement type, so it's not changeable for automatic posting.
    Thanks and regards,
    Polly

  • Automatic Goods Issue of Delivery

    Hi Gurus,
    Good day. Please kindly help me to find the configuration to have the Delivery Docs automatically create Goods Issue Docs.
    Thank you in advance!
    Regards,
    Rellie

    I guess we can set up a job which will PGI the delivery automatically.
    Regards,
    Prashant

  • 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

  • The server threw exception error - Goods Issue Object

    Hi All,
    The server threw exception error while creating Goods issue through object oInverntoryGenEntry. It was working fine in 2005 B. This error showing after upgradation 2005 B to 2007B.Now i am using 2007B PL8
    Warm Regards,
    Mahendra

    Dear Mahendrakumar,
    You need to use oInventoryGenExit for Goods Issue but not oInverntoryGenEntry.
    Best Regards
    Jane Jing
    SAP Business One Forums team

  • Work Order Issue - Error Creating Goods Delivery,Goods Issue or GRPO

    We use SAP Business One 2007 A PL:08. We have an add-on for the work orders and While putting the work order from released to completion, a user is getting an error message that says:
    "Error Creating Delivery,Goods Issue or Goods receipt PO- Error Issuing Delivery Note -Item no. is missing [DLN1.Itemcode][Line:3]"
    I do not see any item missing in the work order and all the posting periods are open. I have checked all possible settings!!
    Any idea what this could be?
    Thanks

    Hi,
    Is it your add-on or a 3rd party add-on?
    Thanks,
    Gordon

  • In the second leg STO GR and IR created withought doing Goods issue

    Hi Guru's
    Please can any one tell us user is created second leg STO withought doing good issue and Intercompany invoice, but he has been done GR and IR it is causing problem in MR11 report still outstanding.
    i asked user to do GR cancelation or reversal, it is not possible because stocks released to QA. and GR and IR created with ref to PO

    Hi,
    We can not cancel GRN once it is released form QA or UD is made.

Maybe you are looking for

  • Getting WMV and MVI files to itunes.And ipod

    I recently filmed a video of a family event. And wanted to transfer the video to Itunes. The original file extension was mvi. but i also changed the file to wmv. But, itunes would not allow me to import or click and drag into my library. Any Help?

  • Possible to disable crtl+alt+del button on HP Slate 500?

    Hello I was wondering if it is even possible to disable the crtl+alt+del button on HP Slate 500? As my company has me reviewing the unit to be possibly used within our company but one of the requirements is to be able to lock the tablet down. And one

  • Win 7 Recovery DVD in Win 8.1

    How do I create a recovery disk in Win 8.1 like I did with Win 7. Thank you. Solved! Go to Solution.

  • How can I copy SOME email folders from an old backup profile

    I have a folder created under one of my accounts named Archive. In it I had subfolders for previous years. I've discovered they are all missing! But I have a full profile backup from months ago, but these previous year folders would still have their

  • Exception when recompiling during application run (ctrl+shift+f9) in jdev 11.1.2.4

    Hello, We just moved to 11.1.2.4 and when I make a small change to a java managed bean class and press ctrl+shift+f9 (which worked on other version of 11g), I get many excpetions. This the exception from a very simple test case I created ( It has a b