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

Similar Messages

  • Problem with updating serial numbers in sales order!

    Hi,
    I am trying to update serial numbers for a sales order in SAP. I tried using both SERNR_ADD_TO_AU and SERNR_ADD_TO_DOCUMENT. However, in both cases the FM returned the number of serial numbers created but these did not reflect in the sales order. The code for both is as below:
    WA_SERXX-SDAUFNR = '0000001733'.
    WA_SERXX-POSNR = '000010'.
    WA_SERXX-KUNDE = '0000009000'.
    WA_SERXX-VBTYP = 'C'.
    WA_SERXX-SD_AUART = 'OR'.
    WA_SERXX-SD_POSTYP = 'TAN'.
    WA_SERNR-SERNR = '000000001234ABCDAR'.
    APPEND WA_SERNR TO IT_SERNR.
    WA_SERNR-SERNR = '000000001234ABCDAQ'.
    APPEND WA_SERNR TO IT_SERNR.
    CALL FUNCTION 'SERNR_ADD_TO_DOCUMENT'
      EXPORTING
        operation                       = 'SDAU'
        objkopf                         = 'SER02'
        serxx                           = wa_serxx
        material                        = 'P1-TEST'
       PROFILE                         = 'Z001'
        quantity                        = '2'
      M_CHARGE                        =
       J_VORGANG                       = 'PMS2'
      KMATNR                          =
      CUOBJ                           =
      R_MATERIAL                      =
      BSTCH                           =
      BSTUP                           =
      SNBWG                           =
      EMATN                           =
      KDAUF                           =
      KDPOS                           =
      AUTOMATIC                       = ' '
      NO_ENQUEUE                      = ' '
      MORE_ALLOWED                    = ' '
      BUDAT                           =
    IMPORTING
       ANZSN                           = anzsn
       NEW_OBKNR                       = new_obknr
       SERIAL_COMMIT                   = serial_commit
       STATUS_NOT_ALLOWED              = status_not_allowed
      tables
        sernr                           = IT_SERNR
        r_sernr                         = it_ser1
      XVBPA                           =
    CHANGING
      T_SMESG                         =
    EXCEPTIONS
      KONFIGURATIONS_ERROR            = 1
      GENERAL_SERIAL_ERROR            = 2
      NO_PROFILE_OPERATION            = 3
      DIFFERENCE_IN_HEADER_DATA       = 4
      OTHERS                          = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    commit work and wait.
    CALL FUNCTION 'SERNR_ADD_TO_AU'
      EXPORTING
        sernr                       = '000000001234ABCDAR'
        profile                     = 'Z001'
        material                    = 'P1-TEST'
      M_CHARGE                    =
        quantity                    = '1'
      J_VORGANG                   = 'PMS2'
      KMATNR                      =
      CUOBJ                       =
        document                    = '0000001733'
        item                        = '000010'
        debitor                     = '0000009000'
        vbtyp                       = 'C'
        sd_auart                    = 'OR'
        sd_postyp                   = 'TAN'
    IMPORTING
       ANZSN                       = ANZSN
      ZEILEN_ID                   =
       SERIAL_COMMIT               = SERIAL_COMMIT
    EXCEPTIONS
      KONFIGURATIONS_ERROR        = 1
      SERIALNUMBER_ERRORS         = 2
      SERIALNUMBER_WARNINGS       = 3
      NO_PROFILE_OPERATION        = 4
      OTHERS                      = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    COMMIT WORK AND WAIT.

    hi,
    In order to maintain customer specific serial numbers you can do the following steps:
    1. Maintain the serial numbers provided by your client in tcode IQ01. this will create the customer serial numbers in the system.
    2. In the material master under Sales View maintain the serial number profile as 0002. this is sap standard.
    3. Once the above has been maintained you can assign serial numbers at the time of delivery and NOT in sales order.
    I hope this helps.
    Regards,
    Vishesh

  • SERIAL NUMBERS IN PRODUCTION ORDERS

    Hi All ,
           I am entering the serial number manually at the time of Production Order Creation . For Order1 i have entered the serial number as ABC1  and for the next order i enter the same serial number it is allowing . so my requirements is system should not aloow to accept the same serial number which i have entered earlier .
    Thank You

    Hi,
    This is the standart behaviour of SAP and you have to write a control in a user exit. In exit EXIT_SAPLIPW1_004, you can check if the serial numbers are already created, or used in a prodcution order before. You must join tables SER05 and OBJK to query assignment in a production order.
    Regards.

  • Connection between serial numbers in production order end confirmation

    Hi all,
    could you tell me if is possible in co11n to chose serial numbers already generated during the creation of production order?
    I set an automatic generation of serial numbers in saving of co01.. can I decide in co11n which serial number of a precise prod.order to confirm?
    Thanks,
    Valentina

    Thanks for your answer,
    I'm using this way to do you suggested me.. but the problem is this:
    For ex:
    Prod. order A
    Quantity of prod. order = 100
    Quantity already confirmed 50
    I have to put in warehouse only 5 finished prducts, but  when I use migo 101 for a GR, the system proposes to me 100 serial numbers from which I can select 5 sn; next time whene I have to select 5 others serial numbers, the system proposes to me all the 100 serial numbers again..
    I'd like to find a way to eliminate from the serial numb. list in migo 101 the sn that I've already selected before.
    For this I can force the storage to "blank" in the list selection, but if another production order B, for the same material exists, how can I know which of those serial numbers belongs to the order A and which to the order B? 
    Regards,
    Valentina

  • Serial Numbers for Production Orders

    Hi All
    Can anyone tell me the table in which the serial numbers are stored for the production orders?  I have created a production order and have assigned serial numbvers to it.  Now I want to extract these serial numbers from the table.
    Thanks in advance.
    Tom

    Hello Jack,
    In table SER05, the list of serial number details can be obtained.key the order noin ser05 table, get field OBJKNR, then pass this OBJKNR in table OBJK .
    Some useful table for serial numbers
    SER00 Generic table for serial numbers
    SER01 Serial numbers assigned to a delivery
    SER02 Serial numbers assigned to a guarentee
    SER03 Serial numbers assigned to a material document
    SER04 Serial numbers assigned to an inspection lot
    SER05 Serial numbers for a production order
    SER06 Serial numbers for Handling Units
    SER07 Serial numbers for Stocktaking
    SER08 serial numbers for Orders (SD)
    The assignment of serial numbers to a production order can be done either via transaction CO02 or at the latest when the GR from Production is made.
    I hope that this information clarifies the issue.
    Regards,
    R.Brahmankar

  • SD : Serial number in production order

    Hi,
    SAP doesn't copy my serial number set by function 'SERIAL_LISTE_POST_AU' into the production order. Why is this ?
    When i go into the sales order i see the serial number, but after running mrp the number can't be found in the production order. When i go into the 'technical object' screen in the sales order and press 'ok' and then save the sales order, the serial does appear.
    with regards.
    Erik

    Hi,
    Pls find here some details about generating alphanumeric serial numbers in production order as below :
    You can generate alphanumeric serial number with the following BADI / Customer Exit:
    Name of Enhancement : IQSM0001
    Name of Function Module Exit: EXIT_SAPLIPW1_001
    Name of Include : ZXQSMU01
    ZXQSMU01:
    This user exit can be used to create the serial numbers automatically for material of a production order. Number of serial numbers generated will be equal to the total number of quantity. The purpose behind development of this user exit was to attach prefix in each serial number generated.
    so as per your requirement you can generate serial number like ABC0001 etc.
    Process Steps:
    For exit: EXIT_SAPLIPW1_001
    1. Get serial number profile for a material in respective plant.
    2. Check if the profile is u2018XYZu2019.
    3. If profile is u2018XYZu2019 generate the serial numbers for the given quantity of material in production order.
    General Program Structure
    For exit: EXIT_SAPLIPW1_001
    1. Get the serial number profile using function module 'MARC_SINGLE_READ' for a material.
    2. Check if the profile is u2018XYZu2019.
    3. If the serial number profile is u2018XYZu2019 then generate the serial numbers for the given production order quantity of a material.
    4. Concatenate ABC as a prefix to the all generated serial numbers
    Provide above details reg. implementation BADI / Enhancement to your ABAPer and go ahead.
    Hope this helps.
    Regards,
    Tejas

  • How to output serial number from production order in GLM ?

    how to pull serial number from production order in wwi template for GLM ?

    Hi,
    Please have a look to this thread:
    BAPI/RFC to get serial numbers for a production order
    Hope it helps,
    Kr,
    m.

  • Number range for serial Number in production order

    Hi all,
                I want to use the Serial Number in production Order ... It should be generated automatically ... when i try this system creating the serial number from 1.....i want the number to start from 2000000 , How to configure this number range ....
    Please advise me ...
    Regards,
    kumar

    Dear
    Following steps are required in Serial Number Management :
    1. OIS2 or Go to path SPRO > Plant Maintenance and Customer Service > Master Data in Plant Maintenance and Customer Service > Technical Objects > Serial Number Management > Define Serial Number Profiles. There enter "2" in Stkck column for your serial profile.
    2.SPRO->SAP Customizing Implementation Guide->Plant Maintenance and Customer Service->Master Data in Plant Maintenance and Customer Service->Technical Objects->Equipment->Equipment Categories->Define Number Ranges
    3. IQ01 Create Serial Number
    4. MM02 You need to add the above created Serial Number Profile in the Material Master ion the work scheduling view .
    5. CO02 Assigning the Serial Number through Production Order,
    Also Serial Number can be created automatically by clicking on u201CCreate Serial Number Automaticallyu201D , Release the Order
    6. MB31 Do the GR for the above created Production Order and Check in MMBE for serial Numbers
    Try and check
    Regards
    JH
    Edited by: Jiaul Haque on Nov 22, 2010 7:43 AM

  • Update Serial Numbers and Qty with bapi_outb_delivery_change

    HI All
    I want to update serial numbers and quantity(delivery qty) for a delivery, this is mostly in case of short ship and over ship, I am using the BAPI for this updation, but I am getting errors to it.
    I am passing the following data in the BAPI:
    HEADER_DATA -
    > Delivery Number
    DELIVERY -
    > Delivery Number
    ITEM_DATA -
    > DELIV_NUMB(Delivery Number), DELIV_ITEM(Item), MATERIAL(material), DLV_QTY(Qty what i need to update in VL02n), FACT_UNIT_NOM(as 1), FACT_UNIT_DENOM (as 1), SALES_UNIT(VRKME), BASE_UOM(MEINS)
    ITEM_CONTROL -
    > DELIV_NUMB(delivery Number), DELIV_ITEM(Item), CHG_DELQTY(as 'X') .
    But I get this error message.
    "serial numbers are already maintained. Quantity cannot be changed"
    Please suggest how can I change both?
    Regards
    Swar

    Hi Swar
    I can maybe give you insight on why you are receiving the error message in hopes in can help you go to the right direction.  In the sales order for technical objects if you are maintaining lets say a qty of 2 each serial numbers.  When you create the delivery the system passes both serial numbers to the delivery. In cases of short ship (wanting to only ship one each) go to the serial number in the file menu under extras in the delviery and  before changing qty to one each; delete the serial number you are not shipping then change your qty this works.
    Edited by: Kim Blair on Sep 29, 2011 5:19 PM

  • Problem with BAPI_OUTB_DELIVERY_CHANGE to update serial numbers

    hi All,
    I am using BAPI_OUTB_DELIVERY_CHANGE to update serial numbers. i am executing this directly in se37 giving delivery number alone in import parameters header_data, header_control and delivery.
    and giving delivery numer, item no and random serial no in tables ITEM_SERIAL_NO. when i execute  it is not throwing any errors. how ever the delivery is not updated with the serial no's.Return parameters is also nor showing any values.
    Any pointers to solve this would be appreciated.
    Regards,
    Sreekanth.

    Hi,
    You need to use BAPI_TRANSACTION_COMMIT just after BAPI_OUTB_DELIVERY_CHANGE .
    Mark WAIT = 'X' in the IMPORT parameter of BAPI_TRANSACTION_COMMIT.
    For testing if it is working or not:
    Goto SE37 --> click on FUNCTION MODULE --> TEST -->TEST SEQUENCES
    First give BAPI_OUTB_DELIVERY_CHANGE and then BAPI_TRANSACTION_COMMIT.
    Click on EXECUTE. Execute BAPI_OUTB_DELIVERY_CHANGE then 'BACK' and then BAPI_TRANSACTION_COMMIT with proper data.
    Goto the transaction from where you can check entry has been created or not.
    Regards

  • Update serial numbers in delivery

    Hi Experts,
    I need to update serial numbers in delivery,
    I am using function modules SERNR_ADD_TO_LS and SERIAL_LISTE_POST_LS for it.
    Its updating the serial numbers in tables SER01 and OBJK properly.
    but I am not able to see those serial numbers from tcode VL03N,
    though when in try to update the serial numbers using tcode VL02N , i can see the serial numbers updated through above function modules.
    i debugged the code and these FMs doesn't update the field ANZSN(number of serial numbers) in table LIKP.
    could you please suggest how can i update this field in this scenario. I don't want to use update/modify commands on SAP standard table(LIKP) directly .
    Thanks
    Yogesh Gupta

    Hi,
    did you find a solution for this? I'm facing the same issue. Before I use a BDC I would like to try the FM first.
    thanks!
    Frans

  • Function Module to update Serial Numbers in Delivery

    Hello there,
    I am attempting to update serial numbers in an outbound delivery using function module SERNR_ADD_TO_LS followed by a perform of serial_liste_post_ls IN PROGRAM saplipw1. However I am struggle with error messages of inconsistancies in status management of the serial numbers. I have verified that the serial numbers I'm using are valid and available. Has anyone had any experience with this FM or others to post serial numbers into an outbound delivery?
    Many thanks!

    That is very helpful and turns out to be true, the delivery is updated with the serial numbers however LIPS is not. I have started to write a routine to correct this.
    On another note in my application I'm noticing that the when I call FM serial_liste_post_ls IN PROGRAM saplipw1 that the internal tables being passed that were built in the FM SERNR_ADD_TO_LS contain serial data from all deliveries and consequently I'm getting errors.
    My program loops at the delivery then the item and for each item I call the FM SERNR_ADD_TO_LS and then I call the serial_liste_post_ls IN PROGRAM saplipw1 once all lines have been passed and the first delivery updates fine. However the subsequent delivery receives an error of " Inconsitancy in status management for serial ". I have confirmed that the serials are good and when I go into debug I see the first delivery goes fine and then I noticed on the FM call of serial_liste_post_ls IN PROGRAM saplipw1 that the internal tables contains data from that delivery and the previous one.
    Below is psuedo code replicating how I call the FM's
    loop at i_likp.
    loop at i_lips
           where vbeln = i_likp-vbeln.
          CALL FUNCTION 'SERNR_ADD_TO_LS'
               EXPORTING
                    profile               = 'Z002'
                    material              = i_lips-matnr
                    quantity              = i_lips-anzahl
                    j_vorgang             = 'PMS3'
                    document              = i_likp-vbeln
                    item                  = i_lips-posnr
                    debitor               = i_likp-kunnr
                    vbtyp                 = i_lips-vgtyp
                    bwart                 = '601'
               IMPORTING
                    anzsn                 = anzsn
                    zeilen_id             = l_zeile
                    serial_commit         = serial_commit
               TABLES
                    sernos                = sernr
               EXCEPTIONS
                    konfigurations_error  = 1
                    serialnumber_errors   = 2
                    serialnumber_warnings = 3
                    no_profile_operation  = 4
                    OTHERS                = 5.
    endloop.
        PERFORM serial_liste_post_ls IN PROGRAM saplipw1.
        COMMIT WORK.
    endloop.
    Any help is very much appreciated!!!

  • Bapi for update Master Data in Production order

    Dear All ,
        I am working in a car manufacturing company here production order is made month wise planning qty , but every day its Bom is get changed by Autocad/PLM interface and all changes are being recorded through ECN .
       I have to  generate daily reservation for assemblies for a perticular finish vehical ,so I need to update the Masterdata in production order no through the PLM( VB platform) interface .
      So please suggest me any BAPI so that I can update the master data regular basis in monthly production order  or if you have any better way to map this process into SAP please suggest .
    Thanks in advance .
    regards ,
    Pralay ..

    Not sure what master data in production order you want to change. Anyway if it is at header level, then evaluate BAPI - BAPI_PRODORD_CHANGE.
    Alternatively evaluate the usage of Order Change Management if it is feasible in your solution. Do a search in this forum you will find many threads on it, also read SAP help & do a test a test in your sandbox. If you face a specific issue then do revert

  • HT1349 Do I only have a certain window of time to register my Apple Service and Support protection plan before it expires? I certainly hope not I paid for it and could never get the serial numbers for product & protection to sync together!

    Do I only have a certain window of time to register my Apple Service and Support protection plan before it expires? I certainly hope not I paid for it and could never get the serial numbers for product & protection to sync together!

    Normally must register an AppleCare plan before the original warranty on the Mac expires. If you have problems registering the AppleCare plan for your MacBook, call Apple tech support and ask to be connected to AppleCare Plan Adminstration.
    For future posts, please make sure you're in the most appropriate forum for the product or service you're asking about. You'll be most likely to get quick and accurate help that way.
    Regards.

  • How to add serial number contolled item with serial numbers in sales order.

    Hi OM Functional Experts,
    I need a help on sales order booking.
    We have serial controlled items in our inventory. At the time of booking a sales order, we need to call the items with the appropriate serial numbers [ for example, if i book an item for a qty of 10, then, the system should get the details ( serial number ) of the 10 item's serial number ].
    And the serial numbers are Pre-defined by the organization for their internal tracking from the porcess 1 till end of the assembly line.
    The purpose of this step, is to reduce the particular serial numbered item from the inventory, when we reserve/pick release the sales order.
    thanks in advance.
    Rdx,
    J kannan
    Edited by: J Kannan on Feb 17, 2009 1:23 AM

    Kannan
    OK. Unfortunately reservations cannot be created at the serial number level. So the unsupported way of doing this is updating the mtl_serial_numbers tables. I hope you would know (by some means) which serial numbers you want to allocate to a specific sales orders. If you know, update group_mark_id column in mtl_serial_numbers table with your order_line_Id, This will avoid any one from picking the serial numbers (they will not come up in the LOV or will not be auto allocated).
    But you have to make sure to take it off when you actually want to pick this order line and allocate this serial number. So just before you pick release/ confirm this order line you need to update column back to null so that you can allocate that serial number.
    Thanks
    Nagamohan

Maybe you are looking for