User Exit for generating alphanumeric serial number when P.O created

Hi All,
           i am a na ABAPer.The PP guy in my module has asked me to look for an user exit which generates an alphanumeric Serial Number
when a purchase order is  generated.
Any help as i have no clue about this.
Thanks in Advance,
Saket.

Hi,
   Try the following exits by putting break point in the include.
IQSM0001  Automatic Serial Number Assignment
PPCO0018 Check for changes to production order header
PPCO0019 Checks for changes to order operations
PPCO0021 Release Control for Automatic Batch Determination
Regards
Kiran Sure

Similar Messages

  • User exit for generating external serial

    Hi,
    i want to generate external serial no at the time of goods receipt or MIGO transaction.
    is there any user exit or BADI for that??
    i hv searched but could not find.
    Regards,
    Sonika

    Hi sonika,
    You can use BADI MB_DOCUMENT_BADI for this .
    In method MB_DOCUMENT_PREPARE you can populate a table with serial number and then link it with the document.
    Please find below my code where i set serial number in migo
    Rewards if it solved your issue.
    Best regards.
    <i>METHOD if_ex_mb_document_badi~mb_document_before_update.
    In this code serial number is linked with batch number
      DATA : w_sernp TYPE serail.
      DATA : it_ser TYPE STANDARD TABLE OF iseri.
      DATA : w_ser TYPE iseri.
      DATA : wv_serial(13) ,
             wv_pos TYPE i ,
             wv_count(3) TYPE n .
      DATA : wv_equi TYPE equi.
      DATA : w_anzsn TYPE anzsn ,
            it_mes TYPE  tsmesg .
      DATA : wv_dotime TYPE i .
      DATA : w_bstch TYPE bsinf ,
             w_bstup TYPE bsinf .
      FIELD-SYMBOLS : <mseg> TYPE LINE OF ty_t_mseg ,
                      <mkpf> TYPE LINE OF ty_t_mkpf .
      LOOP AT xmkpf ASSIGNING <mkpf>.
        LOOP AT xmseg ASSIGNING <mseg>
             WHERE mblnr = <mkpf>-mblnr
               AND mjahr = <mkpf>-mjahr.
    Search for material serial profile in MARC
          SELECT SINGLE sernp INTO w_sernp
             FROM marc
             WHERE matnr = <mseg>-matnr
               AND werks = <mseg>-werks.
    searching last serial number define for the batch number used
          WRITE <mseg>-charg TO wv_serial NO-ZERO.
          CONDENSE wv_serial.
          CONCATENATE wv_serial '-%' INTO wv_serial.
          SELECT * FROM equi INTO wv_equi
            WHERE sernr LIKE wv_serial
            ORDER BY sernr DESCENDING.
            EXIT.
          ENDSELECT .
          IF NOT wv_equi-sernr IS INITIAL.
            wv_serial = wv_equi-sernr.
          ELSE.
            REPLACE '%' WITH '000' INTO wv_serial.
          ENDIF.
    Determination of serial number.
          SEARCH wv_serial FOR '-' .
          wv_pos = sy-fdpos + 1 .
          wv_count = wv_serial+wv_pos.
          wv_dotime = <mseg>-menge.
          DO wv_dotime TIMES.
            ADD 1 TO wv_count.
            wv_serial+wv_pos = wv_count.
            w_ser-serialnr = wv_serial.
            w_ser-mblpo = <mseg>-zeile.
            APPEND w_ser TO it_ser.
          ENDDO.
    Transfer serial number table for be visible by function module SERNR_ADD_BAPI_MM
          CALL FUNCTION 'DOCUMENT_SERIALNOS_IMPORT'
               TABLES
                    ser_tab = it_ser.
    update Material document with serial number
          CALL FUNCTION 'SERNR_ADD_BAPI_MM'
               EXPORTING
                    profile              = w_sernp
                    material             = <mseg>-matnr
                    m_charge             = <mseg>-charg
                    m_werk               = <mseg>-werks
                    m_lager              = <mseg>-lgort
                    quantity             = wv_dotime
                    mblnr                = <mseg>-mblnr
                    mjahr                = <mseg>-mjahr
                    zeile                = <mseg>-zeile
                    blart                = <mkpf>-blart
                    bwart                = <mseg>-bwart
                    shkzg                = <mseg>-shkzg
                    bstch                = w_bstch
                    bstup                = w_bstup
               IMPORTING
                    anzsn                = w_anzsn
               CHANGING
                    t_smesg              = it_mes
               EXCEPTIONS
                    konfigurations_error = 1
                    serialnumber_errors  = 2
                    OTHERS               = 3.
          IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
        ENDLOOP.
      ENDLOOP.
    ENDMETHOD.</i>

  • User-Exit for changing Sales Document Number - Urgent

    Hi Experts ,
                     Please suggest me the <b>User Exit for changing Sales Document Number.</b>
    thanks,
    Jayesh<b></b>

    hi jayesh,
    chech this exit-----EXIT_SAPFV45S_002.
    this exit's description says " Change Sales Document Using Configuration".
    Other available exits are
    SDAPO001            Activating Sourcing Subitem Quantity Propagation
    SDTRM001            Reschedule schedule lines without a new ATP check
    V45A0001            Determine alternative materials for product selection
    V45A0002            Predefine sold-to party in sales document
    V45A0003            Collector for customer function modulpool MV45A
    V45A0004            Copy packing proposal
    V45E0001            Update the purchase order from the sales order
    V45E0002            Data transfer in procurement elements (PRreq., assembly)
    V45L0001            SD component supplier processing (customer enhancements)
    V45P0001            SD customer function for cross-company code sales
    V45S0001            Update sales document from configuration
    V45S0003            MRP-relevance for incomplete configuration
    V45S0004            Effectivity type in sales order
    V45W0001            SD Service Management: Forward Contract Data to Item
    V46H0001            SD Customer functions for resource-related billing
    V60F0001            SD Billing plan (customer enhancement) diff. to billing plan
    Enter these exits name in SMOD transaction and select components. u can find all the user exits available for this exit name.
    Reward me if useful..........
    Harimanjesh AN

  • User exit for CJ20n (to check budget when create Reservation) for project

    Dear All,
    Plz advice, is there any user exit for CJ20n(project builder) in order to check available budget when we create reservation under a network/activity for a project?
    Many thanks in advance.

    Hi,
    Budget functionality is available against actual / commitment items, but n't against reservation of materials as there cane be reservation at projects or plant level. Morever there is no such user exit in CJ20N.
    If you can make developments of reservation agsinst network as committments items then budget functionality may work in that case.
    Hope this will help you.
    Regards,
    Rakesh Pradhan

  • How to generate alphanumeric serial number automatically through IQSM0001

    Dear Expert,
    We have requirment ie serial number should get generate automatically with initail letter include W CURRENT MONTHCURRENT YEAR+Running serial number during Good receipt (MIGO)
    We are using user exit  IQSM0001 and Include ZXQSMU01,Please logic for writing code
    Regards,

    Thanks

  • User exit for Change the Tariff Number in Customs Declaration Document

    Hi Guru,
    Due the business requirement, user only maintain the Tariff Number in ECC, there is an solution when GTS creating the customs declaration document in GTS, there is an user exit calling the Function Module (Customized program) to get the Tariff Number from ECC and then update the Tariff number in the item level automatically.
    Do you know if there is user exit or BADI can update the "Tariff Number" in the item level of Customs Declaration Document in GTS?
    Thanks,

    Hi,
    I would not do it in that manner, first because of performance reasons and 2nd, GTS needs to have the Data in the system and for certain procedures (for example swiss customs you will have to manipulate them in GTS). Furthermore we tried to do this for dummy numbers and then conclusion is that it only works with a Programm modification (at least for CH customs) becasue the system needs to retreive more than just the Tarif number.
    Yet if ECC has to be your master for Numbering (which I dont recommend by the way), but if there is really no other way.
    Then create a batch job that transfers the ECCN number to GTS (there is a standard functionnality to do so), and then do a batch job in GTS that retreives these numbers.
    Regards,
    Marc

  • User-exit for changing pricing date in condition record while creating SO?

    Hi all,
    I am creating sales order based on PO using  ALE-idoc . Here i got one problem i.e the system taking the pricing date as system date.
    But i want the pricing date equal to PO document date.
    Please specify where and how to set this pricing date?
    Thanks,
    Vamshi.

    hi Vamshi,
    Could you poste your solution for our information?
    I ran into a situation sort of related to yours.
    Our customers use ALE change their Purchase Order(PO) to us. Then, by means of ALE, our Sales Order(SO) changed accordingly.
    According to system standard, our Sales Order(SO) pricing date modified to present date. But in our industry scenario, pricing date is unchangable once the Sales Order(SO) has been created.
    Which user exit I can utilize to made those pricing date of SO header and body item stay the same?

  • User exit for sale order material serial number change

    I am looking for User exit for changing the serial number for the saleorder material va01.

    Hey,
      Check the include program : MV45AFZZ. it will trigger at the of saving the sale order.
    IF SY-TCODE EQ 'VA02' OR SY-TCODE EQ 'VA01'.
    Endif.
    Note : Write your coding inside the IF clause to avoid affecting the other transaction codes.
    Regards,
    Saravanan M

  • User exit for different Material Document for different company code

    Hi,
    We want to have different no. range for Material document (GR) for different compnay code. Presently we have no. range at client level. Can we do with any userexit. If so pls. give the details.
    Regards
    Sai Krishna

    [user exit for generating external serial;
    [BADI MB_DOCUMENT_BADI;
    [user exit or any other enhancements during good receipt;

  • User exit for MFBF Transaction when we save the Transaction

    Hi All,
    I have a requirement like this I am generating batch numbers for MFBF Transactioin for this I have written code in the user exit 'EXIT_SAPLV01Z-002' this user exit will generate the Batch Number accordingly client requirement and update the batch number to the cust table which I have created,But now the issue is if we will not save the MFBF Transaction or it got some error and terminated the Transaction MFBF still the batch Number is updating to the custom table I want to find which user exit will trigger when we will save the docuement in the Transaction 'MFBF'?
    Thanks&Regards
    Mahesh

    Hi Mahesh,
    Check these user exits.
    PTRM0001            User Exit for Lead Column in REM Planning Table
    SAPLRMPU            Customer Exits for Material Staging
    XMRM0001            User exits: Backflushing in Repetitive Manufacturing
    No of Exits:          3

  • User Exit for Validity Date for VA41 Tcode

    Hi,
    I am giving order type in VA41 Tcode and then Clicking on 'Create with Reference' .Then  a Pop Up is getting generated. In this i am giving Contract created with validity date lessthan today's date(in Contract Tab).For Example i created a Contract xxxxxx with 'valid to'  9.12.2008. When I am giving this contract and clicking on 'Copy' button a Warning message is getting generated 'The sales document is only valid until 09.12.2008'. Now i have to change this into Error message instead of Warning Message.
    i used User Exits  mv45afzz,MV45AFZA,MV45AFZB. But the debugger is getting started only after Warning message got generated.Is there any User Exit for which debugger gets started  when i give the Contract and then Click on 'Copy' button. Please Suggest.
    Thanks and Regards
    K Srinivas

    Hi,
    One idea. Go to VTAA (copy between sales docs) and create a new VOFM where you manage the copy control. Set a warning/error message in the new VOFM (in your range number), and try it.
    Regards,
    Eduardo
    Edited by: Eduardo Hinojosa on Dec 10, 2008 3:58 PM

  • User Exit for ME21/ME22

    Hi Guys,
    Can anyone give me the user exit for saving / changing the data when a purchase order is being saved..
    thanks in advance,
    Kittu.

    Hi
    You can use the BADI
    <b>ME_PROCESS_PO_CUST</b>
    There are lot of Exits for Purchasing
    check the following exits if you need
    MEVME001                                WE default quantity calc. and over/ underdelivery tolerance
    MM06E001                                User exits for EDI inbound and outbound purchasing documents
    MM06E003                                Number range and document number
    MM06E004                                Control import data screens in purchase order
    MM06E005                                Customer fields in purchasing document
    MM06E007                                Change document for requisitions upon conversion into PO
    MM06E008                                Monitoring of contr. target value in case of release orders
    MM06E009                                Relevant texts for "Texts exist" indicator
    MM06E010                                Field selection for vendor address
    MM06E011                                Activate PReq Block
    MMAL0001                                ALE source list distribution: Outbound processing
    MMAL0002                                ALE source list distribution: Inbound processing
    MMAL0003                                ALE purcasing info record distribution: Outbound processing
    MMAL0004                                ALE purchasing info record distribution: Inbound processing
    MMDA0001                                Default delivery addresses
    MMFAB001                                User exit for generation of release order
    MRFLB001                                Control Items for Contract Release Order
    AMPL0001                                User subscreen for additional data on AMPL
    LMEDR001                                Enhancements to print program
    LMELA002                                Adopt batch no. from shipping notification when posting a GR
    LMELA010                                Inbound shipping notification: Transfer item data from IDOC
    LMEQR001                                User exit for source determination
    LMEXF001                                Conditions in Purchasing Documents Without Invoice Receipt
    LWSUS001                                Customer-Specific Source Determination in Retail
    M06B0001                                Role determination for purchase requisition release
    M06B0002                                Changes to comm. structure for purchase requisition release
    M06B0003                                Number range and document number
    MEQUERY1                                Enhancement to Document Overview ME21N/ME51N
    MELAB001                                Gen. forecast delivery schedules: Transfer schedule implem.
    MEFLD004                                Determine earliest delivery date f. check w. GR (only PO)
    MEETA001                                Define schedule line type (backlog, immed. req., preview)
    ME590001                                Grouping of requsitions for PO split in ME59
    M06E0005                                Role determination for release of purchasing documents
    M06E0004                                Changes to communication structure for release purch. doc.
    M06B0005                                Changes to comm. structure for overall release of requisn.
    M06B0004                                Number range and document number
    Reward points if useful
    Regards
    Anji

  • User Exit for MIR7 Simulate

    Hi all,
            I need to implement a user exit for MIR7 similation . requirment is when user click on button simulate at the time of MIR7 the total amount of all line items should be displayed in popup or any small window. therefore any user is there for do that . and give some tips for inplement that. actualy i am new to user exits.
    Thanks in advance
    Jitendra

    hi,
    You can use tcode 'smod' to navigate to one of these enchancement and choose the best EXIT Fm to do the calculation .
    Exit Name           Description
    LMR1M001            User exits in Logistics Invoice Verification
    LMR1M002            Account grouping for GR/IR account maintenance
    LMR1M003            Number assignment in Logistics Invoice Verification
    LMR1M004            Logistics Invoice Verification: item text for follow-on docs
    LMR1M005            Logistics Inv. Verification: Release Parked Doc. for Posting
    LMR1M006            Logistics Invoice Verification: Process XML Invoice
    MRMH0001            Logistics Invoice Verification: ERS procedure
    MRMH0002            Logistics Invoice Verification: EDI inbound
    MRMH0003            Logistics Invoice Verification: Revaluation/RAP
    MRMN0001            Message output and creation: Logistics Invoice Verification
    PS : to create the FM for this user exit , you can use tcode CMODE to create new project with the suitable enhancement and create the code for your calculation.
    Thanks

  • User exit for VL02n to trigger error message by checking PFI status

    Please help me in finding out the exact user exit for the following enhancements:
    1.When i go to VL02n transaction and try to delete the line item in the delivery for which already PFI(Profarma Invoice) is created an error message should be triggered by us stating "Proforma already created" 
    2.Error message will have relevant PFI details and instruction to user to Cancel [Complete] the PFI as the first step in case of delivery item deletion. User will be allowed to delete the item only after the PFI is set to cancelled status.
    3.An information message should be generated automatically if user tries to change the quantity in delivery document line item, if PFI is already created for the same
    4.Information message will have relevant PFI details but allows the user to change the quantity.
    How can this be done? Thro' which user exit?
    Please post your suggesstions?

    Hi,
    Use the BADI "LE_SHP_DELIVERY_PROC".  Methods "FILL_DELIVERY_ITEM",  "CHANGE_DELIVERY_ITEM", "CHECK_ITEM_DELETION" will be useful
    for your requirement.
    Regards
    Vinod

  • User Exit for VA41 Validity Date

    Hi,
    I am giving order type in VA41 Tcode and then Clicking on 'Create with Reference' .Then a Pop Up is getting generated. In this i am giving Contract created with validity date lessthan today's date(in Contract Tab).For Example i created a Contract xxxxxx with 'valid to' 9.12.2008. When I am giving this contract and clicking on 'Copy' button a Warning message is getting generated 'The sales document is only valid until 09.12.2008'. Now i have to change this into Error message instead of Warning Message.
    i used User Exits mv45afzz,MV45AFZA,MV45AFZB. But the debugger is getting started only after Warning message got generated.Is there any User Exit for which debugger gets started when i give the Contract and then Click on 'Copy' button. Please Suggest.
    Thanks
    K Srinivas

    Hi,
    Create a file say breakpoint.txt file as follows:-
    [FUNCTION]
    Command=/H
    Title=Debugger
    Type=SystemCommand
    Once you come to the screen of 'Create with reference' where you are giving the contract, from  second session drag the above mentiuoned file to the session where you are running VA41, & drop it here. Now debugger has been activated. Proceed with debugging. This method you can use for any of the 'POP UPs'.
    I hope this helps,
    Regards
    Raju Chitale

Maybe you are looking for