Update Itemcost from the Production order.

Hi Experts,
I have created a UDF(Amount) in the Production order rows, if iam entering the amount for the input item the Amount should get updated in the Itemcost of the Itemmaster data.. How to write the update statement? Is it possible to update the Average price of the item from the Production order using a UDF?
Regards,
Magesh.

Magesh,
The Item cost of an Item is managed and calculated by SAP based on the different transactions.  You should not be updating this Cost using SQL UPDATE statements.
The times you generally change Item cost manually is when you are using Standard Cost and you want to set the Cost for the Item.  This is also possible only when there is no Quantities on Hand.
Suda

Similar Messages

  • How to know the items cost from the production order.

    Dear friends,
    When We close a production order, if we go to the summary tab we can see the total cost of the real component and cost of the real item.   My question is how to know the cost of every component used for the real product? I run the stock Audit  report, and there I see a field named Calcprice, in what table where can I find this field? to get the cost individual for each component in the moment i close the PO.
    Thanks a lot.
    Daniel

    Thanks a lot to everybody. 
    You are right Thanga,
    That is the data I need, but how can I get it via query because I dont find the field to know the cost in the exactly moment when is created the receipt of productiion.  I was trying to locate in tables IGN1 -- IGN12 but I dont get the cost field.
    Do you have any idea how can I make a report?
    Best Regards,
    Daniel

  • How to output serial number in wwi template from the production order

    Dear Experts ,
    Has Sap defined report symbol to output serial number in sap glm

    Dear S P
    there are "lots" of threads discussing this.
    GLM - Serial Number Hide
    EHS GLM how to define serial numbers out of a list
    Bar Code in SAP GLM
    New changes for GLM in EHP7.0 and ERP 6.0
    GLM - Serial Number Hide
    Sap GLM Serial NUmber printing
    Please check them
    C.B.

  • Attached Documents in the Production order

    Hello,
    My question is:
    how to setup the system to be able from the Production order to see (and have access)  to the documents attached to the BOM and/or Routing?
    Thank you in advance.
    Peter

    Hi,
    In production order if you notice you should be able to find a link for documents. In the documents page you would be able to get the documents attached in the BOM (not sure about the routing, please check).
    But do note that this is just a link & the order does not store these documents, you will have to go to DMS (CV03n) to view the document.
    In OPKP (production scheduling profile) you select the option to link the documents on release.
    Hope the above helps.
    Regards,
    Vivek

  • Deletion of components in the production order

    Dear all,
    Our client would like to delete few components issued to production orders by mistake.(these are bulk materials, transferred from legacy system).
    These materials are issued to orders already.
    The production orders are already confirmed .
    Is there any way to delete these items from the production order?.
    regards,
    Kumar.

    You can directly delete the component bulk material in  Co02 itself in the componet tab.
    Do the where used list in CS15, ANd check whether that BOM material have production order in COOIS, and go to change mode of  the order and delete the component manually.
    It is very difficult to delete the component through LSMW, reason is the line item component, for one order it may in line item 10, for  other order it may be in  line item 40.

  • GR from the work order

    Hi, we want system to control the GR qty from the production order by not exceeding +/- 10% of order qty. how to make this setting?

    Hi
    The settings for the tolerance to control during confirmation
    1) OPK4 : Set the Error message for over delivery and Under delivery situated below Checks for the order type and plant combination.
    2) In Material master work scheduling view give the % tolerance in Under delivery and over delivery
    3) We can also set the % Tolerance limits in Production order
    Regards
    Brahmaji

  • PP scenario to complete the production order without GR and No stock update

    Hi Experts,
    I have a very typical PP scenario here. Let me explain,
    I want to create a production order (CO01) add operations to it and do the confirmation. As set, the cost will get updated against the production order. This is perfect.
    Now the trick is, i actually DONT want to update the stock of the material. That is, the goods reciept should not happen. But at the same time, I need to have the count of how much is delivered in the production order.
    I was thinking of having new movement type created (that would statiscally do the goods reciept without updating the actual stock of the material). Would this suffice, or do you guys have any other way of getting the count in the production order without having the goods reciept done.
    Thanks for your early reply.
    Beatle

    Dear ,
    If you want to avoid inventory issues as well as cost issue , i think  you can bring the Confirmation -Yeild field as Delevered quianity in a Z-report  .You can also utilise COOIS-Select Confirmation -Standrad Profile -Enter Order Type and Plant Code .Here you can select the change lay out option and bring the  confirm yeild qty  field from Hidden column  to diplay colmn for all these  orders .
    You can use following tabel  for your custom report or utlise coois for the same
    1.AFRU -Confiramtion
    2.GMNGA-Yeild Confirmed
    3.LMNGA-Yeild to confirm .
    Regards
    JH

  • No condition update from the sales orders exist - VK322 Message

    Hello All,
    I have activated " Condition Index" & " Condition Update" flag for one of my discount condition type and then created it's condition record along with scales on three levels. The condition type which I mentioned above is set as " Value Scale" in Scale Basis for checking the document value and apply the applicable discount percentage.
    I have created three sales orders wherein the discount percentage is getting applied as per my condition record ( so, the document value is getting accumulated and compared with the condition record correctly )  but when I try to check the cumulative values ( ctrl +shift + F4 ) from the condition record, I get information message " VK322" mentioned in the subject.
    VK322 -
    No condition update from the sales orders exist
    Message no. VK322
    Diagnosis
    The following causes are possible:
    1. There are no sales orders for the condition record that you selected.
    2. Updating condition records in the sales order entry is not active.
    Procedure
    Concerning 1:
    Check the sales orders created for the condition record that you selected.
    Concerning 2:
    Activate the updating for condition records in the sales order entry.
    I have checked everything in SPRO for this but could not find anything which can give me a clue to resolve this problem, especially " Concerning 2" part of this message.
    My requirement > To be able to see the cumulative values from condition record.
    Also, in which table the accumulated values get stored?
    Appreciate your expert advise on this issue.
    Regards,
    Hrishi
    Edited by: Hrishikesh Bhalwankar on Sep 13, 2011 1:59 AM

    Hello Everyone,
    I would like to thank each one of you for giving valuable inputs in regard to my requirement and I would like to let you know that I am able to achieve the results as per the expectation.
    I would also like to share some key things which I did ( with the help of all your expert inputs ) due to which the requirement is met:-
    1. Activation of ' Condition Index, Condition Update' in V/06 for the discount condition type.
    2. Maintained ' B - Value Scale' in Scale Basis for the said condition type in V/06 - my requirement was to check against a value to apply the necessary scale base percentage.
    3. Activation of ' S071' info structure via OM01
    4. Condition record maintenance as per the required scales.
    4. Written a new routine to check the accumulated condition base value from S071 along with the current document condition base value.
    5. Put this routine in ' Scale Formula' in V/06.
    This is giving me the perfect results for the correct application of the discount.
    Just last question - How to re-organize the S071 info structure as I tried to re-organize it with Standard Program ' RV15F001' but it is not re-organizing this info structure... Any idea on this?
    Thanks a lot friends for all your advice...
    Regards,
    Hrishi
    Edited by: Hrishikesh Bhalwankar on Oct 11, 2011 2:11 AM

  • Modifying the production order from VBAP

    Hi Expers
    I need some modification and write a code so how to proceed with the following comments as below
    Modification to processing of Command Orders & Tickets
    Currently there is an assumption that every sales order (and its deliveries) will include a product which is made to order, i.e. for which a production order will be required.
    In ZINT_CSTPORD_ROUTINES, a check is made to identify the production order linked to the sales order. If there is no such production order (usually because of the customeru2019s credit status) then processing of the ticket is terminated.
    This assumption would fall down if an order was to be raised (in Command) on which there is no concrete material. For example, if we sold a bag of pigment or a screed to a customer. In this case the item would be sold from stock and there would be no need for a production order.
    The solution
    In the routine which checks for the existence of a production order, modify the code as follows:
    u2022     Inspect each item on the sales order
    u2022     If (and only if) there is at least one item with a category of u201CZTACu201D then check for a production order, otherwise process the order in the usual manner.
    Regards
    Piroz

    Thread closed

  • How to check the Production order exits

    Hi Experts
    Modification to processing of Command Orders & Tickets
    We require a modification to the processing being performed on sales data originating from the Command Concrete system and potentially from other systems yet to come online (e.g. Pinkenba Cement plant).
    The Sap process involved is ZINT_INBOUND_POLLING and within that, ZINT_CSTPORD_ROUTINES.
    The problem
    Currently there is an assumption that every sales order (and its deliveries) will include a product which is made to order, i.e. for which a production order will be required.
    In ZINT_CSTPORD_ROUTINES, a check is made to identify the production order linked to the sales order. If there is no such production order (usually because of the customeru2019s credit status) then processing of the ticket is terminated.
    This assumption would fall down if an order was to be raised (in Command) on which there is no concrete material. For example, if we sold a bag of pigment or a screed to a customer. In this case the item would be sold from stock and there would be no need for a production order.
    The solution
    In the routine which checks for the existence of a production order, modify the code as follows:
    Inspect each item on the sales order
    If (and only if) there is at least one item with a category of u201CZTACu201D then check for a production order, otherwise process the order in the usual manner.
    ----  ZINT_CSTPORD_ROUTINES -
    *&      Form  process_inbound_data
          Create prod. orders from ticket data extracted from the COMMAND
          system. Note that large portions of the code in this routine
          have been copied from the retired ZPPU_COMMAND_PRODUCTION
          interface program. This was done (1) because the old code works
          and (2) to save development time.
         -->T_ZINT_IDATA  Internal table of interface data
         -->T_ZINT_PARAM  Internal table of interface parameters
         -->T_ZINT_MSLOG  Internal table of messages
         -->P_ZINT_ID     Interface ID
         -->P_ZINT_TY     Inteface type
         -->P_ZINT_IS     IDOC group for interface
         -->P_ZINT_DL     Flag: delete IDOC group when complete
         -->P_ZINT_AL     Flag: run in standalone mode
         -->P_ZINT_NW     Flag: do not log warning messages
         -->P_ZINT_SQ     Interface sequence number
         <--P_ZINT_RC     Return code (<>0=>error)
    form process_inbound_data  tables   t_zint_idata structure zint_idata
                                        t_zint_param structure zint_param
                                        t_zint_mslog structure zint_mslog
                               using    p_zint_id    type      zint_id
                                        p_zint_ty    type      zint_ty
                                        p_zint_is    type      zint_is
                                        p_zint_dl    type      zint_dl
                                        p_zint_al    type      zint_al
                                        p_zint_nw    type      zint_nw
                                        p_zint_sq    type      zint_sq
                               changing p_zint_rc    type      zint_rc.
    program is continuing .............
    I WANT TO WRITE A CODING HERE **********************
    CHECK IF PRODUCTION ORDER REQUIRED
              IF NOT THEN GO TO PERFORM UPDATE DATA
      if production order required then check
                    for each item on sales order item list
                          with item category = 'ZTAC' then
                                     return true
                                next
                                  end function
        if there is no production code
               these has to be check from VBAP TABLE field VBELN and PSTYV (ZTAC,ZTAN Etc)
      select * from Vbap WHERE VBELN = '00000269951' and VBAP.PSTYV = 'ZTAC','ZTAN' Etc
    No production order?
        elseif lva_prodord is initial.
          clear v_messg.
          call function 'CONVERSION_EXIT_ALPHA_OUTPUT'
            exporting
              input  = lva_filemat
            importing
              output = lva_filemat.
        No production order found - log a warning message.
          concatenate 'Production Order not be found for'
                      'Command order' lva_cmdord
                      'Material'      lva_filemat
                      'Customer'      lwa_02-customer
            into v_messg separated by space.
          perform write_log_entry
            tables t_zint_mslog
            using  'E' 'ZINT_CSTPORD_ROUTINES'
                       'FIND_SAP_PRODORD'
                         v_messg
                         p_zint_nw
                         lwa_01-ticketnumber.                " RJS
          continue.
        endif.
    Production Order WAS found... Continue creating IDOCS
        lwa_hdrlevel-postg_date = lwa_01-ticketdate.
    Obtain the storage location parameter value.
        read table t_zint_param with key zint_fn = 'LGORT'.
        if sy-subrc ne c_noerr.
          perform write_log_entry
            tables t_zint_mslog
            using  'E' 'ZINT_CSTPORD_ROUTINES'
                       'PROCESS_INBOUND_DATA'
                       'Parameter LGORT is missing from ZINT_PARAM'
                       p_zint_nw
                       lwa_01-ticketnumber.                " RJS
          exit.
        endif.
        loop at l_it_05 into lwa_05
          where ticketnumber = lwa_01-ticketnumber.
          clear lwa_gm_item_create.
          lva_filemat = lwa_05-material.
          if lva_filemat eq lva_prodmat.
            concatenate 'Command ticket-' lwa_05-ticketnumber
              into lwa_hdrlevel-conf_text.
            lwa_hdrlevel-conf_quan_unit = lwa_05-unitofmeasure.
            lwa_hdrlevel-yield          = lwa_05-quantity.
    check whether the confirmed value + current delivery value is equal *
    the production order qty. If the production order value is less
    than the total delivered value, set final conf indicator  and clear
    reservations
            lva_wemng = lva_wemng + lwa_05-quantity.
            if lva_wemng < lva_psmng.
              lwa_hdrlevel-clear_res      = c_false.
              lwa_hdrlevel-fin_conf       = ' '.
            else.
              lwa_hdrlevel-clear_res      = c_true.
              lwa_hdrlevel-fin_conf       = 'X'.
            endif.
            move: 'Z1BP_PP_HDRLEVEL' to t_idoc_data-segnam,
                  lwa_hdrlevel       to t_idoc_data-sdata.
            append t_idoc_data.
            clear lva_formmat.
            lva_formmat                   = lwa_05-material.
            lwa_gm_item_create-material   = lva_formmat.
            lwa_gm_item_create-plant      = lwa_03-plant.
            lwa_gm_item_create-ref_date   = lwa_01-ticketdate.
            lwa_gm_item_create-prod_date  = lwa_01-ticketdate.
            lwa_gm_item_create-move_type  = '101'.
            lwa_gm_item_create-spec_stock = 'E'.
            lwa_gm_item_create-sales_ord  = lva_saleord.
            lwa_gm_item_create-entry_qnt  = lwa_05-quantity.
            lwa_gm_item_create-entry_uom  = lwa_05-unitofmeasure.
            lwa_gm_item_create-orderid    = lva_prodord.
            lwa_gm_item_create-move_mat   = lva_formmat.
            lwa_gm_item_create-move_plant = lwa_03-plant.
            lwa_gm_item_create-mvt_ind    = 'F'.
            clear t_idoc_data.
            move: 'E1BP2017_GM_ITEM_CREATE' to t_idoc_data-segnam,
                  lwa_gm_item_create        to t_idoc_data-sdata.
            append t_idoc_data.
          else.
            clear: lva_loggr,
                   lva_formmat.
            lva_formmat = lwa_05-material.
            select single loggr into lva_loggr from marc
              where matnr = lva_formmat
              and   werks = lwa_03-plant.
            if sy-subrc ne 0.
              clear v_messg.
              No logistics handling group - log a warning message.
              concatenate 'No logistics handling group for material'
                           lva_formmat
                          'in plant'
                           lwa_03-plant
                into v_messg separated by space.
              perform write_log_entry
                tables t_ldata
                using 'W' 'ZINT_CSTPORD_ROUTINES'
                          'PROCESS_INBOUND_DATA'
                          v_messg
                          p_zint_nw
                          lwa_01-ticketnumber.                " RJS
              clear lva_loggr.
            endif.
            if lwa_03-satsur eq 'T'.
              lwa_e1edl21-lprio = 30.
            else.
              lwa_e1edl21-lprio = 20.
            endif.
          else.
            if lwa_03-satsur eq 'T'.
              lwa_e1edl21-lprio = 10.
            else.
              lwa_e1edl21-lprio = '  '.
            endif.
          endif.
          lwa_e1edl21-berot = lwa_04-driver.
          move: 'E1EDL21'   to t_idoc_data-segnam,
                lwa_e1edl21 to t_idoc_data-sdata.
          append t_idoc_data.
          lwa_e1edl55-qualf = '001'.
          lwa_e1edl55-refnr = lva_saleord.
          move: 'E1EDL55'   to t_idoc_data-segnam,
                lwa_e1edl55 to t_idoc_data-sdata.
          append t_idoc_data.
    Loop at materials - create delivery entry for each
          loop at l_it_05 into lwa_05
            where ticketnumber = lwa_01-ticketnumber.
            clear t_idoc_data.
            lwa_e1edl24-matnr = lwa_05-material.
            lwa_e1edl24-werks = lwa_03-plant.
            lwa_e1edl24-vfdat = lwa_01-ticketdate.
            lwa_e1edl24-lfimg = lwa_05-quantity.
            lwa_e1edl24-vrkme = lwa_05-unitofmeasure.
            lwa_e1edl24-lgort = t_zint_param-zint_fv.
            clear lva_loggr.
            lva_formmat = lwa_05-material.
            clear lva_loggr.
            select single loggr into lva_loggr from marc
              where matnr = lva_formmat
              and   werks = lwa_03-plant.
            if sy-subrc ne 0.
            No logistics handling group - log a warning message.
              concatenate 'No logistics handling group for material'
                           lva_formmat
                          'in plant'
                           lwa_03-plant
                into v_messg separated by space.
              perform write_log_entry
                tables t_ldata
                using 'W' 'ZINT_CSTPORD_ROUTINES'
                          'PROCESS_INBOUND_DATA'
                          v_messg
                          p_zint_nw
                          lwa_01-ticketnumber.                " RJS
              lva_loggr = 'BBIN'.
            endif.
            if lva_loggr is initial.
              move: 'E1EDL24'   to t_idoc_data-segnam,
                    lwa_e1edl24 to t_idoc_data-sdata.
              append t_idoc_data.
            endif.
          endloop.
          clear: lva_xabln,
                 lva_vbeln,
                 l_vbfa.
    Matching ticket against a Delivery?
          select single xabln vbeln into (lva_xabln,lva_vbeln) from likp
              where xabln = lwa_01-ticketnumber.
          if sy-subrc = 0.
    If found, does this delivery match the sales order?
            select * from vbfa into l_vbfa
              where vbelv = lva_saleord
              and   vbeln = lva_vbeln.
              exit.
            endselect.
          endif.
    No matching delivery found, or Matching delivery, but for other Sls Ord
          if lva_xabln is initial
          or ( lva_vbeln <> space and l_vbfa is initial ).
            if not lva_saleord is initial.
              perform create_delivery_idocs tables t_zint_mslog
                                            using  s_idcgp
                                                   lwa_01-ticketnumber
                                                   p_zint_nw.
            else.
              concatenate 'Error finding a Sales Order for ticket "'
                          lwa_01-ticketnumber
                          '" reprocess the file AFTER'
                          ' the sales order issues have been fixed'
              into        lva_outtext.
              perform write_log_entry tables t_zint_mslog
                                      using  'E'
                                             'ZINT_CSTPORD_ROUTINES'
                                             'PROCESS_INBOUND_DATA'
                                             lva_outtext
                                             p_zint_nw
                                             lwa_01-ticketnumber. " RJS
            endif.
          else.
            concatenate 'Command Ticket "'
                        lwa_01-ticketnumber
                        '" has already been processed into delivery "'
                        lva_vbeln
            into        lva_outtext.
            perform write_log_entry tables t_zint_mslog
                                    using  'I'
                                           'ZINT_CSTPORD_ROUTINES'
                                           'PROCESS_INBOUND_DATA'
                                           lva_outtext
                                           p_zint_nw
                                           lwa_01-ticketnumber. " RJS
            refresh t_idoc_data.
          endif.
        endif.
        refresh t_idoc_data.
    Write out all messages collected so far
        perform update_data tables t_zint_mslog
                            using p_zint_id p_zint_ty.
      endloop.
    Write out all messages collected so far
      perform update_data tables t_zint_mslog
                          using p_zint_id p_zint_ty.
    endform.                    " process_inbound_data
    Thnaks
    Regards

    Thanks
    Thread closed

  • Doubt about the settlement rule of the Production ORder

    The only default distribution rule allowed for a PP order is PP1 or PP2.  We would need to change that to allow settlement to multiple receivers as a default. If that is the case, we may want to look into a user exit to update the settlement rule during production order creation instead so that the G/L account is correct from the beginning.
    Currently when we create the production order, the settlement rule will default the below, I am not sure if a user exit is able to maintain the Source as 200 (Materials)?
    If yes, we can then add the second rule for Source 100 (Labor and Mfg) via the user exit as well.
    In this case, SAP will not prompt us error of settlement with 200%, as they are from difference Sources.
    now anybody can explain me about the User EXit we have to correct this

    any help on this.. please its very urgent
    thanks in advance

  • How to use BAPI_GOODSMVT_CREATE against the Production Order

    Hi Friends,
    I need ur help very urgently,
    I am using the BAPI_GOODSMVT_CREATE (movement code '03') for goods return against the production order (movement type '262').
    everything working fine, ie it gets updated in IM/WM.
    but when we check in the CO03 transaction for the production order, the qty withdrwan not gets updated in the component overview. still showing the old value. But when we used regular SAP transaction MB1A, it gets updated in CO03 (qty withdrwan in the component overview).
    How to solve this issue using this BAPI.
    I have attached the code, plese help me is there any other parameter to set for this BAPI.
    Thanks in advance.
    Shankar
    Code:
    *Header Structure
    st_gm_code-gm_code = '03'. "
    st_gm_header-pstng_date = st_gm_header-doc_date = sy-datum.
    SORT itab BY aufnr matnr j_3asized.
    LOOP AT itab.
    itab_afs_gm_itemx-material = itab-matnr.
    itab_afs_gm_itemx-plant = itab-werks.
    itab_afs_gm_itemx-stge_loc = itab-lgort.
    itab_afs_gm_itemx-batch = itab-new_charg .
    itab_afs_gm_itemx-stock_cat = itab-j_4kscat.
    itab_afs_gm_itemx-stck_type = 'F'.
    itab_afs_gm_itemx-move_type = '262'.
    itab_afs_gm_itemx-entry_qnt = itab-j_3aerfmg .
    itab_afs_gm_itemx-grid_value = itab-j_3asized.
    itab_afs_gm_itemx-orderid = itab-aufnr.
    itab_afs_gm_itemx-move_reas = itab-move_reas.
    APPEND itab_afs_gm_itemx .
    SELECT SINGLE etenr
    INTO etenr
    FROM j_3abdsi WHERE aufnr = itab-aufnr
    AND matnr = itab-matnr.
    gr_afs-matdoc_itm = '0100'.
    gr_afs-sched_line_sku = etenr.
    gr_afs-stock_cat = itab-j_4kscat.
    gr_afs-grid_value = itab-j_3asized.
    APPEND gr_afs.
    ENDLOOP.
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
    EXPORTING
    goodsmvt_header = st_gm_header
    goodsmvt_code = st_gm_code
    IMPORTING
    goodsmvt_headret = st_gm_headret
    materialdocument = mat_doc
    matdocumentyear = doc_year
    TABLES
    goodsmvt_item = itab_afs_gm_itemx
    return = bapi_return
    afs_goodsmvt_sku = gr_afs.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

    Hi Friends,
    I need ur help very urgently,
    I am using the BAPI_GOODSMVT_CREATE (movement code '03') for goods return against the production order (movement type '262').
    everything working fine, ie it gets updated in IM/WM.
    but when we check in the CO03 transaction for the production order, the qty withdrwan not gets updated in the component overview. still showing the old value. But when we used regular SAP transaction MB1A, it gets updated in CO03 (qty withdrwan in the component overview).
    How to solve this issue using this BAPI.
    I have attached the code, plese help me is there any other parameter to set for this BAPI.
    Thanks in advance.
    Shankar
    Code:
    *Header Structure
    st_gm_code-gm_code = '03'. "
    st_gm_header-pstng_date = st_gm_header-doc_date = sy-datum.
    SORT itab BY aufnr matnr j_3asized.
    LOOP AT itab.
    itab_afs_gm_itemx-material = itab-matnr.
    itab_afs_gm_itemx-plant = itab-werks.
    itab_afs_gm_itemx-stge_loc = itab-lgort.
    itab_afs_gm_itemx-batch = itab-new_charg .
    itab_afs_gm_itemx-stock_cat = itab-j_4kscat.
    itab_afs_gm_itemx-stck_type = 'F'.
    itab_afs_gm_itemx-move_type = '262'.
    itab_afs_gm_itemx-entry_qnt = itab-j_3aerfmg .
    itab_afs_gm_itemx-grid_value = itab-j_3asized.
    itab_afs_gm_itemx-orderid = itab-aufnr.
    itab_afs_gm_itemx-move_reas = itab-move_reas.
    APPEND itab_afs_gm_itemx .
    SELECT SINGLE etenr
    INTO etenr
    FROM j_3abdsi WHERE aufnr = itab-aufnr
    AND matnr = itab-matnr.
    gr_afs-matdoc_itm = '0100'.
    gr_afs-sched_line_sku = etenr.
    gr_afs-stock_cat = itab-j_4kscat.
    gr_afs-grid_value = itab-j_3asized.
    APPEND gr_afs.
    ENDLOOP.
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
    EXPORTING
    goodsmvt_header = st_gm_header
    goodsmvt_code = st_gm_code
    IMPORTING
    goodsmvt_headret = st_gm_headret
    materialdocument = mat_doc
    matdocumentyear = doc_year
    TABLES
    goodsmvt_item = itab_afs_gm_itemx
    return = bapi_return
    afs_goodsmvt_sku = gr_afs.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

  • Update Serial Numbers to Production Order

    Hi,
    Has anyone used any Function module for updating the Serial Numbers to the Production Order Header. I am using the FM - SERNR_ADD_TO_PP . The Serial Numbers needs to be assigned when doing Goods Issue in MIGO. At this point The FM is updating the Serial Numbers to Order but it is putting it in Status PMP1.
    Once the Status is PMP1 it prevents anymore Serial Number update to the same production order using the same Function module. This is preventing us from doing partial Goods Issue in MIGO.
    Is there any more Function Module that can be used to updating the Serial Nos in the Production Order.
    Regards,
    Arunava

    HI rasheed,
    Check this resolution on table control for BDC.
    https://wiki.sdn.sap.com/wiki/x/DQGqAw
    Note: Do not post the same question twice.
    Regards,
    Bhumika

  • Current operation for the product order

    how do i determine a current operation for the production order? in what table shall i get this indicator? ive been searching in afru and i cant seem to find it?

    In your production order, there might be a sequence of operations. Each operations will be having the status. Based on the confirmation, the operation status will be updated. If the order status is CNF means it is completed. If the status in not CNF, then it is not completed. Based on the operation sequence, you can find out the current operation in your production order.
    This information you can get from the table AFVG. AFVG table is for order operation details.
    Hope this clarifies your doubt.
    Regards,
    V. Suresh

  • Unable to open the Production Order

    Hi All,
    there is a message error while trying to open the Production Order using tcode CO03.  The message is "User AA is currently processiong order 123456".
    User AA is already log-off from the system, but still giving the same error message.
    How to solve this problem?
    Thanks.

    Hi,
    Logically to display any document it may not resttrict even though same document is using by other user it may only allow yout display rather to change......but also try the below way it may help you.
    Just re login in user AAA and select the first radio button "continue with this login and end other login" and then login from your USER ID and try to display the production order through CO03.
    BR

Maybe you are looking for

  • How to do Cntrl + arrow option from Windows on a macbook

    I'm using parellels to work in microsoft powerpoint. On my PC I can move text boxes tiny spaces by holding the control key and pressing the arrows. How can I do that same thing on a mac? If I use just the arrows it moves it too much. How can I get th

  • Why does safari load in to the last web page and not the set homepage

    I recently installed Lion 10.7.1.  In Safari, I have my preferences set at a preferred Homepage, however, each time I search the web at other sites, and after closing the web, and upon re-opening Safari, the last web page opens up and not my preferre

  • Trying to build a DVD, having problems

    The DVD I have been working on is ready to be burned to a dl/dvd.  Encore starts to make the menus as it finishes up that a alert box pops up saying I don't have permission.  I have the permission settings on my computer open for anyone.  The only th

  • CompareTo method to compare files

    I have to compare each line from two files and say whether the lines are different or not. I don't exactly understand how to use the compareTo method in this type of situation. I'd appreciate any help. import java.util.*; import java.io.*; import jav

  • Dummy Per. No.

    Dears, i m in SD module and i m have this scenario, I need to create dummy Per No (employee) to assign it to customer (Partner function), this Dummy Per No will be considered as sales representative who takes commission, but what exactly i need is to