Skip to Content
author's profile photo Former Member
Former Member

Issue Items to Production Order

The solution that I am starting soon needs to have Items issued to a Production order through the DI, however there is no Production order object available currently.

Can anyone suggest how I might achieve this functionality whilst avoiding updating tables directly?

Thanks,

Daniel Archer

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    Posted on Jul 28, 2005 at 07:30 AM

    unfortunately you are right,

    there is no Production Order object available currently.

    I contacted SAP in this regard and they said the object will ibe available in SBO 2005A SP1.

    To my knowledge there is no way to update the values without the object - and it is against SAP's policy to update tables direcly - I suggest you log a note (or let your service centre log a note) to inform SAP about your predicament and ask them on assistance for the way forward...

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 28, 2005 at 07:39 AM

    Daniel

    We have modified the way we use the production order. It can be done only using FMS, but weve also used the UI part of the SDK to make it more user friendly. At the same time we also identify the planned price and actual produced price for controlling purposes.

    We handle all of the calculation of the GI quantity in the production order itself (so we can use backflush), whats important to know is that the bom qty in the production order needs to be updated to get the GI correct posting. GR is calculated based on the planned qty. The other reason for doing it here is that you get a correct product valuation if you are using MAvg prrice.

    The other good news is definately available in 2005, and is in testing for a 2004 patch release.

    Dave

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      With a little help from SAP Support and a lot of trial and error, here's the solution:

      oGoodsIssue = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInventoryGenExit)
      
                  oGoodsIssue.DocDate = Now
      
                  oGoodsIssue.Lines.BaseEntry = OrderID
                  oGoodsIssue.Lines.BaseLine = 0
                  oGoodsIssue.Lines.Quantity = 1
                 
                  oGoodsIssue.Lines.Add()
      
                  lRetCode = oGoodsIssue.Add
      
                  If lRetCode <> 0 Then
                      oCompany.GetLastError(lErrCode, sErrMsg)
                      MsgBox("Error In AddLabor" & Chr(10) & sErrMsg, MsgBoxStyle.Exclamation, "Error Found")
      
      
                  Else
                      MsgBox("The document was added successfully", MsgBoxStyle.Information, "Data Posted")
                  End If
      

  • author's profile photo Former Member
    Former Member
    Posted on Aug 02, 2005 at 03:42 PM

    Hi,

    I m writing a c# application to print label for pallet. I take open production order from SAP BO 2004( sql query). When I print the Label , I would ISSUE ITEMS TO PRODUCTION ORDER.

    It's the first time that i use this SDK.

    I think that the issue is the same of Daniel...

    How I could do that?

    thx Marco Rullo

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 03, 2005 at 12:42 PM

    Hi,

    I have BO 2004 and I have tried to Add an InventoryGenEntry from a ProductionOrder but don't work.

    I have used ur code and change the basetype to 202 or the enumerator WorkOrder. I never see the doc_lines with the itemcode and qty filled?! How I could modify the quantity entry ?

    thx

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.