Create Serial Numbers

Hi Experts,
I am using a bapi, BAPI_GOODSMVT_CREATE to create new serial numbers in the system. Following are the inputs that i am passing to the bapi.
wa_header-PSTNG_DATE = sy-datum.
wa_code-GM_CODE = '05'.
wa_item_create-material = matnr (The concerned material number).
wa_item_create-PLANT = plant
wa_item_create-MOVE_TYPE = '501'.
wa_item__create-ENTRY_QNT = '1'.
wa_item_create-ENTRY_UOM_ISO = 'EA'.
append wa_item_create to gt_item_create.
wa_serialnum-MATDOC_ITM = '0001'.
wa_serialnum-SERIALNO = 'ABCD-00044' (The required serial number to be created)
append wa_serialnum to gt_serialnum.
  CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
  EXPORTING
    goodsmvt_header               = wa_header
    goodsmvt_code                 = gm_code
  TESTRUN                       = ' '
  GOODSMVT_REF_EWM              =
IMPORTING
  GOODSMVT_HEADRET              =
  MATERIALDOCUMENT              =
  MATDOCUMENTYEAR               =
  tables
    goodsmvt_item                 = gt_item_create
   GOODSMVT_SERIALNUMBER          = gt_serialnum
    return                        = gt_return
  GOODSMVT_SERV_PART_DATA       =
  EXTENSIONIN                   =
After executing this FM, I get a screen which unfortunately i cant paste it here. This screen is same as the screen that appears in MIGO while creating serial numbers. To give you idea about the screen, it has following fields - Division, Device category, Serial Number,
                                    manufacturer, Model number, Construct year,
                                    Cert Year, Cert No.  and many more.
As this screen appears, I tried to enter the relevant fields but the control does not move to next screen.Every time info message is displayed as "Function code cannot be selected.
Can anyone please help? Or can anyone suggest a FM to create serial numbers in the system through
program?

hI,
Here is the simple way can you try this,,
Execute the transaction SNRO and define the number ranges,, call this in your program using f.m. get_number_next and pass the object if as '1' and object name as what you have used while creating number ranges. it will gives u the serial number.....
Thanks and Regards,
Thirukumaran. R

Similar Messages

  • R12 - API to Create Serial Numbers for Ordered Item in Receipt

    Hello All,
    I got a requirement to create PO Receipt using PL/SQL code. For that i have created PL/SQL code to insert data in following Interface tables,
    a) rcv_headers_interface
    b) rcv_transactions_interface
    After inserting data in Interface table executed Concurrent Program "Receiving Transaction Processor" to process data from Interface table to Base Table. This process is working perfectly fine for "Non-Catalog" requests. But if i try to process any PO having Inventory Item whose Serial Control is set to "At Receipt" then i got following error at Interface table,
    "Fail to validate serials".
    To resolve this issue i need to create and process serial number for Ordered Item selected to Receive. Can anyone guide me regarding how can I generate Serial Numbers using API for PO Receipts.
    Regards,
    Priyanka

    Hi,
    Just populate mtl_serial_numbers_temp table correctly (by specifying transaction_temp_id = RTI.interface_transaction_id)
    and serial number range in fm_serial_number - to_serial_number respectively.
    You may entermultiple MSNT records with same transaction_temp_id.
    You may need to populate PRODUCT_TRANSACTION_ID = RTI.interface_transaction_id and PRODUCT_CODE = 'RCV'.
    Oracle will create all the serial numbers for you when the records get processed.
    Thanks,
    Hrishi

  • Creating Serial Numbers within Repeating Groups

    I am trying to have Serial Numbers within Repeating Groups. The situation is that there are no Serial number field within that table (in the DB) to handle such a request. Can someone guide me as I am a newbie to BI Publisher.
    The Link to the image is [http://s833.beta.photobucket.com/user/fareed_xtreme/media/Capture-3.png.html]

    where are many commands from xslt
    http://bipconsulting.blogspot.ru/2009/03/xslt-for-bi-publisher.html
    https://blogs.oracle.com/ocsbip/entry/xslxsltxpathxslfo_part_1
    http://docs.oracle.com/cd/E23943_01/bi.1111/e22254/extend_func.htm#CIHECHJG
    and so on ....

  • Use of Serial Numbers in Deliveries and Goods Issue

    Hi,
    We are using externally created serial numbers in Sales deliveries. At the time of creation of Serial Number we are maintaining Plant code in Stock Data and creating an Equipment for every serial number.
    Now at the time of Delivery when user assigns serial numbers then system is allowing using Serial Number created in a Plant to be used in other Plant. Moreover I am able to use same serial number twice i.e. Serial Numbers which were used for the goods already delivered can be used again for other deliveries.
    Though this process is related to Delivery but the same situation is there at the time of GR also.
    If somebody have faced simmilar situation may be in different process then pl. suggest any solution.
    SM

    Hi Everyone!
    Lot of similar questions but with no answer.
    I have found out an answer to the below and thought of sharing it with all for the sake of the community.
    The setting(if at all available) that has
    to be maintained to avoid the scenerio: a serial number if already posted in
    the goods issue document should not allow for further goods issue for the
    same material serial number combination.
    Solution:
    1) Check from the material master data of the material that you are doing the PGI for, the serialization profile used for it.
    2) Go to Tcode : OIS2, check the box for ExistReq, and make StkCk as 2.
    3) Go to Tcode : OIS2, select that serialization profile, and go to serializing procedures.
    4) Dont alter any procedures that are there, just add
    SDCR-Completion check IR delivery with SerUsage value as 03 and EqR value as 01,
    In case, this is already maintained, change the values to 03 and 01 for SDCR - Completion check IR delivery.
    This will give an information message while usage of serial number for PGI, with same message BS011 and IO233 but will not let you do the PGI and save the document.
    Thanks & Regards,
    Dipti.

  • New serial numbers in SAP for new equipment

    Hi Experts,
    I recently ordered new machines & receipted machines prior to creating serial numbers. The serial numbers created are not showing as being in new stock location XXXX.
    Later, unreceipted the PO & tried to create serial numbers first before re-receipting the equipment in, but did not work as expected.
    How to deal with this situation?

    Hi!
    Is this happing for all user or only to a particular user ?
    Take a Backup of your live server, make a test environment and do this.
    Clear the Messages in INBOX of SAP.
    Also, Modify the Change Log to 10 instead of 99 in
    Adminstration > System initiallisation > General Setting > Services > History / Log to 10.

  • Desactive the option "create serial number automatically"

    Hello
    I´am using serial numbers for certain materials with Stock check, and in my serial number profile the procedure MMSL (maintain goods receipt and issue doc.) is set the serusage 03 (obligatory).
    I need this configuration, so I can control stock for which serial number, and this serial number can´t be set automatically, it was to be write down by the users.
    The problem I have is that when I´am doing a material movement, for example, mvt 501 in MB1C or in MI04 to register the inventory count, the series number is obligatory has I want, but the system gives the user to "create automatically serial numbers", and when the user do that is creating new serial numbers sequential by the number range I gave. What I Want to know is:
    Is there any way to disable this option of "create serial numbers automatically???
    Thank you very much for your help
    Best Regards
    Carla

    MAHA REDDY wrote:
    Hi All,
    I am trying to generate the serial no on the form by this coding
    i have taken non data base field SI_NO
    IF :system.record_status IN ( 'NEW' ,'INSERT' ) THEN
    :XXEAM_JOB_TEMPLATE_LINES.SI_NO := :System.CURSOR_RECORD ;
    END IF ;
    If I am deleteting a record from the middle of the record the sequence on the serial number does not gets changed eg. if there r 5 records if I delete 3 record then the sequence of serial number will become 1,2,4,5 where as it should become 1,2,3,4
    same is the issue if I add a record in the middle the serial number gets duplicate eg if there r 5 record and i am adding another record after 2 then its coming like this 1,2,3,3,4,5 where as it should come like this 1,2,3,4,5,6
    Hi Maha,
    You can use PRE-RECORD trigger at block level and if you write
    :TXT_SL:=:system.trigger_record;you will get serial no. After deleting or adding it will not re-organize your serial no un till you navigate at other record. If you navigate through out the record, it will
    re-organized.
    If you want it dynamically, you need to do a loop after any interaction in records.
    Hope understand..
    Hamid

  • Serial Numbers / Sp.Pr.Type 52 Direct prod./ coll. order

    Experts,
    when I am using Sp.Pr.Type 52 (MRP2) for a serialized material.
    The serialization will be ignored by system for sub orders (collective order) or GR in MIGO. If I confiirm last operation of sub order  order changes to DLV system do not require a serial number & is not part of equipment structure.
    Is this the normal nature of Sp.Pr.Type 52 ?
    Thanks in advance
    Jörg

    Hi Jörg,
    In the R/3 standard system, you cannot create serial numbers in subordinate orders of a collective order. With the modification note 391606, you can maintain serial numbers in lower-level orders of a collective order as well, but still with a lot of restrictions. Please take a look at this note.
    Best regards,
    Tao Wang

  • Serial numbers in migo

    Dear experts
    I came across the following scenario. I have created a production order for 100 quantity and confirmed. That material needs external number range i have given it. Now i want to do goods reciept for only 50. But in migo ininitially it was creating serial numbers for 100. When i reduce the quantity to 50 the serial numbers are not reducing so i have to delete it manually. So please suggest me what to do.

    Hi,
    That's how it is in SAP. It cannot be automated, unless you implement barcodes.
    When users do GR of 50 pcs, they have to identify which 50 are being completed. From business point of view, each serial no is to be tracked & ideally , there should be identification on physical unit( Like you have plate on CAR identifying engine serial no  or Sticker on Notebook ). This will help in case of defect detected in field & also replacement parts to be used.  You may want to implement Bar-code , then while doing GR, scan to get Serial no populated in SAP.
    If product are not complex ( Consumer goods) ,no need to implement Sr. No .. Batch managment will serve purpose.
    Hope it helps

  • Change Serial numbers

    Hi All,
    I have 2 problems:
    1. I need to change in mass serial numbers.......
    I created serial numbers for many materials but i don't have plant and storage location.
    Can I use mass transaction o similar transaction code?
    2. I need delete some serial numbers.
    Could you please help me?
    Many thanks.
    BR.
    Angela

    Angela,
    You cannot change in Mass but one by one you can change for that you will have to go into Tcode. OIS2,  Check Column StkCk -Stock check for serial numbers, maintain this column as blank. i.e., StkCk = 0
    Else
    with StkCk = 2 you cannot enter Stock type, Plant, Storage location if you do it, it will throw an error,
    "Stock control active (profile ZXXX) for material XXXXXXXXX in plant XXXX), but you can maintain StkCk = 0 temporarily, until you complete maintaining plant, storage location for all the serial numbers then reinstate StkCk = 2.
    Discipline the enduser from clicking "create serial no Automatically" then it will create DUmmy serial nos without plant and storage location.
    2. You cannot delete it, but you can set Deletion Flag and you can make serial no active or inactive.
    TCode Iq02 : Matserialno --> Functions --> A. Active and B. Deletion flag
    Note: Be careful it should not affect other plants.
    Regards
    Sathya

  • SERIAL NUMBERS FOR ASSEMBLY ORDERS

    hI,
    I would like to know, how serial numbers for Assembled products be assigned .
    If possible, please explain it in details as I'm in different module altogether.
    Regards
    RD

    Hi Durai,
    1. First You need to assign the Serial number profile in Material Master under Plant data2.
    2. System will create serial numbers at the time of production order release.
    3. a) In QM point of view under Inspection type active tick mark in Serial numbers.
    b) Your MIC should be single result recording and Sample size should be 100%.
    C) with r. to above you can record the result as well as stock posting done serial number wise.
    Revert further clarification.
    Regards,
    S.Babusingh

  • Regarding Serial Numbers

    Dear All,
    How do you create serial numbers in SAP
    Regards
    Atul

    Hi,
    You can create Serial Number in TCODE-IQ01.
    Reward Points , if helpful.
    Regards,
    Vikas

  • Create Inbound Delivery with Reference to PO using Serial Numbers

    I guys.
    I didn't find any BAPI  to create an Inbound Delivery with Reference to PO using Serial Numbers so I've made a Function Module with BDCData.
      LOOP AT serial.
        ADD 1 TO ld_count.
        ld_value = serial-sernr.
        CONCATENATE  'RIPW0-SERNR(' ld_count ')' INTO ld_field.
        PERFORM bdc_field USING ld_field ld_value.
      ENDLOOP.
    This works fine for 10 entries, but when I'm trying to use 1000 entries in serial Internal Table I'm getting the error: Screen 0000 is too large for internal batch input area - Message no. 00379.
    Please note that my issue is the Serial numbers, so don't answer me please with BAPIs that doesnt allow me to deal with this.
    Any idea?
    Thanks in advance,
    Nuno

    As I expect, it solved my problem. It's not pretty, but it works...
      PERFORM bdc_dynpro      USING 'SAPLIPW1'       '0200'.
      PERFORM bdc_field       USING 'BDC_CURSOR'     'RIPW0-SERNR(01)'.
      DATA: ld_valor(4) TYPE n,
            ld_next,
            ld_tabix TYPE sy-tabix.
      LOOP AT serial.
        ld_tabix = sy-tabix.
        IF ld_next = 'X'.
          CLEAR ld_next.
          ld_count = 2.
        ELSE.
          ADD 1 TO ld_count.
        ENDIF.
        ld_value = serial-sernr.
        CONCATENATE  'RIPW0-SERNR(' ld_count ')' INTO ld_field.
        PERFORM bdc_field USING ld_field ld_value.
        ld_valor = ld_tabix + 17.
        ld_valor = ld_valor MOD 18.
        IF ld_tabix NE 1 AND ( ld_tabix EQ 19 OR ld_valor EQ 0 ).
          ld_next = 'X'.
          PERFORM bdc_field       USING 'BDC_OKCODE'     '=PNPG'.
          PERFORM bdc_dynpro      USING 'SAPLIPW1'       '0200'.
          PERFORM bdc_field       USING 'BDC_CURSOR'     'RIPW0-SERNR(01)'.
        ENDIF.
      ENDLOOP.
      PERFORM bdc_field       USING 'BDC_OKCODE'     '=RWS'.

  • IDOC message type WMMBXY not including Serial numbers in GR material documents when created with reference to an Inbound delivery

    Hello,
    We currently have an inbound ALE process (message type WMMBXY and basic type WMMBID02) to post GR's against inbound delivery. If the inbound delivery item is maintained with serial numbers, we want those serial numbers to be pulled into the goods movement material document (and stored in SER03).
    Currently segment E1MBXYJ is maintained with the inbound delivery number in field VLIEF_AVIS and Inbound delivery item number in field
    VBELP_AVIS. In segment E1MBXYI, no purchase order is assigned and the fields EBELN and EBELP are blank. The movement indicator (KZBEW) has the value 'B'.
    Even after making the above settings, the serial number(s) maintained on the Inbound delivery item do not get saved to the material document.I did look at OSS note 833603 (Solution for 2 - GR for Inbound delivery) and we have followed the same settings. This works when there is no serial number in the Inbound delivery. However if we have serial numbers, the IDOC posts successfully, however the material documents in MB03 do not have any serial numbers copied over from the Inbound delivery where the serial numbers are definitely assigned.
    Any help you can provide is greatly appreciated!
    Thanks,
    Ashvin
    P.S
    If we manually create the GR via MIGO, the serial numbers are automatically applied to the GR material document. This is what we want to accomplish via the above IDoc process.

    Hi
    Try with enhancement MWMIDO08. See note 833603 - EDI: Goods receipt for stock transport order for further information.
    I hope this helps you
    Regards
    Eduardo

  • Good Morning.  I'm having a problem using both my Photoshop elements and premiere programs.  I've installed the programs, redeemed my code and entered the serial numbers, and created the adobe log-in.  I am able to open up the organizer without problems,

    Good Morning.  I'm having a problem using both my Photoshop elements and premiere programs.  I've installed the programs, redeemed my code and entered the serial numbers, and created the adobe log-in.  I am able to open up the organizer without problems, but when I try to open up the photo editor (either by trying to open up the program from the main menu, or right-clicking on a photo in the organizer to edit in elements), the program asks me to sign in to adobe (which I can do and it doesn't give an an "incorrect password" or log-in ID error) then accept the terms and conditions.  When I click to accept the terms and conditions, nothing happens and the editor fails to open.  Everytime I click on the program, I get this same "loop" of signing in and accepting T&C's, but the program fails to open.  Any advice?

      Premiere Elements 10 is now 64 bit, but not PSE10.
    Take a look at your scratch disk set-up and if you have a spare volume, allocate that first before the C drive. Elements use scratch disks when it gets low on RAM.
    Click image to enlarge
    Turn off face recognition and the auto-analyzer to improve performance.
    When editing photos or videos check the task manager to see what background processes may be running and end them temporarily if not needed.

  • How to create HU and input serial numbers in inbound delivery order?

    User want a good way to create HU and input serial numbers in inbound delivery order, because they need input lots of serial numbers everyday, VL32N is difficult to use for them.
    So I need create a program to finish it, I want to know is there any BAPI function can be use for this propose?

    I used BDC to finish this task.

Maybe you are looking for