How to add issue for production using SDK?

1. Here i am creating a production order
2 .after release of production order
3. i wants to "issue component" for production order using SDK
Please provide solution
Thanks
Vijay T
Edited by: Vinay Kulkarni on Jun 23, 2009 7:57 AM

HI,
Issue for Production is an Inventory Exit document (BoObjectTypes.oInventoryGenExit) where the base type is Production Order
Set the following on Invenroy Exit:
oPoExit.Lines.BaseType = 202; // production
oPoExit.Lines.BaseEntry = AbsEntry;
oPoExit.Lines.BaseLine = LineNumber;
Where AbsEntry is the Production order DocEntry field
LineNumber is the line number of Production order.
Regards,
J.

Similar Messages

  • DTW--  How to Import  Issue for Production

    Hi ,
             How do i import Issue for Production Through DTW.
    Thanks & Regards
    somi mishra

    hello,
    why do you want to use DTW to issue for production ? You could use backflush as issue method so that you can skip issue for production job. If you have issue for production batch job which it means you want to add all the qty of RM issued to production one times and all at onces for more than 10 PO, I think it is better to use addon. You create an excel template and export the data to be txt file, the txt file imported to the issue for production form using the addon. I just compare this situation with the client request in long time ago. they request fast and not manual sales order creation from quotation. just to compare it to your situation but need your detail explanation.
    Rgds,

  • How to show returned components on Issue for Production on a query.

    Hi Guru's,
         Is there a way to show the items that have been returned (Return Components) on Issue for Production using a query?
    Thanks and Regards,
    Christian

    Hi,
    1. Create row level UDF for issue from production order.
    2. Assign below FMS to this UDF and set it auto refresh based on quantity.
    SELECT T0.[Quantity] FROM IGN1 T0 WHERE T0.[BaseRef]  = $[$13.61.number] and  T0.[ItemCode]  = $[$13.1.0]
    Thanks & Regards,
    Nagarajan

  • Issue for Production-Production order button is hidden

    Hi,
    I am trying to place one extra button in issue for production through SDK
    When i am running the code the system shows the button which i have created but at the same time it hides 'Production order' and 'Disassembly order' button which are default in SAP B1 issue for production screen
    I am using 8.8 version PL 12
    Kindly help
    Thanks
    Md.nazeer Shaikh

    Hi,
    Try this one,
    If pVal.Before_Action = True Then
                If pVal.FormTypeEx = "65213" Then
                    oForm = objSBOAPI.GetForm(pVal.FormTypeEx, pVal.FormTypeCount)
                    Select Case pVal.EventType
                        Case SAPbouiCOM.BoEventTypes.et_FORM_LOAD
                            Dim newItem, newItem1 As SAPbouiCOM.Item
                            Dim OButton As SAPbouiCOM.Button
                            newItem1 = oForm.Items.Item("71")
                            newItem = oForm.Items.Add("Newbutton", SAPbouiCOM.BoFormItemTypes.it_BUTTON)
                            Dim sss As Double = oForm.Items.Item("70").Left
                            Dim sss1 As Double = oForm.Items.Item("71").Left
                            newItem.Height = newItem1.Height '19
                            newItem.Left = newItem1.Left - 109 '360
                            newItem.Width = newItem1.Width '100
                            newItem.Top = newItem1.Top '497
                            OButton = newItem.Specific
                            OButton.Caption = "XXXXXXXXXXXXX"
                            objPRForm.Items.Item("70").Left = 1200
                            objPRForm.Items.Item("Newbutton").Enabled = False
                    End Select
                End If
            End If
    Regards,
    Siva

  • Error while doing Good Issue for Production Order using BAPI

    Hi All,
    I am facing an error like 'u2018Content of order 1011907: MDT218AJ10 transferred to interface (IMSEG): T-86410-71".
    I have written the code as below. Please let me know what is missing when using the BAPI 'BAPI_GOODSMVT_CREATE'. What is the cause of this error ?
    *Action in Transaction (GM_CODE)
    *GM Code for Goods Issue for Production Order is 03
      gs_gmcode-gm_code = '03'.
    *Header Data
    *Posting date
      gs_header-pstng_date = sy-datum.
    *Document date
      gs_header-doc_date   = sy-datum.
    *Item Data
    *Material
      gs_item-material  = zptp_s_rf_migo_261-matnr1.
    *Movement Type
      gs_item-move_type = '261'.
    *Movement Indicator
      gs_item-mvt_ind   = 'F'.
    *Stock Type
      gs_item-stck_type = 'F'.
    *Plant
      gs_item-plant     = gv_plant.
    *Storage Location
      gs_item-stge_loc  = gv_str_loc.
    *Quantity
      gs_item-entry_qnt = zptp_s_rf_migo_261-menge2.
    *Unit
      gs_item-entry_uom = gv_uom.
    *ISO code for unit of measurement
      gs_item-entry_uom_iso = gv_uom.
    *Order Number
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          input  = zptp_s_rf_migo_261-aufnr
        IMPORTING
          output = gs_item-orderid.
    *Reservation Number
      gs_item-reserv_no = gv_resv_num.
    *Reservation Item
      gs_item-res_item = gv_resv_itm.
    *Reservation Type
      gs_item-res_type = gv_resv_type.
      APPEND gs_item TO gt_item.
    Calling BAPI_GOODSMVT_CREATE to create the Material Document Number
      CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
        EXPORTING
          goodsmvt_header       = gs_header
          goodsmvt_code         = gs_gmcode
        IMPORTING
          goodsmvt_headret      = gs_headret
        TABLES
          goodsmvt_item         = gt_item
          goodsmvt_serialnumber = gt_serial
          return                = gt_return.
    Thanks in Advance.

    hi,
    did you look at message ?
    System says, there are differences between the interface data and the order data. It can be anything. I think you should check
    data in the interface . 
    this is the long explanation of your message :
    Diagnosis
    When calling the function module MB_CREATE_GOODS_MOVEMENT or the BAPI GoodsMovement.CreateFromData (BAPI_GOODSMVT_CREATE) to post a goods receipt for a production order, there are differences between the interface data and the order data.
    Example: The order was created for plant 0001, but plant 0002 is passed on in the interface.
    The system checks this for the material and the order item.
    System response
    Due to this difference, the system cannot post the goods receipt.
    Procedure
    Check the data in the interface (IMSEG-WERKS, IMSEG-AUFNR). If necessary, correct the plant or the order number in the interface.
    << Moderator message - Point begging removed >>
    Edited by: Rob Burbank on Feb 6, 2012 11:24 AM

  • How to add new line item using BAPI BAPI_CONTRACT_CHANGE for contract-ME32K

    HI Experts,
    how to add new line item using BAPI: BAPI_CONTRACT_CHANGE for existing contract.
    Requirement:
    Already the contract having two line items using ME31K.
    Custom program has to add new line items in existing contract.
    Thanks,
    Sendil

    I got the solution:
    We can do like this:
    1. Get all details using details, BAPI_CONTRACT_GETDETAIL.
    2. After getting results, append new line item. Then use your BAPI.
    Check this posting program.. where this bapi is used, use the same coding technique.
    IDOC_INPUT_PURCONTRACT_CHANGE

  • How do you remove this: META NAME="ColdFusionMXEdition" CONTENT="ColdFusion   DevNet Edition - Not for Production Use."

    Hi,
    How do you remove this: <META NAME="ColdFusionMXEdition"
    CONTENT="ColdFusion DevNet Edition - Not for Production
    Use."> since it
    automatically generates in my code when i run the application
    and it
    generates an error in the page.

    Deinstall the devnet version, and install the proper version.
    Adam

  • Buying in Kg and issue for production in Litres

    Hi All,
    One of my client is having a requirement where they buy raw material in KG and issue for production in Litres.  Based on density of the material when issues in litres the same should be converted into Kilograms automatically and deduct it from Instock. 
    How can we map this scenario?
    thanks
    SV Reddy

    HI SV,
    Even though you have closed this thread, let me offer some of my experiances in the Base Oil industries.
    They had the same requirements as you except that when they received Base Oil from their supplier, its in Litres and when they issue to Production (as a component) its in KG for the the "Filler" to use a scale to measure how much he is putting into the tank.  Another diff is that each "Batch" of Base Oil has its own charrecteristics and the density and viscosity is never exactly the same.
    We solved this with
    - keeping the Inventory Unit of measure as LTs, what they use in when Purchasing ps: the finished product is always in Litres. ie: Kgs in -> Lts out.
    - Each bathc of the item recieved has a factor based on a chart and formulars that gives the "Unit Ratio" for the KG : LT
    - So when they buy in LT, in the Purchase Order, its straight forward. BUT, when they issue to production, the Production order calculates the Weight of what is required and prints it on the Production order Sheet.  This way the production guy does not have to go through the calculations manually all the time. The Production Order takes the Litre Base Qty and checks against the selected "Batch"'s "Unit Ratio" and does the calculation and stores it on that items line in the Prod Ord.
    This has been working for them and we have modified it to suite other items that have other Production Charrecteristics Requirements.
    A bit complex but im sure the concept applies to alot of Liquid Manufacturing Industires.
    Regards.
    P.S: this was all achieved with and an Add-On Development
    Edited by: Noor MC Jooma on Jun 8, 2009 5:25 PM

  • Issue for Production

    We are getting the following error when we use the "Issue for Production" form
    "StoreDocData: 0 : The Loged on User does not have permission to use the object"
    Is there an authorization I have missed?
    Thanks,
    Rob

    Hi,
    Please check if you are using any add-on and the user has relevant permission.
    Also please check the code if any, given in SP_Transaction Notificication.
    Regards
    VIkas
    SAP Business One Forums Team.

  • Updating materials issued for  production thru movement type

    hi
    we are using repetitive manufacturing scenario, and we are using back flush,  how to find out the materials issued for production thru movement types, from which tables can i get the data
    from AUFK  i am getting the movement types and the order number, and i am unable to find out material numbers.
    the requirement is need to update the costs of the materials based on the movement types for the production

    Hi
    I dont know if this question falls under the category of "Asking basic questions"
    You can use MB51 to get the desired info.. It will give you the Material Consumed +  mvt type (261) and Order where the Material is consumed
    br, Ajay M

  • Issue for production via SAP Business Objects

    Hi all,
    I would like to create Issue for production from SAP Business Object. I am using C#.net. I did not find it in DIAPI
    Is there any way ????
    Issue is urgent
    Thanks in advance

    Hello Manish,
    IT worked for me, you can try it.
    SAPbobsCOM.Documents ldoc_RecHdr = (SAPbobsCOM.Documents)oCompany.GetBusinessObject(BoObjectTypes.oInventoryGenExit);
                   ldoc_RecHdr.DocDate = Convert.ToDateTime(DTPPostingDate.Value);
                    ldoc_RecHdr.Reference2 = txtRefNo.Text;
                    ldoc_RecHdr.Comments = richtxtRemark.Text;
                    ldoc_RecHdr.DocType = SAPbobsCOM.BoDocumentTypes.dDocument_Items;
                    for (int i = 0; i < DataGrid.RowCount; i++)
                        ldoc_RecHdr.Lines.BaseEntry = Convert.ToInt32(DataGrid.Rows[i].Cells[0].Value);
                        ldoc_RecHdr.Lines.BaseType = Convert.ToInt32("202");
                        ldoc_RecHdr.Lines.BaseLine = i;
                        ldoc_RecHdr.Lines.Quantity = Convert.ToDouble(DataGrid.Rows[i].Cells[3].Value);
                        ldoc_RecHdr.Lines.WarehouseCode = DataGrid.Rows[i].Cells[5].Value.ToString();
                        ldoc_RecHdr.Lines.Add();
                    if (ldoc_RecHdr.Add() != 0)
                        string error = oCompany.GetLastErrorDescription();
                        MessageBox.Show(error.ToString());
                    else
                        MessageBox.Show("Record Inserted Successfully!");

  • Problem Posting Receipt From Production and Issue for Production

    Hi Everyone,
    I am posting Receipt from Production and Issue for Production through DIAPI in SAP Business One 2007A SP00 PL03.
    I am using following lines of code
    oDocument.Lines.SetCurrentLine(0);
    oDocument.Lines.BaseEntry = int.Parse(BaseEntry);
    oDocument.Lines.Quantity = double.Parse(Quantity);
    lRetCode = oDocument.Add();
    The Document adds perfectly but when I open the document in SAP Business One i am not able to see the Order Number at Line level on which this document was Based.
    I identified the problem being Order Number Column being binded to BaseRef field hence form is not able to Show the Order Number and we cannot set BaseRef via DIAPI since the property to set that field is not exposed.
    I donot want to update the table through a Recordset Update Query. I would appreciate if the property to set that field is exposed by SAP or any other workaround can be put forward by anyone who has faced the same problem.
    Thanks
    Kapil

    Do you need to set
    oDocument.Lines.BaseType = 17 (if this is sales order)
    and then baseentry = baseentry....etc
    If you bind the base entry correctly it should alwasy shows the base document on both database as well as front end. I have never had any problem with this
    Sincerely

  • To restrict Issue for production than planned qty in production order

    Hi Experts,
    In my scenario, the production staff will prepare production order and right click in production order document and select "Issue Components" option to Issue raw materials for production floor. After issuing the raw materials to production floor closes the "Issue for Production" document and now we have "Production Order" document open in screen. When he again select "Issue Components" option and issues the raw materials once again. Materials are issued once again wrongly. This happens since the production order document is not getting refresh after "Issue for Production" document is done.
    Is there any way to restrict issue of raw materials than the planned qty.?
    I have tried lot of ways to restrict this through SP. Please revert me an solution to this issue.
    The procedure should trigger immediately when the "Issue Components" option is selected second time (If the raw materials are issued in full in first time itself). And it should allow only the qty which is to issued to production order qty (if they issue part issue to production order)
    Thanks in advance
    Raja.S

    Hi Neetu,
    Thanks for your quick response. I have tried this query. But it is not blocking the issue for production document even the raw materials are issued already for the production order.
    I'll explain my work flow again. The Production staff will prepare production order and then release the same and update the production order after changing  the status for "Release". Then he will right click the Mouse button and select "Issue Components" option and perform the Issue for Production process. He will issue the required raw material completely in one shot and add the Issue for Production document.
    After adding the Issue for Production document he will close that document and now we will be in Production order document. Now our production order document will not get refreshed. Now the Production staff go for "Issue components" option, then it should not allow him to issue the components once again. But it is allowing him to issue components any number of times. there is no control.
    If we browse the production order document to previous record and browse back to the same record then my Production order document get refreshed and now we can control the issue. But what should i do to control in the earlier case. Since they want to perfrom lot of production order, there is a chance to issue components for same production order more than one time before the production order document get refreshed.
    Please provide me the SP to control this scenario.
    Thanks in advance.
    Raja.S

  • Error while adding  the issue for production (item cost not found)

    Hi all,
    The scenario is,
    when the user is trying to add the issue for production system is showing error item cost not
    found.The item which is issued is Inventory + purchase item with manual issue method.The valuation
    method for that item is FIFO.since the valuation method is FIFO,error related to item cost should
    not occur.
    Since the valuation method is FIFO.Item cost error should not occur.
    The error related to item cost must not occur at the time of issue for production.
    Regards-
    Mona.

    Hi!
    Please check these threads
    Sales Delivery Document
    Item Cost Error
    No item cost was found

  • How to add rows in tableview using javascipt

    Hi
    I had tableview and button in my page.If i click on the button one new row should be appended to the existing tableview.
    so , how to add rows in tableview using javascipt which are editable?
    Regards,
    Pydi.

    Hi,
      Javascript is client scripting language, which is mainly used for validations at the client side.
      To add new row using a HTMLB tag ucannot use javascript. Instead pass "visibleRowCount" variable to a abap variable and add the variable on every button click.. that wil increase the visible row count.
    Also the size of the table view is the size of the itnernal table, so append a blank like to the internal table or insert it at the top.
    If you are not using HTMLB tags and using simple HTML tags u can always add a row using java script.
    Regards
    Imran.

Maybe you are looking for

  • Open iView in new window with no IE nav

    Using EP6 SP2: From the third level navigation, I need to open an iView in a new window.  The trick is that I need the new window to not have the standard IE navigation buttons.  Basically, window.open("http://my.url.com","toolbar=no"). I cannot figu

  • Nokia 6680 Camera quality (or lack of) - non focus...

    hi, have just got a 6680 and whilst it seems and appears to be an all-singing-and-dancing phone, seems to have a couple of issue. 1/ using the main camera, anything past x1 magnification is blurred. Have tried cleaning lens, altering contrast etc. et

  • What steps are required to configure the Payroll Tax ( USA)?

    Hi All, Please answer What steps are required to configure the Payroll Tax ( USA)?. Thanks in Advance Thank you, GKReddy.K

  • Compiling a SOAP module for PHP5 in Leopard

    Hi. I thought I'd try to compile a SOAP module for the stock PHP installation in MacOSX Leopard. I snagged the php-5.2.5 sources from php.net, and used the compile arguments found in the "php -i" command. I only added "--with soap=shared --enable-sha

  • Custom shape library

    Hi all, is there a way to have the custom shapes library always open on a panel, like the brush preset panel? I am using them a lot and I don't understand why I still have to right click to select an other shape, and I cannot  have it on a panel like